Confronting the thermodynamics knowledge gap: A short course on computational thermodynamics in Julia

Luc Paoli,Pavan K. Inguva,Andrew J. Haslam,Pierre J. Walker
2023-10-20
Abstract:Computational elements in thermodynamics have become increasingly important in contemporary chemical-engineering research and practice. However, traditional thermodynamics instruction provides little exposure to computational thermodynamics, leaving students ill-equipped to engage with the state-of-the-art deployed in industry and academia. The recent rise of easy-to-use open-source thermodynamic codes presents an opportunity for educators to help bridge this gap. In this work, we present a short course that was developed and rolled-out using the Clapeyron.jl package, the material of which is all openly available on GitHub. The course can serve as a foundation for others to similarly integrate computational material in thermodynamics education. The course is structured into three sections. Section one serves as a refresher and covers core material in numerical methods and thermodynamics. Section two introduces a range of thermodynamic models such as activity-coefficient models and cubic equations of state, outlining their implementation. In section three the focus is moved to deployment, guiding students on how to implement computational-thermodynamics methods covering volume solvers, saturation solvers, chemical-stability analysis and flash problems. In a pilot study conducted with both undergraduate and graduate students, participants found the material engaging and highly relevant to their chemical-engineering education.
Physics Education
What problem does this paper attempt to address?
The paper aims to address the gap between the knowledge of computational thermodynamics in chemical engineering education and the needs of modern industry and academic research. Specifically, the paper proposes a short-term course that utilizes the Clapeyron.jl package in the Julia language to introduce senior undergraduates and graduate students to the fundamental principles and practical applications of computational thermodynamics. The main objectives include: 1. **Bridging the gap in traditional thermodynamics education**: Traditional thermodynamics teaching often lacks computational thermodynamics content, making it difficult for students to cope with the advanced computational techniques used in industry and academia after graduation. 2. **Teaching computational thermodynamics tools**: Through this course, students can learn how to use various computational thermodynamics models and methods to analyze systems, estimate different properties (such as phase diagrams or activity coefficients), and perform process or physical basis simulations. 3. **Cultivating deep understanding**: The course not only allows students to understand how to use various models and software packages but also encourages them to explore the numerical algorithms and computational details behind them to avoid treating these tools as "black boxes." The course structure is divided into three parts: 1. **Basic review**: Covers numerical methods and fundamental knowledge of thermodynamics. 2. **Model introduction**: Introduces various thermodynamic models, such as activity coefficient models, cubic equation of state models, SAFT equations, etc. 3. **Practical applications**: Teaches how to implement computational thermodynamics methods, such as volume solvers, saturation solvers, chemical stability analysis, and flash problems. The course received positive feedback through a pilot study, with participants finding the course content highly relevant and engaging to their chemical engineering education. Additionally, all course materials are publicly available on GitHub for other educators to reference and use.