A one-equation (turbulent kinetic energy k) turbulence closure model for incompressible and compressible geophysical applications.
More...
#include <kL.H>


Public Types | |
| typedef BasicTurbulenceModel::alphaField | alphaField |
| typedef BasicTurbulenceModel::rhoField | rhoField |
| typedef BasicTurbulenceModel::transportModel | transportModel |
| Public Types inherited from eddyViscosity< RASModel< BasicTurbulenceModel > > | |
| typedef BasicTurbulenceModel::alphaField | alphaField |
| typedef BasicTurbulenceModel::rhoField | rhoField |
| typedef BasicTurbulenceModel::transportModel | transportModel |
| Public Types inherited from linearViscousStress< BasicTurbulenceModel > | |
| typedef BasicTurbulenceModel::alphaField | alphaField |
| typedef BasicTurbulenceModel::rhoField | rhoField |
| typedef BasicTurbulenceModel::transportModel | transportModel |
Public Member Functions | |
| TypeName ("kL") | |
| Runtime type information. | |
| kL (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName) | |
| Construct from components. | |
| virtual | ~kL ()=default |
| Destructor. | |
| virtual bool | read () |
| Re-read model coefficients if they have changed. | |
| tmp< volScalarField > | DkEff () const |
| Return the effective diffusivity for k. | |
| virtual tmp< volScalarField > | k () const |
| Return the turbulent kinetic energy field. | |
| virtual void | correct () |
| Solve the turbulence equations and correct the turbulence viscosity. | |
| Public Member Functions inherited from eddyViscosity< RASModel< BasicTurbulenceModel > > | |
| eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | |
| Construct from components. | |
| virtual | ~eddyViscosity ()=default |
| Destructor. | |
| virtual tmp< volScalarField > | nut () const |
| Return the turbulence viscosity. | |
| virtual tmp< volSymmTensorField > | R () const |
| Return the Reynolds stress tensor. | |
| virtual void | validate () |
| Validate the turbulence fields after construction. | |
| Public Member Functions inherited from linearViscousStress< BasicTurbulenceModel > | |
| linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | |
| Construct from components. | |
| virtual | ~linearViscousStress ()=default |
| Destructor. | |
| virtual tmp< volSymmTensorField > | devRhoReff () const |
| Return the effective stress tensor. | |
| virtual tmp< volSymmTensorField > | devRhoReff (const volVectorField &U) const |
| Return the effective stress tensor based on a given velocity field. | |
| virtual tmp< fvVectorMatrix > | divDevRhoReff (volVectorField &U) const |
| Return the source term for the momentum equation. | |
| virtual tmp< fvVectorMatrix > | divDevRhoReff (const volScalarField &rho, volVectorField &U) const |
| Return the source term for the momentum equation. | |
Protected Member Functions | |
| virtual void | correctNut () |
| Correct the turbulence viscosity. | |
| virtual tmp< fvScalarMatrix > | kSource () const |
| Add explicit source for turbulent kinetic energy. | |
Protected Attributes | |
| dimensionedScalar | kappa_ |
| von Karman constant | |
| dimensionedScalar | sigmak_ |
| Empirical model coefficient. | |
| dimensionedScalar | beta_ |
| Thermal expansion coefficient [1/K]. | |
| dimensionedScalar | Cmu0_ |
| Empirical model coefficient. | |
| dimensionedScalar | Lmax_ |
| Maximum mixing-length scalar [m]. | |
| dimensionedScalar | CbStable_ |
| Stable stratification constant. | |
| dimensionedScalar | CbUnstable_ |
| Unstable stratification constant. | |
| volScalarField | k_ |
| Turbulent kinetic energy [m2/s2]. | |
| volScalarField | L_ |
| Characteristic length scale [m]. | |
| volScalarField | Rt_ |
| Turbulent Richardson number [-]. | |
| const uniformDimensionedVectorField & | g_ |
| Gravitational acceleration [m2/s2]. | |
| const volScalarField & | y_ |
| Wall distance. | |
| Protected Attributes inherited from eddyViscosity< RASModel< BasicTurbulenceModel > > | |
| volScalarField | nut_ |
A one-equation (turbulent kinetic energy k) turbulence closure model for incompressible and compressible geophysical applications.
Turbulent kinetic energy (k) is computed with a transport equation and the turbulent length scale (L) is computed with an algebraic expression which depends on the local stratification.
References:
Standard model (tag:A):
Axell, L. B., & Liungman, O. (2001).
A one-equation turbulence model for geophysical applications:
comparison with data and the k−ε model.
Environmental Fluid Mechanics, 1(1), 71-106.
DOI:10.1023/A:1011560202388
Canopy-related models (tag:W):
Wilson, J. D., & Flesch, T. K. (1999).
Wind and remnant tree sway in forest cutblocks.
III. A windflow model to diagnose spatial variation.
Agricultural and Forest Meteorology, 93(4), 259-282.
DOI:10.1016/S0168-1923(98)00121-X
constant/turbulenceProperties: RAS
{
// Mandatory entries
RASModel kL;
// Optional entries
kLCoeffs
{
kappa <scalar>;
sigmak <scalar>;
beta <scalar>;
Cmu0 <scalar>;
Lmax <scalar>;
CbStable <scalar>;
CbUnstable <scalar>;
}
// Inherited entries
...
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
RASModel | Type name: kL | word | yes | - |
kappa | von Karman constant | scalar | no | 0.41 |
sigmak | Empirical model coefficient | scalar | no | 1.0 |
beta | Thermal expansion coefficient [1/K] | scalar | no | 3.3e-3 |
Cmu0 | Empirical model coefficient | scalar | no | 0.556 |
Lmax | Maximum mixing-length scale [m] | scalar | no | GREAT |
CbStable | Stable stratification constant | scalar | no | 0.25 |
CbUnstable | Unstable stratification constant | scalar | no | 0.35 |
The inherited entries are elaborated in:
Input fields (mandatory)
| k | : | Turbulent kinetic energy [m2/s2] |
| T | : | Potential temperature [K] |
Input fields (optional)
| canopyHeight | : | Canopy height [m] |
| Cd | : | Plant canopy drag coefficient [-] |
| LAD | : | Leaf area density [1/m] |
| Rt | : | Turbulent Richardson number [-] |
| L | : | Characteristic length scale [m] |
readFields function object.| typedef BasicTurbulenceModel::alphaField alphaField |
| typedef BasicTurbulenceModel::rhoField rhoField |
| typedef BasicTurbulenceModel::transportModel transportModel |
| kL | ( | const alphaField & | alpha, |
| const rhoField & | rho, | ||
| const volVectorField & | U, | ||
| const surfaceScalarField & | alphaRhoPhi, | ||
| const surfaceScalarField & | phi, | ||
| const transportModel & | transport, | ||
| const word & | propertiesName = turbulenceModel::propertiesName, | ||
| const word & | type = typeName ) |
Construct from components.
Definition at line 229 of file kL.C.
References alpha, beta_, Foam::bound(), CbStable_, CbUnstable_, Cmu0_, Foam::dimLength, Foam::dimless, Foam::dimTemperature, eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), g_, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, k_, kappa_, L_, Lmax_, Foam::New(), phi, rho, Rt_, sigmak_, timeName, U, y, y_, and Foam::Zero.

