45 cloudField_(cloudField),
46 p0Entry_(
dict.lookupEntry(
"p0", false, true).
clone()),
52 clouds::carried::nameToCarrierName(
"rho"),
60 clouds::carried::nameToCarrierName(
"p"),
76 cloudField_(cloudField),
77 p0Entry_(tpvmlsfs.p0Entry_, false),
78 p0_(tpvmlsfs.p0_, false),
79 rhocName_(tpvmlsfs.rhocName_),
80 pcName_(tpvmlsfs.pcName_)
107 if (p0Entry_.valid())
112 field_.time().userUnits(),
149 cloudField_.assertCloud
169 .carrierField(rhocVf);
178 return sqrt(2*deltaP/mCloud.
rho(subMesh));
184 <<
"Dimensions of field " << pcVf.
name()
185 <<
" not recognised as pressure"
198 if (p0Entry_.valid())
207 writeEntryIfDifferent<word>
215 writeEntryIfDifferent<word>
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
tmp< LagrangianSubField< Type > > value(const LagrangianSubMesh &subMesh, const Function1< Type > &function) const
Return the source value.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitSets &units, const dictionary &dict)
Select from dictionary.
Generic GeometricField class.
const word & name() const
Return name.
Base class for Lagrangian source conditions.
Base class for Lagrangian injections. Minimal wrapper over LagrangianSource. Implements some utility ...
const polyMesh & poly() const
Access the poly mesh.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
const LagrangianMesh & mesh() const
Return the mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Mix-in for source conditions that refer to a cloud.
Base class for clouds which are carried by a fluid.
static word nameToCarrierName(const word &name)
Convert a name to its disambiguated carrier equivalent name. I.e.,.
Base class for clouds which are coupled to a constant density fluid.
const dimensionedScalar rhoByRhoc
Cloud/carrier density ratio.
Base class for clouds with particles with mass.
CloudStateFieldRef< scalar > rho
Density.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
A class for managing temporary objects.
Mix-in for source conditions that compute the velocity magnitude from the difference between a specif...
tmp< LagrangianSubScalarField > Umag(const LagrangianInjection &, const LagrangianSubMesh &) const
Return the value for an instantaneous injection.
void write(Ostream &) const
Write.
totalPressureVelocityMagnitudeLagrangianScalarFieldSource(const LagrangianFieldSourceBase &, const cloudLagrangianFieldSource &, const dictionary &dict)
Construct from a dictionary.
~totalPressureVelocityMagnitudeLagrangianScalarFieldSource()
Destructor.
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)
const dimensionSet & dimPressure
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet & dimKinematicPressure