db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
24 lines
522 B
C
24 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;
|
|
}
|
|
}
|