Skip to main content

prghTotalPressure

Description

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

prgh=pρg(hhref) p_{rgh} = p - \rho g (h - h_{ref}) p=p00.5ρu2 p = p_0 - 0.5 \rho |\vec{u}|^2

where:

PropertyDescription
prghp_{rgh}Pseudo hydrostatic pressure [Pa]
ppStatic pressure [Pa]
p0p_0Total pressure [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 prghTotalPressure;
p0 <scalarField>;

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

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: prghTotalPressurewordyes-
p0Total pressure fieldwordyes-
rhoName of density fieldwordnorho
phiName of flux fieldwordnophi
UName of velocity fieldwordnoU

The inherited entries are elaborated in:

Further information

Tutorial:

Source code:

API:

History: Introduced in version 2.4.0