This boundary condition provides a wall constraint on the turbulent viscosity (i.e. nut
) based on velocity (i.e. U
) for atmospheric boundary layer modelling. It is designed to be used in conjunction with the atmBoundaryLayerInletVelocity
boundary condition.
More...
Protected Member Functions | |
virtual tmp< scalarField > | calcNut () const |
![]() | |
virtual tmp< scalarField > | calcYPlus (const scalarField &magUp) const |
![]() | |
virtual const volVectorField & | U (const turbulenceModel &turb) const |
virtual void | checkType () |
virtual void | writeLocalEntries (Ostream &) const |
Additional Inherited Members | |
![]() | |
static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &turbModel, const label patchi) |
static scalar | yPlusLam (const scalar kappa, const scalar E) |
![]() | |
enum | blendingType { STEPWISE, MAX, BINOMIAL, EXPONENTIAL } |
![]() | |
enum blendingType | blending_ |
const scalar | n_ |
word | UName_ |
scalar | Cmu_ |
scalar | kappa_ |
scalar | E_ |
scalar | yPlusLam_ |
![]() | |
static const Enum< blendingType > | blendingTypeNames |
This boundary condition provides a wall constraint on the turbulent viscosity (i.e. nut
) based on velocity (i.e. U
) for atmospheric boundary layer modelling. It is designed to be used in conjunction with the atmBoundaryLayerInletVelocity
boundary condition.
The governing equation of the boundary condition:
where
![]() | = | Friction velocity |
![]() | = | von Kármán constant |
![]() | = | Surface roughness length [m] |
![]() | = | Ground-normal coordinate |
Required fields:
nut | Turbulent viscosity [m2/s] U | Velocity [m/s]
<patchName> { // Mandatory entries (unmodifiable) type atmNutUWallFunction; // Mandatory entries (runtime modifiable) z0 uniform 0.001; // Optional entries (unmodifiable) boundNut true; // Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
type | Type name: atmNutUWallFunction | word | yes | - |
z0 | Surface roughness length [m] | PatchFunction1<scalar> | yes | - |
boundNut | Flag: zero-bound nut near wall | bool | no | true |
The inherited entries are elaborated in:
Definition at line 149 of file atmNutUWallFunctionFvPatchScalarField.H.
atmNutUWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 97 of file atmNutUWallFunctionFvPatchScalarField.C.
Referenced by atmNutUWallFunctionFvPatchScalarField::clone().
atmNutUWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 123 of file atmNutUWallFunctionFvPatchScalarField.C.
atmNutUWallFunctionFvPatchScalarField | ( | const atmNutUWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 109 of file atmNutUWallFunctionFvPatchScalarField.C.
atmNutUWallFunctionFvPatchScalarField | ( | const atmNutUWallFunctionFvPatchScalarField & | rwfpsf | ) |
Definition at line 136 of file atmNutUWallFunctionFvPatchScalarField.C.
atmNutUWallFunctionFvPatchScalarField | ( | const atmNutUWallFunctionFvPatchScalarField & | rwfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 147 of file atmNutUWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 35 of file atmNutUWallFunctionFvPatchScalarField.C.
References GeometricField::boundaryField(), Foam::constant::electromagnetic::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::constant::atomic::group, IOobject::groupName(), nutWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::mag(), Foam::max(), tmp::New(), nutWallFunctionFvPatchScalarField::nutw(), Foam::foamVersion::patch, fvPatchField::patchInternalField(), turbulenceModel::propertiesName, Foam::sqr(), nutWallFunctionFvPatchScalarField::U(), and y.
TypeName | ( | "atmNutUWallFunction" | ) |
|
inlinevirtual |
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 212 of file atmNutUWallFunctionFvPatchScalarField.H.
References atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField().
|
inlinevirtual |
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 229 of file atmNutUWallFunctionFvPatchScalarField.H.
References atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField().
|
virtual |
Definition at line 161 of file atmNutUWallFunctionFvPatchScalarField.C.
|
virtual |
Definition at line 171 of file atmNutUWallFunctionFvPatchScalarField.C.
|
virtual |
Reimplemented from nutUWallFunctionFvPatchScalarField.
Definition at line 185 of file atmNutUWallFunctionFvPatchScalarField.C.
References os(), fvPatchField::write(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.