Loading...
Searching...
No Matches
alphatJayatillekeWallFunctionFvPatchScalarField Class Reference

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

#include <alphatJayatillekeWallFunctionFvPatchScalarField.H>

Inheritance diagram for alphatJayatillekeWallFunctionFvPatchScalarField:
Collaboration diagram for alphatJayatillekeWallFunctionFvPatchScalarField:

Public Member Functions

 TypeName ("alphatJayatillekeWallFunction")
 Runtime type information.
 alphatJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 alphatJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 alphatJayatillekeWallFunctionFvPatchScalarField (const alphatJayatillekeWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given alphatJayatillekeWallFunctionFvPatchScalarField onto a new patch.
 alphatJayatillekeWallFunctionFvPatchScalarField (const alphatJayatillekeWallFunctionFvPatchScalarField &)
 Construct as copy.
 alphatJayatillekeWallFunctionFvPatchScalarField (const alphatJayatillekeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< scalar > > clone () const
 Return a clone.
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, volMesh > &iF) const
 Clone with an internal field reference.
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.
tmp< scalarFieldyPlus (const turbulenceModel &turbModel) const
 Return the patch y+.
scalar yPlusTherm (const scalar P, const scalar Prat) const
 `P' function */ scalar Psmooth(const scalar Prat) const;

Protected Attributes

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

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]

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

Construct from patch and internal field.

Definition at line 131 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References checkType(), E_, kappa_, p, and Prt_.

Referenced by alphatJayatillekeWallFunctionFvPatchScalarField(), alphatJayatillekeWallFunctionFvPatchScalarField(), alphatJayatillekeWallFunctionFvPatchScalarField(), and TypeName().

Here is the call graph for this function:
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 165 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References checkType(), dict, E_, kappa_, p, and Prt_.

Here is the call graph for this function:

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [3/5]

alphatJayatillekeWallFunctionFvPatchScalarField ( const alphatJayatillekeWallFunctionFvPatchScalarField & ptf,
const fvPatch & p,
const DimensionedField< scalar, volMesh > & iF,
const fvPatchFieldMapper & mapper )

Construct by mapping given alphatJayatillekeWallFunctionFvPatchScalarField onto a new patch.

Definition at line 147 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References alphatJayatillekeWallFunctionFvPatchScalarField(), checkType(), E_, kappa_, p, and Prt_.

Here is the call graph for this function:

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [4/5]

alphatJayatillekeWallFunctionFvPatchScalarField ( const alphatJayatillekeWallFunctionFvPatchScalarField & wfpsf)

Construct as copy.

Definition at line 182 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References alphatJayatillekeWallFunctionFvPatchScalarField(), checkType(), E_, kappa_, and Prt_.

Here is the call graph for this function:

◆ alphatJayatillekeWallFunctionFvPatchScalarField() [5/5]

alphatJayatillekeWallFunctionFvPatchScalarField ( const alphatJayatillekeWallFunctionFvPatchScalarField & wfpsf,
const DimensionedField< scalar, volMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 197 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References alphatJayatillekeWallFunctionFvPatchScalarField(), checkType(), E_, kappa_, and Prt_.

Here is the call graph for this function:

Member Function Documentation

◆ checkType()

◆ yPlus()

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

Return the patch y+.

Definition at line 57 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References Foam::isA(), Foam::mag(), TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::nu(), nut, fvPatchField< Type >::snGrad(), Foam::sqrt(), y, and nutWallFunctionFvPatchScalarField::yPlus().

Referenced by 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

`P' function */ scalar Psmooth(const scalar Prat) const;

/*!

Calculate y+ at the edge of the thermal laminar sublayer

Definition at line 97 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References E_, f(), kappa_, Foam::log(), Foam::mag(), maxIters_, and tolerance_.

Referenced by updateCoeffs().

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

◆ TypeName()

TypeName ( "alphatJayatillekeWallFunction" )

Runtime type information.

References alphatJayatillekeWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< scalar > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 236 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Definition at line 244 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 215 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References Foam::dimless, E_, forAll, IOobject::groupName(), kappa_, Foam::log(), Foam::max(), nu, Pr(), turbulenceModel::propertiesName, Prt_, transportProperties(), fvPatchField< Type >::updateCoeffs(), yPlus(), yPlus, and yPlusTherm().

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 282 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.

References E_, kappa_, os(), Prt_, fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

Member Data Documentation

◆ Prt_

◆ kappa_

◆ E_

◆ tolerance_

scalar tolerance_ = 0.01
staticprotected

Definition at line 143 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

Referenced by yPlusTherm().

◆ maxIters_

label maxIters_ = 10
staticprotected

Definition at line 144 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.

Referenced by yPlusTherm().


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