fixedPressureCompressibleDensityFvPatchScalarField Class Reference

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

Inheritance diagram for fixedPressureCompressibleDensityFvPatchScalarField:
[legend]
Collaboration diagram for fixedPressureCompressibleDensityFvPatchScalarField:
[legend]

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 &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 fixedPressureCompressibleDensityFvPatchScalarField (const fixedPressureCompressibleDensityFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (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...
 

Detailed Description

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}) \]

where

\( \rho \) = density [kg/m3]
\( \rho_{l,sat} \) = saturation liquid density [kg/m3]
\( \psi_l \) = liquid compressibility
\( p \) = pressure [Pa]
\( p_{sat} \) = saturation pressure [Pa]

The variables rholSat, pSat and psil are retrieved from the thermodynamicProperties dictionary.

Usage
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;
    }
See also
Foam::fixedValueFvPatchField
Source files

Definition at line 120 of file fixedPressureCompressibleDensityFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ fixedPressureCompressibleDensityFvPatchScalarField() [1/5]

Construct from patch and internal field.

Definition at line 37 of file fixedPressureCompressibleDensityFvPatchScalarField.C.

◆ fixedPressureCompressibleDensityFvPatchScalarField() [2/5]

fixedPressureCompressibleDensityFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 63 of file fixedPressureCompressibleDensityFvPatchScalarField.C.

◆ fixedPressureCompressibleDensityFvPatchScalarField() [3/5]

◆ fixedPressureCompressibleDensityFvPatchScalarField() [4/5]

◆ fixedPressureCompressibleDensityFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 87 of file fixedPressureCompressibleDensityFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fixedPressureCompressibleDensity"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp< fvPatchScalarField > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 171 of file fixedPressureCompressibleDensityFvPatchScalarField.H.

◆ clone() [2/2]

virtual tmp< fvPatchScalarField > clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 187 of file fixedPressureCompressibleDensityFvPatchScalarField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 101 of file fixedPressureCompressibleDensityFvPatchScalarField.C.

References Foam::operator==(), atmBoundaryLayerInletEpsilonFvPatchScalarField::updateCoeffs(), and dimensioned< Type >::value().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 126 of file fixedPressureCompressibleDensityFvPatchScalarField.C.

References os(), ObukhovLength::write(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

The documentation for this class was generated from the following files: