This boundary condition calculates a (liquid) compressible density as a function of pressure and fluid properties: More...
#include <fixedPressureCompressibleDensityFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("fixedPressureCompressibleDensity") | |
| Runtime type information. | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &) | |
| Construct as copy. | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< scalar > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
This boundary condition calculates a (liquid) compressible density as a function of pressure and fluid properties:
![\[ \rho = \rho_{l,sat} + \psi_l*(p - p_{sat})
\]](form_141.png)
where
![]() | = | density [kg/m3] |
![]() | = | saturation liquid density [kg/m3] |
![]() | = | liquid compressibility |
![]() | = | pressure [Pa] |
![]() | = | saturation pressure [Pa] |
The variables rholSat, pSat and psil are retrieved from the thermodynamicProperties dictionary.
| Property | Description | Required | Default value |
|---|---|---|---|
p | pressure field name | no | p |
Example of the boundary condition specification:
<patchName>
{
type fixedPressureCompressibleDensity;
p p;
value uniform 1;
}
Definition at line 116 of file fixedPressureCompressibleDensityFvPatchScalarField.H.
| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 30 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References p.
Referenced by fixedPressureCompressibleDensityFvPatchScalarField(), fixedPressureCompressibleDensityFvPatchScalarField(), fixedPressureCompressibleDensityFvPatchScalarField(), and TypeName().

| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 56 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fixedPressureCompressibleDensityFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper ) |
Construct by mapping given.
fixedPressureCompressibleDensityFvPatchScalarField onto a new patch
Definition at line 42 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References fixedPressureCompressibleDensityFvPatchScalarField(), and p.

| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fixedPressureCompressibleDensityFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 69 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References fixedPressureCompressibleDensityFvPatchScalarField().

| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fixedPressureCompressibleDensityFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 80 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References fixedPressureCompressibleDensityFvPatchScalarField().

| TypeName | ( | "fixedPressureCompressibleDensity" | ) |
Runtime type information.
References fixedPressureCompressibleDensityFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Definition at line 191 of file fixedPressureCompressibleDensityFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 199 of file fixedPressureCompressibleDensityFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 94 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References Foam::operator==(), pp(), fvPatchField< Type >::updateCoeffs(), and dimensioned< Type >::value().

|
virtual |
Write.
Definition at line 118 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
