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