34template<
class CloudType>
54 <<
"Turbulence model not found in mesh database" <<
nl
55 <<
"Database objects include: " << obr.
sortedToc()
62template<
class CloudType>
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>
107template<
class CloudType>
115 epsilonPtr_(dm.epsilonPtr_),
117 ownEpsilon_(dm.ownEpsilon_)
126template<
class CloudType>
135template<
class CloudType>
154 if (tepsilon.movable())
157 epsilonPtr_ = tepsilon.ptr();
162 epsilonPtr_ = &tepsilon();
182template<
class CloudType>
compressible::turbulenceModel & turb
virtual void write(Ostream &os) const
Write to os.
const CloudType & owner() const
Return const access to the owner cloud.
Base class for dispersion modelling.
DispersionModel(CloudType &owner)
Construct null from owner.
Base class for particle dispersion models based on RAS turbulence.
const volScalarField * epsilonPtr_
Turbulence epsilon.
tmp< volScalarField > kModel() const
Return the k field from the turbulence model.
virtual void cacheFields(const bool store)
Cache carrier fields.
const volScalarField * kPtr_
Turbulence k.
virtual void write(Ostream &os) const
Write.
tmp< volScalarField > epsilonModel() const
Return the epsilon field from the turbulence model.
bool ownEpsilon_
Local ownership of the epsilon field.
DispersionRASModel(const dictionary &dict, CloudType &owner)
Construct from components.
virtual ~DispersionRASModel()
Destructor.
bool ownK_
Local ownership of the k field.
Foam::List< Key > sortedToc(const Compare &comp) const
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
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,...
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.
const T & cref() const
Return const reference to the object or to the contents of a (non-null) managed pointer.
bool movable() const noexcept
True if this is a non-null managed pointer with a unique ref-count.
T * ptr() const
Return managed pointer for reuse, or clone() the object reference.
Abstract base class for turbulence models (RAS, LES and laminar).
static const word propertiesName
Default name of the turbulence properties dictionary.
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)
DSMCCloud< dsmcParcel > CloudType
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
void deleteDemandDrivenData(DataPtr &dataPtr)
constexpr char nl
The newline '\n' character (0x0a).