mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
deltaT().value() to deltaTValue()
and
deltaT0().value() to deltaT0Value()
across the whole code - faster to return especially if being used
often, in each call to a submodel for example.
26 lines
591 B
C
26 lines
591 B
C
{
|
|
Info << "Solving chemistry" << endl;
|
|
|
|
chemistry.solve
|
|
(
|
|
runTime.value() - runTime.deltaTValue(),
|
|
runTime.deltaTValue()
|
|
);
|
|
|
|
// turbulent time scale
|
|
if (turbulentReaction)
|
|
{
|
|
DimensionedField<scalar, volMesh> tk =
|
|
Cmix*sqrt(turbulence->muEff()/rho/turbulence->epsilon());
|
|
DimensionedField<scalar, volMesh> tc =
|
|
chemistry.tc()().dimensionedInternalField();
|
|
|
|
// Chalmers PaSR model
|
|
kappa = (runTime.deltaT() + tc)/(runTime.deltaT() + tc + tk);
|
|
}
|
|
else
|
|
{
|
|
kappa = 1.0;
|
|
}
|
|
}
|