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

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

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

Public Member Functions

 TypeName ("prghTotalPressure")
 
 prghTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 prghTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
const scalarFieldp0 () const
 
scalarFieldp0 ()
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Protected Attributes

word UName_
 
word phiName_
 
word rhoName_
 
scalarField p0_
 

Detailed Description

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

\[ p_rgh = p - \rho g.(h - hRef) \]

\[ p = p0 - 0.5 \rho |U|^2 \]

where

$ p_rgh $ = Pseudo hydrostatic pressure [Pa]
$ p $ = Static pressure [Pa]
$ p0 $ = Total pressure [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
p0 Total pressure yes

Example of the boundary condition specification:

    <patchName>
    {
        type            prghTotalPressure;
        p0              uniform 0;
    }
See also
Foam::fixedValueFvPatchScalarField
Source files

Definition at line 143 of file prghTotalPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ prghTotalPressureFvPatchScalarField() [1/5]

prghTotalPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Definition at line 32 of file prghTotalPressureFvPatchScalarField.C.

Referenced by prghTotalPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ prghTotalPressureFvPatchScalarField() [2/5]

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

Definition at line 46 of file prghTotalPressureFvPatchScalarField.C.

References dict, and p.

◆ prghTotalPressureFvPatchScalarField() [3/5]

prghTotalPressureFvPatchScalarField ( const prghTotalPressureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Definition at line 73 of file prghTotalPressureFvPatchScalarField.C.

◆ prghTotalPressureFvPatchScalarField() [4/5]

Definition at line 89 of file prghTotalPressureFvPatchScalarField.C.

◆ prghTotalPressureFvPatchScalarField() [5/5]

Definition at line 102 of file prghTotalPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "prghTotalPressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Definition at line 205 of file prghTotalPressureFvPatchScalarField.H.

References prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Definition at line 222 of file prghTotalPressureFvPatchScalarField.H.

References prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ p0() [1/2]

const scalarField& p0 ( ) const
inline

◆ p0() [2/2]

scalarField& p0 ( )
inline

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Definition at line 118 of file prghTotalPressureFvPatchScalarField.C.

◆ rmap()

void rmap ( const fvPatchScalarField ptf,
const labelList addr 
)
virtual

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 182 of file prghTotalPressureFvPatchScalarField.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

◆ p0_

scalarField p0_
protected

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