You can use CoolProp in Julia language.

CoolProp is an open-source database of fluid and humid air properties, 
formulated based on the most accurate formulations in open literature. It 
has been validated against the most accurate data available from the 
relevant references.
http://coolprop.sourceforge.net/index.html

Requirements:
- Julia with PyCall and PyPlot modules
- Python 2.7.x with properly installed Numpy, Matplotlib and CoolProp
- git

#-----------------------------
Procedure:
- Open julia in console and check for installed packages:




*julia> Pkg.status()# 2 required packages:# - PyCall            0.4.8# - 
PyPlot            1.2.9*

If required packages are not installed, use the following commands:



*julia> Pkg.add("PyCall")julia> Pkg.add("PyPlot")julia> Pkg.update()*

#--------------------------------------------
Usage:
# enable PyCall package:
*julia> using PyCall*

# import CoolProp module:
*julia> @pyimport CoolProp.CoolProp as CP*

# call some CoolProp properties:
*julia> enthalpy = CP.Props("H","T",300,"P",300,"H2O")*

You have to use double quotes, otherwise you get an error message: 

*julia> CP.Props('H','T',300,'P',300,'H2O')ERROR: syntax: invalid character 
literal*

#--------------------------------------------
IMPORTANT:
"git" is mandatory!!!
At the moment only Python 2.7.x is supported, no support for Python 3.x yet.
Tested on openSUSE 13.1 (64 bit) and xUbuntu 14.04 (32 bit)

Reply via email to