Loading...
Searching...
No Matches
SpaldingsLaw Class Reference

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

#include <SpaldingsLaw.H>

Inheritance diagram for SpaldingsLaw:
Collaboration diagram for SpaldingsLaw:

Public Member Functions

 TypeName ("SpaldingsLaw")
 Run-time type information.
 SpaldingsLaw (const dictionary &dict, const polyMesh &mesh)
virtual ~SpaldingsLaw ()=default
 Destructor.
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.
Public Member Functions inherited from tabulatedWallFunction
 TypeName ("tabulatedWallFunction")
 Run-time type information.
 declareRunTimeSelectionTable (autoPtr, tabulatedWallFunction, dictionary,(const dictionary &dict, const polyMesh &mesh),(dict, mesh))
 Declare runtime constructor selection table.
 tabulatedWallFunction (const dictionary &dict, const polyMesh &mesh, const word &name)
 Constructor.
virtual ~tabulatedWallFunction ()
 Destructor.
const wordinvertedTableName () const
 Return the inverted table name.
const uniformInterpolationTable< scalar > & invertedTable () const
 Return the inverted table.
virtual void write ()
 Write.

Protected Member Functions

virtual void invertFunction ()
 Invert the function.

Protected Attributes

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

Static Protected Attributes

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

Additional Inherited Members

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

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 66 of file SpaldingsLaw.H.

Constructor & Destructor Documentation

◆ SpaldingsLaw()

SpaldingsLaw ( const dictionary & dict,
const polyMesh & mesh )

References dict, and mesh.

◆ ~SpaldingsLaw()

virtual ~SpaldingsLaw ( )
virtualdefault

Destructor.

Member Function Documentation

◆ invertFunction()

virtual void invertFunction ( )
protectedvirtual

Invert the function.

◆ TypeName()

TypeName ( "SpaldingsLaw" )

Run-time type information.

◆ yPlus()

virtual scalar yPlus ( const scalar uPlus) const
virtual

Return y+ as a function of u+.

References uPlus.

◆ Re()

virtual scalar Re ( const scalar uPlus) const
virtual

Return Reynolds number as a function of u+.

References uPlus.

◆ writeData()

virtual void writeData ( Ostream & os) const
virtual

Write to Ostream.

References os().

Here is the call graph for this function:

Member Data Documentation

◆ kappa_

scalar kappa_
protected

Von Karman constant.

Definition at line 77 of file SpaldingsLaw.H.

◆ E_

scalar E_
protected

Law-of-the-wall E coefficient.

Definition at line 82 of file SpaldingsLaw.H.

◆ maxIters_

const label maxIters_
staticprotected

Maximum number of iterations.

Definition at line 90 of file SpaldingsLaw.H.

◆ tolerance_

const scalar tolerance_
staticprotected

Tolerance.

Definition at line 95 of file SpaldingsLaw.H.


The documentation for this class was generated from the following file:
  • applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/SpaldingsLaw/SpaldingsLaw.H