33 namespace functionObjects
76 dict.lookup(
"fields") >> fieldSet_;
87 writeCommented(
file(),
"Time");
91 const word& fieldName = fieldSet_[fieldi];
93 #define WRITE_FILE_HEADER(Type, nullArg) \
94 writeFileHeader<Type>(fieldName);
96 #undef WRITE_FILE_HEADER
119 const word& fieldName = fieldSet_[fieldi];
121 #define WRITE_RESIDUAL(Type, nullArg) \
122 writeResidual<Type>(fieldName);
124 #undef WRITE_RESIDUAL
#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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
#define WRITE_RESIDUAL(Type, nullArg)
#define WRITE_FILE_HEADER(Type, nullArg)
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 LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)