70 #ifndef functionObjects_hydrostaticPressure_H 71 #define functionObjects_hydrostaticPressure_H 81 namespace functionObjects
88 class hydrostaticPressure
90 public fvMeshFunctionObject
TypeName("hydrostaticPressure")
Runtime type information.
word pRefName_
Name of uniform pressure reference field, default is "pRef".
virtual bool execute()
Calculate the p_rgh field.
label nCorrectors_
Number of correctors when solving for ph_rgh.
word ph_rghName_
Name of p_hydrostatic - rho*g*h field, default is "ph_rgh".
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool write()
Write the p_rgh and derived fields.
virtual ~hydrostaticPressure()=default
Destructor.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
hydrostaticPressure(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
word rhoName_
Name of density field, default is "rho".
A class for handling words, derived from Foam::string.
scalar pRefValue_
Reference pressure if pRefName is set to "pInf".
void calculateAndWrite()
Calculate the fields and write.
word ghfName_
Name of g*h surface field, default is "ghf".
virtual bool read(const dictionary &dict)
Read the hydrostaticPressure data.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
word p_rghName_
Name of p - rho*g*h field, default is "p_rgh".
dimensionedScalar pRef() const
Helper function to return the reference pressure.
word UName_
Name of velocity field, default is "ph_rgh".
word ghName_
Name of g*h volume field, default is "gh".