Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
CoolProp.oct | 2013-12-06 | 1.9 MB | |
Totals: 1 Item | 1.9 MB | 0 |
A wrapper of CoolProp for the Octave programming language (an open-source version of MATLAB)
This CoolProp.oct module is built using SWIG, and is built for octave for windows built with Visual Studio.
Installation
Separate versions of the .oct file are available for Octave 3.6.1 and 3.6.2. Put the .oct file for the version you have in somewhere in the octave path, or use the addpath function to add the folder that contains CoolProp.oct to the Octave path
Developer Notes:
- On windows, only version 2.0.8 of SWIG seems to work!!!!!!!!!!!!!!!!!!!
- 3.6.1 needs to use VS 2008 to build; 3.6.2 needs to use VS 2010
- In the win32 distro of 3.6.2, the hard-coded path in OCTAVE/bin/include/math.h around line 73 might need to be changed to
/* Include VC++ original math.h */
#include <c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include/math.h>
depending on where your VS is installed
Building on Linux (Ubuntu in this case)
- You will need to run
sudo apt-get update sudo apt-get install octave liboctave-dev swig subversion
to install the necesary dependencies. The install of octave and subversion might not be necessary but it cant hurt
- Check out the full source for coolprop from subversion
svn checkout svn://svn.code.sf.net/p/coolprop/code/trunk coolprop-code
- Change into the coolprop-code/wrappers/Octave folder
cd coolprop-code/wrappers/Octave
- Call
octave _OctaveBuilder_Linux.m
- Call
octave sample_code.m
to run the sample
Building on Raspberry PI
- You will need to run
sudo aptitude update sudo aptitude install octave liboctave-dev swig subversion
- Download all the sources from subversion using
svn checkout svn://svn.code.sf.net/p/coolprop/code/trunk coolprop-code
- Change into the folder
cd coolprop-code/wrappers/Octave
- Run the build script
octave _OctaveBuilder_Linux.m
- Call
octave sample_code.m
to run the sample