Go to the documentation of this file.
39 namespace functionObjects
71 resultName_(scopedName(
"regions"))
89 store(resultName_, tmodelRegions);
91 writeFileHeader(file());
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_);
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.
static constexpr const zero Zero
Global zero (0)
Computes an indicator field for detached eddy simulation (DES) turbulence calculations,...
bool read(const char *buf, int32_t &val)
Same as readInt32.
static const word propertiesName
Default name of the turbulence properties dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
virtual bool read(const dictionary &dict)
Read.
virtual bool execute()
Execute.
virtual bool read(const dictionary &)
Read the DESModelRegions data.
virtual bool write()
Calculate the DESModelRegions and write.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void writeFileHeader(Ostream &os) const
File header information.
virtual bool read(const dictionary &dict)
Read optional controls.
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
DESModelRegions(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const word & name() const noexcept
Return the name of this functionObject.
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual tmp< volScalarField > LESRegion() const =0
Return the LES field indicator.
Base class for DES models providing an interfaces to the LESRegion function.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
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,...
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
const dimensionSet dimless
Dimensionless.