33 namespace functionObjects
76 dict.
lookup(
"fields") >> fieldSet_;
89 writeCommented(
file(),
"Time");
93 const word& fieldName = fieldSet_[fieldi];
95 writeFileHeader<scalar>(fieldName);
96 writeFileHeader<vector>(fieldName);
97 writeFileHeader<sphericalTensor>(fieldName);
98 writeFileHeader<symmTensor>(fieldName);
99 writeFileHeader<tensor>(fieldName);
123 const word& fieldName = fieldSet_[fieldi];
125 writeResidual<scalar>(fieldName);
126 writeResidual<vector>(fieldName);
127 writeResidual<sphericalTensor>(fieldName);
128 writeResidual<symmTensor>(fieldName);
129 writeResidual<tensor>(fieldName);
#define forAll(list, i)
Loop across all elements in list.
virtual bool write()
Write function.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool write()
Write the residuals.
virtual bool execute()
Execute, currently does nothing.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void writeFileHeader(const word &fieldName)
Output field header information.
virtual bool read(const dictionary &)
Read the controls.
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
A class for handling words, derived from string.
defineTypeNameAndDebug(Qdot, 0)
virtual ~residuals()
Destructor.
residuals(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...