Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HumidAir wrong calculations #56

Open
JB-AM opened this issue Aug 17, 2021 · 2 comments
Open

HumidAir wrong calculations #56

JB-AM opened this issue Aug 17, 2021 · 2 comments

Comments

@JB-AM
Copy link
Contributor

JB-AM commented Aug 17, 2021

It seems HumidAir return grossly wrong calculations at temperatures under around 295K, 1atm.
Please try:

import iapws.humidAir as ha
a = ha.HumidAir(T=295, P=0.101325, W=0.00858)
print(a.RH)

It should return around 50%, or 0.5, but prints -0.9678.
It seems calculations at higher temperatures are right:

a = ha.HumidAir(T=323, P=0.101325, W=0.0388)
print(a.RH)

shows 0.5009.

@jjgomera
Copy link
Owner

jjgomera commented Sep 30, 2021

Hi, i can't reproduce that

import iapws.humidAir as ha
a = ha.HumidAir(T=295, P=0.101325, W=0.00858)
print(a.RH)
0.597440017070571

and

a = ha.HumidAir(T=323, P=0.101325, W=0.0388)
print(a.RH)
0.5009937761563956

Maybe you're not using the last version, I'm fairly sure that error was fixed in this commit, 0a687f6

@JB-AM
Copy link
Contributor Author

JB-AM commented Oct 1, 2021

You’re right. I simply installed iapws from pip (pip install iapws), it seems the version there is not up to date. After installing from git, the value given seems reasonnable.
But why I get :

>>> import iapws.humidAir as ha
>>> a = ha.HumidAir(T=295, P=0.101325, W=0.00858)
>>> print(a.RH)
0.5282298396607987

While you get : 0.597440017070571 which seems rather high,
I do not know…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants