This boundary condition provides a turbulent kinematic viscosity condition when using wall functions for rough walls, based on turbulence kinetic energy. The condition manipulates the E parameter to account for roughness effects. More...


Public Member Functions | |
| TypeName ("nutkRoughWallFunction") | |
| Runtime type information. More... | |
| nutkRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| nutkRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| nutkRoughWallFunctionFvPatchScalarField (const nutkRoughWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| nutkRoughWallFunctionFvPatchScalarField (const nutkRoughWallFunctionFvPatchScalarField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. More... | |
| nutkRoughWallFunctionFvPatchScalarField (const nutkRoughWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| scalarField & | Ks () |
| scalarField & | Cs () |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. More... | |
| virtual void | rmap (const fvPatchScalarField &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Public Member Functions inherited from nutkWallFunctionFvPatchScalarField | |
| TypeName ("nutkWallFunction") | |
| Runtime type information. More... | |
| nutkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| nutkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| nutkWallFunctionFvPatchScalarField (const nutkWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| nutkWallFunctionFvPatchScalarField (const nutkWallFunctionFvPatchScalarField &) | |
| Construct as copy. More... | |
| nutkWallFunctionFvPatchScalarField (const nutkWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual tmp< scalarField > | yPlus () const |
| Calculate and return the yPlus at the boundary. More... | |
Public Member Functions inherited from nutWallFunctionFvPatchScalarField | |
| 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... | |
| scalar | yPlusLam () const |
| Return the Y+ at the edge of the laminar sublayer. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
Protected Member Functions | |
| virtual scalar | fnRough (const scalar KsPlus, const scalar Cs) const |
| Compute the roughness function. More... | |
| virtual tmp< scalarField > | calcNut () const |
| Calculate the turbulence viscosity. More... | |
Protected Member Functions inherited from nutWallFunctionFvPatchScalarField | |
| virtual void | checkType () |
| Check the type of the patch. More... | |
| virtual void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. More... | |
Protected Attributes | |
| scalarField | Ks_ |
| Roughness height. More... | |
| scalarField | Cs_ |
| Roughness constant. More... | |
Protected Attributes inherited from nutWallFunctionFvPatchScalarField | |
| 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from nutWallFunctionFvPatchScalarField | |
| static scalar | yPlusLam (const scalar kappa, const scalar E) |
| Calculate the Y+ at the edge of the laminar sublayer. More... | |
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions for rough walls, based on turbulence kinetic energy. The condition manipulates the E parameter to account for roughness effects.
| Property | Description | Required | Default value |
|---|---|---|---|
Ks | sand-grain roughness height | yes | |
Cs | roughness constant | yes |
Example of the boundary condition specification:
<patchName>
{
type nutkRoughWallFunction;
Ks uniform 0;
Cs uniform 0.5;
}
Definition at line 93 of file nutkRoughWallFunctionFvPatchScalarField.H.
| nutkRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 131 of file nutkRoughWallFunctionFvPatchScalarField.C.
Referenced by nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::clone(), and nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().

| nutkRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 157 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().

| nutkRoughWallFunctionFvPatchScalarField | ( | const nutkRoughWallFunctionFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
nutkRoughWallFunctionFvPatchScalarField onto a new patch
Definition at line 143 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().

Construct as copy.
Definition at line 170 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().

| nutkRoughWallFunctionFvPatchScalarField | ( | const nutkRoughWallFunctionFvPatchScalarField & | rwfpsf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 181 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::autoMap().

|
protectedvirtual |
Compute the roughness function.
Definition at line 40 of file nutkRoughWallFunctionFvPatchScalarField.C.
References Foam::log(), Foam::pow(), and Foam::sin().
Referenced by nutkRoughWallFunctionFvPatchScalarField::calcNut().


|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 62 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, nutkRoughWallFunctionFvPatchScalarField::Cs_, Foam::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(), nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField(), patchi, Foam::pow025(), turbulenceModel::propertiesName, tmp< T >::ref(), Foam::sqrt(), y, turbulenceModel::y(), and nutkWallFunctionFvPatchScalarField::yPlus().

| TypeName | ( | "nutkRoughWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 158 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 175 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().

|
inline |
Definition at line 191 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::Ks_.
|
inline |
Definition at line 197 of file nutkRoughWallFunctionFvPatchScalarField.H.
References nutkRoughWallFunctionFvPatchScalarField::autoMap(), nutkRoughWallFunctionFvPatchScalarField::Cs_, nutkRoughWallFunctionFvPatchScalarField::rmap(), and nutkRoughWallFunctionFvPatchScalarField::write().

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 195 of file nutkRoughWallFunctionFvPatchScalarField.C.
References Field< Type >::autoMap(), nutkRoughWallFunctionFvPatchScalarField::Cs_, nutkRoughWallFunctionFvPatchScalarField::Ks_, and nutkRoughWallFunctionFvPatchScalarField::rmap().
Referenced by nutkRoughWallFunctionFvPatchScalarField::Cs(), and nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField().


|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 206 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::Cs_, nutkRoughWallFunctionFvPatchScalarField::Ks_, and Field< Type >::rmap().
Referenced by nutkRoughWallFunctionFvPatchScalarField::autoMap(), and nutkRoughWallFunctionFvPatchScalarField::Cs().


|
virtual |
Write.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 221 of file nutkRoughWallFunctionFvPatchScalarField.C.
References nutkRoughWallFunctionFvPatchScalarField::Cs_, nutkRoughWallFunctionFvPatchScalarField::Ks_, Foam::makePatchTypeField(), fvPatchField< Type >::write(), Field< Type >::writeEntry(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
Referenced by nutkRoughWallFunctionFvPatchScalarField::Cs().


|
protected |
Roughness height.
Definition at line 102 of file nutkRoughWallFunctionFvPatchScalarField.H.
Referenced by nutkRoughWallFunctionFvPatchScalarField::autoMap(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::Ks(), nutkRoughWallFunctionFvPatchScalarField::rmap(), and nutkRoughWallFunctionFvPatchScalarField::write().
|
protected |
Roughness constant.
Definition at line 105 of file nutkRoughWallFunctionFvPatchScalarField.H.
Referenced by nutkRoughWallFunctionFvPatchScalarField::autoMap(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::Cs(), nutkRoughWallFunctionFvPatchScalarField::rmap(), and nutkRoughWallFunctionFvPatchScalarField::write().
1.8.13