ENH: (re-)added under-relaxation to pEqn in LTSReactingParcelFoam solver

This commit is contained in:
andy
2011-03-28 10:31:24 +01:00
parent ab95424f8b
commit 3bffa0e552
2 changed files with 8 additions and 1 deletions

View File

@ -93,6 +93,11 @@ int main(int argc, char *argv[])
bool finalIter = oCorr == nOuterCorr-1;
#include "addFinalIter.H"
if (nOuterCorr != 1)
{
p.storePrevIter();
}
turbulence->correct();
#include "UEqn.H"

View File

@ -59,7 +59,7 @@
}
}
Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl;
p.relax();
// Second part of thermodynamic density update
thermo.rho() += psi*p;
@ -75,4 +75,6 @@
rho = min(rho, rhoMax);
#include "setPressureWork.H"
Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl;
}