This boundary condition provides a wall constraint on the turbulent viscosity, i.e. nut
, based on velocity, i.e. U
, using a binomial-function wall-function blending method between the viscous and inertial sublayer predictions of nut
for low- and high-Reynolds number turbulence models.
More...
Public Member Functions | |
TypeName ("nutUBlendedWallFunction") | |
Runtime type information. More... | |
nutUBlendedWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
nutUBlendedWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutUBlendedWallFunctionFvPatchScalarField (const nutUBlendedWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
nutUBlendedWallFunctionFvPatchScalarField (const nutUBlendedWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
nutUBlendedWallFunctionFvPatchScalarField (const nutUBlendedWallFunctionFvPatchScalarField &, 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 tmp< scalarField > | yPlus () const |
Calculate and return the yPlus at the boundary. More... | |
virtual void | write (Ostream &os) const |
Write. More... | |
![]() | |
TypeName ("nutWallFunction") | |
Runtime type information. More... | |
nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
scalar | Cmu () const |
Return Cmu. More... | |
scalar | kappa () const |
Return kappa. More... | |
scalar | E () const |
Return E. More... | |
scalar | yPlusLam () const |
Return the estimated y+ at the two-sublayer intersection. More... | |
scalar | blend (const scalar nutVis, const scalar nutLog, const scalar yPlus) const |
Return the blended nut according to the chosen blending treatment. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
Protected Member Functions | |
virtual tmp< scalarField > | calcNut () const |
Calculate the turbulent viscosity. More... | |
virtual tmp< scalarField > | calcUTau (const scalarField &magGradU) const |
Calculate the friction velocity. More... | |
![]() | |
virtual const volVectorField & | U (const turbulenceModel &turb) const |
virtual void | checkType () |
Check the type of the patch. More... | |
virtual void | writeLocalEntries (Ostream &) const |
Write local wall function variables. More... | |
Protected Attributes | |
scalar | n_ |
Model coefficient; default = 4. More... | |
![]() | |
enum blendingType | blending_ |
Blending treatment (default = blendingType::STEPWISE) More... | |
const scalar | n_ |
word | UName_ |
Name of velocity field. More... | |
scalar | Cmu_ |
Empirical model coefficient. More... | |
scalar | kappa_ |
von Kármán constant More... | |
scalar | E_ |
Wall roughness parameter. More... | |
scalar | yPlusLam_ |
Additional Inherited Members | |
![]() | |
static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &turbModel, const label patchi) |
Return the nut patchField for the given wall patch. More... | |
static scalar | yPlusLam (const scalar kappa, const scalar E) |
Estimate the y+ at the intersection of the two sublayers. More... | |
![]() | |
enum | blendingType { STEPWISE, MAX, BINOMIAL, EXPONENTIAL } |
Options for the blending treatment of viscous and inertial sublayers. More... | |
![]() | |
static const Enum< blendingType > | blendingTypeNames |
Names for blendingType. More... | |
This boundary condition provides a wall constraint on the turbulent viscosity, i.e. nut
, based on velocity, i.e. U
, using a binomial-function wall-function blending method between the viscous and inertial sublayer predictions of nut
for low- and high-Reynolds number turbulence models.
\[ u_\tau = (u_{\tau,v}^n + u_{\tau,l}^n)^{1/n} \]
where
\( u_\tau \) | = | Friction velocity |
\( u_{\tau,v} \) | = | Friction velocity in the viscous sublayer |
\( u_{\tau,l} \) | = | Friction velocity in the inertial sublayer |
Reference:
See the section that describes 'automatic wall treatment': Menter, F., Ferreira, J. C., Esch, T., Konno, B. (2003). The SST turbulence model with improved wall treatment for heat transfer predictions in gas turbines. In Proceedings of the International Gas Turbine Congress. November, 2003. Tokyo, Japan. pp. 2-7.
<patchName> { // Mandatory entries (unmodifiable) type nutUBlendedWallFunction; // Optional entries (unmodifiable) n 4.0; // Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Req'd | Dflt |
---|---|---|---|---|
type | Type name: nutUBlendedWallFunction | word | yes | - |
n | Blending factor | scalar | no | 4.0 |
The inherited entries are elaborated in:
blending
option binomial
or with the deprecated blended
flag set to on
.correctNut()
(called through turbulence->validate
) returns a slightly different value every time it is called. See nutUSpaldingWallFunctionFvPatchScalarField.C.Definition at line 147 of file nutUBlendedWallFunctionFvPatchScalarField.H.
nutUBlendedWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 125 of file nutUBlendedWallFunctionFvPatchScalarField.C.
Referenced by nutUBlendedWallFunctionFvPatchScalarField::clone().
nutUBlendedWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 151 of file nutUBlendedWallFunctionFvPatchScalarField.C.
nutUBlendedWallFunctionFvPatchScalarField | ( | const nutUBlendedWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given nutUBlendedWallFunctionFvPatchScalarField onto a new patch
Definition at line 137 of file nutUBlendedWallFunctionFvPatchScalarField.C.
nutUBlendedWallFunctionFvPatchScalarField | ( | const nutUBlendedWallFunctionFvPatchScalarField & | wfpsf | ) |
Construct as copy.
Definition at line 164 of file nutUBlendedWallFunctionFvPatchScalarField.C.
nutUBlendedWallFunctionFvPatchScalarField | ( | const nutUBlendedWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 175 of file nutUBlendedWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Calculate the turbulent viscosity.
Implements nutWallFunctionFvPatchScalarField.
Definition at line 37 of file nutUBlendedWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), nutUBlendedWallFunctionFvPatchScalarField::calcUTau(), Foam::constant::atomic::group, IOobject::groupName(), Foam::mag(), Foam::max(), turbulenceModel::nu(), Foam::foamVersion::patch, turbulenceModel::propertiesName, Foam::sqr(), and nutWallFunctionFvPatchScalarField::U().
|
protectedvirtual |
Calculate the friction velocity.
Definition at line 64 of file nutUBlendedWallFunctionFvPatchScalarField.C.
References forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::log(), Foam::mag(), magUp, n, turbulenceModel::nu(), Foam::foamVersion::patch, fvPatchField< Type >::patchInternalField(), Foam::pow(), turbulenceModel::propertiesName, tmp< T >::ref(), Foam::sqrt(), U, y, turbulenceModel::y(), yPlus, and Foam::Zero.
Referenced by nutUBlendedWallFunctionFvPatchScalarField::calcNut().
TypeName | ( | "nutUBlendedWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 209 of file nutUBlendedWallFunctionFvPatchScalarField.H.
References nutUBlendedWallFunctionFvPatchScalarField::nutUBlendedWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 226 of file nutUBlendedWallFunctionFvPatchScalarField.H.
References nutUBlendedWallFunctionFvPatchScalarField::nutUBlendedWallFunctionFvPatchScalarField().
|
virtual |
Calculate and return the yPlus at the boundary.
Implements nutWallFunctionFvPatchScalarField.
Definition at line 188 of file nutUBlendedWallFunctionFvPatchScalarField.C.
References Foam::constant::atomic::group, IOobject::groupName(), Foam::mag(), turbulenceModel::nu(), Foam::foamVersion::patch, turbulenceModel::propertiesName, fvPatchField< Type >::snGrad(), U, y, and turbulenceModel::y().
|
virtual |
Write.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 211 of file nutUBlendedWallFunctionFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), and Ostream::writeEntry().
|
protected |
Model coefficient; default = 4.
Definition at line 156 of file nutUBlendedWallFunctionFvPatchScalarField.H.