34template<
class CloudType>
42 turbulenceModel::propertiesName,
43 this->owner().
U().group()
54 <<
"Turbulence model not found in mesh database" <<
nl
55 <<
"Database objects include: " << obr.
sortedToc()
62template<
class CloudType>
70 turbulenceModel::propertiesName,
71 this->owner().
U().group()
78 return turb->epsilon();
82 <<
"Turbulence model not found in mesh database" <<
nl
83 <<
"Database objects include: " << obr.
sortedToc()
92template<
class CloudType>
102 epsilonPtr_(nullptr),
107template<
class CloudType>
116 epsilonPtr_(dm.epsilonPtr_),
117 ownEpsilon_(dm.ownEpsilon_)
126template<
class CloudType>
135template<
class CloudType>
153 if (tepsilon.
isTmp())
155 epsilonPtr_ = tepsilon.
ptr();
160 epsilonPtr_ = &tepsilon();
171 if (ownEpsilon_ && epsilonPtr_)
180template<
class CloudType>
compressible::turbulenceModel & turb
Templated base class for dsmc cloud.
Base class for dispersion modelling.
Base class for particle dispersion models based on RAS turbulence.
tmp< volScalarField > kModel() const
Return the k field from the turbulence model.
virtual void cacheFields(const bool store)
Cache carrier fields.
tmp< volScalarField > epsilonModel() const
Return the epsilon field from the turbulence model.
bool ownEpsilon_
Take ownership of the epsilon field.
virtual ~DispersionRASModel()
Destructor.
bool ownK_
Take ownership of the k field.
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
Registry of regIOobjects.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
A class for managing temporary objects.
bool isTmp() const noexcept
Identical to is_pointer()
T * ptr() const
Return managed pointer for reuse, or clone() the object reference.
Abstract base class for turbulence models (RAS, LES and laminar).
A class for handling words, derived from Foam::string.
Template functions to aid in the implementation of demand driven data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
void deleteDemandDrivenData(DataPtr &dataPtr)
constexpr char nl
The newline '\n' character (0x0a)