Loading...
Searching...
No Matches
turbulentMixingLengthFrequencyInletFvPatchScalarField Class Reference

This boundary condition provides a turbulence specific dissipation, $\omega$ (omega) inlet condition based on a specified mixing length. The patch values are calculated using: More...

#include <turbulentMixingLengthFrequencyInletFvPatchScalarField.H>

Inheritance diagram for turbulentMixingLengthFrequencyInletFvPatchScalarField:
Collaboration diagram for turbulentMixingLengthFrequencyInletFvPatchScalarField:

Public Member Functions

 TypeName ("turbulentMixingLengthFrequencyInlet")
 Runtime type information.
 turbulentMixingLengthFrequencyInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 turbulentMixingLengthFrequencyInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 turbulentMixingLengthFrequencyInletFvPatchScalarField (const turbulentMixingLengthFrequencyInletFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 turbulentMixingLengthFrequencyInletFvPatchScalarField (const turbulentMixingLengthFrequencyInletFvPatchScalarField &)
 Construct as copy.
 turbulentMixingLengthFrequencyInletFvPatchScalarField (const turbulentMixingLengthFrequencyInletFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< scalar > > clone () const
 Return a clone.
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, volMesh > &iF) const
 Clone with an internal field reference.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

This boundary condition provides a turbulence specific dissipation, $\omega$ (omega) inlet condition based on a specified mixing length. The patch values are calculated using:

\‍[        \omega_p = \frac{k^{0.5}}{C_{\mu}^{0.25} L}
\‍]

where

$        \omega_p $=patch omega values
$        C_{\mu} $=Model coefficient, set to 0.09
$        k       $=turbulence kinetic energy
$        L       $=length scale
Usage
Property Description Required Default value
mixingLength Length scale [m] yes
phi flux field name no phi
k turbulence kinetic energy field name no k

Example of the boundary condition specification:

    <patchName>
    {
        type            turbulentMixingLengthFrequencyInlet;
        mixingLength    0.005;
        value           uniform 200;   // placeholder
    }
Note
In the event of reverse flow, a zero-gradient condition is applied
See also
Foam::inletOutletFvPatchField
Source files

Definition at line 125 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ turbulentMixingLengthFrequencyInletFvPatchScalarField() [1/5]

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

◆ turbulentMixingLengthFrequencyInletFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 66 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.C.

References dict, IOobjectOption::MUST_READ, p, and Foam::Zero.

◆ turbulentMixingLengthFrequencyInletFvPatchScalarField() [3/5]

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

Construct by mapping given.

turbulentMixingLengthFrequencyInletFvPatchScalarField onto a new patch

Definition at line 52 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.C.

References p, and turbulentMixingLengthFrequencyInletFvPatchScalarField().

Here is the call graph for this function:

◆ turbulentMixingLengthFrequencyInletFvPatchScalarField() [4/5]

turbulentMixingLengthFrequencyInletFvPatchScalarField ( const turbulentMixingLengthFrequencyInletFvPatchScalarField & ptf)

Construct as copy.

Definition at line 87 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.C.

References turbulentMixingLengthFrequencyInletFvPatchScalarField().

Here is the call graph for this function:

◆ turbulentMixingLengthFrequencyInletFvPatchScalarField() [5/5]

turbulentMixingLengthFrequencyInletFvPatchScalarField ( const turbulentMixingLengthFrequencyInletFvPatchScalarField & ptf,
const DimensionedField< scalar, volMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 98 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.C.

References turbulentMixingLengthFrequencyInletFvPatchScalarField().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "turbulentMixingLengthFrequencyInlet" )

Runtime type information.

References turbulentMixingLengthFrequencyInletFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< scalar > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 205 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Definition at line 213 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 113 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.C.

References turbulenceModel::coeffDict(), dictionary::getOrDefault(), IOobject::groupName(), Foam::neg(), Foam::pow(), turbulenceModel::propertiesName, and Foam::sqrt().

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 148 of file turbulentMixingLengthFrequencyInletFvPatchScalarField.C.

References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

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