Skip to main content

Untitled

-- title: phaseHydrostaticPressure copyright:

  • Copyright (C) 2023 OpenCFD Ltd. tags:
  • boundary conditions menu_id: boundary-conditions-phaseHydrostaticPressure license: CC-BY-NC-ND-4.0 menu_parent: boundary-conditions-general group: boundary-conditions-general

Description

The phaseHydrostaticPressure is a generic boundary condition that provides a phase-based hydrostatic pressure condition, calculated as:

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

where:

PropertyType
phydp_{hyd}Hyrostatic pressure [Pa]
prefp_{ref}Reference pressure [Pa]
xrefx_{ref}Reference point in Cartesian coordinates
ρ\rhoDensity (assumed uniform)
ggAcceleration due to gravity [m/s2]

The values are assigned according to the phase-fraction field:

  • 1: apply phydp_{hyd}
  • 0: apply a zero-gradient condition

Usage

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

Boundary file

<patchName>
{
type mappedPatch;
...
}

Field file

<patchName>
{
// Mandatory entries
type phaseHydrostaticPressure;
rho <scalar>;
pRefValue <scalar>;
pRefPoint <vector>;

// Optional entries
phaseFraction <word>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: phaseHydrostaticPressurewordyes-
rhoConstant value of density in the far fieldscalaryes-
pRefValueReference pressure [Pa]scalaryes-
pRefPointReference pressure locationvectoryes-
phaseFractionName of phase-fraction fieldwordnoalpha

The inherited entries are elaborated in:

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version 2.1.1