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 &)=delete
 Disallow copy without setting internal field reference. 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...
 
virtual void write (Ostream &) const
 Write. 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 50 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 64 of file PrghPressureFvPatchScalarField.C.

References PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::PrghPressureFvPatchScalarField().

Here is the call graph for this function:

◆ PrghPressureFvPatchScalarField() [4/5]

PrghPressureFvPatchScalarField ( const PrghPressureFvPatchScalarField< PressureFvPatchScalarField > &  )
delete

Disallow copy without setting internal field reference.

◆ PrghPressureFvPatchScalarField() [5/5]

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

Copy constructor setting internal field reference.

Definition at line 79 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()

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

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 93 of file PrghPressureFvPatchScalarField.C.

References g, Foam::mag(), and PrghPressureFvPatchScalarField< PressureFvPatchScalarField >::write().

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:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 125 of file PrghPressureFvPatchScalarField.C.

References Foam::vtkWriteOps::write(), and Foam::writeEntry().

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

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: