SMathStudio Wrapper#
Pre-compiled Binaries#
Note
The SMath wrapper files moved to the SMath open-source SVN repository around 2018 and the official source is no longer tracked in the CoolProp/CoolProp repository. Although the stale wrapper code is still there, it does not compile with current versions of CoolProp. Information on the current official wrapper / Plugin can be found at SMath > CoolProp Wrapper. Instructions for using the official CoolProp Plugin for SMath are shown below.
To Use#
Pre-compiled binaries are loaded through the SMath Plugin Manager in SMath Studio itself (Tested in v1.5.0.9678). Simply,
Open SMath Studio
From the main menu, select Tools | Plugins
Change the Source location (top right corner of panel) from Local storage to Online Gallery
Type CoolProp in the search field at the bottom of the panel and select the CoolProp version from the gallery window
Click the Install button underneath the gallery
A list of the CoolProp function implementation is available on the official SMath > CoolProp Wrapper > Features page. All functions mirror the high-level interface calls prefixed with CoolProp_.
Caveat: Prefixing the high-level names does not always produce a valid SMath function. For example:
Use CoolProp_Props for PropsSI
Use CoolProp_Props1 for Props1SI
Use CoolProp_HAProps for HAPropsSI
Wrapper questions and Issues should be posted in the SMath Forum (CoolProp Wrapper Topic). (Requires an SMath login to post)
Warning
This official version is still based on CoolProp 6.4.1 as evidenced by the calling:
CoolProp_get_global_param_string("version") = 6.4.1
Although the release date for the wrapper is more recent.
See also
From the SMath Forum (CoolProp Wrapper Topic) Post (#83) there is an unoficial version of the the Plugin (source and distribution binary) that supports CoolProp v8.0.0 located on GitHub at defencedog/smath-devel. The README in this repository also includes information on running the Plugin and building the wrapper on other platforms if needed.
The installable zip file is located in the dist directory and supports Windows (32 and 64-bit) and aarch64 (Linux). Download the compressed zip file to any location on your machine (e.g., Downloads folder). Use the Plugin Manager (as above), but point to the downloaded zip file in Local storage using the Install from file.. button (SMath v1.5 or later) to browse to the zip file location.
User-Compiled Binaries (Legacy Instructions)#
Attention
While the legacy wrapper files still exist on GitHub in the CoolProp/CoolProp repository, these do no currently compile with more recent versions of CoolProp (7.x and onward). Legacy instructions remain below for reference should the code ever be tracked again in the CoolProp repository in the future.
Common Requirements#
Compilation of the SMath Studio wrapper requires a few common wrapper pre-requisites
Native Wrapper#
Check out coolprop:
git clone https://github.com/CoolProp/CoolProp
Create a build directory
build:mkdir build
In the
builddirectory, run the command:cmake .. -DCOOLPROP_SMATH_MODULE=ON
This will inject the version number in the appropriate format into a few template files using CMake
Open the solution file in
builddirectory.Make sure the mode is set to Release (not Debug). Build the project, the generated and copied files will be in
build/wrappers/SMath/coolprop_wrapper/bin/Release.From the download page, download the 64-bit DLL
CoolProp.dllfile fromWindows/64bitfolder and rename toCoolProp_x64.dlland place with the files inbuild/wrappers/SMath/coolprop_wrapper/bin/Release. Download the 32-bit__stdcallDLLCoolProp.dllfromWindows/32bit__stdcall_calling_conventionand rename toCoolProp_x86.dlland place with the files inbuild/wrappers/SMath/coolprop_wrapper/bin/Release.Run the
build_zip.batfile that is in thebuild/wrappers/SMathfolder. It will create a zip file with the needed files.To install, unzip the
coolprop_wrapper.7zzip file and run theinstall.batscript that was in the zip file
More information on SMath Studio is given under:
Page Last Updated: 10-10-2026