Skip to content
Snippets Groups Projects
Commit 74499d57 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Updated steady parcel solver

parent fb332ca5
Branches
Tags
No related merge requests found
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 @@ ...@@ -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;
......
Info<< "Reading chemistry properties\n" << endl; // Info<< "Reading chemistry properties\n" << endl;
IOdictionary chemistryProperties IOdictionary chemistryProperties
( (
......
...@@ -40,6 +40,9 @@ Description ...@@ -40,6 +40,9 @@ Description
); );
rhoEqn.solve(); rhoEqn.solve();
Info<< "rho min/max = " << min(rho).value() << ", " << max(rho).value()
<< endl;
} }
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment