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

nutRoughWallFunctionFvPatchScalarField Class Reference

Boundary condition for turbulent (kinematic) viscosity when using wall functions for rough walls. More...

Inheritance diagram for nutRoughWallFunctionFvPatchScalarField:
Collaboration diagram for nutRoughWallFunctionFvPatchScalarField:

List of all members.


Public Member Functions

 TypeName ("nutRoughWallFunction")
 Runtime type information.
 nutRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 nutRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 nutRoughWallFunctionFvPatchScalarField (const nutRoughWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 nutRoughWallFunctionFvPatchScalarField (const nutRoughWallFunctionFvPatchScalarField &)
 Construct as copy.
virtual tmp< fvPatchScalarField > clone () const
 Construct and return a clone.
 nutRoughWallFunctionFvPatchScalarField (const nutRoughWallFunctionFvPatchScalarField &, 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 void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField.
virtual void write (Ostream &) const
 Write.

Protected Member Functions

virtual scalar fnRough (const scalar KsPlus, const scalar Cs) const
 Compute the roughness function.
virtual tmp< scalarField > calcNut () const
 Calculate the turbulence viscosity.

Protected Attributes

scalarField Ks_
 Roughness height.
scalarField Cs_
 Roughness constant.

Detailed Description

Boundary condition for turbulent (kinematic) viscosity when using wall functions for rough walls.

Manipulates the E parameter to account for roughness effects, based on KsPlus.

  • roughness height = sand-grain roughness (0 for smooth walls)
  • roughness constant = 0.5-1.0 (0.5 default)

Source files

Definition at line 55 of file nutRoughWallFunctionFvPatchScalarField.H.


Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 123 of file nutRoughWallFunctionFvPatchScalarField.C.

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

Construct from patch, internal field and dictionary.

Definition at line 149 of file nutRoughWallFunctionFvPatchScalarField.C.

Construct by mapping given.

nutRoughWallFunctionFvPatchScalarField onto a new patch

Definition at line 135 of file nutRoughWallFunctionFvPatchScalarField.C.

Construct as copy setting internal field reference.

Definition at line 173 of file nutRoughWallFunctionFvPatchScalarField.C.


Member Function Documentation

scalar fnRough ( const scalar  KsPlus,
const scalar  Cs 
) const [protected, virtual]

Compute the roughness function.

Definition at line 36 of file nutRoughWallFunctionFvPatchScalarField.C.

References Foam::log(), Foam::pow(), and Foam::sin().

Here is the call graph for this function:

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

Calculate the turbulence viscosity.

Reimplemented from nutWallFunctionFvPatchScalarField.

Definition at line 58 of file nutRoughWallFunctionFvPatchScalarField.C.

TypeName ( "nutRoughWallFunction"   ) 

Runtime type information.

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

Construct and return a clone.

Reimplemented from nutWallFunctionFvPatchScalarField.

Definition at line 122 of file nutRoughWallFunctionFvPatchScalarField.H.

References nutRoughWallFunctionFvPatchScalarField::clone().

Referenced by nutRoughWallFunctionFvPatchScalarField::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF  )  const [inline, virtual]

Construct and return a clone setting internal field reference.

Reimplemented from nutWallFunctionFvPatchScalarField.

Definition at line 139 of file nutRoughWallFunctionFvPatchScalarField.H.

void autoMap ( const fvPatchFieldMapper &  m  )  [virtual]

Map (and resize as needed) from self given a mapping object.

Definition at line 187 of file nutRoughWallFunctionFvPatchScalarField.C.

void rmap ( const fvPatchScalarField &  ptf,
const labelList &  addr 
) [virtual]

void write ( Ostream &  os  )  const [virtual]


Member Data Documentation


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