This boundary condition provides a wall constraint on the turbulent viscosity (i.e. nut
) based on the turbulent kinetic energy (i.e. k
) and velocity (i.e. U
) for atmospheric boundary layer modelling.
More...
Protected Member Functions | |
virtual tmp< scalarField > | calcNut () 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 the turbulent kinetic energy (i.e. k
) and velocity (i.e. U
) for atmospheric boundary layer modelling.
The governing equation of the boundary condition:
with
where
![]() | = | wall shear stress |
![]() | = | local friction velocity based on near-ground velocity |
![]() | = | local friction velocity based on near-ground k |
![]() | = | von Kármán constant |
![]() | = | near-ground velocity |
![]() | = | vertical coordinate |
![]() | = | surface roughness length [m] |
![]() | = | empirical model constant |
![]() | = | turbulent kinetic energy |
References:
Theoretical expressions (tags:RH, SBJM, SM): Richards, P. J., & Hoxey, R. P. (1993). Appropriate boundary conditions for computational wind engineering models using the k-ε turbulence model. In Computational Wind Engineering 1 (pp. 145-153). DOI:10.1016/B978-0-444-81688-7.50018-8 Sørensen, N. N., Bechmann, A., Johansen, J., Myllerup, L., Botha, P., Vinther, S., & Nielsen, B. S. (2007). Identification of severe wind conditions using a Reynolds Averaged Navier-Stokes solver. In Journal of Physics: Conference series (Vol. 75, No. 1, p. 012053). DOI:10.1088/1742-6596/75/1/012053 Sumner, J., & Masson, C. (2012). k−ε simulations of the neutral atmospheric boundary layer: analysis and correction of discretization errors on practical grids. International journal for numerical methods in fluids, 70(6), 724-741. DOI:10.1002/fld.2709
Required fields:
nut | Turbulent viscosity [m2/s] k | Turbulent kinetic energy [m2/s2]
<patchName> { // Mandatory entries (unmodifiable) type atmNutWallFunction; z0Min 0.001; // Mandatory entries (runtime modifiable) z0 uniform 0.001; // Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
type | Type name: nutAtmWallFunction | word | yes | - |
z0Min | Minimum surface roughness length [m] | scalar | yes | - |
z0 | Surface roughness length [m] | PatchFunction1<scalar> | yes | - |
The inherited entries are elaborated in:
Definition at line 207 of file atmNutWallFunctionFvPatchScalarField.H.
atmNutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 110 of file atmNutWallFunctionFvPatchScalarField.C.
Referenced by atmNutWallFunctionFvPatchScalarField::clone().
atmNutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 136 of file atmNutWallFunctionFvPatchScalarField.C.
atmNutWallFunctionFvPatchScalarField | ( | const atmNutWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 122 of file atmNutWallFunctionFvPatchScalarField.C.
atmNutWallFunctionFvPatchScalarField | ( | const atmNutWallFunctionFvPatchScalarField & | rwfpsf | ) |
Definition at line 157 of file atmNutWallFunctionFvPatchScalarField.C.
atmNutWallFunctionFvPatchScalarField | ( | const atmNutWallFunctionFvPatchScalarField & | rwfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 168 of file atmNutWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 36 of file atmNutWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::Cmu_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::constant::atomic::group, IOobject::groupName(), k, nutWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::mag(), magUp, Foam::max(), tmp::New(), nutWallFunctionFvPatchScalarField::nutw(), Foam::foamVersion::patch, fvPatchField::patchInternalField(), Foam::pow025(), turbulenceModel::propertiesName, Foam::sqrt(), tauw, and y.
TypeName | ( | "atmNutWallFunction" | ) |
|
inlinevirtual |
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 270 of file atmNutWallFunctionFvPatchScalarField.H.
References atmNutWallFunctionFvPatchScalarField::atmNutWallFunctionFvPatchScalarField().
|
inlinevirtual |
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 287 of file atmNutWallFunctionFvPatchScalarField.H.
References atmNutWallFunctionFvPatchScalarField::atmNutWallFunctionFvPatchScalarField().
|
virtual |
Definition at line 182 of file atmNutWallFunctionFvPatchScalarField.C.
|
virtual |
Definition at line 192 of file atmNutWallFunctionFvPatchScalarField.C.
|
virtual |
Reimplemented from nutWallFunctionFvPatchScalarField.
Definition at line 206 of file atmNutWallFunctionFvPatchScalarField.C.
References os(), fvPatchField::write(), and nutWallFunctionFvPatchScalarField::writeLocalEntries().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.