Skip to main content

prghTotalHydrostaticPressure

Description

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

prgh=phrgh0.5ρu2 p_{rgh} = {ph}_{rgh} - 0.5 \rho |\vec{u}|^2

where:

PropertyDescription
prghp_{rgh}Pressure: ρg(hhref)\rho g (h - h_{ref}) [Pa]
ppHydrostatic pressure: ρg(hhref)\rho g (h - h_{ref}) [Pa]
hhHeight in the opposite direction to gravity
hrefh_{ref}Reference height in the opposite direction to gravity
ρ\rhoDensity
ggAcceleration 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:

PropertyDescriptionTypeRequiredDefault
typeType name: prghTotalHydrostaticPressurewordyes-
rhoName of density fieldwordnorho
phiName of flux fieldwordnophi
UName of velocity fieldwordnoU
ph_rghName of ph_rgh fieldwordnoph_rgh

The inherited entries are elaborated in:

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1606+