Description

The prghTotalHydrostaticPressure is a boundary condition that provides static pressure condition for p_rgh, calculated as:

\[p_{rgh} = {ph}_{rgh} - 0.5 \rho |\vec{u}|^2\]

where:

Property Description
\(p_{rgh}\) Pressure: \(\rho g (h - h_{ref})\) [Pa]
\(p\) Hydrostatic pressure: \(\rho g (h - h_{ref})\) [Pa]
\(h\) Height in the opposite direction to gravity
\(h_{ref}\) Reference height in the opposite direction to gravity
\(\rho\) Density
\(g\) Acceleration due to gravity [m/s^2]

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
    type            patch;
    ...
}

Field file

<patchName>
{
    // Mandatory entries
    type            prghTotalHydrostaticPressure;

    // Optional entries
    rho             <word>;
    phi             <word>;
    U               <word>;
    ph_rgh          <word>;

    // Inherited entries
    ...
}

where:

Property Description Type Required Default
type Type name: prghTotalHydrostaticPressure word yes -
rho Name of density field word no rho
phi Name of flux field word no phi
U Name of velocity field word no U
ph_rgh Name of ph_rgh field word no ph_rgh

The inherited entries are elaborated in:

Further information

Tutorial:

Source code:

API:

History: