CalebBell / thermo

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

air.lemmon2000_rho #134

Closed gamafreire closed 1 year ago

gamafreire commented 1 year ago

Dear @CalebBell, I hope this message finds you well. I have been encountering an issue with air density. Here I am again, giving you work.

from chemicals import air
print(
    air.lemmon2000_rho( T=293.15, P=101325),
    air.lemmon2000_air_MW/24.06)

Output: 41.58660634055702 1.2035993349958438

thermo.version '0.2.23'

Thank you very much for your time and support. I look forward to your guidance and getting this resolved.

Best regards, Filipe Gama Freire

CalebBell commented 1 year ago

What seems to be the issue? The units of lemmon2000_rho are clearly documented as mol/m^3; if you are looking for kg/m^3 you can do

>>> from chemicals import *
>>> Vm_to_rho(1/lemmon2000_rho( T=293.15, P=101325), lemmon2000_air_MW)
1.2042898983736545
gamafreire commented 1 year ago

Dear @CalebBell, Thank you! Sorry for bothering you again Filipe