usnistgov / REFPROP-wrappers

Wrappers around NIST REFPROP for languages such as Python, MATLAB, etc.
195 stars 127 forks source link

[PQFLSH error 5] one or more inputs are out of range #626

Closed raffcil closed 1 week ago

raffcil commented 3 weeks ago

Hi everyone, I think that I correctly managed to install the refprop 9.1 wrapper for MATLAB on my macbook (intel). I followed this guide to do so. However, I cannot figure out how to make it work properly. I get "[PQFLSH error 5] one or more inputs are out of range: temperature > 1.5 x upper limit, T = 80.000 K, Tmax = 0.0000 K pressure > 2 x upper limit, P = 0.50000 MPa, Pmax = 0.0000 MPa" or even sometimes matlab crashes. Any tought on how to resolve?

Steps to Reproduce

  1. RP = py.ctREFPROP.ctREFPROP.REFPROPFunctionLibrary('.../REFPROP');
  2. RP.RPVersion()

ans =

Python str with no properties.

9.1
  1. RP.SETPATHdll('.../REFPROP');
  2. r=RP.SETUPdll(int8(1),":FLUIDS:PROPANE.FLD",":FLUIDS:HMX.BNC","DEF");
  3. RP.PQFLSHdll(500, 0, {1.0},int8(0));

Actual behavior: Code runs but the PQFLSHdlloutput gives all zeros, T=80K and this error in "herr"

Versions

REFPROP Version: 9.1 Operating System and Version: Mac Os Sonoma 14.6.1 Access Method: Refprop wrapper via python on matlab

Additional Information

image

Thanks for your precious help!

ianhbell commented 3 weeks ago

What is your ierr and herr when you do the SETUP call?

raffcil commented 3 weeks ago

Your speed in replying is something just insane. Btw I checked the herr and it was:

[SETUP error 101] error in opening file for component # 1 filename = (:FLUIDS:PROPANE.FLD).

I obviously switched back to propane.fld and now it's working. Thanks