Skip to content
Snippets Groups Projects
Commit 3bffa0e5 authored by andy's avatar andy
Browse files

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

parent ab95424f
No related merge requests found
...@@ -93,6 +93,11 @@ int main(int argc, char *argv[]) ...@@ -93,6 +93,11 @@ int main(int argc, char *argv[])
bool finalIter = oCorr == nOuterCorr-1; bool finalIter = oCorr == nOuterCorr-1;
#include "addFinalIter.H" #include "addFinalIter.H"
if (nOuterCorr != 1)
{
p.storePrevIter();
}
turbulence->correct(); turbulence->correct();
#include "UEqn.H" #include "UEqn.H"
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
} }
Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl; p.relax();
// Second part of thermodynamic density update // Second part of thermodynamic density update
thermo.rho() += psi*p; thermo.rho() += psi*p;
...@@ -75,4 +75,6 @@ ...@@ -75,4 +75,6 @@
rho = min(rho, rhoMax); rho = min(rho, rhoMax);
#include "setPressureWork.H" #include "setPressureWork.H"
Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl;
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment