Closed blsymens closed 3 years ago
Hi Bavo,
That was an oversight for a function that isn't expected to have any real use. I hope that you do understand that the function doesn't return either the dew pressure or the bubble pressure when there are more than 1 component. For those calculations, which I am almost certain you are looking for, see the API documentation https://thermo.readthedocs.io/thermo.flash.html#thermo.flash.FlashVL and part of the tutorial shows it too: https://thermo.readthedocs.io/tutorial_phases_and_flash.html#flashes-with-pure-compounds
Regardless, the minor fix is out now in thermo 0.2.4 on pypi. The conda package usually takes about a day to release. Thanks for letting me know!
Sincerely, Caleb
The omega parameter is not calculated when in case N>1 (no pure component, but mixture). eos_mix.py in Psat-function should be adapted so omega is updated within else statement. I tested and it worked.
eos_mix.py in Psat(self, T, polish) line 887 is missing.
Test code: