Closed fwitte closed 3 years ago
Thanks for the bug report! It's been taken care of. You should get the following using your code:
MultiStream with enthalpy added by mix_from
MultiStream: s34_mixture
phases: ('g', 'l'), T: 372.79 K, P: 100000 Pa
composition: (g) Water 1
----- 0.497 kmol/hr
(l) Water 1
----- 0.614 kmol/hr
Absolute deviation in enthalpy: -2.382876118645072e-09
MultiStream with Enthalpy summed individually
MultiStream: s34_mixture
phases: ('g', 'l'), T: 372.79 K, P: 100000 Pa
composition: (g) Water 1
----- 0.497 kmol/hr
(l) Water 1
----- 0.614 kmol/hr
Edit: You can "pip install thermosteam==0.21.6" for convenience or use the github repo
E.g. mixing two streams of water (one liquid and one gaseous), the enthalpy of the mixed stream is not equal to the sum of the enthalpy of the incoming streams. I checked within the method
mix_from
, the enthalpy value assigned to the mixed Stream seems to be correct at that point (https://github.com/BioSTEAMDevelopmentGroup/thermosteam/blob/master/thermosteam/_stream.py#L896).Maybe there is something wrong in my code?
yields