Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SpaldingsLaw Class Reference

Computes U+ as a function of Reynolds number by inverting Spaldings law. More...

Inheritance diagram for SpaldingsLaw:
Inheritance graph
Collaboration diagram for SpaldingsLaw:
Collaboration graph

Public Member Functions

 TypeName ("SpaldingsLaw")
 Run-time type information. More...
 SpaldingsLaw (const dictionary &dict, const polyMesh &mesh)
virtual ~SpaldingsLaw ()
 Destructor. More...
virtual scalar yPlus (const scalar uPlus) const
 Return y+ as a function of u+. More...
virtual scalar Re (const scalar uPlus) const
 Return Reynolds number as a function of u+. More...
virtual void writeData (Ostream &os) const
 Write to Ostream. More...
- Public Member Functions inherited from tabulatedWallFunction
 TypeName ("tabulatedWallFunction")
 Run-time type information. More...
 declareRunTimeSelectionTable (autoPtr, tabulatedWallFunction, dictionary,( const dictionary &dict, const polyMesh &mesh ),(dict, mesh))
 Declare runtime constructor selection table. More...
 tabulatedWallFunction (const dictionary &dict, const polyMesh &mesh, const word &name)
 Constructor. More...
virtual ~tabulatedWallFunction ()
 Destructor. More...
const wordinvertedTableName () const
 Return the inverted table name. More...
const uniformInterpolationTable< scalar > & invertedTable () const
 Return the inverted table. More...
virtual void write ()
 Write. More...

Protected Member Functions

virtual void invertFunction ()
 Invert the function. More...

Protected Attributes

scalar kappa_
 Von Karman constant. More...
scalar E_
 Law-of-the-wall E coefficient. More...
- Protected Attributes inherited from tabulatedWallFunction
const dictionary dict_
 Main dictionary. More...
const polyMeshmesh_
 Reference to the mesh database. More...
const dictionary coeffDict_
 Coefficients dictionary. More...
word invertedTableName_
 Name of inverted table. More...
uniformInterpolationTable< scalar > invertedTable_
 Inverted table. More...

Static Protected Attributes

static const label maxIters_
 Maximum number of iterations. More...
static const scalar tolerance_
 Tolerance. More...

Additional Inherited Members

- Static Public Member Functions inherited from tabulatedWallFunction
static autoPtr< tabulatedWallFunctionNew (const dictionary &dict, const polyMesh &mesh)
 Selector. More...

Detailed Description

Computes U+ as a function of Reynolds number by inverting Spaldings law.

Example dictionary specification:

tabulatedWallFunction SpaldingsLaw;

Output table info tableName uPlusWallFunctionData; // Output table name log10 yes; // Rey interpreted as log10(Rey) dx 0.2; // Interval log10(Rey) x0 -3; // Minimum log10(Rey) xMax 7; // Maximum log10(Rey)

SpaldingsLawCoeffs { kappa 0.41; // Von Karman constant E 9.8; // Law-of-the-wall E coefficient }

Source files

Definition at line 68 of file SpaldingsLaw.H.

Constructor & Destructor Documentation

SpaldingsLaw ( const dictionary dict,
const polyMesh mesh 
virtual ~SpaldingsLaw ( )


Member Function Documentation

virtual void invertFunction ( )

Invert the function.

TypeName ( "SpaldingsLaw"  )

Run-time type information.

virtual scalar yPlus ( const scalar  uPlus) const

Return y+ as a function of u+.

virtual scalar Re ( const scalar  uPlus) const

Return Reynolds number as a function of u+.

virtual void writeData ( Ostream os) const

Write to Ostream.

Member Data Documentation

scalar kappa_

Von Karman constant.

Definition at line 77 of file SpaldingsLaw.H.

scalar E_

Law-of-the-wall E coefficient.

Definition at line 80 of file SpaldingsLaw.H.

const label maxIters_

Maximum number of iterations.

Definition at line 86 of file SpaldingsLaw.H.

const scalar tolerance_


Definition at line 89 of file SpaldingsLaw.H.

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