OpenFOAM Coolprop Integration

556 views
Skip to first unread message

Carl Bunge

unread,
Sep 8, 2017, 7:11:03 PM9/8/17
to coolprop-users
Hi everyone,

I am attempting to integrate fluid properties in OpenFOAM through the implementation of temperature, pressure lookup tables.

 

My current attempt of implementing fluid properties has consisted of a pair python codes developed by Luka Denies from TU Delft (https://github.com/ldenies/tabulatedProperties/tree/master/tableGenerator ) which sweep temperature and pressure through the direct implementation of the equation of state. However, when I coded in parahydrogen’s equation of state into this same python structure, the code returns values of h, cp, ect. which are different from Refprop.

 

I foresee the implementation of Coolprop as a more reliable way to create lookup tables for future fluids rather than hard coding the equation of state. I'd really appreciate any progress or tips with Coolprop’s use with OpenFoam and was wondering if anyone has developed method for this integration.


Thank you,

Carl

Ian Bell

unread,
Sep 13, 2017, 12:38:17 AM9/13/17
to coolpro...@googlegroups.com
Differences in h,s,u, are likely due to the reference state: https://github.com/CoolProp/CoolProp/blob/master/FAQ.md, but cp should be the same.  If not, that is a problem that should be fixed.  Are the EOS different between REFPROP and CoolProp?  How does the density look?  Is it the same?

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.

Carl Bunge

unread,
Jul 22, 2018, 10:59:41 PM7/22/18
to coolprop-users
Hi Ian, fellow coolprops,

Please see the following tabularCoolProps class for OpenFOAM 5.x: https://github.com/cbunge/coolPropTableGenerator Please let me know if there are any improvements that can be made.

Thanks,
Carl

On Wednesday, September 13, 2017 at 12:38:17 AM UTC-4, Ian Bell wrote:
Differences in h,s,u, are likely due to the reference state: https://github.com/CoolProp/CoolProp/blob/master/FAQ.md, but cp should be the same.  If not, that is a problem that should be fixed.  Are the EOS different between REFPROP and CoolProp?  How does the density look?  Is it the same?

Ian


On Fri, Sep 8, 2017 at 5:11 PM, Carl Bunge <carlb...@gmail.com> wrote:
Hi everyone,

I am attempting to integrate fluid properties in OpenFOAM through the implementation of temperature, pressure lookup tables.

 

My current attempt of implementing fluid properties has consisted of a pair python codes developed by Luka Denies from TU Delft (https://github.com/ldenies/tabulatedProperties/tree/master/tableGenerator ) which sweep temperature and pressure through the direct implementation of the equation of state. However, when I coded in parahydrogen’s equation of state into this same python structure, the code returns values of h, cp, ect. which are different from Refprop.

 

I foresee the implementation of Coolprop as a more reliable way to create lookup tables for future fluids rather than hard coding the equation of state. I'd really appreciate any progress or tips with Coolprop’s use with OpenFoam and was wondering if anyone has developed method for this integration.


Thank you,

Carl

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

Ian Bell

unread,
Jul 28, 2018, 12:13:35 AM7/28/18
to coolpro...@googlegroups.com
Very nice!!!  Can you perhaps cross-post to the OpenFOAM list to let them know about this functionality?  I think there are a lot of folks that might be interested in this capability.

Best,
Ian

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.
Reply all
Reply to author
Forward
0 new messages