48 if (popBalPtr_ !=
nullptr)
return *popBalPtr_;
59 fluid.
phases()[internalField_.group()].diameter();
60 if (!isA<diameterModels::populationBalance>(diameter))
63 <<
"Phase " << internalField_.group() <<
" does not have a "
64 <<
" diameter model associated with a population balance model"
70 &refCast<const diameterModels::populationBalance>(diameter).popBal();
79 if (i_ != -1)
return i_;
82 const word member = internalField_.member();
86 while (memberChari && isdigit(member[memberChari - 1]))
92 if (memberChari == member.size())
95 <<
"Could not determine the group index for the property field "
100 i_ = atoi(member(memberChari, member.size()).c_str());
103 if (i_ < 0 || i_ >= popBal().nGroups())
106 <<
"Group index for property field " << internalField_.name()
graph_traits< Graph >::vertices_size_type size_type
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const objectRegistry & db() const
Return the local objectRegistry.
Abstract base-class for dispersed-phase particle diameter models.
groupPropertyFvScalarField(const DimensionedField< scalar, fvMesh > &)
Construct from internal field.
const populationBalanceModel & popBal() const
Return the population balance.
label i() const
Return the index of this group.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Class to represent a system of phases.
static const word propertiesName
Default name of the phase properties dictionary.
const phaseModelList & phases() const
Return the phase models.
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.