ENH: Updated steady parcel solver

This commit is contained in:
andy
2010-10-28 18:14:57 +01:00
parent fb332ca5ec
commit 74499d57d9
4 changed files with 21 additions and 12 deletions

View File

@ -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
{ {

View File

@ -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;

View File

@ -1,4 +1,4 @@
Info<< "Reading chemistry properties\n" << endl; // Info<< "Reading chemistry properties\n" << endl;
IOdictionary chemistryProperties IOdictionary chemistryProperties
( (

View File

@ -40,6 +40,9 @@ Description
); );
rhoEqn.solve(); rhoEqn.solve();
Info<< "rho min/max = " << min(rho).value() << ", " << max(rho).value()
<< endl;
} }
// ************************************************************************* // // ************************************************************************* //