PropSI vs HAPropSI ref state excel

47 views
Skip to first unread message

Clifford Bradford

unread,
Dec 9, 2024, 6:31:00 PM12/9/24
to coolprop-users
I'm comparing results using HAPropsSI and PropsSI in Excel. When I run dry air cases the c_p and c_v are acceptably close to one another but the specific enthalpies are quite different.  =HAPropsSI("Hha","Tdb",CONVERT($A7,"C","K"),"P",CONVERT($B7,"atm","Pa"),"HumRat",$D7 is 15.08713 kJ/kg
while:
=PropsSI("HMASS","T",CONVERT($A7,"C","K"),"P",CONVERT($B7,"atm","Pa"),"HEOS::Air")
is 414.3746 kJ/kg
inputs are:
A7 = 15
B7 = 1
D7 = 0

I assume the difference is due to the reference state but I'm not sure what the difference is. HAPropsSI calculates an approximately 0 enthalpy at 0°C and 1 atm while for PropsSI it is at ~195°C. Is there anyway to set the referene state consistently in Excel?

Ian Bell

unread,
Dec 10, 2024, 11:26:08 AM12/10/24
to coolpro...@googlegroups.com
Not in Excel (because the order of cell evaluation is non-deterministic), but in other environments like Python, yes you can set the reference state to whatever you like.

--
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 view this discussion visit https://groups.google.com/d/msgid/coolprop-users/eaf2e916-a0ed-4126-9541-9b10db957a4an%40googlegroups.com.

Paco Calvino - UPC

unread,
Dec 10, 2024, 10:30:22 PM12/10/24
to coolprop-users
I've been facing a similar issue for a long time.
What I do is to compute enthalpies difference for an arbitrary T and p using PropsSI and HAPropSI. Then I add/subtract that value to PropsSI or HAPropsSI results when needed. 
I hope this would help. 
Regards,

Clifford Bradford

unread,
Dec 11, 2024, 1:27:02 PM12/11/24
to coolprop-users
Maybe this is something the user could set based on an event like opening the workbook? I notice in the CoolProp.xlam that there is a "Private Sub Workbook_Open()" that gets the Refprop path and I assume it runs whenever Excel starts up/the add-in is enabled. 
In any case could there me more [unified] documentation of the reference states?

Clifford Bradford

unread,
Dec 11, 2024, 1:29:02 PM12/11/24
to coolprop-users
Francisco, great tip. Yes that was how I was validating the enthalpies by calculating a Dh from a given dry air reference case.
Reply all
Reply to author
Forward
0 new messages