Public Member Functions | List of all members
turbulentIntensityKineticEnergyInletFvPatchScalarField Class Reference

This boundary condition provides a turbulent kinetic energy condition, based on user-supplied turbulence intensity, defined as a fraction of the mean velocity: More...

Inheritance diagram for turbulentIntensityKineticEnergyInletFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for turbulentIntensityKineticEnergyInletFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("turbulentIntensityKineticEnergyInlet")
 
 turbulentIntensityKineticEnergyInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 turbulentIntensityKineticEnergyInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 turbulentIntensityKineticEnergyInletFvPatchScalarField (const turbulentIntensityKineticEnergyInletFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 turbulentIntensityKineticEnergyInletFvPatchScalarField (const turbulentIntensityKineticEnergyInletFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 turbulentIntensityKineticEnergyInletFvPatchScalarField (const turbulentIntensityKineticEnergyInletFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Detailed Description

This boundary condition provides a turbulent kinetic energy condition, based on user-supplied turbulence intensity, defined as a fraction of the mean velocity:

\[ k_p = 1.5 (I |U|)^2 \]

where

$ k_p $ = kinetic energy at the patch
$ I $ = turbulence intensity
$ U $ = velocity field

In the event of reverse flow, a zero-gradient condition is applied.

Usage
Property Description Required Default value
intensity fraction of mean field [0-1] yes
U velocity field name no U
phi flux field name no phi

Example of the boundary condition specification:

    <patchName>
    {
        type        turbulentIntensityKineticEnergyInlet;
        intensity   0.05;           // 5% turbulence
        value       uniform 1;      // placeholder
    }
See also
Foam::inletOutletFvPatchField
Source files

Definition at line 118 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ turbulentIntensityKineticEnergyInletFvPatchScalarField() [1/5]

◆ turbulentIntensityKineticEnergyInletFvPatchScalarField() [2/5]

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

Definition at line 62 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, p, and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ turbulentIntensityKineticEnergyInletFvPatchScalarField() [3/5]

◆ turbulentIntensityKineticEnergyInletFvPatchScalarField() [4/5]

◆ turbulentIntensityKineticEnergyInletFvPatchScalarField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "turbulentIntensityKineticEnergyInlet"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

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

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 122 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.

References Foam::magSqr(), Foam::foamVersion::patch, Foam::pos0(), and Foam::sqr().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Definition at line 143 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.

References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

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