IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
void writeAddSubtractValue(const IOobject &baseHeader, const string &valueStr, const fvMesh &mesh, bool &processed)
Write addSubtract value.
string addSubtractValueStr_
String representation of value to add/subtract.
void operator=(const addSubtract &)
Disallow default bitwise assignment.
TypeName("addSubtract")
Runtime type information.
void writeAddSubtractField(const IOobject &baseHeader, const IOobject &addSubtractHeader, const fvMesh &mesh, bool &processed)
Write addSubtract field.
virtual void preCalc(const argList &args, const Time &runTime, const fvMesh &mesh)
Pre-time loop calculations.
addSubtract()
Construct null.
Extract command arguments and options from the supplied argc and argv parameters.
void writeAddSubtractFields(const Time &runTime, const fvMesh &mesh, const IOobject &baseFieldHeader)
Calc and output field addSubtractitions.
word baseFieldName_
Name of base field (to addSubtract to)
calcTypes calcType_
Calc type as given by enumerations above.
Mesh data needed to do the Finite Volume discretisation.
calcModes calcMode_
Mode - addSubtract/subtract.
virtual void init()
Initialise - typically setting static variables,.
word addSubtractFieldName_
Name of field to add/subtract.
void writeAddSubtractValues(const Time &runTime, const fvMesh &mesh, const IOobject &baseFieldHeader)
Calc and output field and value addSubtractitions.
virtual ~addSubtract()
Destructor.
virtual void calc(const argList &args, const Time &runTime, const fvMesh &mesh)
Time loop calculations.
word resultName_
Name of result field.
adds/subtracts a field or value to/from a base field.
Foam::argList args(argc, argv)
Base class for post-processing calculation functions.