Coolprop in MATLAB - Critical point of binary mixtures

253 views
Skip to first unread message

alex_p

unread,
Oct 23, 2017, 8:39:11 AM10/23/17
to coolprop-users
I am using Coolprop in MATLAB with the MATLAB Wrapper.

I need to calculate the critical properties of some binary mixtures, in particular, the critical temperature and the critical pressure.
I already know that Coolprop accepts only some specific binary pairs of mixtures.

When I use the code:

CoolProp.PropsSI('Pcrit',' ',0,' ',0,'Helium[0.5]&Water[0.5]')

I have the following output from MATLAB:

Warning: No outputs were able to be calculated 
> In CoolProp.PropsSI (line 2) 
Error using CoolPropMATLAB_wrap
Failure in function PropsSI.

Error in CoolProp.PropsSI (line 2)
  [varargout{1:max(1,nargout)}] = CoolPropMATLAB_wrap(236,'_wrap_PropsSI',varargin{:});

Coolprop website give this solution to evaluate the critical points: http://www.coolprop.org/coolprop/Cubics.html#interaction-parameters
But I don't know how to use it in MATLAB.

Thanks for help.

Ian Bell

unread,
Oct 23, 2017, 10:08:39 AM10/23/17
to coolpro...@googlegroups.com
Hi Alex, For MATLAB, your best bet is to call CoolProp via python : https://github.com/CoolProp/CoolProp/commit/ad44738d0153d011d47cbaa4c5153ab8cb904342

That mixture in particular of water + helium is especially nasty to model, perhaps the worst possible mixture.  Because you got that warning, it is also entirely possible that this mixture does not have a critical point at this composition.  That is common for mixtures with open phase envelopes.  

You should also check out this example: http://www.coolprop.org/coolprop/Cubics.html#detailed-example .  You can call all those methods via the python interface in MATLAB.

--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages