mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
9a1435ed9b
commit
f8a8857cae
@ -31,6 +31,7 @@ for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
|
||||
EEqn->relax();
|
||||
fvOptions.constrain(EEqn.ref());
|
||||
EEqn->solve();
|
||||
fvOptions.correct(phase.thermo().he());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user