Public Member Functions | List of all members
turbulentMixingLengthDissipationRateInletFvPatchScalarField Class Reference

This boundary condition provides an inlet condition for turbulent kinetic energy dissipation rate, i.e. epsilon, based on a specified mixing length. The patch values are calculated using: More...

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

Public Member Functions

 TypeName ("turbulentMixingLengthDissipationRateInlet")
 Runtime type information. More...
 
 turbulentMixingLengthDissipationRateInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 turbulentMixingLengthDissipationRateInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 turbulentMixingLengthDissipationRateInletFvPatchScalarField (const turbulentMixingLengthDissipationRateInletFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given turbulentMixingLengthDissipationRateInletFvPatchScalarField onto a new patch. More...
 
 turbulentMixingLengthDissipationRateInletFvPatchScalarField (const turbulentMixingLengthDissipationRateInletFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 turbulentMixingLengthDissipationRateInletFvPatchScalarField (const turbulentMixingLengthDissipationRateInletFvPatchScalarField &, 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 provides an inlet condition for turbulent kinetic energy dissipation rate, i.e. epsilon, based on a specified mixing length. The patch values are calculated using:

\[ \epsilon_p = \frac{C_{\mu}^{0.75} k^{1.5}}{L} \]

where

$ \epsilon_p $ = Patch epsilon values [m2/s3]
$ C_\mu $ = Empirical model constant retrived from turbulence model
$ k $ = Turbulent kinetic energy [m2/s2]
$ L $ = Mixing length scale [m]
Usage
Example of the boundary condition specification:
<patchName>
{
    // Mandatory entries (unmodifiable)
    type            turbulentMixingLengthDissipationRateInlet;

    // Mandatory entries (runtime modifiable)
    mixingLength    0.005;

    // Optional entries (runtime modifiable)
    Cmu             0.09;
    k               k;
    phi             phi;

    // Placeholder
    value           uniform 200;
}

where the entries mean:

Property Description Type Req'd Dflt
mixingLength Mixing length scale [m] scalar yes -
Cmu Empirical model constant scalar no 0.09
phi Name of flux field word no phi
k Name of turbulent kinetic energy field word no k
Note
  • The boundary condition is derived from inletOutlet condition. Therefore, in the event of reverse flow, a zero-gradient condition is applied.
  • The order of precedence to input the empirical model constant Cmu is: turbulence model, boundary condition dictionary, and default value=0.09.
  • The empirical model constant Cmu is not a spatiotemporal variant field. Therefore, the use of the boundary condition may not be fully consistent with the turbulence models where Cmu is a variant field, such as realizableKE closure model in this respect. Nevertheless, workflow observations suggest that the matter poses no importance.
See also
Foam::inletOutletFvPatchField
Source files

Definition at line 155 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ turbulentMixingLengthDissipationRateInletFvPatchScalarField() [1/5]

Construct from patch and internal field.

Definition at line 38 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.

References Foam::Zero.

Referenced by turbulentMixingLengthDissipationRateInletFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ turbulentMixingLengthDissipationRateInletFvPatchScalarField() [2/5]

Construct from patch, internal field and dictionary.

Definition at line 72 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.

References dict, dictionary::getOrDefault(), IOobjectOption::MUST_READ, and Foam::Zero.

Here is the call graph for this function:

◆ turbulentMixingLengthDissipationRateInletFvPatchScalarField() [3/5]

◆ turbulentMixingLengthDissipationRateInletFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 98 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.

◆ turbulentMixingLengthDissipationRateInletFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 111 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "turbulentMixingLengthDissipationRateInlet"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ 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 254 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.

References turbulentMixingLengthDissipationRateInletFvPatchScalarField::turbulentMixingLengthDissipationRateInletFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

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