CoolProp integration in MATLAB

CoolProp is a C++ library for thermochemical property data. It containts almost everything thats needed. You can try it in an online version: http://ibell.pythonanywhere.com/
There is also a code wrapper for MATLAB available: http://www.coolprop.org/coolprop/wrappers/MATLAB/index.html#matlab
I tryed to install the programm with the given instruction. But when I try to run the example from the manual an error occours:
>> CoolProp.PropsSI('T','P',101325,'Q',0,'Water')
Error using CoolPropMATLAB_wrap
Mismatching name (_wrap_PropsSI) for function ID 208.
Error in CoolProp.PropsSI (line 2)
[varargout{1:max(1,nargout)}] = CoolPropMATLAB_wrap(208,'_wrap_PropsSI',varargin{:});
Does anyone has experience in integrating the CoolProp library in MATLAB?

3 个评论

Hi
I use Coolprop in Excel (and I plan on using it in MatLab soon), and the following syntax gives me good results: Props("D";"T";15+273,15;"P";700*100;"Hydrogen")
This gives me the density of hydrogen at 15 celsius and 700 bar: 40.172 kg/m3
I just made it Work in MatLab. Here my syntax is:
CoolProp.PropsSI('D','T',273.15+15,'P',700*10^5,'Hydrogen')
Can you describe the procedure !

请先登录,再进行评论。

回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by