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

Bug : UpdateAir Moist Air faillure #28

Open
kurupt44 opened this issue Jan 5, 2022 · 4 comments
Open

Bug : UpdateAir Moist Air faillure #28

kurupt44 opened this issue Jan 5, 2022 · 4 comments

Comments

@kurupt44
Copy link

kurupt44 commented Jan 5, 2022

Hello,

Moist Air Update with HumidityRatio and RelativeHumidity doesn't work.
The exception message is:
Value was either too small or too large for a Decimal.

I try with this :
Air.UpdateAir(Pressure.FromSI(101325), HumidityRatio: ParamIn2Value, RelativeHumidity: ParamIn1Value);
ParamIn2Value is double, 0.011
ParamIn1Value is double, 0.8

Thank you

@MadsKirkFoged
Copy link
Owner

The problem was that Coolprop is just returning Inf when trying to do the lookup with your input vaules.
I have changed the code so the values is displaying Inf.

Are you sure the combination of values are valid inputs?

@kurupt44
Copy link
Author

kurupt44 commented Jan 6, 2022

Yes the combination of values is valid, I try with many others and the result is the same.
Now returned value of all updated parameters are inf but this is not the correct result

@MadsKirkFoged
Copy link
Owner

I have checked everything and it is sending the correct values to CoolProp.
Maybe Coolprop dont support that combination of inputs..
I think if you want an answer for this question you'll have to go ask on CoolProps github: https://github.com/CoolProp/CoolProp

@romarro
Copy link
Contributor

romarro commented Feb 28, 2022

it shouldn't be possible to set both the RelativeHumidity and HumidityRatio. There isn't a single set of pressure and temperature values that can satisfy these two values.
If you set pressure, temperature and RelativeHumidity this will result in a HumidityRatio, or the other way around. These two quantities relates to the same physical quantity, the mass of the water vapours in air.

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

3 participants