75 #ifndef functionObjects_populationBalanceMoments_H
76 #define functionObjects_populationBalanceMoments_H
85 namespace functionObjects
92 class populationBalanceMoments
94 public fvMeshFunctionObject
173 word coordinateTypeSymbolicName();
176 word weightTypeSymbolicName();
179 word defaultFldName();
182 word integerMomentFldName();
203 TypeName(
"populationBalanceMoments");
239 virtual bool write();
Generic GeometricField class.
static const List< word > & null()
Return a null List.
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...
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word & name() const
Return the name of this functionObject.
Calculates and writes out integral (integer moments) or mean properties (mean, variance,...
static const NamedEnum< coordinateType, 3 > coordinateTypeNames_
Names of the coordinate types.
virtual wordList fields() const
Return the list of fields required.
weightType
Enumeration for the weight types.
TypeName("populationBalanceMoments")
Runtime type information.
static const NamedEnum< meanType, 3 > meanTypeNames_
Names of the mean types.
static const NamedEnum< momentType, 4 > momentTypeNames_
Names of the moment types.
static const NamedEnum< weightType, 3 > weightTypeNames_
Names of the weight types.
void operator=(const populationBalanceMoments &)=delete
Disallow default bitwise assignment.
coordinateType
Enumeration for the coordinate types.
populationBalanceMoments(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
virtual ~populationBalanceMoments()
Destructor.
meanType
Enumeration for the mean types.
virtual bool execute()
Calculate the moment fields.
virtual bool write()
Write the moment fields.
virtual bool read(const dictionary &)
Read the data.
momentType
Enumeration for the moment types.
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(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(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))