CoolProp - How do you use it?

  • Thread starter Omega0
  • Start date
  • #1
144
17

Summary:

Thermodynamics

Main Question or Discussion Point

Hello,

CoolProp (in my case under Python, http://www.coolprop.org/ ) seems to be pretty interesting to me. I would like to use it mostly for teaching. What is your impression, do you use it? I am just asking because I trust in the physics but I am not convinced from the documentation.... what ist your experience?

Cheers
 

Answers and Replies

  • #2
11,827
5,450
It looks like a robust library of C++ code used on quite a few projects and via quite a few languages.

With respect to teaching, what would you use it for? fluid flow simulations showing laminar to turbulent transitions? or something else altogether?

These python plots look like the best approach to illustrating what it can do for students:

http://www.coolprop.org/coolprop/python-plotting.html

It has a lot of other great uses for engineers in computing some key thermodynamic value but not so much for students:

https://eng-shady-mohsen.blogspot.com/2014/06/coolprop-fluid-thermodynamic-properties.html

where Coolprop is added as a plugin to Excel
 
  • Like
Likes sysprog
  • #3
144
17
With respect to teaching, what would you use it for? fluid flow simulations showing laminar to turbulent transitions? or something else altogether?
Explanation of phase transitions, triple point, etc., coming from 3D to XY plots.
These python plots look like the best approach to illustrating what it can do for students:
Nope, much better plots possible when you use CoolProp as solver and couple it with other post-processing software, interactivity is then suddenly the keyword.
It has a lot of other great uses for engineers in computing some key thermodynamic value but not so much for students:
https://eng-shady-mohsen.blogspot.com/2014/06/coolprop-fluid-thermodynamic-properties.html
where Coolprop is added as a plugin to Excel
Thank you for the link but I disagree: There has to be a lot of fun for students in diving in thermodynamics. I think CoolProp will be a way to do it.
 
  • Like
Likes jedishrfu
  • #4
11,827
5,450
Well, it seems you've already made up your mind so the next step is to go start teaching with it.

One other thing I've noticed is that you can mix Coolprop with Julia:

http://www.coolprop.org/coolprop/wrappers/Julia/index.html

Julia is starting to take the numerical computing field by storm for its speed and cost over other choices like Python and Matlab.

https://julialang.org/

Folks use the Jupyter notebooks to interface with Julia or Python and I suspect that you could demo your Coolprop using a Jupyter notebook though it may take some effort to setup a Jupyter environment on your machine.

Using Anaconda3 distro and Julia with IJulia:

https://quantecon.org/quantecon-jl/
 
  • Like
Likes sysprog
  • #5
144
17
Julia is starting to take the numerical computing field by storm for its speed and cost over other choices like Python and Matlab.
I know Python for 20 years and NumPy/SciPy for about 10 years. I had never anyone speaking about Julia but you but I wll be aware.
 
  • Like
Likes sysprog
Top