This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyalphat
) based on the Jayatilleke model.
More...
Public Member Functions | |
TypeName ("compressible::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 an. More... | |
alphatJayatillekeWallFunctionFvPatchScalarField (const alphatJayatillekeWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
alphatJayatillekeWallFunctionFvPatchScalarField (const alphatJayatillekeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (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... | |
void | write (Ostream &) const |
Write. More... | |
Private Member Functions | |
void | checkType () |
Check the type of the patch. 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... | |
Private Attributes | |
scalar | Prt_ |
Turbulent Prandtl number. More... | |
scalar | Cmu_ |
Cmu coefficient. More... | |
scalar | kappa_ |
Von Karman constant. More... | |
scalar | E_ |
E coefficient. More... | |
Static Private Attributes | |
static scalar | maxExp_ = 50.0 |
static scalar | tolerance_ = 0.01 |
static label | maxIters_ = 10 |
This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyalphat
) based on the Jayatilleke model.
Property | Description | Required | Default value |
---|---|---|---|
Prt | turbulent Prandtl number | no | 0.85 |
Cmu | model coefficient | no | 0.09 |
kappa | Von Karman constant | no | 0.41 |
E | model coefficient | no | 9.8 |
Example of the boundary condition specification:
myPatch { type alphatJayatillekeWallFunction; Prt 0.85; kappa 0.41; E 9.8; value uniform 0; // optional value entry }
Definition at line 104 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 105 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::clone().
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 139 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const alphatJayatillekeWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given an.
alphatJayatillekeWallFunctionFvPatchScalarField onto a new patch
Definition at line 122 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const alphatJayatillekeWallFunctionFvPatchScalarField & | awfpsf | ) |
Construct as copy.
Definition at line 157 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const alphatJayatillekeWallFunctionFvPatchScalarField & | awfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 173 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
|
private |
Check the type of the patch.
Definition at line 48 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
|
private |
`P' function
Definition at line 61 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References Foam::exp(), and Foam::pow().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().
|
private |
Calculate y+ at the edge of the thermal laminar sublayer.
Definition at line 70 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References f(), Foam::log(), and Foam::mag().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().
TypeName | ( | "compressible::alphatJayatillekeWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 187 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 204 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 190 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References A(), ThermalDiffusivity< BasicTurbulenceModel >::alpha(), alphaEff, ThermalDiffusivity< BasicTurbulenceModel >::alphaEff(), alphatJayatillekeWallFunctionFvPatchScalarField::Cmu_, dimensionedInternalField(), alphatJayatillekeWallFunctionFvPatchScalarField::E_, Foam::endl(), forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::Info, k, alphatJayatillekeWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::mag(), magUp, Foam::max(), Foam::nl, patchi, fvPatchField::patchInternalField(), Foam::pow025(), Pr(), alphatJayatillekeWallFunctionFvPatchScalarField::Prt_, alphatJayatillekeWallFunctionFvPatchScalarField::Psmooth(), fvPatchField::snGrad(), Foam::sqr(), Foam::sqrt(), fvPatchField< Type >::updateCoeffs(), uTau, y, yPlus, and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 300 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::Cmu_, alphatJayatillekeWallFunctionFvPatchScalarField::E_, token::END_STATEMENT, alphatJayatillekeWallFunctionFvPatchScalarField::kappa_, Foam::nl, alphatJayatillekeWallFunctionFvPatchScalarField::Prt_, fvPatchField::write(), and Ostream::writeKeyword().
|
private |
Turbulent Prandtl number.
Definition at line 111 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
private |
Cmu coefficient.
Definition at line 114 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
private |
Von Karman constant.
Definition at line 117 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
private |
E coefficient.
Definition at line 120 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
staticprivate |
Definition at line 125 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
|
staticprivate |
Definition at line 126 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
|
staticprivate |
Definition at line 127 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.