Optimization with Julia: A Practical Guide for Scientists and Engineers

  • Thread starter Thread starter Omega0
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
Omega0
Messages
215
Reaction score
52
TL;DR
Thermodynamics
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
 
  • Like
Likes   Reactions: FluidDroog
Physics news on Phys.org
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   Reactions: sysprog
jedishrfu said:
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   Reactions: jedishrfu
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   Reactions: sysprog
jedishrfu said:
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   Reactions: sysprog