|
Peano
|
Represents a particle set. More...


Public Member Functions | |
| __init__ (self, particle) | |
| readme_descriptor (self) | |
| readme_package_descriptor (self) | |
| __str__ (self) | |
| Public Member Functions inherited from peano4.api.datamodel.DoF.DoF | |
| __init__ (self, name) | |
| Create a degree of freedom object. | |
| configure (self, namespace, association, subdirectory="", temporary_subdirectory="") | |
| Typically called by model as soon as you add an object to it. | |
| get_full_qualified_type (self) | |
| get_logical_type_name (self) | |
| What should the data type be called within the data repository, or within action sets. | |
| get_enumeration_type (self) | |
| What should the data type be called within the data repository. | |
| additional_load_and_store_arguments (self) | |
| additional_load_and_store_arguments_for_other_dof (self, argument_name, use_dof_association=None) | |
| You can make Peano's store and load arguments of any DoF depend on other DoFs that you have loaded before. | |
| subnamespace (self) | |
Data Fields | |
| particle_model = particle | |
| generator = ParticleSetGenerator_ScatteredOnHeap_IndexByVector(self) | |
| Data Fields inherited from peano4.api.datamodel.DoF.DoF | |
| association = DoFAssociation.Undef | |
| name = name | |
| list | namespace = [] |
| grid_selector = None | |
| subdirectory = subdirectory | |
| temporary_subdirectory = temporary_subdirectory | |
Additional Inherited Members | |
| Protected Attributes inherited from peano4.api.datamodel.DoF.DoF | |
| list | _additional_load_and_store_arguments = [] |
Represents a particle set.
A particle set is, in principle, a very simple container tied to a vertex. It allows each vertex to point to the particles around. While the realisation on the Python side is simple - after all, the Python model is solely the data model - interesting questions arise once we discuss how the data model is mapped onto C++. This information is not directly stored within the ParticleSet objects, i.e. this class is solely a presentation of the data topology.
The information how the association is mapped onto Peano's C++ code is held within the generator. By default, this generator maps each particle set onto a vector which in turn hosts particles on the heap. However, there are alternative implementations which you might want to pick by setting the generator attribute to a different value.
name: String Name of the particle. Has to be a valid C++ class name.
particle: Particle Link to particle definition
Definition at line 241 of file ParticleSet.py.
| peano4.api.toolbox.particles.ParticleSet.ParticleSet.__init__ | ( | self, | |
| particle ) |
Definition at line 276 of file ParticleSet.py.
| peano4.api.toolbox.particles.ParticleSet.ParticleSet.__str__ | ( | self | ) |
Definition at line 332 of file ParticleSet.py.
References peano4.api.datamodel.DaStGen.DaStGen.generator, peano4.api.datamodel.DaStGen2.DaStGen2.generator, peano4.api.datamodel.DynamicArrayOverPrimitives.DynamicArrayOverPrimitives.generator, peano4.api.datamodel.Model.Model.generator, peano4.api.datamodel.Patch.Patch.generator, peano4.api.solversteps.Steps.Steps.generator, generator, and particle_model.
Referenced by peano4.api.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__repr__().

| peano4.api.toolbox.particles.ParticleSet.ParticleSet.readme_descriptor | ( | self | ) |
Definition at line 293 of file ParticleSet.py.
References peano4.api.datamodel.DaStGen.DaStGen.generator, peano4.api.datamodel.DaStGen2.DaStGen2.generator, peano4.api.datamodel.DynamicArrayOverPrimitives.DynamicArrayOverPrimitives.generator, peano4.api.datamodel.Model.Model.generator, peano4.api.datamodel.Patch.Patch.generator, peano4.api.solversteps.Steps.Steps.generator, generator, and particle_model.
| peano4.api.toolbox.particles.ParticleSet.ParticleSet.readme_package_descriptor | ( | self | ) |
Definition at line 308 of file ParticleSet.py.
| peano4.api.toolbox.particles.ParticleSet.ParticleSet.generator = ParticleSetGenerator_ScatteredOnHeap_IndexByVector(self) |
Definition at line 288 of file ParticleSet.py.
Referenced by __str__(), and readme_descriptor().
| peano4.api.toolbox.particles.ParticleSet.ParticleSet.particle_model = particle |
Definition at line 286 of file ParticleSet.py.
Referenced by __str__(), and readme_descriptor().