Boundary condition for turbulent (kinematic) viscosity when using wall functions
#include <incompressibleRASModels/nutWallFunctionFvPatchScalarField.H>
Boundary condition for turbulent (kinematic) viscosity when using wall functions
Definition at line 55 of file nutWallFunctionFvPatchScalarField.H.
Inheritance diagram for nutWallFunctionFvPatchScalarField:Public Member Functions | |
| TypeName ("nutWallFunction") | |
| Runtime type information.
| |
| nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field.
| |
| nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary.
| |
| nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given.
| |
| nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
| Construct as copy.
| |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone.
| |
| nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, 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 > | calcNut () 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.
| |
| nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 117 of file nutWallFunctionFvPatchScalarField.C.
Referenced by nutWallFunctionFvPatchScalarField::clone().
| nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 151 of file nutWallFunctionFvPatchScalarField.C.
| nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
nutWallFunctionFvPatchScalarField onto a new patch
Definition at line 133 of file nutWallFunctionFvPatchScalarField.C.
| nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf ) |
Construct as copy.
Definition at line 168 of file nutWallFunctionFvPatchScalarField.C.
| nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 183 of file nutWallFunctionFvPatchScalarField.C.
| void checkType | ( | ) | [protected, virtual]
|
Check the type of the patch.
Definition at line 44 of file nutWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and Foam::nl.
| scalar calcYPlusLam | ( | const scalar | kappa, |
| const scalar | E | ||
| ) | const [protected, virtual]
|
Calculate the Y+ at the edge of the laminar sublayer.
Definition at line 59 of file nutWallFunctionFvPatchScalarField.C.
References kappa(), and Foam::log().
| tmp< scalarField > calcNut | ( | ) | const [protected, virtual]
|
Calculate the turbulence viscosity.
Reimplemented in nutLowReWallFunctionFvPatchScalarField, nutRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and nutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 75 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, nutWallFunctionFvPatchScalarField::E_, forAll, k(), nutWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::pow(), RASModel(), Foam::sqrt(), y, nutWallFunctionFvPatchScalarField::yPlus(), and nutWallFunctionFvPatchScalarField::yPlusLam_.
Referenced by nutWallFunctionFvPatchScalarField::updateCoeffs().
| void writeLocalEntries | ( | Ostream & | os ) | const [protected, virtual]
|
Write local wall function variables.
Definition at line 106 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, nutWallFunctionFvPatchScalarField::E_, token::END_STATEMENT, nutWallFunctionFvPatchScalarField::kappa_, Foam::nl, and Ostream::writeKeyword().
Referenced by nutWallFunctionFvPatchScalarField::write(), and nutRoughWallFunctionFvPatchScalarField::write().
| TypeName | ( | "nutWallFunction" | ) |
Runtime type information.
| virtual tmp<fvPatchScalarField> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Reimplemented in nutkWallFunctionFvPatchScalarField, nutLowReWallFunctionFvPatchScalarField, nutRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and nutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 132 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
| virtual tmp<fvPatchScalarField> clone | ( | const DimensionedField< scalar, volMesh > & | iF ) | const [inline, virtual]
|
Construct and return a clone setting internal field reference.
Reimplemented in nutkWallFunctionFvPatchScalarField, nutLowReWallFunctionFvPatchScalarField, nutRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and nutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 149 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
| tmp< scalarField > yPlus | ( | ) | const [virtual]
|
Calculate and return the yPlus at the boundary.
Reimplemented in nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and nutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 208 of file nutWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), nutWallFunctionFvPatchScalarField::Cmu_, k(), Foam::pow(), RASModel(), Foam::sqrt(), and y.
Referenced by nutWallFunctionFvPatchScalarField::calcNut(), and nutRoughWallFunctionFvPatchScalarField::calcNut().
| void updateCoeffs | ( | ) | [virtual]
|
Update the coefficients associated with the patch field.
Definition at line 200 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::calcNut(), and incompressible::operator==.
| void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Reimplemented in nutRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField, nutSpalartAllmarasStandardWallFunctionFvPatchScalarField, and nutSpalartAllmarasWallFunctionFvPatchScalarField.
Definition at line 224 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::writeLocalEntries().
scalar Cmu_ [protected]
|
Cmu coefficient.
Definition at line 64 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutWallFunctionFvPatchScalarField::calcNut(), nutRoughWallFunctionFvPatchScalarField::calcNut(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), and nutWallFunctionFvPatchScalarField::yPlus().
scalar kappa_ [protected]
|
Von Karman constant.
Definition at line 67 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutWallFunctionFvPatchScalarField::calcNut(), nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcNut(), nutRoughWallFunctionFvPatchScalarField::calcNut(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
scalar E_ [protected]
|
E coefficient.
Definition at line 70 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutWallFunctionFvPatchScalarField::calcNut(), nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcNut(), nutRoughWallFunctionFvPatchScalarField::calcNut(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
scalar yPlusLam_ [protected]
|
Y+ at the edge of the laminar sublayer.
Definition at line 73 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutWallFunctionFvPatchScalarField::calcNut(), nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcNut(), and nutRoughWallFunctionFvPatchScalarField::calcNut().