Go to the documentation of this file.
43 writeHeader(os,
"DES model region coverage (% volume)");
59 const bool loadFromFiles
70 if (!isA<fvMesh>(obr_))
74 <<
"No fvMesh available, deactivating " << name_ <<
nl
82 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
101 mesh.objectRegistry::store(DESModelRegionsPtr);
103 writeFileHeader(file());
122 log_.readIfPresent(
"log",
dict);
132 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
134 if (log_)
Info<<
type() <<
" " << name_ <<
" output:" <<
nl;
157 file() << obr_.time().value()
163 <<
" LES = " << prc <<
" % (volume)" <<
nl
164 <<
" RAS = " << 100.0 - prc <<
" % (volume)" <<
nl
170 <<
" No DES turbulence model found in database" <<
nl
197 <<
type() <<
" " << name_ <<
" output:" <<
nl
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
A class for handling words, derived from string.
virtual void execute()
Execute, currently does nothing.
virtual void writeFileHeader(Ostream &os) const
File header information.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool read(const char *, int32_t &)
virtual void read(const dictionary &)
Read the DESModelRegions data.
void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
static const word propertiesName
Default name of the turbulence properties dictionary.
void read(const dictionary &dict)
Read.
virtual ~DESModelRegions()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
Registry of regIOobjects.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
DESModelRegions(const DESModelRegions &)
Disallow default bitwise copy construct.
virtual void write()
Calculate the DESModelRegions and write.
bool foundObject(const word &name) const
Is the named Type found?
This function object writes out an indicator field for DES turbulence calculations,...
virtual void end()
Execute at the final time-loop, currently does nothing.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
virtual tmp< volScalarField > LESRegion() const =0
Return the LES field indicator.
Base class for output file data handling.
Base class for DES models providing an interfaces to the LESRegion function.
const Time & time() const
Return the top-level database.
virtual const word & name() const
Return name of the set of DESModelRegions.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.