Skip to main content

prghPermeableAlphaTotalPressure

Description

The prghPermeableAlphaTotalPressure is a is a mixed boundary condition for the p_rgh variable in multiphase flows.

It switches between an open boundary using the prghTotalPressure boundary condition and a wall condition using the fixedFluxPressure boundary condition.

In the prghPermeableAlphaTotalPressure, an open condition is applied when alpha is under a user-defined alphaMin value and a wall condition is applied when alpha is larger than the alphaMin.

This boundary condition can be used in conjunction with pressurePermeableAlphaInletOutletVelocity for the U variable.

Usage

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

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type prghPermeableAlphaTotalPressure;
p <PatchFunction1<scalar>>;

// Optional entries
phi <word>;
rho <word>;
U <word>;
alpha <word>;
alphaMin <scalar>;

// Inherited entries;
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: prghPermeableAlphaTotalPressurewordyes-
pTotal pressurePatchFunction1<scalar>yes-
phiName of flux fieldwordnophi
rhoName of density fieldwordnorho
UName of velocity fieldwordnoU
alphaName of mixture fieldwordnoalpha
alphaMinMinimum value of alphascalarno1

The inherited entries are elaborated in:

Further information

Tutorial:

Source code:

API:

History: Introduced in version v2106