40 const bool registerObject
103 if (
dict.found(
"value"))
106 <<
"A 'value' entry should not be specified for size-group #"
107 <<
i <<
" of population balance "
109 <<
". Instead, the value should be initialised within the field, "
110 << this->
name() <<
" (or the default field, "
112 <<
", as appropriate)."
129 return shapeModel_();
136 return shapeModel_();
142 return shapeModel_->a();
149 return shapeModel_->d();
155 shapeModel_->correct();
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
readOption
Enumeration defining the read options.
bool & registerObject()
Register object created from this IOobject with registry if true.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
const word & name() const
Return name.
static word groupName(Name name, const word &group)
const phaseModel & phase() const
Return the phase.
Base class for modelling the shape of the particles belonging to a size class through alternative dia...
void correct()
Correct secondary properties.
shapeModel & shape()
Return reference to the shape model.
static tmp< volScalarField > field(const word &name, const label i, const velocityGroup &group)
Return IO a size-group field. Construction helper.
const velocityGroup & group() const
Return const-reference to the velocityGroup.
static IOobject fieldIo(const word &name, const label i, const velocityGroup &group, const IOobject::readOption r=IOobject::NO_READ, const bool registerObject=true)
Return IO for a size-group field. Construction helper.
virtual ~sizeGroup()
Destructor.
const tmp< volScalarField > a() const
Return representative surface area of the sizeGroup.
sizeGroup(const label i, const dictionary &dict, const velocityGroup &group)
Construct from index, dictionary and velocity group.
label i() const
Return index of the size group within the population balance.
const tmp< volScalarField > d() const
Return representative diameter of the sizeGroup.
Computes the Sauter mean diameter based on a user specified size distribution, defined in terms of si...
const word & popBalName() const
Return name of populationBalance this velocityGroup belongs to.
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 phase.
A class for managing temporary objects.
Templated form of IOobject providing type information for file reading and header type checking.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const char *const group
Group name for atomic constants.
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.
const dimensionSet dimLength
void pow3(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)