34 namespace functionObjects
99 return store(fieldName, thermo.
ha() + 0.5*
magSqr(U));
104 <<
"Unable to find fluidThermo " << thermoName
105 <<
" in the database" virtual bool write()
Write function.
fluidReactionThermo & thermo
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
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 execute()
Calculate the totalEnthalpy field.
virtual bool read(const dictionary &)
Read optional controls.
virtual bool read(const dictionary &)
Read the data.
bool read(const char *, int32_t &)
totalEnthalpy(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
Base-class for fluid thermodynamic properties.
static const word null
An empty word.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
static const word dictName
Name of the thermophysical properties dictionary.
virtual ~totalEnthalpy()
Destructor.
defineTypeNameAndDebug(Qdot, 0)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
FunctionObject base class for managing a list of objects on behalf of the inheriting function object...
virtual bool read(const dictionary &)
Read the list of objects to be written.
virtual bool write()
Do nothing.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual tmp< volScalarField > ha() const =0
Absolute enthalpy [J/kg].