78 #ifndef populationBalanceSizeDistribution_H
79 #define populationBalanceSizeDistribution_H
91 namespace functionObjects
98 class populationBalanceSizeDistribution
100 public fvMeshFunctionObject,
184 word functionTypeSymbolicName();
193 scalar averageCoordinateValue
200 scalar weightedAverage
210 TypeName(
"populationBalanceSizeDistribution");
249 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...
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
Single size class fraction field representing a fixed particle volume as defined by the user through ...
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.
Writes out the size distribution determined by a population balance model, either for the entire doma...
static const NamedEnum< coordinateType, 4 > coordinateTypeNames_
Coordinate type names.
virtual wordList fields() const
Return the list of fields required.
weightType
Enumeration for the weight types.
TypeName("populationBalanceSizeDistribution")
Runtime type information.
void operator=(const populationBalanceSizeDistribution &)=delete
Disallow default bitwise assignment.
populationBalanceSizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
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.
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
Mesh data needed to do the Finite Volume discretisation.
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))