Skip to main content

uniformDensityHydrostaticPressure

Description

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

phyd=pref+ρg(xxref) p_{hyd} = p_{ref} + \rho g (x - x_{ref})

where:

PropertyDescription
phydp_{hyd}Hydrostatic pressure [Pa]
prefp_{ref}Reference pressure [Pa]
xrefx_{ref}Reference point in Cartesian coordinates
ρ\rhoDensity (assumed uniform)
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 uniformDensityHydrostaticPressure;
rho <scalar>;
pRefValue <scalar>;
pRefPoint <vector>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: uniformDensityHydrostaticPressurewordyes-
rhoValue of densityscalaryes-
pRefValueReference pressure [Pa]scalaryes-
pRefPointReference pressure locationvectoryes-

The inherited entries are elaborated in:

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version 1.6