mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated steady parcel solver
This commit is contained in:
@ -1,22 +1,23 @@
|
|||||||
|
if (chemistry.chemistry())
|
||||||
{
|
{
|
||||||
Info<< "Solving chemistry" << endl;
|
Info<< "Solving chemistry" << endl;
|
||||||
|
|
||||||
chemistry.solve
|
// update reaction rates
|
||||||
(
|
chemistry.calculate();
|
||||||
runTime.value() - runTime.deltaTValue(),
|
|
||||||
runTime.deltaTValue()
|
|
||||||
);
|
|
||||||
|
|
||||||
// turbulent time scale
|
// turbulent time scale
|
||||||
if (turbulentReaction)
|
if (turbulentReaction)
|
||||||
{
|
{
|
||||||
DimensionedField<scalar, volMesh> tk =
|
typedef DimensionedField<scalar, volMesh> dsfType;
|
||||||
Cmix*sqrt(turbulence->muEff()/rho/turbulence->epsilon());
|
|
||||||
DimensionedField<scalar, volMesh> tc =
|
|
||||||
chemistry.tc()().dimensionedInternalField();
|
|
||||||
|
|
||||||
// Chalmers PaSR model
|
const dimensionedScalar e0("e0", sqr(dimLength)/pow3(dimTime), SMALL);
|
||||||
kappa = (runTime.deltaT() + tc)/(runTime.deltaT() + tc + tk);
|
|
||||||
|
const dsfType tk =
|
||||||
|
Cmix*sqrt(turbulence->muEff()/rho/(turbulence->epsilon() + e0));
|
||||||
|
|
||||||
|
const dsfType tc = chemistry.tc()().dimensionedInternalField();
|
||||||
|
|
||||||
|
kappa = tc/(tc + tk);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,6 +43,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Explicitly relax pressure for momentum corrector
|
||||||
|
p.relax();
|
||||||
|
|
||||||
|
Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl;
|
||||||
|
|
||||||
// Second part of thermodynamic density update
|
// Second part of thermodynamic density update
|
||||||
thermo.rho() += psi*p;
|
thermo.rho() += psi*p;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
Info<< "Reading chemistry properties\n" << endl;
|
// Info<< "Reading chemistry properties\n" << endl;
|
||||||
|
|
||||||
IOdictionary chemistryProperties
|
IOdictionary chemistryProperties
|
||||||
(
|
(
|
||||||
|
|||||||
@ -40,6 +40,9 @@ Description
|
|||||||
);
|
);
|
||||||
|
|
||||||
rhoEqn.solve();
|
rhoEqn.solve();
|
||||||
|
|
||||||
|
Info<< "rho min/max = " << min(rho).value() << ", " << max(rho).value()
|
||||||
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user