This boundary condition provides a turbulent kinematic viscosity condition when using wall functions for rough walls, based on velocity. The condition manipulates the E parameter to account for roughness effects. More...
Public Member Functions | |
TypeName ("nutURoughWallFunction") | |
Runtime type information. More... | |
nutURoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
nutURoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutURoughWallFunctionFvPatchScalarField (const nutURoughWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
nutURoughWallFunctionFvPatchScalarField (const nutURoughWallFunctionFvPatchScalarField &) | |
Copy constructor. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
nutURoughWallFunctionFvPatchScalarField (const nutURoughWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor 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... | |
const scalarField & | Ks () const |
Return the roughness height. More... | |
scalarField & | Ks () |
Return reference to the roughness height to allow adjustment. More... | |
const scalarField & | Cs () const |
Return the roughness constant scale. More... | |
scalarField & | Cs () |
Return reference to the roughness constant to allow adjustment. More... | |
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 &os) const |
Write. More... | |
Public Member Functions inherited from nutUWallFunctionFvPatchScalarField | |
TypeName ("nutUWallFunction") | |
Runtime type information. More... | |
nutUWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
nutUWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutUWallFunctionFvPatchScalarField (const nutUWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
nutUWallFunctionFvPatchScalarField (const nutUWallFunctionFvPatchScalarField &) | |
Copy constructor. More... | |
nutUWallFunctionFvPatchScalarField (const nutUWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor 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 &) | |
Copy constructor. 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 void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
Protected Member Functions | |
virtual tmp< scalarField > | yPlus (const scalarField &magUp) const |
Calculate yPLus. More... | |
virtual tmp< scalarField > | nut () 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from nutWallFunctionFvPatchScalarField | |
static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &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 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... | |
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions for rough walls, based on velocity. 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 |
Parameter ranges
Example of the boundary condition specification:
<patchName> { type nutURoughWallFunction; Ks uniform 1e-5; Cs uniform 0.5; value uniform 0; }
Definition at line 90 of file nutURoughWallFunctionFvPatchScalarField.H.
nutURoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 223 of file nutURoughWallFunctionFvPatchScalarField.C.
Referenced by nutURoughWallFunctionFvPatchScalarField::clone(), nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField(), and nutURoughWallFunctionFvPatchScalarField::yPlus().
nutURoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 235 of file nutURoughWallFunctionFvPatchScalarField.C.
References nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField().
nutURoughWallFunctionFvPatchScalarField | ( | const nutURoughWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
nutURoughWallFunctionFvPatchScalarField onto a new patch
Definition at line 248 of file nutURoughWallFunctionFvPatchScalarField.C.
References nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField().
Copy constructor.
Definition at line 262 of file nutURoughWallFunctionFvPatchScalarField.C.
References nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField().
nutURoughWallFunctionFvPatchScalarField | ( | const nutURoughWallFunctionFvPatchScalarField & | rwfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 273 of file nutURoughWallFunctionFvPatchScalarField.C.
References nutURoughWallFunctionFvPatchScalarField::autoMap().
|
protectedvirtual |
Calculate yPLus.
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 83 of file nutURoughWallFunctionFvPatchScalarField.C.
References Foam::atan(), Foam::constant::physicoChemical::c1, Foam::constant::physicoChemical::c2, Foam::cos(), Foam::constant::mathematical::e(), nutWallFunctionFvPatchScalarField::E(), nutWallFunctionFvPatchScalarField::E_, forAll, Foam::constant::atomic::group, IOobject::groupName(), nutWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::mag(), Foam::max(), turbulenceModel::nu(), nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField(), patchi, Foam::pow(), turbulenceModel::propertiesName, Foam::Re(), tmp< T >::ref(), Foam::sin(), Foam::sqrt(), y, turbulenceModel::y(), nutUWallFunctionFvPatchScalarField::yPlus(), and nutWallFunctionFvPatchScalarField::yPlusLam_.
|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 39 of file nutURoughWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::mag(), magUp, turbulenceModel::nu(), nutWallFunctionFvPatchScalarField::nutw(), patchi, fvPatchField< Type >::patchInternalField(), turbulenceModel::propertiesName, Foam::Re(), tmp< T >::ref(), Foam::sqr(), turbulenceModel::U(), y, turbulenceModel::y(), and nutUWallFunctionFvPatchScalarField::yPlus().
TypeName | ( | "nutURoughWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 155 of file nutURoughWallFunctionFvPatchScalarField.H.
References nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 172 of file nutURoughWallFunctionFvPatchScalarField.H.
References nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField().
|
inline |
Return the roughness height.
Definition at line 188 of file nutURoughWallFunctionFvPatchScalarField.H.
|
inline |
Return reference to the roughness height to allow adjustment.
Definition at line 194 of file nutURoughWallFunctionFvPatchScalarField.H.
|
inline |
Return the roughness constant scale.
Definition at line 201 of file nutURoughWallFunctionFvPatchScalarField.H.
|
inline |
Return reference to the roughness constant to allow adjustment.
Definition at line 207 of file nutURoughWallFunctionFvPatchScalarField.H.
References nutURoughWallFunctionFvPatchScalarField::autoMap(), nutURoughWallFunctionFvPatchScalarField::rmap(), and nutURoughWallFunctionFvPatchScalarField::write().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 287 of file nutURoughWallFunctionFvPatchScalarField.C.
References nutURoughWallFunctionFvPatchScalarField::rmap().
Referenced by nutURoughWallFunctionFvPatchScalarField::Cs(), and nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 298 of file nutURoughWallFunctionFvPatchScalarField.C.
References Field< Type >::rmap().
Referenced by nutURoughWallFunctionFvPatchScalarField::autoMap(), and nutURoughWallFunctionFvPatchScalarField::Cs().
|
virtual |
Write.
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 313 of file nutURoughWallFunctionFvPatchScalarField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), Foam::writeEntry(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
Referenced by nutURoughWallFunctionFvPatchScalarField::Cs().