|
Peano
|
Data Structures | |
| class | ParticleCellIteratorTemplate |
| Counterpart of ParticleVertexIteratorTemplate for cells. More... | |
| class | ParticleVertexIteratorTemplate |
| A mini-wrapper around a string for particle iterator. More... | |
Functions | |
| _get_particle_iterator_templates (particle_name) | |
| Construct particle interaction iterator call templates given the desired particle interaction kernel realisation. | |
| get_algorithm_step_dict (particle) | |
| Sets up a dict of the algorithm steps for this scheme so they can be accessed at various points and by various models. | |
Variables | |
| str | DefaultIncludes |
|
protected |
Construct particle interaction iterator call templates given the desired particle interaction kernel realisation.
These signature templates are strings containing c++ code snippets of the correct iterator call signature.
In total, there are four types of iterators. The essential two are:
From hereon, we can define some "derived" iterators:
Both special iterators are constructed to default values unless you explicitly set them beforehand.
The iterators require a function to be passed as an argument to act on the particles. In the template snippets being generated here, the functions shall be replaced by a placeholder string 'FUNCTION'.
Finally, the code snippets being returned are stored as a ParticleVertexIteratorTemplate object.
| particle_name | str the particle class name. |
4 ParticleVertexIteratorTemplate objects containing particle iterator code snippets.
Definition at line 72 of file AlgorithmStepLibrary.py.
Referenced by swift2.particle.AlgorithmStepLibrary.get_algorithm_step_dict().

| swift2.particle.AlgorithmStepLibrary.get_algorithm_step_dict | ( | particle | ) |
Sets up a dict of the algorithm steps for this scheme so they can be accessed at various points and by various models.
Definition at line 217 of file AlgorithmStepLibrary.py.
References swift2.particle.AlgorithmStepLibrary._get_particle_iterator_templates().

| str swift2.particle.AlgorithmStepLibrary.DefaultIncludes |
Definition at line 5 of file AlgorithmStepLibrary.py.