PrghPressureFvPatchScalarField< PressureFvPatchScalarField > Class Template Reference

This boundary condition provides the p_rgh equivalent of a pressure boundary condition calculated as: More...

Inheritance diagram for PrghPressureFvPatchScalarField< PressureFvPatchScalarField >:
Collaboration diagram for PrghPressureFvPatchScalarField< PressureFvPatchScalarField >:

Public Member Functions

 TypeName ("PrghPressure")
 Runtime type information. More...
 
 PrghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 PrghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 PrghPressureFvPatchScalarField (const PrghPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 PrghPressureFvPatchScalarField (const PrghPressureFvPatchScalarField &)
 Copy constructor. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 PrghPressureFvPatchScalarField (const PrghPressureFvPatchScalarField &, 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...
 

Detailed Description

template<class PressureFvPatchScalarField>
class Foam::PrghPressureFvPatchScalarField< PressureFvPatchScalarField >

This boundary condition provides the p_rgh equivalent of a pressure boundary condition calculated as:

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

where

$ p_rgh $ = Pseudo hydrostatic pressure [Pa]
$ p $ = Static 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]
Source files

Definition at line 88 of file PrghPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ PrghPressureFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 37 of file PrghPressureFvPatchScalarField.C.

Referenced by PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::clone(), and PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ PrghPressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 49 of file PrghPressureFvPatchScalarField.C.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the call graph for this function:

◆ PrghPressureFvPatchScalarField() [3/5]

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

Construct by mapping given.

PrghPressureFvPatchScalarField onto a new patch

Definition at line 62 of file PrghPressureFvPatchScalarField.C.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the call graph for this function:

◆ PrghPressureFvPatchScalarField() [4/5]

PrghPressureFvPatchScalarField ( const PrghPressureFvPatchScalarField< PressureFvPatchScalarField > &  ptf)

Copy constructor.

Definition at line 76 of file PrghPressureFvPatchScalarField.C.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the call graph for this function:

◆ PrghPressureFvPatchScalarField() [5/5]

PrghPressureFvPatchScalarField ( const PrghPressureFvPatchScalarField< PressureFvPatchScalarField > &  ptf,
const DimensionedField< scalar, volMesh > &  iF 
)

Copy constructor setting internal field reference.

Definition at line 87 of file PrghPressureFvPatchScalarField.C.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::updateCoeffs().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "PrghPressure"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 133 of file PrghPressureFvPatchScalarField.H.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Construct and return a clone setting internal field reference.

Definition at line 150 of file PrghPressureFvPatchScalarField.H.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField(), and PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::updateCoeffs().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 100 of file PrghPressureFvPatchScalarField.C.

References g, and Foam::mag().

Referenced by PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::clone(), and PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the call graph for this function:
Here is the caller graph for this function:

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