Boundary condition for turbulent (kinematic) viscosity when using wall functions for rough walls. More...
#include <incompressibleRASModels/nutRoughWallFunctionFvPatchScalarField.H>
Boundary condition for turbulent (kinematic) viscosity when using wall functions for rough walls.
Manipulates the E parameter to account for roughness effects, based on KsPlus.
Definition at line 60 of file nutRoughWallFunctionFvPatchScalarField.H.
Public Member Functions | |
TypeName ("nutRoughWallFunction") | |
Runtime type information. | |
nutRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. | |
nutRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. | |
nutRoughWallFunctionFvPatchScalarField (const nutRoughWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. | |
nutRoughWallFunctionFvPatchScalarField (const nutRoughWallFunctionFvPatchScalarField &) | |
Construct as copy. | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. | |
nutRoughWallFunctionFvPatchScalarField (const nutRoughWallFunctionFvPatchScalarField &, 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. | |
scalarField & | Ks () |
scalarField & | Cs () |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. | |
virtual void | write (Ostream &) const |
Write. | |
![]() | |
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. | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy 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. |
Protected Member Functions | |
virtual scalar | fnRough (const scalar KsPlus, const scalar Cs) const |
Compute the roughness function. | |
virtual tmp< scalarField > | calcNut () const |
Calculate the turbulence viscosity. | |
![]() | |
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 void | writeLocalEntries (Ostream &) const |
Write local wall function variables. |
Protected Attributes | |
scalarField | Ks_ |
Roughness height. | |
scalarField | Cs_ |
Roughness constant. | |
![]() | |
scalar | Cmu_ |
Cmu coefficient. | |
scalar | kappa_ |
Von Karman constant. | |
scalar | E_ |
E coefficient. | |
scalar | yPlusLam_ |
Y+ at the edge of the laminar sublayer. |
nutRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 131 of file nutRoughWallFunctionFvPatchScalarField.C.
Referenced by nutRoughWallFunctionFvPatchScalarField::clone().
nutRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 157 of file nutRoughWallFunctionFvPatchScalarField.C.
nutRoughWallFunctionFvPatchScalarField | ( | const nutRoughWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
nutRoughWallFunctionFvPatchScalarField onto a new patch
Definition at line 143 of file nutRoughWallFunctionFvPatchScalarField.C.
nutRoughWallFunctionFvPatchScalarField | ( | const nutRoughWallFunctionFvPatchScalarField & | rwfpsf | ) |
Construct as copy.
Definition at line 170 of file nutRoughWallFunctionFvPatchScalarField.C.
nutRoughWallFunctionFvPatchScalarField | ( | const nutRoughWallFunctionFvPatchScalarField & | rwfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 181 of file nutRoughWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Compute the roughness function.
Definition at line 44 of file nutRoughWallFunctionFvPatchScalarField.C.
References Foam::log(), Foam::pow(), and Foam::sin().
Referenced by nutRoughWallFunctionFvPatchScalarField::calcNut().
|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 66 of file nutRoughWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, nutRoughWallFunctionFvPatchScalarField::Cs_, e, nutWallFunctionFvPatchScalarField::E_, Foam::endl(), nutRoughWallFunctionFvPatchScalarField::fnRough(), forAll, Foam::Info, k(), nutWallFunctionFvPatchScalarField::kappa_, nutRoughWallFunctionFvPatchScalarField::Ks_, Foam::log(), Foam::max(), Foam::min(), Foam::pow(), RASModel(), Foam::sqrt(), y, nutWallFunctionFvPatchScalarField::yPlus(), and nutWallFunctionFvPatchScalarField::yPlusLam_.
TypeName | ( | "nutRoughWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 125 of file nutRoughWallFunctionFvPatchScalarField.H.
References nutRoughWallFunctionFvPatchScalarField::nutRoughWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 142 of file nutRoughWallFunctionFvPatchScalarField.H.
References nutRoughWallFunctionFvPatchScalarField::nutRoughWallFunctionFvPatchScalarField().
|
inline |
Definition at line 157 of file nutRoughWallFunctionFvPatchScalarField.H.
References nutRoughWallFunctionFvPatchScalarField::Ks_.
|
inline |
Definition at line 162 of file nutRoughWallFunctionFvPatchScalarField.H.
References nutRoughWallFunctionFvPatchScalarField::Cs_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 195 of file nutRoughWallFunctionFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 206 of file nutRoughWallFunctionFvPatchScalarField.C.
References nutRoughWallFunctionFvPatchScalarField::Cs_, nutRoughWallFunctionFvPatchScalarField::Ks_, and nutRoughWallFunctionFvPatchScalarField::rmap().
Referenced by nutRoughWallFunctionFvPatchScalarField::rmap().
|
virtual |
Write.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 221 of file nutRoughWallFunctionFvPatchScalarField.C.
References nutRoughWallFunctionFvPatchScalarField::Cs_, nutRoughWallFunctionFvPatchScalarField::Ks_, Field< Type >::writeEntry(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
|
protected |
Roughness height.
Definition at line 69 of file nutRoughWallFunctionFvPatchScalarField.H.
Referenced by nutRoughWallFunctionFvPatchScalarField::calcNut(), nutRoughWallFunctionFvPatchScalarField::Ks(), nutRoughWallFunctionFvPatchScalarField::rmap(), and nutRoughWallFunctionFvPatchScalarField::write().
|
protected |
Roughness constant.
Definition at line 72 of file nutRoughWallFunctionFvPatchScalarField.H.
Referenced by nutRoughWallFunctionFvPatchScalarField::calcNut(), nutRoughWallFunctionFvPatchScalarField::Cs(), nutRoughWallFunctionFvPatchScalarField::rmap(), and nutRoughWallFunctionFvPatchScalarField::write().