Variant of the standard k-epsilon turbulence model with additional source terms to handle the changes in turbulence in porous regions represented by the powerLawLopesdaCosta porosity model. More...
#include <kEpsilonLopesdaCosta.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 ("kEpsilonLopesdaCosta") | |
| Runtime type information. | |
| kEpsilonLopesdaCosta (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 | ~kEpsilonLopesdaCosta ()=default |
| Destructor. | |
| virtual bool | read () |
| Re-read model coefficients if they have changed. | |
| tmp< volScalarField > | DkEff () const |
| Return the effective diffusivity for k. | |
| tmp< volScalarField > | DepsilonEff () const |
| Return the effective diffusivity for epsilon. | |
| virtual tmp< volScalarField > | k () const |
| Return the turbulence kinetic energy. | |
| virtual tmp< volScalarField > | epsilon () const |
| Return the turbulence kinetic energy dissipation rate. | |
| 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 | |
| void | setPorosityCoefficient (volScalarField::Internal &C, const porosityModels::powerLawLopesdaCosta &pm) |
| void | setCdSigma (volScalarField::Internal &C, const porosityModels::powerLawLopesdaCosta &pm) |
| void | setPorosityCoefficients () |
| virtual void | correctNut () |
| virtual tmp< fvScalarMatrix > | kSource (const volScalarField::Internal &magU, const volScalarField::Internal &magU3) const |
| virtual tmp< fvScalarMatrix > | epsilonSource (const volScalarField::Internal &magU, const volScalarField::Internal &magU3) const |
Variant of the standard k-epsilon turbulence model with additional source terms to handle the changes in turbulence in porous regions represented by the powerLawLopesdaCosta porosity model.
Reference:
Costa, J. C. P. L. D. (2007).
Atmospheric flow over forested and non-forested complex terrain.
The default model coefficients are
kEpsilonLopesdaCostaCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
sigmak 1.0;
sigmaEps 1.3;
}
Definition at line 79 of file kEpsilonLopesdaCosta.H.
| typedef BasicTurbulenceModel::alphaField alphaField |
Definition at line 156 of file kEpsilonLopesdaCosta.H.
| typedef BasicTurbulenceModel::rhoField rhoField |
Definition at line 157 of file kEpsilonLopesdaCosta.H.
| typedef BasicTurbulenceModel::transportModel transportModel |
Definition at line 158 of file kEpsilonLopesdaCosta.H.
| kEpsilonLopesdaCosta | ( | 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 172 of file kEpsilonLopesdaCosta.C.
References alpha, betad_, betap_, Foam::bound(), C1_, C2_, C4_, C5_, CdSigma_, Cmu_, Foam::dimLength, Foam::dimless, eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), epsilon_, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, k_, phi, rho, setPorosityCoefficients(), sigmaEps_, sigmak_, timeName, and U.

|
virtualdefault |
Destructor.
|
protected |
Definition at line 37 of file kEpsilonLopesdaCosta.C.
References cells, porosityModel::cellZoneIDs(), porosityModel::dict(), dictionary::found(), and dictionary::get().
Referenced by setPorosityCoefficients().


|
protected |
Definition at line 63 of file kEpsilonLopesdaCosta.C.
References cells, porosityModel::cellZoneIDs(), porosityModel::dict(), forAll, dictionary::found(), dictionary::get(), and powerLawLopesdaCostaZone::Sigma().
Referenced by setPorosityCoefficients().


|
protected |
Definition at line 91 of file kEpsilonLopesdaCosta.C.
References betad_, betap_, C1_, C2_, C4_, C5_, CdSigma_, Cmu_, forAll, fvOptions, Foam::isA(), explicitPorositySource::model(), options::New(), optionList::optionList(), Foam::refCast(), setCdSigma(), setPorosityCoefficient(), sigmaEps_, and sigmak_.
Referenced by kEpsilonLopesdaCosta().


|
protectedvirtual |
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 131 of file kEpsilonLopesdaCosta.C.
References Cmu_, optionList::correct(), epsilon_, k_, options::New(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut_, and Foam::sqr().
Referenced by correct().


|
protectedvirtual |
Definition at line 142 of file kEpsilonLopesdaCosta.C.
References betad_, betap_, CdSigma_, k_, and Foam::fvm::Su().
Referenced by correct().


|
protectedvirtual |
| TypeName | ( | "kEpsilonLopesdaCosta< BasicTurbulenceModel >" | ) |
Runtime type information.
|
virtual |
Re-read model coefficients if they have changed.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 373 of file kEpsilonLopesdaCosta.C.
References eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), and read().
Referenced by read().


|
inline |
Return the effective diffusivity for k.
Definition at line 201 of file kEpsilonLopesdaCosta.H.
Referenced by correct().

|
inline |
Return the effective diffusivity for epsilon.
Definition at line 216 of file kEpsilonLopesdaCosta.H.
Referenced by correct().

|
inlinevirtual |
Return the turbulence kinetic energy.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 231 of file kEpsilonLopesdaCosta.H.
|
inlinevirtual |
Return the turbulence kinetic energy dissipation rate.
Definition at line 239 of file kEpsilonLopesdaCosta.H.
|
virtual |
Solve the turbulence equations and correct the turbulence viscosity.
Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.
Definition at line 385 of file kEpsilonLopesdaCosta.C.
References Foam::fvc::absolute(), alpha, Foam::bound(), C1_, C2_, tmp< T >::clear(), correct(), correctNut(), Foam::fvm::ddt(), DepsilonEff(), Foam::devTwoSymm(), Foam::fvc::div(), Foam::fvm::div(), divU, DkEff(), eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), epsilon_, epsilonSource(), fvOptions, Foam::fvc::grad(), k_, kSource(), Foam::fvm::laplacian(), Foam::mag(), options::New(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut_, phi, Foam::pow3(), tmp< T >::ref(), rho, solve(), Foam::fvm::Sp(), Foam::fvm::SuSp(), and U.

|
protected |
Definition at line 102 of file kEpsilonLopesdaCosta.H.
Referenced by correctNut(), kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 103 of file kEpsilonLopesdaCosta.H.
Referenced by correct(), kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 104 of file kEpsilonLopesdaCosta.H.
Referenced by correct(), kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 105 of file kEpsilonLopesdaCosta.H.
Referenced by kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 106 of file kEpsilonLopesdaCosta.H.
Referenced by kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 110 of file kEpsilonLopesdaCosta.H.
Referenced by epsilonSource(), kEpsilonLopesdaCosta(), kSource(), and setPorosityCoefficients().
|
protected |
Definition at line 111 of file kEpsilonLopesdaCosta.H.
Referenced by epsilonSource(), kEpsilonLopesdaCosta(), kSource(), and setPorosityCoefficients().
|
protected |
Definition at line 112 of file kEpsilonLopesdaCosta.H.
Referenced by epsilonSource(), kEpsilonLopesdaCosta(), kSource(), and setPorosityCoefficients().
|
protected |
Definition at line 113 of file kEpsilonLopesdaCosta.H.
Referenced by epsilonSource(), kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 114 of file kEpsilonLopesdaCosta.H.
Referenced by epsilonSource(), kEpsilonLopesdaCosta(), and setPorosityCoefficients().
|
protected |
Definition at line 119 of file kEpsilonLopesdaCosta.H.
Referenced by correct(), correctNut(), epsilonSource(), kEpsilonLopesdaCosta(), and kSource().
|
protected |
Definition at line 120 of file kEpsilonLopesdaCosta.H.
Referenced by correct(), correctNut(), epsilonSource(), and kEpsilonLopesdaCosta().