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

This boundary condition provides a kinematic turbulent thermal conductivity for using wall functions, using the Jayatilleke 'P' function. More...

Inheritance diagram for alphatJayatillekeWallFunctionFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for alphatJayatillekeWallFunctionFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

virtual void checkType ()
 Check the type of the patch. More...
 
tmp< scalarFieldyPlus (const turbulenceModel &turbModel) const
 Return the patch y+. More...
 
scalar Psmooth (const scalar Prat) const
 `P' function More...
 
scalar yPlusTherm (const scalar P, const scalar Prat) const
 Calculate y+ at the edge of the thermal laminar sublayer. More...
 

Protected Attributes

scalar Prt_
 Turbulent Prandtl number. More...
 
scalar kappa_
 Von Karman constant. More...
 
scalar E_
 E coefficient. More...
 

Static Protected Attributes

static scalar tolerance_ = 0.01
 
static label maxIters_ = 10
 

Detailed Description

This boundary condition provides a kinematic turbulent thermal conductivity for using wall functions, using the Jayatilleke 'P' function.

Usage
Example of the boundary condition specification:
<patchName>
{
    // Mandatory entries
    type            alphatJayatillekeWallFunction;

    // Optional entries
    Prt             <scalar>;
    kappa           <scalar>;
    E               <scalar>;

    // Inherited entries
    ...
}

where the entries mean:

Property Description Type Reqd Deflt
type Type name: alphatJayatillekeWallFunction word yes -
Prt Turbulent Prandtl number scalar no 0.85
kappa von Karman constant scalar no 0.41
E Wall roughness parameter scalar no 9.8

The inherited entries are elaborated in:

Note
  • The units of kinematic turbulent thermal conductivity are [m2/s].
Source files

Definition at line 117 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [1/5]

Construct from patch and internal field.

Definition at line 133 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 167 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [3/5]

Construct by mapping given alphatJayatillekeWallFunctionFvPatchScalarField onto a new patch.

Definition at line 149 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 184 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 199 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

Member Function Documentation

◆ checkType()

void checkType ( )
protectedvirtual

Check the type of the patch.

Definition at line 43 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ yPlus()

tmp< scalarField > yPlus ( const turbulenceModel turbModel) const
protected

◆ Psmooth()

scalar Psmooth ( const scalar  Prat) const
protected

`P' function

Definition at line 89 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References Foam::exp(), and Foam::pow().

Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yPlusTherm()

scalar yPlusTherm ( const scalar  P,
const scalar  Prat 
) const
protected

Calculate y+ at the edge of the thermal laminar sublayer.

Definition at line 98 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References f(), Foam::log(), and Foam::mag().

Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "alphatJayatillekeWallFunction"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 227 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Construct and return a clone setting internal field reference.

Definition at line 248 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Member Data Documentation

◆ Prt_

scalar Prt_
protected

◆ kappa_

scalar kappa_
protected

◆ E_

scalar E_
protected

◆ tolerance_

scalar tolerance_ = 0.01
staticprotected

◆ maxIters_

label maxIters_ = 10
staticprotected

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