Description

The uniformDensityHydrostaticPressure is a boundary condition that provides a hydrostatic pressure condition, calculated as:

\[p_{hyd} = p_{ref} + \rho g (x - x_{ref})\]

where:

Property Description
\(p_{hyd}\) Hydrostatic pressure [Pa]
\(p_{ref}\) Reference pressure [Pa]
\(x_{ref}\) Reference point in Cartesian coordinates
\(\rho\) Density (assumed uniform)
\(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            uniformDensityHydrostaticPressure;
    rho             <scalar>;
    pRefValue       <scalar>;
    pRefPoint       <vector>;

    // Inherited entries
    ...
}

where:

Property Description Type Required Default
type Type name: uniformDensityHydrostaticPressure word yes -
rho Value of density scalar yes -
pRefValue Reference pressure [Pa] scalar yes -
pRefPoint Reference pressure location vector yes -

The inherited entries are elaborated in:

Further information

Tutorial:

  • N/A

Source code:

API:

History:

  • Introduced in version 1.6