OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

nutWallFunctionFvPatchScalarField Class Reference

Boundary condition for turbulent (kinematic) viscosity when using wall functions
  • replicates OpenFOAM v1.5 (and earlier) behaviour.
More...

Inheritance diagram for nutWallFunctionFvPatchScalarField:
Collaboration diagram for nutWallFunctionFvPatchScalarField:

List of all members.


Public Member Functions

 TypeName ("nutWallFunction")
 Runtime type information.
 nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &)
 Construct as copy.
virtual tmp< fvPatchScalarField > clone () const
 Construct and return a clone.
 nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchScalarField > clone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference.
virtual tmp< scalarField > yPlus () 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< scalarField > calcNut () 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.

Detailed Description

Boundary condition for turbulent (kinematic) viscosity when using wall functions
  • replicates OpenFOAM v1.5 (and earlier) behaviour.

Source files

Definition at line 50 of file nutWallFunctionFvPatchScalarField.H.


Constructor & Destructor Documentation

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

Construct from patch, internal field and dictionary.

Definition at line 143 of file nutWallFunctionFvPatchScalarField.C.

Construct by mapping given.

nutWallFunctionFvPatchScalarField onto a new patch

Definition at line 125 of file nutWallFunctionFvPatchScalarField.C.

Construct as copy.

Definition at line 160 of file nutWallFunctionFvPatchScalarField.C.

Construct as copy setting internal field reference.

Definition at line 175 of file nutWallFunctionFvPatchScalarField.C.


Member Function Documentation

void checkType (  )  [protected, virtual]

Check the type of the patch.

Definition at line 36 of file nutWallFunctionFvPatchScalarField.C.

References FatalErrorIn, and Foam::nl.

scalar calcYPlusLam ( const scalar  kappa,
const scalar  E 
) const [protected, virtual]

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

Definition at line 51 of file nutWallFunctionFvPatchScalarField.C.

tmp< scalarField > calcNut (  )  const [protected, virtual]

Calculate the turbulence viscosity.

Reimplemented in nutRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and nutSpalartAllmarasWallFunctionFvPatchScalarField.

Definition at line 67 of file nutWallFunctionFvPatchScalarField.C.

References Foam::log().

Referenced by nutWallFunctionFvPatchScalarField::yPlus().

Here is the call graph for this function:

Here is the caller graph for this function:

void writeLocalEntries ( Ostream &  os  )  const [protected, virtual]

Write local wall function variables.

Definition at line 98 of file nutWallFunctionFvPatchScalarField.C.

References nutWallFunctionFvPatchScalarField::E_, nutWallFunctionFvPatchScalarField::kappa_, and Foam::log().

Here is the call graph for this function:

TypeName ( "nutWallFunction"   ) 

Runtime type information.

virtual tmp<fvPatchScalarField> clone (  )  const [inline, virtual]

tmp< scalarField > yPlus (  )  const [virtual]

void updateCoeffs (  )  [virtual]

Update the coefficients associated with the patch field.

Definition at line 192 of file nutWallFunctionFvPatchScalarField.C.


Member Data Documentation

scalar Cmu_ [protected]

scalar yPlusLam_ [protected]


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd