Boundary condition for turbulent (kinematic) viscosity when using wall functions for rough walls. More...
#include <compressibleRASModels/mutRoughWallFunctionFvPatchScalarField.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 mutRoughWallFunctionFvPatchScalarField.H.
Inheritance diagram for mutRoughWallFunctionFvPatchScalarField:
Collaboration diagram for mutRoughWallFunctionFvPatchScalarField:Public Member Functions | |
| TypeName ("mutRoughWallFunction") | |
| Runtime type information. | |
| mutRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| mutRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| mutRoughWallFunctionFvPatchScalarField (const mutRoughWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| mutRoughWallFunctionFvPatchScalarField (const mutRoughWallFunctionFvPatchScalarField &) | |
| Construct as copy. | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. | |
| mutRoughWallFunctionFvPatchScalarField (const mutRoughWallFunctionFvPatchScalarField &, 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. | |
| 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. | |
Public Member Functions inherited from mutWallFunctionFvPatchScalarField | |
| TypeName ("mutWallFunction") | |
| Runtime type information. | |
| mutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| mutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| mutWallFunctionFvPatchScalarField (const mutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| mutWallFunctionFvPatchScalarField (const mutWallFunctionFvPatchScalarField &) | |
| Construct as copy. | |
| mutWallFunctionFvPatchScalarField (const mutWallFunctionFvPatchScalarField &, 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 > | calcMut () const |
| Calculate the turbulence viscosity. | |
Protected Member Functions inherited from mutWallFunctionFvPatchScalarField | |
| 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. | |
Protected Attributes inherited from mutWallFunctionFvPatchScalarField | |
| scalar | Cmu_ |
| Cmu coefficient. | |
| scalar | kappa_ |
| Von Karman constant. | |
| scalar | E_ |
| E coefficient. | |
| scalar | yPlusLam_ |
| Y+ at the edge of the laminar sublayer. | |
| mutRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 124 of file mutRoughWallFunctionFvPatchScalarField.C.
| mutRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 150 of file mutRoughWallFunctionFvPatchScalarField.C.
| mutRoughWallFunctionFvPatchScalarField | ( | const mutRoughWallFunctionFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
mutRoughWallFunctionFvPatchScalarField onto a new patch
Definition at line 136 of file mutRoughWallFunctionFvPatchScalarField.C.
| mutRoughWallFunctionFvPatchScalarField | ( | const mutRoughWallFunctionFvPatchScalarField & | rwfpsf | ) |
Construct as copy.
Definition at line 163 of file mutRoughWallFunctionFvPatchScalarField.C.
| mutRoughWallFunctionFvPatchScalarField | ( | const mutRoughWallFunctionFvPatchScalarField & | rwfpsf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 174 of file mutRoughWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Compute the roughness function.
Definition at line 45 of file mutRoughWallFunctionFvPatchScalarField.C.
References Foam::log(), Foam::pow(), and Foam::sin().
|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from mutWallFunctionFvPatchScalarField.
Definition at line 67 of file mutRoughWallFunctionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), e, Foam::endl(), forAll, Foam::Info, k(), RASModel::k(), Foam::log(), Foam::max(), turbulenceModel::mu(), Foam::pow(), turbulenceModel::rho(), Foam::sqrt(), y, RASModel::y(), and RASModel::yPlusLam().
| TypeName | ( | "mutRoughWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from mutWallFunctionFvPatchScalarField.
Definition at line 125 of file mutRoughWallFunctionFvPatchScalarField.H.
References mutRoughWallFunctionFvPatchScalarField::clone().
Referenced by mutRoughWallFunctionFvPatchScalarField::clone().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from mutWallFunctionFvPatchScalarField.
Definition at line 142 of file mutRoughWallFunctionFvPatchScalarField.H.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 188 of file mutRoughWallFunctionFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 199 of file mutRoughWallFunctionFvPatchScalarField.C.
References mutRoughWallFunctionFvPatchScalarField::Cs_, mutRoughWallFunctionFvPatchScalarField::Ks_, and mutRoughWallFunctionFvPatchScalarField::rmap().
Referenced by mutRoughWallFunctionFvPatchScalarField::rmap().
|
virtual |
Write.
Reimplemented from mutWallFunctionFvPatchScalarField.
Definition at line 214 of file mutRoughWallFunctionFvPatchScalarField.C.
|
protected |
Roughness height.
Definition at line 69 of file mutRoughWallFunctionFvPatchScalarField.H.
Referenced by mutRoughWallFunctionFvPatchScalarField::rmap().
|
protected |
Roughness constant.
Definition at line 72 of file mutRoughWallFunctionFvPatchScalarField.H.
Referenced by mutRoughWallFunctionFvPatchScalarField::rmap().