This boundary condition calculates a (liquid) compressible density as a function of pressure and fluid properties: More...


Public Member Functions | |
| TypeName ("fixedPressureCompressibleDensity") | |
| Runtime type information. More... | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
This boundary condition calculates a (liquid) compressible density as a function of pressure and fluid properties:
where
| = | density [kg/m^3] |
| = | saturation liquid density [kg/m^3] |
| = | 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 115 of file fixedPressureCompressibleDensityFvPatchScalarField.H.
| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 36 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
Referenced by fixedPressureCompressibleDensityFvPatchScalarField::clone(), and fixedPressureCompressibleDensityFvPatchScalarField::fixedPressureCompressibleDensityFvPatchScalarField().

| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 48 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References fixedPressureCompressibleDensityFvPatchScalarField::fixedPressureCompressibleDensityFvPatchScalarField().

| 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 61 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References fixedPressureCompressibleDensityFvPatchScalarField::fixedPressureCompressibleDensityFvPatchScalarField().

|
delete |
Disallow copy without setting internal field reference.
| fixedPressureCompressibleDensityFvPatchScalarField | ( | const fixedPressureCompressibleDensityFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 75 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
| TypeName | ( | "fixedPressureCompressibleDensity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 174 of file fixedPressureCompressibleDensityFvPatchScalarField.H.
References fixedPressureCompressibleDensityFvPatchScalarField::fixedPressureCompressibleDensityFvPatchScalarField(), fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs(), and fixedPressureCompressibleDensityFvPatchScalarField::write().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 87 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References Foam::operator==(), fvPatchField< Type >::updateCoeffs(), and fixedPressureCompressibleDensityFvPatchScalarField::write().
Referenced by fixedPressureCompressibleDensityFvPatchScalarField::clone().


|
virtual |
Write.
Definition at line 115 of file fixedPressureCompressibleDensityFvPatchScalarField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by fixedPressureCompressibleDensityFvPatchScalarField::clone(), and fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs().

