Peano
Loading...
Searching...
No Matches
peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet Class Reference

Container for particle data. More...

Inheritance diagram for peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet:
Collaboration diagram for peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet:

Public Member Functions

 __init__ (self, list particle_attributes)
 
 get_attribute_list (self)
 Return the list of available attributes.
 
 show_attribute_list (self)
 Print the list of available attributes.
 
 merge (self, other)
 Merge two VTUParticleSet objects into one (into self).
 
 __str__ (self)
 
 __repr__ (self)
 

Protected Attributes

 _nattributes
 
 _attribute_translator
 
 _particle_attribute_list
 

Detailed Description

Container for particle data.

All particle fields shall have the same name as specified in the .vtu files, and be accessible as an attribute of the instantiated object.

The individual particle values are instances of numpy arrays.

Methods

get_attribute_list(self): return list of all available particle fields

show_attribute_list(self): prints out all available particle fields

merge(self, other): merge another VTUParticleSet into this one.

Definition at line 47 of file ParticleVTUReader.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__init__ ( self,
list particle_attributes )

Parameters

particle_attributes : list of strings contains names of all particle fields

Definition at line 68 of file ParticleVTUReader.py.

Member Function Documentation

◆ __repr__()

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__repr__ ( self)

Definition at line 133 of file ParticleVTUReader.py.

References exahype2.solvers.aderdg.LagrangeBasis.GaussLegendreBasis.__str__(), exahype2.solvers.aderdg.LagrangeBasis.GaussLobattoBasis.__str__(), exahype2.solvers.aderdg.ADERDG.ADERDG.__str__(), exahype2.solvers.aderdg.LagrangeBasis.LagrangeBasis.__str__(), exahype2.solvers.elliptic.AMRMarker.AMRMarker.__str__(), exahype2.solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.__str__(), exahype2.solvers.fv.FV.FV.__str__(), exahype2.solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep.__str__(), exahype2.solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking.__str__(), exahype2.solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep.__str__(), exahype2.solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking.__str__(), exahype2.solvers.LagrangeBasisWithDiagonalMassMatrix.LagrangeBasisWithDiagonalMassMatrix.__str__(), exahype2.solvers.limiting.PosterioriLimiting.PosterioriLimiting.__str__(), exahype2.solvers.limiting.StaticLimiting.StaticLimiting.__str__(), exahype2.solvers.rkdg.RungeKuttaDG.RungeKuttaDG.__str__(), exahype2.solvers.rkfd.CellCenteredFiniteDifferences.CellCenteredFiniteDifferences.__str__(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.__str__(), peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__(), peano4.datamodel.Model.Model.__str__(), peano4.datamodel.Patch.Patch.__str__(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.__str__(), peano4.Project.Project.__str__(), peano4.solversteps.Steps.Steps.__str__(), peano4.toolbox.particles.ParticleSet.ParticleSet.__str__(), peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__str__(), peano4.visualisation.filters.Filter.Filter.__str__(), swift2.particle.AlgorithmStep.AlgorithmStep.__str__(), solvers.api.Solver.Solver.__str__(), and exahype2.postprocessing.PerformanceData.PerformanceData.__str__().

Here is the call graph for this function:

◆ __str__()

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__str__ ( self)

Definition at line 130 of file ParticleVTUReader.py.

Referenced by peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__repr__().

Here is the caller graph for this function:

◆ get_attribute_list()

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.get_attribute_list ( self)

Return the list of available attributes.

Definition at line 101 of file ParticleVTUReader.py.

References peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet._particle_attribute_list.

◆ merge()

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.merge ( self,
other )

◆ show_attribute_list()

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.show_attribute_list ( self)

Print the list of available attributes.

Definition at line 107 of file ParticleVTUReader.py.

References peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet._particle_attribute_list.

Field Documentation

◆ _attribute_translator

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet._attribute_translator
protected

Definition at line 79 of file ParticleVTUReader.py.

◆ _nattributes

peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet._nattributes
protected

◆ _particle_attribute_list


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