totalPressure
Description
The totalPressure is a boundary condition that sets the static pressure at
the patch based on a specification of the total pressure, .
The mode of operation is determined via the input entries and the dimensions
of the convective flux, 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 .
where:
| Property | Description |
|---|---|
| Incompressible pressure at patch [m^2/s^2] | |
| Incompressible total pressure [m^2/s^2] | |
| Velocity |
Compressible subsonic
Patch pressure described by subtracting the dynamic pressure from the total pressure, where the flux has dimensions of .
where:
| Property | Description |
|---|---|
| Pressure at patch [Pa] | |
| Total pressure [Pa] | |
| Density [kg/m^3] | |
| Velocity |
Compressible transonic ()
Ratio of specific heats, equal to 1.
where:
| Property | Description |
|---|---|
| Pressure at patch [Pa] | |
| Total pressure [Pa] | |
| Compressibility [m^2/s^2] | |
| Velocity |
Compressible supersonic ()
Ratio of specific heats, greater than 1.
| Property | Description |
|---|---|
| Pressure at patch [Pa] | |
| Total pressure [Pa] | |
| Compressibility [m^2/s^2] | |
| Coefficient given by | |
| Velocity |
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:
| Mode | Dimensions | psi | gamma |
|---|---|---|---|
| Incompressible subsonic | p/rho | - | - |
| Compressible subsonic | p | none | - |
| Compressible transonic | p | psi | 1 |
| Compressible supersonic | p | psi | > 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:
| Property | Description | Type | Required | Default |
|---|---|---|---|---|
type | Type name: totalPressure | word | yes | - |
p0 | Total pressure field | scalarField | yes | - |
U | Name of velocity field | word | no | U |
phi | Name of flux field | word | no | phi |
rho | Name of density field | word | no | rho |
psi | Name of compressibility field | word | no | none |
gamma | Heat capacity ratio | scalar | conditional | - |
Further information
Tutorial:
Source code:
API:
History: Introduced in version 1.5