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

PropSi returns erroneous values for NH3 in Excel #2356

Open
bwiencke opened this issue Feb 24, 2024 · 2 comments
Open

PropSi returns erroneous values for NH3 in Excel #2356

bwiencke opened this issue Feb 24, 2024 · 2 comments

Comments

@bwiencke
Copy link

At certain pressures (below 79000 Pa) erroneous temperature values are returned or no values are returned. This issue is not present when using RefProp.
CoolProp Version: 6.6.0 and 6.6.1
Operating system: Microsoft® Excel® 2021 MSO (Version 2401 Build 16.0.17231.20236) 64-bit

For example:

  1. =PropsSI("T","P",57565.979,"Q",1,"AMMONIA")
    Expected value: 229.15 K
    Returned value: 337.45 K

  2. =PropsSI("T","P",30086.278,"Q",1,"AMMONIA")
    Expected value: 218.15 K
    Returned value: Inputs in Brent [219.766178,223.766178] do not bracket the root. Function values are [180.302048,624.573688] : PropsSI("T","P",30086.27794,"Q",1,"AMMONIA")

Screenshot 2024-02-24 103632
@ibell
Copy link
Contributor

ibell commented Feb 25, 2024

There was a problem with the saturated vapor density ancillary function in 6.6.0. It was fixed in 443a2fd . Building from source should fix this problem.

ibell added a commit that referenced this issue Feb 25, 2024
I had the wrong flag for using_tau_r previously

See #2356
@ibell
Copy link
Contributor

ibell commented Feb 25, 2024

I had to make another fix to the ancillary (sigh...) but it should be working now. The consistency plots look much better after this fix:

Ammonia.pdf

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