Public Member Functions | Protected Attributes | List of all members
prghTotalHydrostaticPressureFvPatchScalarField Class Reference

This boundary condition provides static pressure condition for p_rgh, calculated as: More...

Inheritance diagram for prghTotalHydrostaticPressureFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for prghTotalHydrostaticPressureFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("prghTotalHydrostaticPressure")
 
 prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Protected Attributes

word UName_
 
word phiName_
 
word rhoName_
 
word ph_rghName_
 

Detailed Description

This boundary condition provides static pressure condition for p_rgh, calculated as:

\[ p_rgh = ph_rgh - 0.5 \rho |U|^2 \]

where

$ p_rgh $ = Pressure: $ \rho g (h - h_{ref}) $ [Pa]
$ ph_rgh $ = Hydrostatic pressure: $ \rho g (h - h_{ref}) $ [Pa]
$ h $ = Height in the opposite direction to gravity
$ hRef $ = Reference height in the opposite direction to gravity
$ \rho $ = Density
$ g $ = Acceleration due to gravity [m/s^2]
Usage
Property Description Required Default value
U Velocity field name no U
phi Flux field name no phi
rho Density field name no rho
ph_rgh ph_rgh field name no ph_rgh
value Patch face values yes

Example of the boundary condition specification:

    <patchName>
    {
        type            prghTotalHydrostaticPressure;
        value           uniform 0;
    }
See also
Foam::fixedValueFvPatchScalarField Foam::prghTotalPressureFvPatchScalarField
Source files

Definition at line 141 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ prghTotalHydrostaticPressureFvPatchScalarField() [1/5]

Definition at line 33 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

Referenced by prghTotalHydrostaticPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ prghTotalHydrostaticPressureFvPatchScalarField() [2/5]

prghTotalHydrostaticPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

◆ prghTotalHydrostaticPressureFvPatchScalarField() [3/5]

◆ prghTotalHydrostaticPressureFvPatchScalarField() [4/5]

◆ prghTotalHydrostaticPressureFvPatchScalarField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "prghTotalHydrostaticPressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 140 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References os(), fvPatchField::write(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

Member Data Documentation

◆ UName_

word UName_
protected

◆ phiName_

word phiName_
protected

◆ rhoName_

word rhoName_
protected

◆ ph_rghName_

word ph_rghName_
protected

The documentation for this class was generated from the following files: