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
Refprop mixture with 4 components error #342
Comments
Thanks for reporting this interesting error. When loading REFPROP fluids, we try to find the fluid files by trying different endings. The order is |
It is also interesting that it fails the second time. Just noticed that R32 also is part of another mixture. Stay tuned. |
Yes, on Linux R32.fld and R32.FLD ... on windows only R32.fld, but file Am 11.12.2014 um 10:17 schrieb Jorrit Wronski:
|
import CoolProp
CoolProp.__gitrevision__
|
When I run that code, this is what I get on windows:
|
Are you sure you are using the most up-to-date code? |
Also, the standard syntax for calling REFPROP in v5 is 'REFPROP::' plus the fluid(s) name(s), though we do support 'REFPROP-' and 'REFPROP-MIX:' for backwards compatibility reasons |
Hi Ian, added gitrevision to output, error 101 remains. I get the same error I use MIX in the name for autoscaling of lines in my diagrams. Is there Reiner code: R407F='REFPROP::R32[0.473194694453358]&R125[0.205109095413331]&R134a[0.321696210133311]' print('R407F enthalpy 0°C liquid : ',PropsSI("H","T",273.15,"Q",0,R407F)) result: Am 12.12.2014 um 06:19 schrieb Ian Bell:
|
This bug has been fixed - there is a warning on the last mixture because On Fri, Dec 12, 2014 at 12:30 PM, mayersre notifications@github.com wrote:
|
The code below fails for the Refprop mix R449A with :
ValueError: [SETUP error 101] error in opening file for component # 1; filename = (/opt/refprop/fluids/R32.ppf
the file should be R32.fld
Linux ubuntu 14.04 / Win 8.1 / Py 3.4 / Coolprop 5.0.3 and 5.0.4. Before Version 5.0.3 the errors were different on Linux and Windows.
regards
Reiner
Code:
import CoolProp
from CoolProp.CoolProp import PropsSI
print(CoolProp.version)
R407F='REFPROP-MIX:R32[0.473194694453358]&R125[0.205109095413331]&R134a[0.321696210133311]'
R422D='REFPROP-MIX:R125[0.596291711495645]&R134A[0.339399053279791]&ISOBUTAN[.064309235224564]'
R430A='REFPROP-MIX:R152a[0.735906531919507]&ISOBUTAN[0.264093468080493]'
R449A='REFPROP-MIX:R32[0.407364566995509]&R125[0.179481207732065]&R1234YF[0.193480840388364]&R134A[0.219673384884062]'
print(PropsSI("H","T",273.15,"Q",0,R407F))
print(PropsSI("H","T",273.15,"Q",0,R422D))
print(PropsSI("H","T",273.15,"Q",0,R430A))
print(PropsSI("H","T",273.15,"Q",0,R449A))
The text was updated successfully, but these errors were encountered: