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.
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool master(const label communicator=0)
Am I the master process.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
virtual bool write()
Write function.
virtual bool read(const dictionary &)
Read optional controls.
Writes out the initial residual for specified fields.
residuals(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual ~residuals()
Destructor.
void writeFileHeader(const word &fieldName)
Output field header information.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the residuals.
virtual bool read(const dictionary &)
Read the controls.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.