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

Update index.rst #960

Merged
merged 1 commit into from Feb 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion Web/coolprop/wrappers/Scilab/index.rst
Expand Up @@ -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``
Expand Down Expand Up @@ -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')
CoolProp.CoolProp.PropsSI('T','P',101325,'Q',0,'Water')