CalebBell / thermo

Thermodynamics and Phase Equilibrium component of Chemical Engineering Design Library (ChEDL)
MIT License
594 stars 114 forks source link

Bug when calculating Liquid Heat Capacity #110

Closed eacanoz closed 2 years ago

eacanoz commented 2 years ago

Hello,

I was testing the module thermo.mixture to estimate thermodynamic properties for different mixtures. When calculating the Heat Capacity for a Water-Ethylene Glycol mixture, object return "None". When I check the calculated attributes, I saw that Cp and Cpl have the value of "None" eventhough the phase is liquid ('l'). Other parameters like Cpg and Cps are calculated normally.

imagen

CalebBell commented 2 years ago

Hi, This regression was introduced about 15 months ago during some clean up. I have fixed the issue in thermo v0.2.20

Mixture(['water', 'ethylene glycol'], zs=[.5, .5], T=300, P=1e5).Cpl
2803.778714115564