39namespace 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_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Base class for DES models providing an interfaces to the LESRegion function.
virtual tmp< volScalarField > LESRegion() const =0
Return the LES field indicator.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool read()
Re-read model coefficients if they have changed.
The TAB Method for Numerical Calculation of Spray Droplet Breakup.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static word timeName(const scalar t, const int precision=precision_)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
const word & name() const noexcept
Return the name of this functionObject.
Computes an indicator field for detached eddy simulation (DES) turbulence calculations,...
word resultName_
Name of DES indicator field.
virtual void writeFileHeader(Ostream &os) const
File header information.
virtual bool execute()
Execute.
virtual bool write()
Calculate the DESModelRegions and write.
virtual bool read(const dictionary &)
Read the DESModelRegions data.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh_
Reference to the fvMesh.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
const Time & time_
Reference to the time database.
Base class for writing single files from the function objects.
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
virtual void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
virtual OFstream & file()
Return access to the file (if only 1)
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Type gSum(const FieldField< Field, Type > &f)
const dimensionSet dimless
Dimensionless.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)