Closed alexchandel closed 2 years ago
Hi Alex,
I have added a warning to the documentation saying not to use hot_start if you prefer convergence. https://thermo.readthedocs.io/thermo.flash.html#thermo.flash.Flash.flash Maybe one day this won't be the case but it is today. These algorithms are very complex and at this time I am not doing development on the hot_start feature.
Caleb
@CalebBell What exactly is going on to cause this issue? Why does providing a near-solution result in "FAILED"?
I need performance, and would like to use a close initial guess if it's faster than searching the entire space from no guess.
@CalebBell I've narrowed this issue, and it's almost certainly a bug now. The TP flash fails when given the exact solution, but the PH does not. Could you please reopen?
When calculating a PT flash, and providing ~an accurate
hot_start
guess that is the correct P and within 1K of the true solution~ the exact solution, thermo's flasher printsFAILED from hot start TP
and seems to ignore the provided guess. The error is emitted here on L742 with no indication of why the accurate guess was rejected.If the
hot_start
is ~close but not exact~ the exact solution, why does it fail? Note this does not occur for a PH flash, just PT.The following code replicates this: