limitTemperature: added support for multiphase solvers

Based on patch contributed by Juho Peltola, VTT

Resolves feature request https://bugs.openfoam.org/view.php?id=2572
This commit is contained in:
Henry Weller
2017-09-04 16:52:03 +01:00
committed by Andrew Heather
parent 9a1435ed9b
commit f8a8857cae
5 changed files with 20 additions and 5 deletions

View File

@ -31,6 +31,7 @@ for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
EEqn->relax();
fvOptions.constrain(EEqn.ref());
EEqn->solve();
fvOptions.correct(phase.thermo().he());
}
}

View File

@ -25,6 +25,7 @@ for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
E1Eqn->relax();
fvOptions.constrain(E1Eqn.ref());
E1Eqn->solve();
fvOptions.correct(phase1.thermo().he());
}
}
@ -45,6 +46,7 @@ for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
E2Eqn->relax();
fvOptions.constrain(E2Eqn.ref());
E2Eqn->solve();
fvOptions.correct(phase2.thermo().he());
}
}

View File

@ -75,9 +75,11 @@
fvOptions.constrain(E1Eqn);
E1Eqn.solve();
fvOptions.correct(he1);
fvOptions.constrain(E2Eqn);
E2Eqn.solve();
fvOptions.correct(he2);
thermo1.correct();
Info<< "min " << thermo1.T().name()