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