This boundary condition provides a turbulent kinematic viscosity condition when using wall functions, based on turbulence kinetic energy. More...
Public Member Functions | |
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 &) | |
Construct by mapping given. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< scalarField > | yPlus () const =0 |
Calculate and return the yPlus at the boundary. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Static Public Member Functions | |
static scalar | yPlusLam (const scalar kappa, const scalar E) |
Calculate the Y+ at the edge of the laminar sublayer. More... | |
Protected Member Functions | |
virtual void | checkType () |
Check the type of the patch. More... | |
virtual tmp< scalarField > | calcNut () const =0 |
Calculate the turbulence viscosity. More... | |
virtual void | writeLocalEntries (Ostream &) const |
Write local wall function variables. More... | |
Protected Attributes | |
scalar | Cmu_ |
Cmu coefficient. More... | |
scalar | kappa_ |
Von Karman constant. More... | |
scalar | E_ |
E coefficient. More... | |
scalar | yPlusLam_ |
Y+ at the edge of the laminar sublayer. More... | |
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions, based on turbulence kinetic energy.
- replicates OpenFOAM v1.5 (and earlier) behaviour
Property | Description | Required | Default value |
---|---|---|---|
Cmu | Cmu coefficient | no | 0.09 |
kappa | Von Karman constant | no | 0.41 |
E | E coefficient | no | 9.8 |
Examples of the boundary condition specification:
<patchName> { type nutWallFunction; value uniform 0.0; }
Reference for the default model coefficients:
H. Versteeg, W. Malalasekera An Introduction to Computational Fluid Dynamics: The Finite Volume Method, subsection "3.5.2 k-epsilon model"
Definition at line 100 of file nutWallFunctionFvPatchScalarField.H.
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 69 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType().
Referenced by nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 103 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType(), and nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
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 85 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType(), and nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf | ) |
Construct as copy.
Definition at line 120 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType(), and nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 135 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType(), and nutWallFunctionFvPatchScalarField::yPlusLam().
|
protectedvirtual |
Check the type of the patch.
Definition at line 44 of file nutWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Referenced by nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
|
protectedpure virtual |
Calculate the turbulence viscosity.
Implemented in nutkAtmRoughWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, and nutLowReWallFunctionFvPatchScalarField.
Referenced by nutWallFunctionFvPatchScalarField::updateCoeffs().
|
protectedvirtual |
Write local wall function variables.
Definition at line 58 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, nutWallFunctionFvPatchScalarField::E_, token::END_STATEMENT, nutWallFunctionFvPatchScalarField::kappa_, Foam::nl, nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), and Ostream::writeKeyword().
Referenced by nutUWallFunctionFvPatchScalarField::write(), nutkFilmWallFunctionFvPatchScalarField::write(), nutUSpaldingWallFunctionFvPatchScalarField::write(), nutWallFunctionFvPatchScalarField::write(), nutkRoughWallFunctionFvPatchScalarField::write(), nutkAtmRoughWallFunctionFvPatchScalarField::write(), and nutURoughWallFunctionFvPatchScalarField::write().
TypeName | ( | "nutWallFunction" | ) |
Runtime type information.
|
static |
Calculate the Y+ at the edge of the laminar sublayer.
Definition at line 153 of file nutWallFunctionFvPatchScalarField.C.
References Foam::constant::electromagnetic::kappa, Foam::log(), and Foam::max().
Referenced by nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField().
|
pure virtual |
Calculate and return the yPlus at the boundary.
Implemented in nutURoughWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, and nutLowReWallFunctionFvPatchScalarField.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 169 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::calcNut(), and Foam::operator==().
|
virtual |
Write.
Reimplemented in nutURoughWallFunctionFvPatchScalarField, nutkAtmRoughWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, and nutUWallFunctionFvPatchScalarField.
Definition at line 182 of file nutWallFunctionFvPatchScalarField.C.
References fvPatchField< Type >::write(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
|
protected |
Cmu coefficient.
Definition at line 109 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkAtmRoughWallFunctionFvPatchScalarField::calcNut(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), and nutkWallFunctionFvPatchScalarField::yPlus().
|
protected |
Von Karman constant.
Definition at line 112 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkAtmRoughWallFunctionFvPatchScalarField::calcNut(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutUWallFunctionFvPatchScalarField::calcYPlus(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
|
protected |
E coefficient.
Definition at line 115 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutUWallFunctionFvPatchScalarField::calcYPlus(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
|
protected |
Y+ at the edge of the laminar sublayer.
Definition at line 118 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), and nutUWallFunctionFvPatchScalarField::calcYPlus().