entrainmentPressureFvPatchScalarField Class Reference

This boundary condition provides an entrainment pressure condition. The condition is the same as totalPressure condition except that where the total pressure uses the square of the velocity magnitude, this uses the signed square of the normal velocity. In the incompressible case, that means the formulation is as follows: More...

Inheritance diagram for entrainmentPressureFvPatchScalarField:
Collaboration diagram for entrainmentPressureFvPatchScalarField:

Public Member Functions

 TypeName ("entrainmentPressure")
 Runtime type information. More...
 
 entrainmentPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 entrainmentPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 entrainmentPressureFvPatchScalarField (const entrainmentPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given entrainmentPressureFvPatchScalarField. More...
 
 entrainmentPressureFvPatchScalarField (const entrainmentPressureFvPatchScalarField &)
 Copy constructor. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 entrainmentPressureFvPatchScalarField (const entrainmentPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor 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...
 
- Public Member Functions inherited from dynamicPressureFvPatchScalarField
 TypeName ("dynamicPressure")
 Runtime type information. More...
 
 dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given dynamicPressureFvPatchScalarField. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &)
 Copy constructor. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
void updateCoeffs (const scalarField &p0p, const scalarField &Kp)
 Update the coefficients associated with the patch field. More...
 

Additional Inherited Members

- Protected Attributes inherited from dynamicPressureFvPatchScalarField
const word rhoName_
 Name of the density field used to normalise the mass flux. More...
 
const word psiName_
 Name of the compressibility field used to calculate the wave speed. More...
 
const scalar gamma_
 Heat capacity ratio. More...
 
scalarField p0_
 Reference pressure. More...
 

Detailed Description

This boundary condition provides an entrainment pressure condition. The condition is the same as totalPressure condition except that where the total pressure uses the square of the velocity magnitude, this uses the signed square of the normal velocity. In the incompressible case, that means the formulation is as follows:

\[ p_p = p_0 + 0.5 Un |Un| \]

where

$ p_p $ = pressure at patch [m^2/s^2]
$ p_0 $ = reference pressure [m^2/s^2]
$ U $ = patch normal velocity [m/s]

This condition is particularly suitable for boundaries on which the flow direction changes frequently and/or when the inlet/outlet direction is not well defined.

Usage
Property Description Required Default value
phi Flux field name no phi
rho Density field name no rho
psi Compressibility field name no none
gamma (Cp/Cv) no 1
p0 Reference pressure yes

Example of the boundary condition specification:

    <patchName>
    {
        type            entrainmentPressure;
        p0              uniform 1e5;
    }
See also
Foam::dynamicPressureFvPatchScalarField Foam::totalPressureFvPatchScalarField Foam::fixedValueFvPatchField
Source files

Definition at line 132 of file entrainmentPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ entrainmentPressureFvPatchScalarField() [1/5]

entrainmentPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 35 of file entrainmentPressureFvPatchScalarField.C.

Referenced by entrainmentPressureFvPatchScalarField::clone(), and entrainmentPressureFvPatchScalarField::entrainmentPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ entrainmentPressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 47 of file entrainmentPressureFvPatchScalarField.C.

References entrainmentPressureFvPatchScalarField::entrainmentPressureFvPatchScalarField().

Here is the call graph for this function:

◆ entrainmentPressureFvPatchScalarField() [3/5]

entrainmentPressureFvPatchScalarField ( const entrainmentPressureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given entrainmentPressureFvPatchScalarField.

onto a new patch

Definition at line 60 of file entrainmentPressureFvPatchScalarField.C.

References entrainmentPressureFvPatchScalarField::entrainmentPressureFvPatchScalarField().

Here is the call graph for this function:

◆ entrainmentPressureFvPatchScalarField() [4/5]

◆ entrainmentPressureFvPatchScalarField() [5/5]

Copy constructor setting internal field reference.

Definition at line 85 of file entrainmentPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "entrainmentPressure"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 182 of file entrainmentPressureFvPatchScalarField.H.

References entrainmentPressureFvPatchScalarField::entrainmentPressureFvPatchScalarField().

Here is the call graph for this function:

◆ 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 199 of file entrainmentPressureFvPatchScalarField.H.

References entrainmentPressureFvPatchScalarField::entrainmentPressureFvPatchScalarField(), entrainmentPressureFvPatchScalarField::updateCoeffs(), and entrainmentPressureFvPatchScalarField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 97 of file entrainmentPressureFvPatchScalarField.C.

References Foam::mag(), dynamicPressureFvPatchScalarField::p0_, and dynamicPressureFvPatchScalarField::updateCoeffs().

Referenced by entrainmentPressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from dynamicPressureFvPatchScalarField.

Definition at line 108 of file entrainmentPressureFvPatchScalarField.C.

References Foam::makePatchTypeField(), and dynamicPressureFvPatchScalarField::write().

Referenced by entrainmentPressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

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