This boundary condition provides a turbulent kinematic viscosity for atmospheric velocity profiles. It is desinged to be used in conjunction with the atmBoundaryLayerInletVelocity boundary condition. The values are calculated using: More...
Public Member Functions | |
TypeName ("nutkAtmRoughWallFunction") | |
Runtime type information. More... | |
nutkAtmRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
nutkAtmRoughWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutkAtmRoughWallFunctionFvPatchScalarField (const nutkAtmRoughWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
nutkAtmRoughWallFunctionFvPatchScalarField (const nutkAtmRoughWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
nutkAtmRoughWallFunctionFvPatchScalarField (const nutkAtmRoughWallFunctionFvPatchScalarField &, 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 & | z0 () |
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 &) | |
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 &) | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy 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 viscous sublayer. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
Protected Member Functions | |
virtual tmp< scalarField > | calcNut () const |
Calculate the turbulence viscosity. More... | |
Protected Member Functions inherited from nutWallFunctionFvPatchScalarField | |
virtual const volVectorField & | U (const turbulenceModel &turb) const |
virtual void | checkType () |
Check the type of the patch. More... | |
virtual void | writeLocalEntries (Ostream &) const |
Write local wall function variables. More... | |
Protected Attributes | |
scalarField | z0_ |
Surface roughness length. More... | |
Protected Attributes inherited from nutWallFunctionFvPatchScalarField | |
word | UName_ |
Name of velocity field. More... | |
scalar | Cmu_ |
Cmu coefficient. More... | |
scalar | kappa_ |
Von Karman constant. More... | |
scalar | E_ |
E coefficient. More... | |
scalar | yPlusLam_ |
Estimated y+ value at the edge of the viscous sublayer. 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 viscous sublayer. More... | |
This boundary condition provides a turbulent kinematic viscosity for atmospheric velocity profiles. It is desinged to be used in conjunction with the atmBoundaryLayerInletVelocity boundary condition. The values are calculated using:
\[ U = \frac{U_f}{K} ln \left(\frac{z + z_0}{z_0}\right) \]
where
\( U_f \) | = | frictional velocity |
\( K \) | = | Von Karman's constant |
\( z_0 \) | = | surface roughness length |
\( z \) | = | vertical coordinate |
Property | Description | Required | Default value |
---|---|---|---|
z0 | surface roughness length | yes |
Example of the boundary condition specification:
<patchName> { type nutkAtmRoughWallFunction; z0 uniform 0; }
Definition at line 113 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
nutkAtmRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 93 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::clone().
nutkAtmRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 119 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
nutkAtmRoughWallFunctionFvPatchScalarField | ( | const nutkAtmRoughWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
nutkAtmRoughWallFunctionFvPatchScalarField onto a new patch
Definition at line 105 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
nutkAtmRoughWallFunctionFvPatchScalarField | ( | const nutkAtmRoughWallFunctionFvPatchScalarField & | rwfpsf | ) |
Construct as copy.
Definition at line 132 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
nutkAtmRoughWallFunctionFvPatchScalarField | ( | const nutkAtmRoughWallFunctionFvPatchScalarField & | rwfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 143 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 41 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::Info, k, turbulenceModel::k(), nutWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::max(), turbulenceModel::nu(), nutWallFunctionFvPatchScalarField::nutw(), Foam::foamVersion::patch, Foam::pow025(), turbulenceModel::propertiesName, tmp< T >::ref(), Foam::sqrt(), y, turbulenceModel::y(), nutkWallFunctionFvPatchScalarField::yPlus(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
TypeName | ( | "nutkAtmRoughWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 173 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
References nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 190 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
References nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField().
|
inline |
Definition at line 206 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
References nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 156 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 166 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
|
virtual |
Write.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 180 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References fvPatchField< Type >::write(), Field< Type >::writeEntry(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
|
protected |
Surface roughness length.
Definition at line 122 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::calcNut(), nutkAtmRoughWallFunctionFvPatchScalarField::rmap(), nutkAtmRoughWallFunctionFvPatchScalarField::write(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0().