Description🔗
The fixedPressureCompressibleDensity
is a pressure boundary condition that
calculates a (liquid) compressible density as a function of pressure and
fluid properties.
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:
Property | Description | Type | Required | Default |
---|---|---|---|---|
type |
Type name: fixedPressureCompressibleDensity
|
word | yes | - |
p |
Name of pressure field | word | no | p |
The inherited entries are elaborated in:
- fixedValueFvPatchFields.H
Method🔗
\[\rho = \rho_{l,sat} + \psi_l*(p - p_{sat})\]where:
Property | Description |
---|---|
\(\rho\) | Density [kg/m^3] |
\(\rho_{l,sat}\) | Saturation liquid density [kg/m^3] |
\(\psi_l\) | Liquid compressibility [-] |
\(p\) | Pressure [Pa] |
\(p_{sat}\) | Saturation pressure [Pa] |
The variables \(\rho_{l,sat}, p_{sat}\) and \(\psi_l\) are retrieved from the
thermodynamicProperties
dictionary.
Further information🔗
Tutorial:
N/A
Source code:
API:
History:
- Introduced in version 1.6