c# refprop wrapper and Isentropic Expansion Coefficient

186 views
Skip to first unread message

Jessica Lacetera

unread,
Oct 11, 2017, 4:44:42 PM10/11/17
to coolprop-users
Hi,
I'm trying to use REFPROP and c# wrapper, and it seems that the Isentropic Expansion Coefficient calculation was not included in the c# wrapper.  Also, quality calculation is not included.
Does anyone know if it is there and I just haven't been able to find it because it is named something totally different.
Also, is there a way to access these calculations in REFPROP with the Low-Level interface, if they aren't included in the high-level interface?
Thanks,
Jess

Jorrit Wronski

unread,
Oct 11, 2017, 5:00:11 PM10/11/17
to coolpro...@googlegroups.com

Hi, there is an example for the low-level interface in the docs: http://coolprop.sourceforge.net/coolprop/wrappers/Csharp/index.html#example-code

 

Everything available in the high-level interface is listed here: http://coolprop.sourceforge.net/coolprop/HighLevelAPI.html#table-of-string-inputs-to-propssi-function

 

 

If you are interested in the ratio of the specific heats, I would recommend to calculate that yourself:

gamma = CoolProp.PropsSI('CPMASS','T',300,'P',101325,'R410A')/ CoolProp.PropsSI('CVMASS','T',300,'P',101325,'R410A')

 

Vapour quality can be obtained from the high-level interface.

 

Regards,

Jorrit

--
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.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.

Jessica Lacetera

unread,
Oct 12, 2017, 8:00:53 AM10/12/17
to coolprop-users
Thank you for the info Jorrit.  I should have realized that 'Quality' was 'Vapor Quality'.  Will try the calculation for Isentropic Coefficient and make sure that the engineers here are ok with the solution.  It should work, but we just have to check that it  matches the Refprop values, since previously we were calculating this with Refprop.

Thanks,
Jess

Ian Bell

unread,
Oct 22, 2017, 12:03:52 PM10/22/17
to coolpro...@googlegroups.com
Also, the isentropic expansion coefficient is not exactly the ratio of specific heats, that is only for an ideal gas.  I forget exactly the thermodynamically precise definition for the isentropic expansion coefficient, but it can certainly be calculated with CoolProp with the first_partial_deriv function in the low-level interface, or with the derivative definition in the high-level interface: http://www.coolprop.org/coolprop/HighLevelAPI.html#partial-derivatives

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

Matthis Thorade

unread,
Oct 22, 2017, 3:14:38 PM10/22/17
to coolprop-users
I looked it up (e.g. Lemmon 2000 Air paper), the isentropic expansion coefficient for real gas is defined as

Inline-Bild 1
where the molar mass is only needed if rho is given as molar density,
otherwise the equation is just k=d/p*w^2 where w is the speed of sound.



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.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.



--
Matthis Thorade
Bellermannstr. 14
13357 Berlin

+49-179-6879254
+49-30-25933766

Ian Bell

unread,
Oct 23, 2017, 10:33:10 AM10/23/17
to coolpro...@googlegroups.com
Right, so either you could evaluate the RHS directly, or evaluate the derivative (dp/drho|s).  Both good options! I like the derivative a bit better because it is more clear what the units are (self consistent set)

--

--
Reply all
Reply to author
Forward
0 new messages