turbulentIntensityKineticEnergyFvScalarFieldSource Class Reference

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

Inheritance diagram for turbulentIntensityKineticEnergyFvScalarFieldSource:
Collaboration diagram for turbulentIntensityKineticEnergyFvScalarFieldSource:

Public Member Functions

 TypeName ("turbulentIntensityKineticEnergy")
 Runtime type information. More...
 
 turbulentIntensityKineticEnergyFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 turbulentIntensityKineticEnergyFvScalarFieldSource (const turbulentIntensityKineticEnergyFvScalarFieldSource &, 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 ~turbulentIntensityKineticEnergyFvScalarFieldSource ()
 Destructor. More...
 
virtual tmp< DimensionedField< scalar, volMesh > > sourceValue (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
 Return the source value. More...
 
virtual tmp< scalarFieldsourceValue (const fvSource &model, const scalarField &source, const labelUList &cells) const
 Return the source value. More...
 
virtual tmp< DimensionedField< scalar, volMesh > > internalCoeff (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
 Return the internal coefficient. More...
 
virtual tmp< scalarFieldinternalCoeff (const fvSource &model, const scalarField &source, const labelUList &cells) const
 Return the internal coefficient. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

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

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

where

$ k $ = kinetic energy values
$ I $ = turbulence intensity
$ U $ = velocity field

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

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

Example of the boundary condition specification:

    <sourceName>
    {
        type        turbulentIntensityKineticEnergyInlet;
        intensity   0.05;           // 5% turbulence
    }
Source files

Definition at line 107 of file turbulentIntensityKineticEnergyFvScalarFieldSource.H.

Constructor & Destructor Documentation

◆ turbulentIntensityKineticEnergyFvScalarFieldSource() [1/2]

Construct from internal field and dictionary.

Definition at line 33 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.

◆ turbulentIntensityKineticEnergyFvScalarFieldSource() [2/2]

Copy constructor setting internal field reference.

Definition at line 46 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.

◆ ~turbulentIntensityKineticEnergyFvScalarFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "turbulentIntensityKineticEnergy"  )

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 145 of file turbulentIntensityKineticEnergyFvScalarFieldSource.H.

◆ sourceValue() [1/2]

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > sourceValue ( const fvSource model,
const DimensionedField< scalar, volMesh > &  source 
) const
virtual

Return the source value.

Definition at line 69 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.

References Foam::magSqr(), and Foam::sqr().

Here is the call graph for this function:

◆ sourceValue() [2/2]

Foam::tmp< Foam::scalarField > sourceValue ( const fvSource model,
const scalarField source,
const labelUList cells 
) const
virtual

Return the source value.

Definition at line 83 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.

References cells, Foam::magSqr(), and Foam::sqr().

Here is the call graph for this function:

◆ internalCoeff() [1/2]

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > internalCoeff ( const fvSource model,
const DimensionedField< scalar, volMesh > &  source 
) const
virtual

Return the internal coefficient.

Definition at line 98 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.

References Foam::neg0().

Here is the call graph for this function:

◆ internalCoeff() [2/2]

Foam::tmp< Foam::scalarField > internalCoeff ( const fvSource model,
const scalarField source,
const labelUList cells 
) const
virtual

Return the internal coefficient.

Definition at line 109 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.

References Foam::neg0().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 120 of file turbulentIntensityKineticEnergyFvScalarFieldSource.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: