Go to the documentation of this file.
39 namespace functionObjects
71 resultName_(scopedName(
"regions"))
102 dict.readIfPresent(
"result", resultName_);
113 lookupObjectRef<volScalarField>(resultName_);
119 lookupObject<DESModelBase>
128 /
gSum(mesh_.V())*100.0;
130 file() << time_.value()
135 Log <<
" LES = " << prc <<
" % (volume)" <<
nl
136 <<
" RAS = " << 100.0 - prc <<
" % (volume)" <<
nl
141 Log <<
" No DES turbulence model found in database" <<
nl
152 lookupObject<volScalarField>(resultName_);
155 <<
" writing field " << DESModelRegions.name() <<
nl
158 DESModelRegions.write();
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual OFstream & file()
static constexpr const zero Zero
Computes an indicator field for detached eddy simulation (DES) turbulence calculations,...
bool read(const char *buf, int32_t &val)
static word timeName(const scalar t, const int precision=precision_)
static const word propertiesName
Ostream & endl(Ostream &os)
Type gSum(const FieldField< Field, Type > &f)
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Abstract base-class for Time/database function objects.
virtual void writeHeader(Ostream &os, const string &str) const
virtual bool read(const dictionary &dict)
virtual bool read(const dictionary &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void writeFileHeader(Ostream &os) const
virtual bool read(const dictionary &dict)
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
DESModelRegions(const word &name, const Time &runTime, const dictionary &dict)
const word & name() const noexcept
virtual void writeCommented(Ostream &os, const string &str) const
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual tmp< volScalarField > LESRegion() const =0
Base class for DES models providing an interfaces to the LESRegion function.
fileName::Type type(const fileName &name, const bool followLink=true)
static tmp< T > New(Args &&... args)
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
virtual void writeTabbed(Ostream &os, const string &str) const
const dimensionSet dimless