realizableKE: Added support for fvOptions
This commit is contained in:
parent
5e5e22f5f0
commit
e94f1385e5
@ -24,6 +24,7 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "realizableKE.H"
|
||||
#include "fvOptions.H"
|
||||
#include "bound.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -78,6 +79,7 @@ void realizableKE<BasicTurbulenceModel>::correctNut
|
||||
{
|
||||
this->nut_ = rCmu(gradU, S2, magS)*sqr(k_)/epsilon_;
|
||||
this->nut_.correctBoundaryConditions();
|
||||
fv::options::New(this->mesh_).correct(this->nut_);
|
||||
|
||||
BasicTurbulenceModel::correctNut();
|
||||
}
|
||||
@ -267,6 +269,7 @@ void realizableKE<BasicTurbulenceModel>::correct()
|
||||
const surfaceScalarField& alphaRhoPhi = this->alphaRhoPhi_;
|
||||
const volVectorField& U = this->U_;
|
||||
volScalarField& nut = this->nut_;
|
||||
fv::options& fvOptions(fv::options::New(this->mesh_));
|
||||
|
||||
eddyViscosity<RASModel<BasicTurbulenceModel> >::correct();
|
||||
|
||||
@ -298,13 +301,14 @@ void realizableKE<BasicTurbulenceModel>::correct()
|
||||
epsilon_
|
||||
)
|
||||
+ epsilonSource()
|
||||
+ fvOptions(alpha, rho, epsilon_)
|
||||
);
|
||||
|
||||
epsEqn().relax();
|
||||
|
||||
fvOptions.constrain(epsEqn());
|
||||
epsEqn().boundaryManipulate(epsilon_.boundaryField());
|
||||
|
||||
solve(epsEqn);
|
||||
fvOptions.correct(epsilon_);
|
||||
bound(epsilon_, this->epsilonMin_);
|
||||
|
||||
|
||||
@ -320,10 +324,13 @@ void realizableKE<BasicTurbulenceModel>::correct()
|
||||
- fvm::SuSp(2.0/3.0*alpha*rho*divU, k_)
|
||||
- fvm::Sp(alpha*rho*epsilon_/k_, k_)
|
||||
+ kSource()
|
||||
+ fvOptions(alpha, rho, k_)
|
||||
);
|
||||
|
||||
kEqn().relax();
|
||||
fvOptions.constrain(kEqn());
|
||||
solve(kEqn);
|
||||
fvOptions.correct(k_);
|
||||
bound(k_, this->kMin_);
|
||||
|
||||
correctNut(tgradU(), S2, magS);
|
||||
|
Loading…
Reference in New Issue
Block a user