The class nutWallFunction
is a base class that parents the derived boundary conditions which provide a wall constraint on various fields, such as turbulent viscosity, i.e. nut
, or turbulent kinetic energy dissipation rate, i.e. epsilon
, for low- and high-Reynolds number turbulence models. The class is not an executable itself, yet a provider for common entries to its derived boundary conditions.
More...
Public Member Functions | |
TypeName ("nutWallFunction") | |
nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
scalar | Cmu () const |
scalar | kappa () const |
scalar | E () const |
scalar | yPlusLam () const |
scalar | blend (const scalar nutVis, const scalar nutLog, const scalar yPlus) const |
virtual tmp< scalarField > | yPlus () const =0 |
virtual void | updateCoeffs () |
virtual void | write (Ostream &) const |
Static Public Member Functions | |
static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &turbModel, const label patchi) |
static scalar | yPlusLam (const scalar kappa, const scalar E) |
Protected Types | |
enum | blendingType { STEPWISE, MAX, BINOMIAL, EXPONENTIAL } |
Protected Member Functions | |
virtual const volVectorField & | U (const turbulenceModel &turb) const |
virtual void | checkType () |
virtual tmp< scalarField > | calcNut () const =0 |
virtual void | writeLocalEntries (Ostream &) const |
Protected Attributes | |
enum blendingType | blending_ |
const scalar | n_ |
word | UName_ |
scalar | Cmu_ |
scalar | kappa_ |
scalar | E_ |
scalar | yPlusLam_ |
Static Protected Attributes | |
static const Enum< blendingType > | blendingTypeNames |
The class nutWallFunction
is a base class that parents the derived boundary conditions which provide a wall constraint on various fields, such as turbulent viscosity, i.e. nut
, or turbulent kinetic energy dissipation rate, i.e. epsilon
, for low- and high-Reynolds number turbulence models. The class is not an executable itself, yet a provider for common entries to its derived boundary conditions.
Default model coefficients (tag:VM): Versteeg, H. K., & Malalasekera, W. (2011). An introduction to computational fluid dynamics: The finite volume method. Harlow: Pearson Education. Subsection "3.5.2 k-epsilon model". Binomial blending of the viscous and inertial sublayers (tag:ME): Menter, F., & Esch, T. (2001). Elements of industrial heat transfer prediction. In Proceedings of the 16th Brazilian Congress of Mechanical Engineering (COBEM), November 2001. vol. 20, p. 117-127. Exponential/Max blending of the viscous and inertial sublayers (tag:PH): Popovac, M., & Hanjalić, K. (2007). Compound wall treatment for RANS computation of complex turbulent flows and heat transfer. Flow, turbulence and combustion, 78(2), 177-202. DOI:10.1007/s10494-006-9067-x
<patchName> { // Mandatory and other optional entries ... // Optional (inherited) entries Cmu 0.09; kappa 0.41; E 9.8; blending stepwise; n 4.0; U U; // Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Req'd | Dflt |
---|---|---|---|---|
Cmu | Empirical model coefficient | scalar | no | 0.09 |
kappa | von Kármán constant | scalar | no | 0.41 |
E | Wall roughness parameter | scalar | no | 9.8 |
blending | Viscous/inertial sublayer blending | word | no | stepwise |
n | Binomial blending exponent | scalar | no | 2.0 |
U | Name of the velocity field | word | no | U |
The inherited entries are elaborated in:
Options for the blending
entry:
stepwise | Stepwise switch (discontinuous) max | Maximum value switch (discontinuous) binomial | Binomial blending (smooth) exponential | Exponential blending (smooth)
wherein nut
predictions for the viscous and inertial sublayers are blended according to the following expressions:
stepwise
(default):
where
![]() | = | ![]() |
![]() | = | ![]() |
![]() | = | estimated wall-normal height of the cell centre in wall units |
![]() | = | estimated intersection of the viscous and inertial sublayers |
max
(PH:Eq. 27):
binomial
(ME:Eqs. 15-16):
where
![]() | = | Binomial blending exponent |
exponential
(PH:Eq. 32):
where (PH:Eq. 31)
![]() | = | Blending expression |
![]() | = | ![]() |
Definition at line 247 of file nutWallFunctionFvPatchScalarField.H.
|
protected |
Enumerator | |
---|---|
STEPWISE | "Stepwise switch (discontinuous)" |
MAX | "Maximum value switch (discontinuous)" |
BINOMIAL | "Binomial blending (smooth)" |
EXPONENTIAL | "Exponential blending (smooth)" |
Definition at line 256 of file nutWallFunctionFvPatchScalarField.H.
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 109 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 149 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 128 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf | ) |
Definition at line 188 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 206 of file nutWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Definition at line 68 of file nutWallFunctionFvPatchScalarField.C.
References word::null, and turb.
Referenced by nutUWallFunctionFvPatchScalarField::calcNut(), nutUTabulatedWallFunctionFvPatchScalarField::calcNut(), nutUBlendedWallFunctionFvPatchScalarField::calcNut(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), and atmNutUWallFunctionFvPatchScalarField::calcNut().
|
protectedvirtual |
Definition at line 53 of file nutWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::foamVersion::patch.
|
protectedpure virtual |
Implemented in atmNutWallFunctionFvPatchScalarField, atmNutkWallFunctionFvPatchScalarField, atmNutUWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutUBlendedWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, nutLowReWallFunctionFvPatchScalarField, and nutkFilmWallFunctionFvPatchScalarField.
|
protectedvirtual |
Reimplemented in nutUSpaldingWallFunctionFvPatchScalarField.
Definition at line 84 of file nutWallFunctionFvPatchScalarField.C.
References word::null, os(), and Ostream::writeEntry().
Referenced by nutkFilmWallFunctionFvPatchScalarField::write(), atmNutUWallFunctionFvPatchScalarField::write(), atmNutkWallFunctionFvPatchScalarField::write(), atmNutWallFunctionFvPatchScalarField::write(), and nutUSpaldingWallFunctionFvPatchScalarField::writeLocalEntries().
TypeName | ( | "nutWallFunction" | ) |
|
inline |
Definition at line 365 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::Cmu_.
Referenced by atmOmegaWallFunctionFvPatchScalarField::calculate(), atmEpsilonWallFunctionFvPatchScalarField::calculate(), epsilonWallFunctionFvPatchScalarField::calculate(), and omegaWallFunctionFvPatchScalarField::calculate().
|
inline |
Definition at line 371 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::kappa_.
Referenced by atmOmegaWallFunctionFvPatchScalarField::calculate(), atmEpsilonWallFunctionFvPatchScalarField::calculate(), epsilonWallFunctionFvPatchScalarField::calculate(), and omegaWallFunctionFvPatchScalarField::calculate().
|
inline |
Definition at line 377 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::E_.
|
static |
Definition at line 228 of file nutWallFunctionFvPatchScalarField.C.
References turbulenceModel::nut().
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), epsilonWallFunctionFvPatchScalarField::calculate(), omegaWallFunctionFvPatchScalarField::calculate(), and kLowReWallFunctionFvPatchScalarField::updateCoeffs().
|
static |
Definition at line 243 of file nutWallFunctionFvPatchScalarField.C.
References Foam::constant::electromagnetic::kappa, Foam::log(), and Foam::max().
Referenced by atmEpsilonWallFunctionFvPatchScalarField::calculate(), epsilonWallFunctionFvPatchScalarField::calculate(), and omegaWallFunctionFvPatchScalarField::calculate().
Foam::scalar yPlusLam | ( | ) | const |
Definition at line 317 of file nutWallFunctionFvPatchScalarField.C.
Foam::scalar blend | ( | const scalar | nutVis, |
const scalar | nutLog, | ||
const scalar | yPlus | ||
) | const |
Definition at line 260 of file nutWallFunctionFvPatchScalarField.C.
References Foam::exp(), Foam::max(), Foam::pow(), Foam::pow4(), and yPlus.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), and nutUWallFunctionFvPatchScalarField::calcNut().
|
pure virtual |
Implemented in nutURoughWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutUBlendedWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, nutLowReWallFunctionFvPatchScalarField, and nutkFilmWallFunctionFvPatchScalarField.
Referenced by yPlus::execute(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlus().
|
virtual |
Definition at line 323 of file nutWallFunctionFvPatchScalarField.C.
References Foam::operator==().
|
virtual |
Reimplemented in nutURoughWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutUBlendedWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, atmNutWallFunctionFvPatchScalarField, atmNutkWallFunctionFvPatchScalarField, atmNutUWallFunctionFvPatchScalarField, and nutkRoughWallFunctionFvPatchScalarField.
Definition at line 337 of file nutWallFunctionFvPatchScalarField.C.
References os(), and fvPatchField::write().
|
staticprotected |
Definition at line 265 of file nutWallFunctionFvPatchScalarField.H.
|
protected |
Definition at line 271 of file nutWallFunctionFvPatchScalarField.H.
|
protected |
Definition at line 275 of file nutWallFunctionFvPatchScalarField.H.
|
protected |
Definition at line 280 of file nutWallFunctionFvPatchScalarField.H.
|
protected |
Definition at line 283 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), and nutWallFunctionFvPatchScalarField::Cmu().
|
protected |
Definition at line 286 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), and nutWallFunctionFvPatchScalarField::kappa().
|
protected |
Definition at line 289 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), and nutWallFunctionFvPatchScalarField::E().
|
protected |
Definition at line 293 of file nutWallFunctionFvPatchScalarField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.