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 > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor 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 Y+ at the edge of the laminar sublayer. More... | |
virtual tmp< scalarField > | yPlus () const =0 |
Calculate and return the yPlus at the boundary. More... | |
virtual void | map (const fvPatchScalarField &, const fieldMapper &) |
Map the given fvPatchField onto this fvPatchField. 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 const nutWallFunctionFvPatchScalarField & | nutw (const momentumTransportModel &turbModel, const label patchi) |
Return the nut patchField for the given wall patch. More... | |
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 > | nut () 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; }
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 99 of file nutWallFunctionFvPatchScalarField.H.
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 68 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType().
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given.
nutWallFunctionFvPatchScalarField onto a new patch
Definition at line 85 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType().
|
delete |
Disallow copy without setting internal field reference.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 104 of file nutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::checkType().
|
protectedvirtual |
Check the type of the patch.
Definition at line 41 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 nutUWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutURoughWallFunctionFvPatchScalarField, nutLowReWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, and nutkAtmRoughWallFunctionFvPatchScalarField.
|
protectedvirtual |
Write local wall function variables.
Definition at line 55 of file nutWallFunctionFvPatchScalarField.C.
References Foam::writeEntry().
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::write(), nutkRoughWallFunctionFvPatchScalarField::write(), nutURoughWallFunctionFvPatchScalarField::write(), nutUSpaldingWallFunctionFvPatchScalarField::write(), and nutUWallFunctionFvPatchScalarField::write().
TypeName | ( | "nutWallFunction" | ) |
Runtime type information.
|
inline |
Return Cmu.
Definition at line 176 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::Cmu_.
Referenced by fWallFunctionFvPatchScalarField::updateCoeffs().
|
inline |
Return kappa.
Definition at line 182 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::kappa_.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::alphat(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
|
inline |
Return E.
Definition at line 188 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::E_.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::alphat(), nutkRoughWallFunctionFvPatchScalarField::nut(), nutURoughWallFunctionFvPatchScalarField::yPlus(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
|
static |
Return the nut patchField for the given wall patch.
Definition at line 123 of file nutWallFunctionFvPatchScalarField.C.
References momentumTransportModel::nut(), and patchi.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::alphat(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutkAtmRoughWallFunctionFvPatchScalarField::nut(), nutkRoughWallFunctionFvPatchScalarField::nut(), nutkWallFunctionFvPatchScalarField::nut(), nutURoughWallFunctionFvPatchScalarField::nut(), nutUWallFunctionFvPatchScalarField::nut(), fWallFunctionFvPatchScalarField::updateCoeffs(), kLowReWallFunctionFvPatchScalarField::updateCoeffs(), and v2WallFunctionFvPatchScalarField::updateCoeffs().
|
static |
Calculate the Y+ at the edge of the laminar sublayer.
Definition at line 137 of file nutWallFunctionFvPatchScalarField.C.
References Foam::constant::electromagnetic::kappa, Foam::log(), and Foam::max().
Referenced by fWallFunctionFvPatchScalarField::updateCoeffs().
Foam::scalar yPlusLam | ( | ) | const |
Return the Y+ at the edge of the laminar sublayer.
Definition at line 169 of file nutWallFunctionFvPatchScalarField.C.
Referenced by nutkRoughWallFunctionFvPatchScalarField::nut().
|
pure virtual |
Calculate and return the yPlus at the boundary.
Implemented in nutUWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutLowReWallFunctionFvPatchScalarField, and nutkWallFunctionFvPatchScalarField.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::alphat().
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Reimplemented in nutURoughWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, and nutkAtmRoughWallFunctionFvPatchScalarField.
Definition at line 175 of file nutWallFunctionFvPatchScalarField.C.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::map(), nutkRoughWallFunctionFvPatchScalarField::map(), and nutURoughWallFunctionFvPatchScalarField::map().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 185 of file nutWallFunctionFvPatchScalarField.C.
References nut, and Foam::operator==().
|
virtual |
Write.
Reimplemented in nutUWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutURoughWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, and nutkAtmRoughWallFunctionFvPatchScalarField.
Definition at line 198 of file nutWallFunctionFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().
|
protected |
Cmu coefficient.
Definition at line 108 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutWallFunctionFvPatchScalarField::Cmu(), nutkAtmRoughWallFunctionFvPatchScalarField::nut(), nutkRoughWallFunctionFvPatchScalarField::nut(), nutkWallFunctionFvPatchScalarField::nut(), and nutkWallFunctionFvPatchScalarField::yPlus().
|
protected |
Von Karman constant.
Definition at line 111 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutWallFunctionFvPatchScalarField::kappa(), nutkAtmRoughWallFunctionFvPatchScalarField::nut(), nutkRoughWallFunctionFvPatchScalarField::nut(), nutkWallFunctionFvPatchScalarField::nut(), nutUWallFunctionFvPatchScalarField::nut(), nutURoughWallFunctionFvPatchScalarField::yPlus(), and nutUWallFunctionFvPatchScalarField::yPlus().
|
protected |
E coefficient.
Definition at line 114 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutWallFunctionFvPatchScalarField::E(), nutkWallFunctionFvPatchScalarField::nut(), nutUWallFunctionFvPatchScalarField::nut(), nutURoughWallFunctionFvPatchScalarField::yPlus(), and nutUWallFunctionFvPatchScalarField::yPlus().
|
protected |
Y+ at the edge of the laminar sublayer.
Definition at line 117 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::nut(), nutUWallFunctionFvPatchScalarField::nut(), nutURoughWallFunctionFvPatchScalarField::yPlus(), and nutUWallFunctionFvPatchScalarField::yPlus().