Go to the documentation of this file.
46 const bool loadFromFiles
52 fieldName_(
"undefined-fieldName"),
53 resultName_(word::null),
57 if (!isA<fvMesh>(obr_))
61 <<
"No fvMesh available, deactivating." <<
nl
81 log_.readIfPresent(
"log",
dict);
88 resultName_ =
"mag(" + fieldName_ +
")";
98 bool processed =
false;
100 calc<scalar>(fieldName_, resultName_, processed);
101 calc<vector>(fieldName_, resultName_, processed);
102 calc<sphericalTensor>(fieldName_, resultName_, processed);
103 calc<symmTensor>(fieldName_, resultName_, processed);
104 calc<tensor>(fieldName_, resultName_, processed);
109 <<
"Unprocessed field " << fieldName_ <<
endl;
137 <<
type() <<
" " << name_ <<
" output:" <<
nl
138 <<
" writing field " << field.
name() <<
nl <<
endl;
A class for handling words, derived from string.
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.
Registry of regIOobjects.
virtual void end()
Execute at the final time-loop, currently does nothing.
virtual void write()
Calculate the calcMag and write.
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual void read(const dictionary &)
Read the calcMag data.
static const word null
An empty word.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
calcMag(const calcMag &)
Disallow default bitwise copy construct.
virtual ~calcMag()
Destructor.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
virtual void execute()
Execute, currently does nothing.