Action disabled: recent
software:coolprop:start
Table of Contents
CoolProp
CoolProp is a thermodynamic library which can be imported in several other programming environments.
Download
Two possibilities are availbale:
- download the three files from sourceforge.net (only Linux 64-bit)
- compile the library following the instruction reported at coolprop.org
Wrapper for Scilab
Copy the files libCoolProp.so
and libCoolProp.so.*
from CoolProp/build/
to scilab-*/lib/scilab/libCoolProp.so
.
In the Scilab working directory, in which the CoolProp library is required, save the following propsi.sci
file:
- propsi.sci
link("libCoolProp.so", "propssi_", "c") function out = PropsSI(output, input1, value1, input2, value2, name) out = call("propssi_",.. output, 1, "c",.. input1, 2, "c",.. value1, 3, "d",.. input2, 4, "c",.. value2, 5, "d",.. name, 6, "c",.. "out", [1,1], 7, "d") endfunction
Then, to call the library from a Scilab file, use:
exec("propsi.sci", -1) // CoolProp library ...
software/coolprop/start.txt · Last modified: 2023/05/28 16:37 by 127.0.0.1