25 lines
522 B
C
25 lines
522 B
C
|
{
|
||
|
Info << "Solving chemistry" << endl;
|
||
|
|
||
|
chemistry.solve
|
||
|
(
|
||
|
runTime.value() - runTime.deltaT().value(),
|
||
|
runTime.deltaT().value()
|
||
|
);
|
||
|
|
||
|
// turbulent time scale
|
||
|
if (turbulentReaction)
|
||
|
{
|
||
|
volScalarField tk =
|
||
|
Cmix*sqrt(turbulence->muEff()/rho/turbulence->epsilon());
|
||
|
volScalarField tc = chemistry.tc();
|
||
|
|
||
|
// Chalmers PaSR model
|
||
|
kappa = (runTime.deltaT() + tc)/(runTime.deltaT() + tc + tk);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
kappa = 1.0;
|
||
|
}
|
||
|
}
|