45 Foam::clouds::coupledToConstantDensityFluid::physicalProperties()
const
47 if (!physicalPropertiesPtr_.
valid())
49 physicalPropertiesPtr_.
set
55 return physicalPropertiesPtr_();
60 Foam::clouds::coupledToConstantDensityFluid::one
62 const LagrangianSubMesh& subMesh
85 physicalPropertiesPtr_(nullptr),
88 !carriedCloud.hasPhase()
90 : mesh_.poly().lookupObject<uniformDimensionedScalarField>
92 IOobject::groupName(
"rho", carriedCloud.phaseName())
97 carriedCloud.carrierPhaseName() ==
word::null
99 : mesh_.poly().lookupObject<uniformDimensionedScalarField>
101 IOobject::groupName(
"rho", carriedCloud.carrierPhaseName())
106 c.derivedField<scalar>
108 carried::nameToCarrierName(
"1", carriedCloud.carrierPhaseName()),
117 c.derivedField<scalar>
149 <<
"Constant cloud density (rho) requested for cloud "
150 << mesh_.name() <<
", but only the density ratio (rhoByRhoc) is "
151 <<
"defined. Constant cloud density is only available when the "
165 <<
"Constant carrier density (rhoc) requested for cloud "
166 << mesh_.name() <<
", but only the density ratio (rhoByRhoc) is "
167 <<
"defined. Constant carrier density is only available when the "
181 <<
"Constant corresponding Eulerian phase density (rhocPhase) "
182 <<
"requested for cloud " << mesh_.name() <<
", but only the "
183 <<
"density ratio (rhoByRhoc) is defined. Constant corresponding "
184 <<
"Eulerian phase density is only available when the Eulerian "
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const GeoMesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Simple wrapper to provide an optional reference to a Lagrangian model.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
void set(T *)
Set pointer to that given.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
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.
virtual ~coupledToConstantDensityFluid()
Destructor.
const dimensionedScalar & rhoc() const
Carrier density.
coupledToConstantDensityFluid(const cloud &c, const carried &)
Construct from a reference to the cloud.
const dimensionedScalar & rho() const
Cloud density.
const dimensionedScalar & rhocPhase() const
Corresponding Eulerian phase density.
Base class for clouds which are coupled to a carrier.
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
A base class for physical properties.
A class for managing temporary objects.
A class for handling words, derived from string.
static const word null
An empty word.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(carried, 0)
const dimensionedScalar c
Speed of light in a vacuum.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet & dimless
const T & NullObjectRef()
Return const reference to the nullObject of type T.
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.