32 template<
class CloudType>
40 momentumTransportModel::typeName,
53 <<
"Turbulence model not found in mesh database" <<
nl 54 <<
"Database objects include: " << obr.
sortedToc()
62 template<
class CloudType>
70 momentumTransportModel::typeName,
83 <<
"Turbulence model not found in mesh database" <<
nl 84 <<
"Database objects include: " << obr.
sortedToc()
94 template<
class CloudType>
104 epsilonPtr_(
nullptr),
109 template<
class CloudType>
128 template<
class CloudType>
137 template<
class CloudType>
155 if (tepsilon.
isTmp())
157 epsilonPtr_ = tepsilon.
ptr();
162 epsilonPtr_ = &tepsilon();
173 if (ownEpsilon_ && epsilonPtr_)
182 template<
class CloudType>
const char *const group
Group name for atomic constants.
tmp< volScalarField > kModel() const
Return the k field from the turbulence model.
const volScalarField * epsilonPtr_
Turbulence epsilon.
bool ownEpsilon_
Take ownership of the epsilon field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool isTmp() const
Return true if this is really a temporary object.
bool foundObject(const word &name) const
Is the named Type found?
virtual ~DispersionRASModel()
Destructor.
bool ownK_
Take ownership of the k field.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
const volScalarField * kPtr_
Turbulence k.
virtual void cacheFields(const bool store)
Cache carrier fields.
DispersionRASModel(const dictionary &dict, CloudType &owner)
Construct from components.
A class for handling words, derived from string.
virtual void write(Ostream &os) const
Write.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
const fvMesh & mesh() const
Return references to the mesh.
Template functions to aid in the implementation of demand driven data.
tmp< volScalarField > epsilonModel() const
Return the epsilon field from the turbulence model.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
T * ptr() const
Return tmp pointer for reuse.
A class for managing temporary objects.
Registry of regIOobjects.
Base class for particle dispersion models based on RAS turbulence.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
void deleteDemandDrivenData(DataPtr &dataPtr)
Templated base class for dsmc cloud.