41 Foam::calcFvcGrad::calcFvcGrad
46 const bool loadFromFiles
52 fieldName_(
"undefined-fieldName"),
53 resultName_(
"undefined-resultName")
56 if (!isA<fvMesh>(obr_))
61 "calcFvcGrad::calcFvcGrad" 64 "const objectRegistry&, " 68 ) <<
"No fvMesh available, deactivating." <<
nl 88 dict.
lookup(
"fieldName") >> fieldName_;
89 dict.
lookup(
"resultName") >> resultName_;
91 if (resultName_ ==
"none")
93 resultName_ =
"fvc::grad(" + fieldName_ +
")";
103 bool processed =
false;
105 calcGrad<scalar>(fieldName_, resultName_, processed);
106 calcGrad<vector>(fieldName_, resultName_, processed);
110 WarningIn(
"void Foam::calcFvcGrad::write()")
111 <<
"Unprocessed field " << fieldName_ <<
endl;
141 Info<<
type() <<
" " << name_ <<
" output:" <<
nl 142 <<
" writing field " << field.
name() <<
nl <<
endl;
virtual void end()
Execute at the final time-loop, currently does nothing.
A class for handling words, derived from string.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void read(const dictionary &)
Read the calcFvcGrad data.
virtual bool write() const
Write using setting from DB.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
virtual ~calcFvcGrad()
Destructor.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
virtual void execute()
Execute, currently does nothing.
virtual void write()
Calculate the calcFvcGrad and write.
const word & name() const
Return name.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Registry of regIOobjects.
bool read(const char *, int32_t &)
defineTypeNameAndDebug(combustionModel, 0)