|
virtualdefault |
Destructor.
|
protectedvirtual |
Correct the turbulence viscosity.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 205 of file kL.C.
References optionList::correct(), k_, L_, options::New(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut_, and Foam::sqrt().
Referenced by correct().


|
protectedvirtual |
Add explicit source for turbulent kinetic energy.
Definition at line 216 of file kL.C.
References Foam::dimTime, Foam::dimVolume, k_, and tmp< T >::New().
Referenced by correct().


| TypeName | ( | "kL< BasicTurbulenceModel >" | ) |
Runtime type information.
|
virtual |
Re-read model coefficients if they have changed.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 372 of file kL.C.
References beta_, CbStable_, CbUnstable_, Cmu0_, eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), kappa_, Lmax_, read(), and sigmak_.
Referenced by read().


|
inline |
|
inlinevirtual |
Return the turbulent kinetic energy field.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
|
virtual |
Solve the turbulence equations and correct the turbulence viscosity.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 392 of file kL.C.
References Foam::fvc::absolute(), alpha, beta_, Foam::bound(), tmp< T >::clear(), correct(), correctNut(), tmp< T >::cref(), Foam::fvm::ddt(), Foam::devSymm(), Foam::fvc::div(), Foam::fvm::div(), divU, DkEff(), eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), epsilon, fvOptions, g_, Foam::fvc::grad(), k_, kSource(), Foam::fvm::laplacian(), Foam::magSqr(), options::New(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut_, phi, tmp< T >::ref(), rho, Rt_, solve(), Foam::sqr(), Foam::fvm::SuSp(), Foam::T(), and U.

|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Characteristic length scale [m].
Definition at line 333 of file kL.H.
Referenced by correctNut(), and kL().
|
protected |
|
protected |
|
protected |