Peano
Loading...
Searching...
No Matches
peano4.api.toolbox.particles.ParticleSet.ParticleSet Class Reference

Represents a particle set. More...

Inheritance diagram for peano4.api.toolbox.particles.ParticleSet.ParticleSet:
Collaboration diagram for peano4.api.toolbox.particles.ParticleSet.ParticleSet:

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 = []

Detailed Description

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.

  • Study ParticleSetGenerator_ScatteredOnHeap_IndexByList to obtain some information about Peano's default storage scheme.
  • The generator ParticleSetGenerator_ScatteredOnHeap_IndexByVector is a slightly more memory-compact version.

Attributes

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.

Constructor & Destructor Documentation

◆ __init__()

peano4.api.toolbox.particles.ParticleSet.ParticleSet.__init__ ( self,
particle )

Definition at line 276 of file ParticleSet.py.

Member Function Documentation

◆ __str__()

◆ readme_descriptor()

◆ readme_package_descriptor()

peano4.api.toolbox.particles.ParticleSet.ParticleSet.readme_package_descriptor ( self)

Definition at line 308 of file ParticleSet.py.

Field Documentation

◆ generator

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().

◆ particle_model

peano4.api.toolbox.particles.ParticleSet.ParticleSet.particle_model = particle

Definition at line 286 of file ParticleSet.py.

Referenced by __str__(), and readme_descriptor().


The documentation for this class was generated from the following file: