In [1]: import CoolProp.CoolProp as CP
In [2]: CP.PropsSI('D','T',300,'P',101325,'HEOS::R32[0.697615]&R125-SRK[0.302385]')
Out[2]: 2.986434081768588
Best,
Ian
--
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.
1) You probably want to be using the low-level interface: http://www.coolprop.org/dev/coolprop/LowLevelAPI.html instead of the high-level one, especially if you want to get access to critical points.2) The use of SRK transformation within a multi-fluid model is currently limited to fluids that already have a multiparameter EOS in CoolProp (simply because it is simpler). But it would be relatively easy to add the ability to add SRK transformations for any fluid for which you knew Tc,pc,acentric . Is that something you would be interested in? If so, please file an issue and I will implement that ability. Internally, there is an ugly hack, but the way you enable a SRK for fluid in the HEOS backend is something like this (add -SRK to the fluid name):In [1]: import CoolProp.CoolProp as CP
In [2]: CP.PropsSI('D','T',300,'P',101325,'HEOS::R32[0.697615]&R125-SRK[0.302385]')
Out[2]: 2.986434081768588
Best,
Ian
On Fri, Nov 18, 2016 at 3:32 PM, 'Igor' via coolprop-users <coolpro...@googlegroups.com> wrote:
Hi Ian,Hi Everyone,My question concerns a new features of version 6.1.0.If I have understood correctly, the new version contains an opportunity for Helmholtz energy transformations of cubic equations of state for implementing them into complex multi-fluid mixture models. Unfortunately, I haven't found an sample code on the Coolprop website for this new feature.For example, this code uses the multi-fluid mixture models:In [27]: CP.PropsSI('D','T',300,'P',101325,'HEOS::R32[0.697615]&R125[0.302385]')In turn, this code uses a one-fluid mixture model, which is typical for cubic equations of state:In [27]: CP.PropsSI('D','T',300,'P',101325,'SRK::R32[0.697615]&R125[0.302385]')But how to apply this new feature for the calculation of User-Defined Mixture properties?Thank you!Igor.
--
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-user...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
Hi Ian,
Thanks for the answer!1. You said that SRK is currently limited. Is there a such limitation for the PR equation (I would rather use the PR)?
2. I tried to use your advice (-SRK) in Matlab. But I got:>> disp([num2str(CoolProp.PropsSI('D','P',5960,'Q',0, 'HEOS::CarbonDioxide[0.513]&n-Decane-SRK[0.487]'))]);Warning: Initialize failed for backend: "HEOS", fluid: "CarbonDioxide&n-Decane-SRK" fractions "[ 0.5130000000, 0.4870000000 ]";error: key [n-Decane-SRK] was not found in string_to_index_map in JSONFluidLibraryError using CoolPropMATLAB_wrapFatal error.This scheme does not work for Matlab?
3.I'm trying to compile Coolprop with Python Wrapper. But I'm still in the process ((. I have installed the MSVS2016. Also, I have added in MSVS the C++ and Python compilers. But when I try to compile the file setup.py I get: "No module named Cython". So now I'm thinking how to install the Cython.Because of these difficulties, I still can not use your script ECS_fitter.py. Unfortunately, now I'm stuck.
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.
Nope, anaconda includes pip, so no need to install it specially
--
--
--
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 coolpro...@googlegroups.com.
--
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.
--
--
--
--
--
--
Sorry I haven't responded yet, I will provide an email this evening...Ian
On Mon, Dec 5, 2016 at 6:29 AM, 'Igor' via coolprop-users <coolprop-users@googlegroups.com> wrote:
Hi Ian,--I'm sorry to trouble you!I still have a problems with the addition of a new substance with HEOS at runtime.What changes should be made to your script ECS_fitter.py for adding 2-butanol at runtime?Igor.
суббота, 19 ноября 2016 г., 1:32:56 UTC+3 пользователь Igor написал:Hi Ian,Hi Everyone,My question concerns a new features of version 6.1.0.If I have understood correctly, the new version contains an opportunity for Helmholtz energy transformations of cubic equations of state for implementing them into complex multi-fluid mixture models. Unfortunately, I haven't found an sample code on the Coolprop website for this new feature.For example, this code uses the multi-fluid mixture models:In [27]: CP.PropsSI('D','T',300,'P',101325,'HEOS::R32[0.697615]&R125[0.302385]')In turn, this code uses a one-fluid mixture model, which is typical for cubic equations of state:In [27]: CP.PropsSI('D','T',300,'P',101325,'SRK::R32[0.697615]&R125[0.302385]')But how to apply this new feature for the calculation of User-Defined Mixture properties?Thank you!Igor.
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 coolpro...@googlegroups.com.
--
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.
--
--