Skip to main content

totalPressure

Description

The totalPressure is a boundary condition that sets the static pressure at the patch ppp_p based on a specification of the total pressure, p0p_0. The mode of operation is determined via the input entries and the dimensions of the convective flux, phi (ϕ\phi).

Four variants are possible:

Incompressible subsonic

Patch pressure described by subtracting the dynamic pressure from the total pressure, where the flux has dimensions of m3/sm^3/s.

pp=p012u2 p_p = p_0 - \frac{1}{2}\mag{\u}^2

where:

PropertyDescription
ppp_pIncompressible pressure at patch [m^2/s^2]
p0p_0Incompressible total pressure [m^2/s^2]
u\uVelocity

Compressible subsonic

Patch pressure described by subtracting the dynamic pressure from the total pressure, where the flux has dimensions of kg/skg/s.

pp=p012ρu2 p_p = p_0 - \frac{1}{2}\rho\mag{\u}^2

where:

PropertyDescription
ppp_pPressure at patch [Pa]
p0p_0Total pressure [Pa]
ρ\rhoDensity [kg/m^3]
u\uVelocity

Compressible transonic (γ=1\gamma = 1)

Ratio of specific heats, γ=Cp/Cv\gamma = C_p/C_v equal to 1.

pp=p01+12ψu2 p_p = \frac{p_0}{1 + \frac{1}{2} \psi \mag{\u}^2}

where:

PropertyDescription
ppp_pPressure at patch [Pa]
p0p_0Total pressure [Pa]
ψ\psiCompressibility [m^2/s^2]
u\uVelocity

Compressible supersonic (γ>1\gamma > 1)

Ratio of specific heats, γ=Cp/Cv\gamma = C_p/C_v greater than 1.

pp=p0(1+γ12ψu2)γγ1 p_p = \frac{p_0}{\left(1 + \frac{\gamma - 1}{2} \psi \mag{\u}^2\right)^{\frac{\gamma}{\gamma - 1}}}
PropertyDescription
ppp_pPressure at patch [Pa]
p0p_0Total pressure [Pa]
ψ\psiCompressibility [m^2/s^2]
GGCoefficient given by γ1γ\frac{\gamma}{1-\gamma}
u\uVelocity

The modes of operation are set by the dimensions of the pressure field to which this boundary condition is applied, the psi entry and the value of gamma:

ModeDimensionspsigamma
Incompressible subsonicp/rho--
Compressible subsonicpnone-
Compressible transonicppsi1
Compressible supersonicppsi> 1

Usage

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

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type totalPressure;

// Conditional entries

// Incompressible subsonic
rho none;
p0 uniform 0;

// Compressible subsonic
p0 uniform 100000;

// Compressible transonic
psi psi;
p0 uniform 100000;

// Compressible supersonic
psi psi;
gamma 1.4;
p0 uniform 100000;

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

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: totalPressurewordyes-
p0Total pressure fieldscalarFieldyes-
UName of velocity fieldwordnoU
phiName of flux fieldwordnophi
rhoName of density fieldwordnorho
psiName of compressibility fieldwordnonone
gammaHeat capacity ratioscalarconditional-

Further information

Tutorial:

Source code:

API:

History: Introduced in version 1.5