From e8f532f8571a9382716f4114ea040147ab6cda41 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 3 Dec 2015 13:39:55 +0000 Subject: [PATCH] turbulenceModels/LES/kEqn: Added support for fvOptions --- src/TurbulenceModels/turbulenceModels/LES/kEqn/kEqn.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/TurbulenceModels/turbulenceModels/LES/kEqn/kEqn.C b/src/TurbulenceModels/turbulenceModels/LES/kEqn/kEqn.C index ef2b2b8535..4a87768c10 100644 --- a/src/TurbulenceModels/turbulenceModels/LES/kEqn/kEqn.C +++ b/src/TurbulenceModels/turbulenceModels/LES/kEqn/kEqn.C @@ -24,6 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "kEqn.H" +#include "fvOptions.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -39,6 +40,7 @@ void kEqn::correctNut() { this->nut_ = Ck_*sqrt(k_)*this->delta(); this->nut_.correctBoundaryConditions(); + fv::options::New(this->mesh_).correct(this->nut_); BasicTurbulenceModel::correctNut(); } @@ -171,6 +173,7 @@ void kEqn::correct() const surfaceScalarField& alphaRhoPhi = this->alphaRhoPhi_; const volVectorField& U = this->U_; volScalarField& nut = this->nut_; + fv::options& fvOptions(fv::options::New(this->mesh_)); LESeddyViscosity::correct(); @@ -190,10 +193,13 @@ void kEqn::correct() - fvm::SuSp((2.0/3.0)*alpha*rho*divU, k_) - fvm::Sp(this->Ce_*alpha*rho*sqrt(k_)/this->delta(), k_) + kSource() + + fvOptions(alpha, rho, k_) ); kEqn().relax(); + fvOptions.constrain(kEqn()); solve(kEqn); + fvOptions.correct(k_); bound(k_, this->kMin_); correctNut();