Difference in calculated values between CoolProp and Refprop

563 views
Skip to first unread message

enerb...@gmail.com

unread,
Feb 20, 2018, 2:51:53 PM2/20/18
to coolprop-users
Hello,

I'm new to CoolProp. 

I'm trying to calcolate the boiling point of some refrigerants (e.g. R134a, R410A) with the formula:

=PropsSI("T";"P";1000000;"Q";0;"HEOS::R134a)-273,15

Comparing the results with RefProp there are some differencies:

CoolProp: 
42,96935029 °C
RefProp: 
43.1....°C

Maybe I'm missing some parameter, or the sintax of the PropSI function is wrong.

Can anybody give me some hint? What are your experiencer in CoolProp/RefProp comparision?

Thanks

Mg

Ian Bell

unread,
Feb 21, 2018, 12:43:12 AM2/21/18
to coolpro...@googlegroups.com
Hi!

Did you do exactly the same calculation in both libraries?  For pure fluids like R134a, so long as the equation of state is the same (it should be in this case), the results should be much, much closer.  For instance there are some plots you can look at in the docs to compare with REFPROP: http://www.coolprop.org/fluid_properties/fluids/R134a.html#fluid-r134a.  They look pretty much fine.

You should try to do:

PropsSI("T";"P";1e6;"Q";0;"HEOS::R134a")-273,15
PropsSI("T";"P";1e6;"Q";0;"REFPROP::R134a")-273,15

and see what values you get for both.

--
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.

enerb...@gmail.com

unread,
Feb 21, 2018, 2:44:57 AM2/21/18
to coolprop-users
Thank You for the answer.

I'cant make the check right now - unfortunately I have not the RefProps DLLs installed on this PC - I made a comparision using a custom software, (based on RefProps) and an simplier app.

Is there some configuration parameter that can effect the results, maybe the Reference States? It is possible to set the reference state also by high level interface (Excel)? There is no  set_reference_stateSn example in the TestExcel file.


Can You maybe provide me the outputs of the functions:


   PropsSI("T";"P";1e6;"Q";0;"HEOS::R134a")-273,15
   PropsSI("T";"P";1e6;"Q";0;"REFPROP::R134a")-273,15

from Your system, so I can compare with my calculations?

Thank You for your help.

Mg

Matthis Thorade

unread,
Feb 21, 2018, 3:57:18 AM2/21/18
to coolprop-users
Hi,
the reference state will only have an effect on enthalpy, entropy, internal energy, Gibbs energy, Helmholtz energy.
It does NOT have any effect on pressure, temperature, density, heat capacity, compressibility, speed of sound, ...
So that is probably not be the source of the differences in your case.
https://github.com/CoolProp/CoolProp/blob/master/FAQ.md
http://www.coolprop.org/coolprop/HighLevelAPI.html#reference-states

enerb...@gmail.com

unread,
Feb 21, 2018, 9:13:31 AM2/21/18
to coolprop-users


Il giorno martedì 20 febbraio 2018 20:51:53 UTC+1, enerb...@gmail.com ha scritto:

enerb...@gmail.com

unread,
Feb 21, 2018, 9:15:33 AM2/21/18
to coolprop-users
Thank You for the answers,

it seems that the reason for the different values was a trivial typing error in the Excel formula.

Sorry for the inconvenience.

Mg

Ian Bell

unread,
Feb 21, 2018, 9:47:46 PM2/21/18
to coolpro...@googlegroups.com
Aha, good to hear!  Thanks for asking your question!

--
Reply all
Reply to author
Forward
0 new messages