prghTotalHydrostaticPressureFvPatchScalarField Class Reference

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

Inheritance diagram for prghTotalHydrostaticPressureFvPatchScalarField:
Collaboration diagram for prghTotalHydrostaticPressureFvPatchScalarField:

Public Member Functions

 TypeName ("prghTotalHydrostaticPressure")
 Runtime type information. More...
 
 prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Protected Attributes

word UName_
 Name of the velocity field. More...
 
word phiName_
 Name of the flux transporting the field. More...
 
word rhoName_
 Name of density field. More...
 
word ph_rghName_
 Name of hydrostatic pressure field. More...
 

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 - hRef) [Pa]
$ ph_rgh $ = Hydrostatic pressure - \rho g.(h - hRef) [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 140 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ prghTotalHydrostaticPressureFvPatchScalarField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 35 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

Referenced by prghTotalHydrostaticPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ prghTotalHydrostaticPressureFvPatchScalarField() [2/4]

Construct by mapping given.

prghTotalHydrostaticPressureFvPatchScalarField onto a new patch

Definition at line 51 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

◆ prghTotalHydrostaticPressureFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ prghTotalHydrostaticPressureFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 68 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "prghTotalHydrostaticPressure"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 202 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 85 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References Foam::magSqr(), Foam::neg(), and Foam::operator==().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 110 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References fvPatchField< Type >::write(), and Foam::writeEntry().

Here is the call graph for this function:

Member Data Documentation

◆ UName_

word UName_
protected

Name of the velocity field.

Definition at line 150 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

◆ phiName_

word phiName_
protected

Name of the flux transporting the field.

Definition at line 153 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

◆ rhoName_

word rhoName_
protected

Name of density field.

Definition at line 156 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

◆ ph_rghName_

word ph_rghName_
protected

Name of hydrostatic pressure field.

Definition at line 159 of file prghTotalHydrostaticPressureFvPatchScalarField.H.


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