Optimization with Julia: A Practical Guide for Scientists and Engineers

  • Thread starter Omega0
  • Start date
In summary, CoolProp seems to be a robust library of C++ code used on quite a few projects and via quite a few languages. It has a lot of other great uses for engineers in computing some key thermodynamic value but not so much for students. Julia is starting to take the numerical computing field by storm for its speed and cost over other choices like Python and Matlab.
  • #1
Omega0
205
51
TL;DR Summary
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 FluidDroog
Technology news on Phys.org
  • #2
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
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 jedishrfu
  • #4
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
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 sysprog

Related to Optimization with Julia: A Practical Guide for Scientists and Engineers

1. What is CoolProp and how does it work?

CoolProp is a free, open-source software library for thermophysical properties of fluids. It provides a wide range of properties, such as temperature, pressure, density, and viscosity, for various fluids including refrigerants, natural gas, and water. CoolProp uses advanced equations and correlations to calculate these properties, making it a reliable tool for thermodynamic analysis.

2. How can I access and download CoolProp?

CoolProp can be accessed and downloaded from its official website, coolprop.org. The website provides instructions for downloading and installing the software on different operating systems, including Windows, Mac, and Linux. It also offers a Python interface for those who prefer to use CoolProp within their own code.

3. What are the applications of CoolProp?

CoolProp has a wide range of applications in various industries, including refrigeration, air conditioning, power generation, and chemical processing. It can be used to analyze and optimize thermodynamic cycles, design heat exchangers, and simulate real-world systems. CoolProp is also useful for academic research and education purposes.

4. How do I use CoolProp to calculate properties?

Using CoolProp is straightforward. Once you have downloaded and installed the software, you can either use the pre-built graphical user interface (GUI) or the Python interface to access the properties of fluids. You can input the properties you know, such as temperature and pressure, and CoolProp will calculate the remaining properties for you.

5. Is CoolProp accurate and reliable?

CoolProp has been extensively tested and validated against experimental data, making it a highly accurate and reliable tool for thermodynamic analysis. It uses state-of-the-art equations and correlations to calculate properties and is constantly updated to include new fluid models and data. However, it is always recommended to crosscheck the results with other sources for critical applications.

Similar threads

  • Programming and Computer Science
Replies
6
Views
2K
  • Programming and Computer Science
Replies
3
Views
2K
  • Programming and Computer Science
Replies
5
Views
962
Replies
1
Views
821
Replies
2
Views
115
  • New Member Introductions
Replies
2
Views
61
  • New Member Introductions
Replies
1
Views
71
  • Electrical Engineering
Replies
27
Views
184
  • Computing and Technology
Replies
20
Views
2K
Back
Top