Loading...
Searching...
No Matches
prghTotalHydrostaticPressureFvPatchScalarField Class Reference

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

#include <prghTotalHydrostaticPressureFvPatchScalarField.H>

Inheritance diagram for prghTotalHydrostaticPressureFvPatchScalarField:
Collaboration diagram for prghTotalHydrostaticPressureFvPatchScalarField:

Public Member Functions

 TypeName ("prghTotalHydrostaticPressure")
 Runtime type information.
 prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &)
 Construct as copy.
 prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< scalar > > clone () const
 Return a clone.
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, volMesh > &iF) const
 Clone with an internal field reference.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Protected Attributes

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

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]

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

Construct from patch and internal field.

Definition at line 31 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References p, ph_rghName_, phiName_, rhoName_, and UName_.

Referenced by prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), and TypeName().

Here is the caller graph for this function:

◆ prghTotalHydrostaticPressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 46 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References dict, p, ph_rghName_, phiName_, rhoName_, and UName_.

◆ prghTotalHydrostaticPressureFvPatchScalarField() [3/5]

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

Construct by mapping given.

prghTotalHydrostaticPressureFvPatchScalarField onto a new patch

Definition at line 62 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References p, ph_rghName_, phiName_, prghTotalHydrostaticPressureFvPatchScalarField(), rhoName_, and UName_.

Here is the call graph for this function:

◆ prghTotalHydrostaticPressureFvPatchScalarField() [4/5]

prghTotalHydrostaticPressureFvPatchScalarField ( const prghTotalHydrostaticPressureFvPatchScalarField & ptf)

Construct as copy.

Definition at line 79 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References ph_rghName_, phiName_, prghTotalHydrostaticPressureFvPatchScalarField(), rhoName_, and UName_.

Here is the call graph for this function:

◆ prghTotalHydrostaticPressureFvPatchScalarField() [5/5]

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

Construct as copy setting internal field reference.

Definition at line 93 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References ph_rghName_, phiName_, prghTotalHydrostaticPressureFvPatchScalarField(), rhoName_, and UName_.

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "prghTotalHydrostaticPressure" )

Runtime type information.

References prghTotalHydrostaticPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< scalar > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 233 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Definition at line 241 of file prghTotalHydrostaticPressureFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 110 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References Foam::magSqr(), Foam::neg(), ph_rghName_, phiName_, rhoName_, and UName_.

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 139 of file prghTotalHydrostaticPressureFvPatchScalarField.C.

References os(), ph_rghName_, phiName_, rhoName_, UName_, fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

Member Data Documentation

◆ UName_

◆ phiName_

◆ rhoName_

◆ ph_rghName_


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