The class wallFunctionBlenders is a base class that hosts common entries for various derived wall-function boundary conditions to be used in low- and high-Reynolds number applications.
More...
#include <wallFunctionBlenders.H>


Public Member Functions | |
| wallFunctionBlenders () | |
| Default construct with default coefficients. | |
| wallFunctionBlenders (const dictionary &dict, const blenderType blender, const scalar n) | |
| Construct from dictionary and default parameters. | |
| void | writeEntries (Ostream &) const |
| Write wall-function blending data as dictionary entries. | |
Protected Types | |
| enum | blenderType { STEPWISE , MAX , BINOMIAL , EXPONENTIAL , TANH } |
| Options for the blending treatment of viscous and inertial sublayers. More... | |
Protected Attributes | |
| enum blenderType | blender_ |
| Blending treatment. | |
| scalar | n_ |
| Binomial blending exponent being used when blenderType is blenderType::BINOMIAL. | |
Static Protected Attributes | |
| static const Enum< blenderType > | blenderTypeNames |
| Names for blenderType. | |
The class wallFunctionBlenders is a base class that hosts common entries for various derived wall-function boundary conditions to be used in low- and high-Reynolds number applications.
Reference:
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
Tanh blending of the viscous and inertial sublayers (tag:KAS):
Knopp, T., Alrutz, T., & Schwamborn, D. (2006).
A grid and flow adaptive wall-function method for RANS
turbulence modelling.
Journal of Computational Physics, 220(1), 19-40.
DOI:10.1016/j.jcp.2006.05.003
<patchName>
{
// Top-level entries
...
// Optional entries
blending stepwise;
n 4.0;
// Inherited entries
...
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
blending | Viscous/inertial sublayer blending | word | no | stepwise |
n | Binomial blending exponent | scalar | no | 2.0 |
Options for the blending entry:
stepwise | Stepwise switch (discontinuous)
max | Maximum value switch (discontinuous)
binomial | Binomial blending (smooth)
exponential | Exponential blending (smooth)
tanh | Tanh blending (smooth)
wherein predictions of a given quantity (e.g. nut) for viscous and inertial sublayers are blended according to the following expressions:
stepwise (default):
![\[ \phi = \phi_{log} \qquad if \quad y^+ > y^+_{intersection}
\]](form_1046.png)
![\[ \phi = \phi_{vis} \qquad if \quad y^+ <= y^+_{intersection}
\]](form_1047.png)
where
![]() | = | ![]() |
![]() | = | ![]() |
![]() | = | estimated wall-normal height of cell centre in wall units |
![]() | = | estimated ![]() |
max (PH:Eq. 27):
![\[ \nu_t = max({\nu_t}_{vis}, {\nu_t}_{log})
\]](form_1051.png)
binomial (ME:Eqs. 15-16):
![\[ \phi = ((\phi_{vis})^n + (\phi_{log})^n)^{1/n}
\]](form_1052.png)
where
![]() | = | Binomial blending exponent |
exponential (PH:Eq. 32):
![\[ \phi = \phi_{vis} \exp[-\Gamma] + \phi_{log} \exp[-1/\Gamma]
\]](form_1054.png)
where (PH:Eq. 31)
![]() | = | Blending expression |
![]() | = | ![]() |
tanh (KAS:Eqs. 33-34):
![\[ \phi = \eta \phi_{b1} + (1 - \eta)\phi_{b2}
\]](form_1057.png)
where
![]() | = | ![]() |
![]() | = | ![]() |
![]() | = | ![]() |
G predictions for viscous and inertial sublayers are blended in a stepwise manner, and G below 
Blending treatments are enabled for the following wall functions:
Definition at line 249 of file wallFunctionBlenders.H.
|
protected |
Options for the blending treatment of viscous and inertial sublayers.
Definition at line 258 of file wallFunctionBlenders.H.
| wallFunctionBlenders | ( | ) |
Default construct with default coefficients.
Definition at line 44 of file wallFunctionBlenders.C.
References blender_, n_, and STEPWISE.
Referenced by epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField(), epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField(), epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField(), epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField(), epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField(), nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField(), nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField(), nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField(), nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField(), nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField(), omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField(), omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField(), omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField(), omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField(), omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField(), sorptionWallFunctionFvPatchScalarField::sorptionWallFunctionFvPatchScalarField(), sorptionWallFunctionFvPatchScalarField::sorptionWallFunctionFvPatchScalarField(), sorptionWallFunctionFvPatchScalarField::sorptionWallFunctionFvPatchScalarField(), sorptionWallFunctionFvPatchScalarField::sorptionWallFunctionFvPatchScalarField(), and sorptionWallFunctionFvPatchScalarField::sorptionWallFunctionFvPatchScalarField().

| wallFunctionBlenders | ( | const dictionary & | dict, |
| const blenderType | blender, | ||
| const scalar | n ) |
Construct from dictionary and default parameters.
Definition at line 51 of file wallFunctionBlenders.C.
References blender_, blenderTypeNames, dict, n, and n_.
| void writeEntries | ( | Ostream & | os | ) | const |
Write wall-function blending data as dictionary entries.
Definition at line 81 of file wallFunctionBlenders.C.
References BINOMIAL, blender_, blenderTypeNames, n_, and os().
Referenced by epsilonWallFunctionFvPatchScalarField::writeLocalEntries(), nutkWallFunctionFvPatchScalarField::writeLocalEntries(), nutUWallFunctionFvPatchScalarField::writeLocalEntries(), and omegaWallFunctionFvPatchScalarField::writeLocalEntries().


|
staticprotected |
Names for blenderType.
Definition at line 270 of file wallFunctionBlenders.H.
Referenced by wallFunctionBlenders(), and writeEntries().
|
protected |
Blending treatment.
Definition at line 278 of file wallFunctionBlenders.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), epsilonWallFunctionFvPatchScalarField::calculate(), omegaWallFunctionFvPatchScalarField::calculate(), wallFunctionBlenders(), wallFunctionBlenders(), and writeEntries().
|
protected |
Binomial blending exponent being used when blenderType is blenderType::BINOMIAL.
Definition at line 284 of file wallFunctionBlenders.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), epsilonWallFunctionFvPatchScalarField::calculate(), omegaWallFunctionFvPatchScalarField::calculate(), wallFunctionBlenders(), wallFunctionBlenders(), and writeEntries().