ENH: Updated frozenFlow option for interFoam and interIsoFoam

This commit is contained in:
Andrew Heather
2017-06-23 11:43:55 +01:00
parent 3d854a683d
commit ff9d2c3a9c
3 changed files with 6 additions and 9 deletions

View File

@ -110,6 +110,11 @@ int main(int argc, char *argv[])
mixture.correct();
if (pimple.frozenFlow())
{
continue;
}
#include "UEqn.H"
// --- Pressure corrector loop

View File

@ -1,10 +1,2 @@
// Defining isoAdvection
isoAdvection advector(alpha1, phi, U);
bool frozenFlow = pimple.dict().lookupOrDefault<bool>("frozenFlow", false);
if (frozenFlow)
{
Info<< "Employing frozen-flow assumption: "
<< "pressure-velocity system will not be updated"
<< endl;
}

View File

@ -108,7 +108,7 @@ int main(int argc, char *argv[])
mixture.correct();
if (frozenFlow)
if (pimple.frozenFlow())
{
continue;
}