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
call refprop from coolprop in scilab on linux #1303
Comments
Hi @saha84 - A couple of things to be aware of: On linux, in scilab, how are you trying to call CoolProp? Runnable code would be nice. Are you calling the DLL through scilab? Or calling python through scilab? For linux, you should have compiled a shared library of REFPROP and put the shared library in the folder Also, linux is case sensitive, so you should be probably calling into REFPROP like
On my computer (Mac), I get these results:
but that's a REFPROP problem, not a CoolProp problem. |
hello, Actually ,I call CoolProp from the shared library libcoolprop.so as discribed here: http://coolprop.sourceforge.net/coolprop/wrappers/Scilab/index.html As for compiling REFPROP, I tried to use your cmake workflow but I always have those errors: cmake .. -DCMAKE_BUILD_TYPE=Release -- Configuring done and when I try "cmake --build .", I get: Scanning dependencies of target refprop |
What version of REFPROP were you trying to compile? It seems rather old. On Mon, Oct 31, 2016 at 5:14 AM, saha84 notifications@github.com wrote:
|
It's REFPROP 9.1. Edit: |
Well, your sources are certainly not for REFPROP 9.1. Can you please file On Mon, Oct 31, 2016 at 9:51 AM, saha84 notifications@github.com wrote:
|
Hello, ~ % python Neither found in current location nor found in system PATH. In case you do not use Windows, have a look at https://github.com/jowr/librefprop.so ALTERNATIVE_REFPROP_PATH: |
It's working now, I just followed the instruction here: http://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux sudo gedit /etc/ld.so.conf.d/randomLibs.conf then I added the needed path: /opt/refprop Save and run sudo ldconfig to update the system with this libs. now with python I get: the first error is because the pressure is in KPa |
Can I please interest you in updating the docs with your experiences: https://github.com/CoolProp/CoolProp/blob/master/Web/coolprop/REFPROP.rst ? |
Ok, but I'm not experienced at all :-), I just follow the instructions and it could exit a better way to update the path |
In any case, we appreciate people that make use of REFPROP contributing, On Wed, Nov 2, 2016 at 3:59 PM, saha84 notifications@github.com wrote:
|
Hello Ibell,
I have a work to do concerning absorption system working with the ammonia/water mixture. Sadly, I can't do this with Coolprop at present. So I decided to use coolprop to call Refprop using this command:
PropsSI('D','T',300,'P',101325,'REFPROP::ammonia[0.697615]&water[0.302385]')
But the results are always "inf".
I have Refprop installed with wine. Also, I installed the librefprop.so as it was instructed at https://github.com/jowr/librefprop.so.
I even tried to call from python but always no result.
The text was updated successfully, but these errors were encountered: