166#ifndef Foam_functionObjects_pressure_H
167#define Foam_functionObjects_pressure_H
254 bool rhoInfInitialised_;
269 bool hRefInitialised_;
275 word resultName()
const;
281 tmp<volScalarField> rhoScale
284 const tmp<volScalarField>& tsf
288 void addHydrostaticContribution
295 tmp<volScalarField> calcPressure
298 const tmp<volScalarField>& tp
302 tmp<volScalarField> coeff(
const tmp<volScalarField>& tp)
const;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
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,...
const word & name() const noexcept
Return the name of this functionObject.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &fieldName=word::null, const word &resultName=word::null)
Construct from name, Time and dictionary.
virtual bool calc()=0
Calculate the components of the field and return true if successful.
Provides several methods to convert an input pressure field into derived forms, including:
pressure(const pressure &)=delete
No copy construct.
pressure(const word &name, const Time &runTime, const dictionary &)
Construct from name, Time and dictionary.
static const Enum< hydrostaticMode > hydrostaticModeNames
Names for hydrostaticMode.
hydrostaticMode
Enumeration for hydrostatic contributions.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
void operator=(const pressure &)=delete
No copy assignment.
virtual ~pressure()=default
Destructor.
static const Enum< mode > modeNames
Names for mode types.
mode
Enumeration for pressure calculation mode.
@ COEFF
Coefficient manipulator.
@ ISENTROPIC
Isentropic pressure.
TypeName("pressure")
Runtime type information.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Forwards and collection of common volume field types.