From 1ad1a71f1d9c0a93f12ca31db354177f8e00643b Mon Sep 17 00:00:00 2001 From: saha84 Date: Mon, 8 Feb 2016 20:37:49 +0100 Subject: [PATCH] Update index.rst For the path of the shared library in Linux, it is enough to put the 'libCoolProp.so' in '/usr/lib/scilab' and use the sample.sce file as it is now. I don't know the equivalent folder in windows. note: As I say in my first comment, "English is not my mother tongue; please excuse any errors on my part." --- Web/coolprop/wrappers/Scilab/index.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Web/coolprop/wrappers/Scilab/index.rst b/Web/coolprop/wrappers/Scilab/index.rst index 54dad666..b4033358 100644 --- a/Web/coolprop/wrappers/Scilab/index.rst +++ b/Web/coolprop/wrappers/Scilab/index.rst @@ -30,6 +30,22 @@ Run the sample file using something like this at the scilab prompt:: The ``-1`` is to ensure that all lines are not echoed (unelated question: why is echoing all lines in a script the default behavior in scilab?) +If you always use CoolProp, you might find it convenient to have the shared library load automatically when you start Scilab. To do that, just rename the 'sample.sce' file to 'scilab.ini' and put it in the scilab home directory which can be found by executing 'SCIHOME' in the scilab console window, the result will be something like that: + +For Linux: + +-->SCIHOME + SCIHOME = + + /home/username/.Scilab/scilab-5.5.2 + +For Windows: + +-->SCIHOME + SCIHOME = + + C:\Users\username\AppData\Roaming\Scilab\scilab-5.5.2 + .. note:: It is possible that on linux, you might need to add the path to the directory containing ``libCoolProp.so`` to the ``LD_LIBRARY_PATH`` environmental variable. At the terminal, or in your ~/.bash_profile file, add: ``export LD_LIBRARY_PATH=/path/to/directory`` @@ -64,4 +80,4 @@ Then, you can use CoolProp just like in Python. Here is an example of calling th Or the same thing from the high-level interface:: pyImport CoolProp.CoolProp - CoolProp.CoolProp.PropsSI('T','P',101325,'Q',0,'Water') \ No newline at end of file + CoolProp.CoolProp.PropsSI('T','P',101325,'Q',0,'Water')