70#ifndef functionObjects_hydrostaticPressure_H
71#define functionObjects_hydrostaticPressure_H
81namespace functionObjects
88class hydrostaticPressure
90 public fvMeshFunctionObject
166 virtual bool write();
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.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Calculates and outputs the pressure fields p_rgh and ph_rgh.
void calculateAndWrite()
Calculate the fields and write.
word ph_rghName_
Name of p_hydrostatic - rho*g*h field, default is "ph_rgh".
word UName_
Name of velocity field, default is "ph_rgh".
word pRefName_
Name of uniform pressure reference field, default is "pRef".
TypeName("hydrostaticPressure")
Runtime type information.
virtual bool read(const dictionary &dict)
Read the hydrostaticPressure data.
word rhoName_
Name of density field, default is "rho".
dimensionedScalar pRef() const
Helper function to return the reference pressure.
word p_rghName_
Name of p - rho*g*h field, default is "p_rgh".
word ghfName_
Name of g*h surface field, default is "ghf".
scalar pRefValue_
Reference pressure if pRefName is set to "pInf".
virtual bool execute()
Calculate the p_rgh field.
label nCorrectors_
Number of correctors when solving for ph_rgh.
virtual bool write()
Write the p_rgh and derived fields.
virtual ~hydrostaticPressure()=default
Destructor.
word ghName_
Name of g*h volume field, default is "gh".
A class for handling words, derived from Foam::string.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.