This boundary condition provides a wall constraint on the turbulent viscosity, i.e. nut
, when using wall functions for rough walls, based on the turbulent kinetic energy, i.e. k
. The condition manipulates the wall roughness parameter, i.e. E
, to account for roughness effects.
More...
Protected Member Functions | |
virtual scalar | fnRough (const scalar KsPlus, const scalar Cs) const |
virtual tmp< scalarField > | calcNut () const |
![]() | |
virtual const volVectorField & | U (const turbulenceModel &turb) const |
virtual void | checkType () |
virtual void | writeLocalEntries (Ostream &) const |
Protected Attributes | |
scalarField | Ks_ |
scalarField | Cs_ |
![]() | |
enum blendingType | blending_ |
const scalar | n_ |
word | UName_ |
scalar | Cmu_ |
scalar | kappa_ |
scalar | E_ |
scalar | yPlusLam_ |
Additional Inherited Members | |
![]() | |
static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &turbModel, const label patchi) |
static scalar | yPlusLam (const scalar kappa, const scalar E) |
![]() | |
enum | blendingType { STEPWISE, MAX, BINOMIAL, EXPONENTIAL } |
![]() | |
static const Enum< blendingType > | blendingTypeNames |
This boundary condition provides a wall constraint on the turbulent viscosity, i.e. nut
, when using wall functions for rough walls, based on the turbulent kinetic energy, i.e. k
. The condition manipulates the wall roughness parameter, i.e. E
, to account for roughness effects.
<patchName> { // Mandatory entries (unmodifiable) type nutkRoughWallFunction; Ks uniform 0; Cs uniform 0.5; // Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Req'd | Dflt |
---|---|---|---|---|
type | Type name: nutkRoughWallFunction | word | yes | - |
Ks | Sand-grain roughness height | scalarField | yes | - |
Cs | Roughness constant | scalarField | yes | - |
The inherited entries are elaborated in:
Definition at line 108 of file nutkRoughWallFunctionFvPatchScalarField.H.
nutkRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 125 of file nutkRoughWallFunctionFvPatchScalarField.C.
Referenced by nutkRoughWallFunctionFvPatchScalarField::clone().
nutkRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 153 of file nutkRoughWallFunctionFvPatchScalarField.C.
nutkRoughWallFunctionFvPatchScalarField | ( | const nutkRoughWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 138 of file nutkRoughWallFunctionFvPatchScalarField.C.
Definition at line 167 of file nutkRoughWallFunctionFvPatchScalarField.C.
nutkRoughWallFunctionFvPatchScalarField | ( | const nutkRoughWallFunctionFvPatchScalarField & | rwfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 179 of file nutkRoughWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Definition at line 32 of file nutkRoughWallFunctionFvPatchScalarField.C.
References Cs, Foam::log(), Foam::pow(), and Foam::sin().
Referenced by nutkRoughWallFunctionFvPatchScalarField::calcNut().
|
protectedvirtual |
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 55 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, nutkRoughWallFunctionFvPatchScalarField::Cs_, Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, nutWallFunctionFvPatchScalarField::E_, Foam::endl(), nutkRoughWallFunctionFvPatchScalarField::fnRough(), forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::Info, k, turbulenceModel::k(), nutWallFunctionFvPatchScalarField::kappa_, nutkRoughWallFunctionFvPatchScalarField::Ks_, Foam::log(), Foam::max(), Foam::min(), turbulenceModel::nu(), nutWallFunctionFvPatchScalarField::nutw(), Foam::foamVersion::patch, Foam::pow025(), turbulenceModel::propertiesName, tmp::ref(), Foam::sqrt(), y, turbulenceModel::y(), and nutkWallFunctionFvPatchScalarField::yPlus().
TypeName | ( | "nutkRoughWallFunction" | ) |
|
inlinevirtual |
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 173 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().
|
inlinevirtual |
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 190 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().
|
inline |
Definition at line 206 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::Ks_.
|
inline |
Definition at line 212 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::Cs_.
|
virtual |
Definition at line 193 of file nutkRoughWallFunctionFvPatchScalarField.C.
|
virtual |
Definition at line 204 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::Cs_, and nutkRoughWallFunctionFvPatchScalarField::Ks_.
|
virtual |
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 220 of file nutkRoughWallFunctionFvPatchScalarField.C.
References os(), and fvPatchField::write().
|
protected |
Definition at line 117 of file nutkRoughWallFunctionFvPatchScalarField.H.
Referenced by nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::Ks(), and nutkRoughWallFunctionFvPatchScalarField::rmap().
|
protected |
Definition at line 120 of file nutkRoughWallFunctionFvPatchScalarField.H.
Referenced by nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::Cs(), and nutkRoughWallFunctionFvPatchScalarField::rmap().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.