Skip to main content

fixedPressureCompressibleDensity

Description

The fixedPressureCompressibleDensity is a pressure boundary condition that calculates a (liquid) compressible density as a function of pressure and fluid properties.

The governing equations are as follows:

ρ=ρl,sat+ψl(ppsat) \rho = \rho_{l,sat} + \psi_l*(p - p_{sat})

where:

PropertyDescription
ρ\rhoDensity [kg/m^3]
ρl,sat\rho_{l,sat}Saturation liquid density [kg/m^3]
ψl\psi_lLiquid compressibility [-]
ppPressure [Pa]
psatp_{sat}Saturation pressure [Pa]

The variables ρl,sat,psat\rho_{l,sat}, p_{sat} and ψl\psi_l are retrieved from the thermodynamicProperties dictionary.

Usage

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

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type fixedPressureCompressibleDensity;

// Optional entries
p <word>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: fixedPressureCompressibleDensitywordyes-
pName of pressure fieldwordnop

The inherited entries are elaborated in:

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version 1.6