Boundary condition for turbulent (kinematic) viscosity when using wall functions. More...
#include <compressibleRASModels/mutWallFunctionFvPatchScalarField.H>
Boundary condition for turbulent (kinematic) viscosity when using wall functions.
- replicates OpenFOAM v1.5 (and earlier) behaviour
Definition at line 55 of file mutWallFunctionFvPatchScalarField.H.
Public Member Functions | |
TypeName ("mutWallFunction") | |
Runtime type information. | |
mutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. | |
mutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. | |
mutWallFunctionFvPatchScalarField (const mutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. | |
mutWallFunctionFvPatchScalarField (const mutWallFunctionFvPatchScalarField &) | |
Construct as copy. | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. | |
mutWallFunctionFvPatchScalarField (const mutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. | |
virtual tmp< scalarField > | yPlus () const |
Calculate and return the yPlus at the boundary. | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. | |
virtual void | write (Ostream &) const |
Write. |
Protected Member Functions | |
virtual void | checkType () |
Check the type of the patch. | |
virtual scalar | calcYPlusLam (const scalar kappa, const scalar E) const |
Calculate the Y+ at the edge of the laminar sublayer. | |
virtual tmp< scalarField > | calcMut () const |
Calculate the turbulence viscosity. | |
virtual void | writeLocalEntries (Ostream &) const |
Write local wall function variables. |
Protected Attributes | |
scalar | Cmu_ |
Cmu coefficient. | |
scalar | kappa_ |
Von Karman constant. | |
scalar | E_ |
E coefficient. | |
scalar | yPlusLam_ |
Y+ at the edge of the laminar sublayer. |
mutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 118 of file mutWallFunctionFvPatchScalarField.C.
mutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 148 of file mutWallFunctionFvPatchScalarField.C.
mutWallFunctionFvPatchScalarField | ( | const mutWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
mutWallFunctionFvPatchScalarField onto a new patch
Definition at line 132 of file mutWallFunctionFvPatchScalarField.C.
mutWallFunctionFvPatchScalarField | ( | const mutWallFunctionFvPatchScalarField & | wfpsf | ) |
Construct as copy.
Definition at line 163 of file mutWallFunctionFvPatchScalarField.C.
mutWallFunctionFvPatchScalarField | ( | const mutWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 176 of file mutWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Check the type of the patch.
Definition at line 44 of file mutWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and Foam::nl.
|
protectedvirtual |
Calculate the Y+ at the edge of the laminar sublayer.
Definition at line 59 of file mutWallFunctionFvPatchScalarField.C.
References kappa(), and Foam::log().
|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented in mutRoughWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, mutLowReWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and mutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 75 of file mutWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, k(), RASModel::k(), Foam::log(), turbulenceModel::mu(), Foam::pow(), turbulenceModel::rho(), Foam::sqrt(), y, and RASModel::y().
|
protectedvirtual |
Write local wall function variables.
Definition at line 107 of file mutWallFunctionFvPatchScalarField.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
TypeName | ( | "mutWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented in mutRoughWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, mutLowReWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and mutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 132 of file mutWallFunctionFvPatchScalarField.H.
References mutWallFunctionFvPatchScalarField::clone().
Referenced by mutWallFunctionFvPatchScalarField::clone().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in mutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, mutRoughWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardWallFunctionFvPatchScalarField, mutLowReWallFunctionFvPatchScalarField, and mutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 149 of file mutWallFunctionFvPatchScalarField.H.
|
virtual |
Calculate and return the yPlus at the boundary.
Reimplemented in mutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and mutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 199 of file mutWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), k(), RASModel::k(), turbulenceModel::mu(), Foam::pow(), turbulenceModel::rho(), Foam::sqrt(), y, and RASModel::y().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 191 of file mutWallFunctionFvPatchScalarField.C.
References Foam::operator==().
|
virtual |
Write.
Reimplemented in mutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, mutRoughWallFunctionFvPatchScalarField, mutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and mutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 216 of file mutWallFunctionFvPatchScalarField.C.
|
protected |
Cmu coefficient.
Definition at line 64 of file mutWallFunctionFvPatchScalarField.H.
|
protected |
Von Karman constant.
Definition at line 67 of file mutWallFunctionFvPatchScalarField.H.
|
protected |
E coefficient.
Definition at line 70 of file mutWallFunctionFvPatchScalarField.H.
|
protected |
Y+ at the edge of the laminar sublayer.
Definition at line 73 of file mutWallFunctionFvPatchScalarField.H.