reactingParcelFoam and chtMultiRegionFoam: Always solve the density equation

A clause preventing solution of the density equation has been removed
from reactingParcelFoam and chtMultiRegionFoam, so that they are nore
consistent with other compressible solvers. In general, the density
equation is solved before the pimple loop is entered to make sure that
the flux and the density derivative are consistent during the first
pimple iteration.
This commit is contained in:
Will Bainbridge
2019-10-09 14:01:29 +01:00
parent a2a74cbb79
commit 35dbd2f947
2 changed files with 2 additions and 5 deletions

View File

@ -4,7 +4,7 @@ if (pimple.frozenFlow())
}
else
{
if (!mesh.steady() && pimples.nCorrPimple() <= 1)
if (!mesh.steady() && pimples.firstPimpleIter())
{
#include "rhoEqn.H"
}

View File

@ -93,11 +93,8 @@ int main(int argc, char *argv[])
surfaceFilm.evolve();
if (solvePrimaryRegion)
{
if (pimple.nCorrPimple() <= 1)
{
#include "rhoEqn.H"
}
// --- PIMPLE loop
while (pimple.loop())