BioSTEAMDevelopmentGroup / thermosteam

BioSTEAM's Premier Thermodynamic Engine
Other
57 stars 12 forks source link

Retrieve properties for component mixtures #34

Closed dhkblaszyk closed 3 years ago

dhkblaszyk commented 3 years ago

Hi,

In issue #33 I have asked about retrieving properties for pure components. I would also need to retrieve properties for arbitrary mixtures of components. Of course, calculating that is relatively trivial in most cases, but I am wondering whether this is possible in thermostream relatively simple, or do I need to create a stream?

yoelcortes commented 3 years ago

There sure is, please "pip install thermosteam==0.23.10" for some enhancements to the Mixture object.

Mixture object documentation: https://thermosteam.readthedocs.io/en/latest/mixture/Mixture.html#thermosteam.mixture.Mixture.from_chemicals

For additional examples: https://thermosteam.readthedocs.io/en/latest/tutorial/Thermo_property_packages.html#Mixture-objects

Note that mixture methods work just like chemical methods but require a mol parameter for calculating mixuture properties.

Thanks!