Skip to content
Snippets Groups Projects
Commit da2c319a authored by Henry Weller's avatar Henry Weller
Browse files

turbulenceModels/LES/DeardorffDiffStress: Added support for fvOptions

parent 154893db
Branches
Tags
No related merge requests found
......@@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "DeardorffDiffStress.H"
#include "fvOptions.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -39,6 +40,7 @@ void DeardorffDiffStress<BasicTurbulenceModel>::correctNut()
{
this->nut_ = Ck_*sqrt(this->k())*this->delta();
this->nut_.correctBoundaryConditions();
fv::options::New(this->mesh_).correct(this->nut_);
BasicTurbulenceModel::correctNut();
}
......@@ -174,6 +176,7 @@ void DeardorffDiffStress<BasicTurbulenceModel>::correct()
const surfaceScalarField& alphaRhoPhi = this->alphaRhoPhi_;
const volVectorField& U = this->U_;
volSymmTensorField& R = this->R_;
fv::options& fvOptions(fv::options::New(this->mesh_));
ReynoldsStress<LESModel<BasicTurbulenceModel> >::correct();
......@@ -196,12 +199,15 @@ void DeardorffDiffStress<BasicTurbulenceModel>::correct()
alpha*rho*P
+ (4.0/5.0)*alpha*rho*k*D
- ((2.0/3.0)*(1.0 - Cm_/this->Ce_)*I)*(alpha*rho*this->epsilon())
+ fvOptions(alpha, rho, R)
);
REqn().relax();
fvOptions.constrain(REqn());
REqn().solve();
fvOptions.correct(R);
this->boundNormalStress(R);
correctNut();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment