This boundary condition provides a kinematic turbulent thermal conductivity for using wall functions, using the Jayatilleke 'P' function. More...
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. 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... | |
virtual void | write (Ostream &) const |
Write. More... | |
Protected Member Functions | |
virtual 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... | |
Protected Attributes | |
scalar | Prt_ |
Turbulent Prandtl number. More... | |
scalar | Cmu_ |
Cmu coefficient. More... | |
scalar | kappa_ |
Von Karman constant. More... | |
scalar | E_ |
E coefficient. More... | |
Static Protected Attributes | |
static scalar | tolerance_ = 0.01 |
static label | maxIters_ = 10 |
This boundary condition provides a kinematic turbulent thermal conductivity for using wall functions, using the Jayatilleke 'P' function.
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:
<patchName> { type alphatJayatillekeWallFunction; }
Definition at line 102 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 106 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::checkType().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField(), alphatJayatillekeWallFunctionFvPatchScalarField::clone(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 142 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField(), and alphatJayatillekeWallFunctionFvPatchScalarField::checkType().
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 123 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField(), and alphatJayatillekeWallFunctionFvPatchScalarField::checkType().
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const alphatJayatillekeWallFunctionFvPatchScalarField & | wfpsf | ) |
Construct as copy.
Definition at line 160 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField(), and alphatJayatillekeWallFunctionFvPatchScalarField::checkType().
alphatJayatillekeWallFunctionFvPatchScalarField | ( | const alphatJayatillekeWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 176 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::checkType().
|
protectedvirtual |
Check the type of the patch.
Definition at line 47 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and alphatJayatillekeWallFunctionFvPatchScalarField::Psmooth().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField().
|
protected |
`P' function
Definition at line 62 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References Foam::exp(), Foam::pow(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::checkType(), and alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().
|
protected |
Calculate y+ at the edge of the thermal laminar sublayer.
Definition at line 71 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField(), alphatJayatillekeWallFunctionFvPatchScalarField::E_, f(), alphatJayatillekeWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::mag(), alphatJayatillekeWallFunctionFvPatchScalarField::maxIters_, and alphatJayatillekeWallFunctionFvPatchScalarField::tolerance_.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::Psmooth(), and alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().
TypeName | ( | "alphatJayatillekeWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 186 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 203 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
References alphatJayatillekeWallFunctionFvPatchScalarField::alphatJayatillekeWallFunctionFvPatchScalarField(), alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 193 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), alphatJayatillekeWallFunctionFvPatchScalarField::Cmu_, Foam::dimless, alphatJayatillekeWallFunctionFvPatchScalarField::E_, forAll, Foam::constant::atomic::group, IOobject::groupName(), k, turbulenceModel::k(), alphatJayatillekeWallFunctionFvPatchScalarField::kappa_, Foam::log(), dictionary::lookup(), Foam::max(), TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::nu(), nu, patchi, Foam::pow(), Pr(), turbulenceModel::propertiesName, alphatJayatillekeWallFunctionFvPatchScalarField::Prt_, alphatJayatillekeWallFunctionFvPatchScalarField::Psmooth(), Foam::sqrt(), fvPatchField< Type >::updateCoeffs(), y, turbulenceModel::y(), yPlus, and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::clone().
|
virtual |
Write.
Definition at line 268 of file alphatJayatillekeWallFunctionFvPatchScalarField.C.
References alphatJayatillekeWallFunctionFvPatchScalarField::Cmu_, alphatJayatillekeWallFunctionFvPatchScalarField::E_, token::END_STATEMENT, alphatJayatillekeWallFunctionFvPatchScalarField::kappa_, Foam::incompressible::makePatchTypeField(), Foam::nl, alphatJayatillekeWallFunctionFvPatchScalarField::Prt_, fvPatchField< Type >::write(), and Ostream::writeKeyword().
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::clone().
|
protected |
Turbulent Prandtl number.
Definition at line 111 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
protected |
Cmu coefficient.
Definition at line 114 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), and alphatJayatillekeWallFunctionFvPatchScalarField::write().
|
protected |
Von Karman constant.
Definition at line 117 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), alphatJayatillekeWallFunctionFvPatchScalarField::write(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
|
protected |
E coefficient.
Definition at line 120 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), alphatJayatillekeWallFunctionFvPatchScalarField::write(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
|
staticprotected |
Definition at line 125 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
|
staticprotected |
Definition at line 126 of file alphatJayatillekeWallFunctionFvPatchScalarField.H.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().