FreeFOAM The Cross-Platform CFD Toolkit
mutkWallFunctionFvPatchScalarField Class Reference

Boundary condition for turbulent (kinematic) viscosity when using wall functions, based on turbulence kinetic energy. More...

#include <compressibleRASModels/mutkWallFunctionFvPatchScalarField.H>


Detailed Description

List of all members.

Public Member Functions

 TypeName ("mutkWallFunction")
 Runtime type information.
 mutkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 mutkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 mutkWallFunctionFvPatchScalarField (const mutkWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 mutkWallFunctionFvPatchScalarField (const mutkWallFunctionFvPatchScalarField &)
 Construct as copy.
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone.
 mutkWallFunctionFvPatchScalarField (const mutkWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference.
virtual tmp< scalarFieldyPlus () const
 Calculate and return the yPlus at the boundary.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Protected Member Functions

virtual void checkType ()
 Check the type of the patch.
virtual scalar calcYPlusLam (const scalar kappa, const scalar E) const
 Calculate the Y+ at the edge of the laminar sublayer.
virtual tmp< scalarFieldcalcMut () const
 Calculate the turbulence viscosity.
virtual void writeLocalEntries (Ostream &) const
 Write local wall function variables.

Protected Attributes

scalar Cmu_
 Cmu coefficient.
scalar kappa_
 Von Karman constant.
scalar E_
 E coefficient.
scalar yPlusLam_
 Y+ at the edge of the laminar sublayer.

Constructor & Destructor Documentation

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

Construct from patch and internal field.

Definition at line 118 of file mutkWallFunctionFvPatchScalarField.C.

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

Construct from patch, internal field and dictionary.

Definition at line 148 of file mutkWallFunctionFvPatchScalarField.C.

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

Construct by mapping given.

mutkWallFunctionFvPatchScalarField onto a new patch

Definition at line 132 of file mutkWallFunctionFvPatchScalarField.C.

Construct as copy setting internal field reference.

Definition at line 176 of file mutkWallFunctionFvPatchScalarField.C.


Member Function Documentation

void checkType ( )
protectedvirtual

Check the type of the patch.

Definition at line 44 of file mutkWallFunctionFvPatchScalarField.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and Foam::nl.

scalar calcYPlusLam ( const scalar  kappa,
const scalar  E 
) const
protectedvirtual

Calculate the Y+ at the edge of the laminar sublayer.

Definition at line 59 of file mutkWallFunctionFvPatchScalarField.C.

References kappa(), and Foam::log().

void writeLocalEntries ( Ostream os) const
protectedvirtual

Write local wall function variables.

Definition at line 107 of file mutkWallFunctionFvPatchScalarField.C.

References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().

TypeName ( "mutkWallFunction"  )

Runtime type information.

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 132 of file mutkWallFunctionFvPatchScalarField.H.

References mutkWallFunctionFvPatchScalarField::clone().

Referenced by mutkWallFunctionFvPatchScalarField::clone().

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

Construct and return a clone setting internal field reference.

Definition at line 149 of file mutkWallFunctionFvPatchScalarField.H.

tmp< scalarField > yPlus ( ) const
virtual
void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 191 of file mutkWallFunctionFvPatchScalarField.C.

References Foam::operator==().

void write ( Ostream os) const
virtual

Write.

Definition at line 221 of file mutkWallFunctionFvPatchScalarField.C.


Member Data Documentation

scalar Cmu_
protected

Cmu coefficient.

Definition at line 64 of file mutkWallFunctionFvPatchScalarField.H.

scalar kappa_
protected

Von Karman constant.

Definition at line 67 of file mutkWallFunctionFvPatchScalarField.H.

scalar E_
protected

E coefficient.

Definition at line 70 of file mutkWallFunctionFvPatchScalarField.H.

scalar yPlusLam_
protected

Y+ at the edge of the laminar sublayer.

Definition at line 73 of file mutkWallFunctionFvPatchScalarField.H.


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