90#ifndef Foam_functionObjects_solverInfo_H
91#define Foam_functionObjects_solverInfo_H
190 virtual bool write();
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
Writes solver information for a list of user-specified fields.
virtual ~solverInfo()=default
Destructor.
TypeName("solverInfo")
Runtime type information.
bool initialised_
Initialisation flag.
void updateSolverInfo(const word &fieldName)
Calculate the solver information.
wordHashSet residualFieldNames_
Names of (result) residual fields.
void createResidualField(const word &fieldName)
Create and store a residual field on the mesh database.
void initialiseResidualField(const word &fieldName)
Initialise a residual field.
void operator=(const solverInfo &)=delete
No copy assignment.
bool writeResidualFields_
Flag to write the initial-residual as a vol field.
void writeFileHeader(Ostream &os)
Output file header information.
solverInfo(const solverInfo &)=delete
No copy construct.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results (no-op).
solverFieldSelection fieldSet_
Names of operand fields.
virtual bool read(const dictionary &)
Read the function-object dictionary.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.