turbulentMixingLengthFrequencyFvScalarFieldSource Class Reference

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

Inheritance diagram for turbulentMixingLengthFrequencyFvScalarFieldSource:
Collaboration diagram for turbulentMixingLengthFrequencyFvScalarFieldSource:

Public Member Functions

 TypeName ("turbulentMixingLengthFrequency")
 Runtime type information. More...
 
 turbulentMixingLengthFrequencyFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 turbulentMixingLengthFrequencyFvScalarFieldSource (const turbulentMixingLengthFrequencyFvScalarFieldSource &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual autoPtr< fvScalarFieldSource > clone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual ~turbulentMixingLengthFrequencyFvScalarFieldSource ()
 Destructor. More...
 
virtual tmp< scalarFieldsourceValue (const fvSource &) const
 Return the source value. More...
 
virtual tmp< scalarFieldinternalCoeff (const fvSource &) const
 Return the internal coefficient. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

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

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

where

$ \omega $ = omega values
$ C_{\mu} $ = Model coefficient, set to 0.09
$ k $ = turbulence kinetic energy
$ L $ = length scale

In the case of a sink, the current cell values are used instead.

Usage
Property Description Required Default value
mixingLength Length scale [m] yes
k turbulence kinetic energy field name no k

Example of the source condition specification:

    <patchName>
    {
        type            turbulentMixingLengthFrequency;
        mixingLength    0.005;
    }
Source files

Definition at line 112 of file turbulentMixingLengthFrequencyFvScalarFieldSource.H.

Constructor & Destructor Documentation

◆ turbulentMixingLengthFrequencyFvScalarFieldSource() [1/2]

Construct from internal field and dictionary.

Definition at line 34 of file turbulentMixingLengthFrequencyFvScalarFieldSource.C.

◆ turbulentMixingLengthFrequencyFvScalarFieldSource() [2/2]

Copy constructor setting internal field reference.

Definition at line 47 of file turbulentMixingLengthFrequencyFvScalarFieldSource.C.

◆ ~turbulentMixingLengthFrequencyFvScalarFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "turbulentMixingLengthFrequency"  )

Runtime type information.

◆ clone()

virtual autoPtr<fvScalarFieldSource> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 150 of file turbulentMixingLengthFrequencyFvScalarFieldSource.H.

◆ sourceValue()

Foam::tmp< Foam::scalarField > sourceValue ( const fvSource source) const
virtual

Return the source value.

Definition at line 70 of file turbulentMixingLengthFrequencyFvScalarFieldSource.C.

References momentumTransportModel::coeffDict(), dictionary::lookupOrDefault(), Foam::pow(), and Foam::sqrt().

Here is the call graph for this function:

◆ internalCoeff()

Foam::tmp< Foam::scalarField > internalCoeff ( const fvSource source) const
virtual

Return the internal coefficient.

Definition at line 90 of file turbulentMixingLengthFrequencyFvScalarFieldSource.C.

References Foam::name(), fvSource::nCells(), Foam::neg0(), and fvSource::source().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 101 of file turbulentMixingLengthFrequencyFvScalarFieldSource.C.

References Foam::vtkWriteOps::write(), and Foam::writeEntry().

Here is the call graph for this function:

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