78 #ifndef populationBalanceSizeDistribution_H
79 #define populationBalanceSizeDistribution_H
91 namespace functionObjects
98 class populationBalanceSizeDistribution
100 public fvMeshFunctionObject
159 const word popBalName_;
186 word functionTypeSymbolicName();
195 scalar averageCoordinateValue
202 scalar weightedAverage
212 TypeName(
"populationBalanceSizeDistribution");
251 virtual bool write();
static const List< word > & null()
Return a null List.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Single size class fraction field representing a fixed particle volume as defined by the user through ...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return the name of this functionObject.
Writes out the size distribution determined by a population balance model, either for the entire doma...
virtual wordList fields() const
Return the list of fields required.
weightType
Enumeration for the weight types.
TypeName("populationBalanceSizeDistribution")
Runtime type information.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
void operator=(const populationBalanceSizeDistribution &)=delete
Disallow default bitwise assignment.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
populationBalanceSizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual void movePoints(const polyMesh &)
Update for mesh motion.
functionType
Function type enumeration.
coordinateType
Coordinate type enumeration.
virtual ~populationBalanceSizeDistribution()
Destructor.
static const NamedEnum< weightType, 4 > weightTypeNames_
Names of the weight types.
static const NamedEnum< functionType, 6 > functionTypeNames_
Function type names.
virtual bool execute()
Execute, currently does nothing.
static const NamedEnum< coordinateType, 4 > coordinateTypeNames_
Coordinate type names.
virtual bool write()
Calculate and write the size distribution.
virtual bool read(const dictionary &)
Read the populationBalanceSizeDistribution data.
functionObject base class for writing single files
cellZone selection or generation class with caching of zone volume
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for managing temporary objects.
A class for handling words, derived from string.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))