Closed joyxyz1994 closed 3 years ago
Fixed, thanks for reporting!
Commit cd36aba closes #40
Piggybacking this for a related questions, looks like the _N_solutes
attribute is not initiated in the __new__
function (but it does exist in __slots__
)?
So now:
Is this a reserved slot for future enhancement? Thanks!
Hi Yalin,
Yes, it is a reserved slot for more accurate VLE. Particularly for dissolved sugars (e.g. glucose, sucrose) and salts (e.g. NaCl) which would increase the bubble point by acting as solutes. As an example for NaCl, N_solutes should be 2.
When a Chemicals object is compiled, N_solutes default to 0. A value of 0 is better for chemicals modeling large molecular weight stuff (e.g. glucose oligomers) but have a monomeric MW value for modeling simplicity.
Thanks!
Oh I see, thanks for the explanation!
import thermosteam as tmo
tmo.Chemical('H2O').__slots__
tmo.Chemical('H2O')._other_names