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 &) | |
| 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... | |
| 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 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 | |
| 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 for atmospheric velocity profiles. It is desinged to be used in conjunction with the atmBoundaryLayerInletVelocity boundary condition. The values are calculated using:
where
| = | frictional velocity |
| = | Von Karman's constant |
| = | surface roughness length |
| = | vertical co-ordinate |
| 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 111 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
| nutkAtmRoughWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 91 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::calcNut(), nutkAtmRoughWallFunctionFvPatchScalarField::clone(), and nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField().

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

| 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 103 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField().

| nutkAtmRoughWallFunctionFvPatchScalarField | ( | const nutkAtmRoughWallFunctionFvPatchScalarField & | rwfpsf | ) |
Construct as copy.
Definition at line 130 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField().

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

|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 39 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, Foam::e, Foam::endl(), forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::Info, k, turbulenceModel::k(), nutWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::max(), turbulenceModel::nu(), nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField(), patchi, 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 171 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
References nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField().

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

|
inline |
Definition at line 204 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
References nutkAtmRoughWallFunctionFvPatchScalarField::autoMap(), nutkAtmRoughWallFunctionFvPatchScalarField::rmap(), nutkAtmRoughWallFunctionFvPatchScalarField::write(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0_.

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 154 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References Field< Type >::autoMap(), nutkAtmRoughWallFunctionFvPatchScalarField::rmap(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::nutkAtmRoughWallFunctionFvPatchScalarField(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0().


|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 164 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References Field< Type >::rmap(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::autoMap(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0().


|
virtual |
Write.
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 178 of file nutkAtmRoughWallFunctionFvPatchScalarField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), Field< Type >::writeEntry(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0_.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::z0().


|
protected |
Surface roughness length.
Definition at line 120 of file nutkAtmRoughWallFunctionFvPatchScalarField.H.
Referenced by nutkAtmRoughWallFunctionFvPatchScalarField::autoMap(), nutkAtmRoughWallFunctionFvPatchScalarField::calcNut(), nutkAtmRoughWallFunctionFvPatchScalarField::rmap(), nutkAtmRoughWallFunctionFvPatchScalarField::write(), and nutkAtmRoughWallFunctionFvPatchScalarField::z0().
1.8.11