Go to the documentation of this file.
47 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
58 mesh.time().timeName(),
68 mesh.objectRegistry::store(divFieldPtr);
84 const bool loadFromFiles
90 fieldName_(
"undefined-fieldName"),
91 resultName_(word::null),
95 if (!isA<fvMesh>(obr_))
99 <<
"No fvMesh available, deactivating." <<
nl
119 log_.readIfPresent(
"log",
dict);
126 resultName_ =
"fvc::div(" + fieldName_ +
")";
136 bool processed =
false;
138 calcDiv<surfaceScalarField>(fieldName_, resultName_, processed);
139 calcDiv<volVectorField>(fieldName_, resultName_, processed);
144 <<
"Unprocessed field " << fieldName_ <<
endl;
172 <<
type() <<
" " << name_ <<
" output:" <<
nl
173 <<
" writing field " << field.
name() <<
nl <<
endl;
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
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 &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual bool write() const
Write using setting from DB.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Dimension set for the base types.
virtual void end()
Execute at the final time-loop, currently does nothing.
Registry of regIOobjects.
calcFvcDiv(const calcFvcDiv &)
Disallow default bitwise copy construct.
virtual void write()
Calculate the calcFvcDiv and write.
const word & name() const
Return name.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
volScalarField & divField(const word &gradName, const dimensionSet &dims)
Helper function to create/store/return the divergence field.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual void execute()
Execute, currently does nothing.
static const word null
An empty word.
virtual ~calcFvcDiv()
Destructor.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
virtual void read(const dictionary &)
Read the calcFvcDiv data.