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

Could not load properties from Refprop in EES #1715

Closed
chienfm opened this issue Jul 9, 2018 · 7 comments
Closed

Could not load properties from Refprop in EES #1715

chienfm opened this issue Jul 9, 2018 · 7 comments

Comments

@chienfm
Copy link

chienfm commented Jul 9, 2018

Description

Hello,

I have installed the coolprop v6.1 and EES 9.2. When querying the properties of refrigerant in coolprop, the function works well. But when querying the properties from Refprop (v9.0), EES shows error

Initialize failed for backend: "REFPROP", fluid: "WATER" fractions "[ 1.0000000000 ]"; error: Could not load these fluids: WATER : PropsSI("D","P",101325,"T",300,"REFPROP::WATER").

However, the wrapper is working well in python when querying the properties from REFPROP. Could you please give me any recommendation?

Thank you!
Nguyen.

Steps to Reproduce

  1. Install REFPROP, add Path.
  2. Install EES
  3. Install Coolprop v6.1.0 wrapper for EES.
  4. In EES, the command D = PropsSI('D','P',101325,'T',300,'Water') is fine. However, the command D = PropsSI('D','P',101325,'T',300,'REFPROP::Water') gets error as I demonstrated above.
  5. Install wrapper for python using pip. In python, the above command works fine.

Versions

CoolProp Version: 6.1.0
Operating System and Version: Windows 10
Access Method: EES wrapper.

@ibell
Copy link
Contributor

ibell commented Jul 14, 2018 via email

@chienfm
Copy link
Author

chienfm commented Aug 16, 2018

Dear Dr. Ibell,

Thank you so much for your answers and I'm sorry for my late reply. Now I can run the sample file for EES and returns the value from Refprop. However, the function does not work completely. This PropSI function call Tcrit works fine but the other such as:
T_crit_refprop = PropsSI('Tcrit','P',100,'Q',0,'REFPROP::R410A') returns value
but
T_refprop = PropsSI('T','P',100000,'Q',0,'REFPROP::R410A') return error "An unresolvable error was encountered while trying to access COOLPROP_EES. Check to ensure that the inputs to this external routine are correct."

Could you give me any recommendation?

Thank you so much!

Regards,
Nguyen Chien.

@ibell
Copy link
Contributor

ibell commented Aug 17, 2018 via email

@chienfm
Copy link
Author

chienfm commented Aug 17, 2018

Thank you for your reply.

The function T_refprop = PropsSI('T','P',101325,'Q',0,'REFPROP::WATER') also returns the same error "An unresolvable error was encountered while trying to access COOLPROP_EES. Check to ensure that the inputs to this external routine are correct."

But T_refprop = PropsSI('Tcrit','P',101325,'Q',0,'REFPROP::WATER') returns value (647.1).

@chienfm
Copy link
Author

chienfm commented Oct 1, 2018

Finally, the wrapper is now working with CoolProp version 5.08.

@chienfm chienfm closed this as completed Oct 1, 2018
@ibell
Copy link
Contributor

ibell commented Oct 1, 2018 via email

@chienfm
Copy link
Author

chienfm commented Oct 1, 2018

I have no idea. Also, for using CoolProp.Lib for EES versions older than 9.478, I slightly modified some lines as in attachment.

Thank you so much!

CoolPropLib _modified.txt

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