39 namespace functionObjects
71 resultName_(scopedName(
"regions"))
103 dict.readIfPresent(
"result", resultName_);
114 lookupObjectRef<volScalarField>(resultName_);
120 lookupObject<DESModelBase>
129 /
gSum(mesh_.V())*100.0;
131 file() << time_.value()
136 Log <<
" LES = " << prc <<
" % (volume)" <<
nl 137 <<
" RAS = " << 100.0 - prc <<
" % (volume)" <<
nl 142 Log <<
" No DES turbulence model found in database" <<
nl 153 lookupObject<volScalarField>(resultName_);
156 <<
" writing field " << DESModelRegions.
name() <<
nl 159 DESModelRegions.
write();
virtual OFstream & file()
Return access to the file (if only 1)
defineTypeNameAndDebug(ObukhovLength, 0)
virtual void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool read(const dictionary &)
Read the DESModelRegions data.
const word & name() const noexcept
Return the object name.
constexpr char nl
The newline '\n' character (0x0a)
virtual bool write()
Calculate the DESModelRegions and write.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
Abstract base-class for Time/database function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
Base class for DES models providing an interfaces to DES fields.
Type gSum(const FieldField< Field, Type > &f)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual bool execute()
Execute.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
Computes an indicator field for detached eddy simulation (DES) turbulence calculations, where the values of the indicator mean:
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
virtual bool write(const bool writeOnProc=true) const
Write using setting from DB.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
word resultName_
Name of DES indicator field.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
OBJstream os(runTime.globalPath()/outputName)
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual bool read(const dictionary &dict)
Read.
virtual tmp< volScalarField > LESRegion() const =0
Return the LES field indicator.
virtual void writeFileHeader(Ostream &os) const
File header information.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual bool read(const dictionary &dict)
Read optional controls.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
DESModelRegions(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Base class for writing single files from the function objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Request registration (bool: true)
const fvMesh & mesh_
Reference to the fvMesh.
static constexpr const zero Zero
Global zero (0)
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
const Time & time_
Reference to the time database.