Thermodynamics in Python (tutorial): Part 2

Опубликовано: 23 Февраль 2025
на канале: Dave's Space
4,091
66

This video series shows how the Python programming language can be used to simulate thermodynamics and gain a deeper understanding in the process.

We construct a simple "particles in a box" simulation and use it to show the relationship between temperature and average kinetic energy of the particles. The simulation also allows us to see how the Maxwell-Boltzmann distribution for the speeds of the particles appears, regardless of the initial posistions and speeds of the particles.

This video is aimed at people interested in physics and would like to know more about the kinetic theory of gasses, or undergraduates who are just starting to learn thermodynamics and/or python.

Part1:
   • Thermodynamics in python (tutorial): ...  
Construction of the basic simulation in which the particles can move

Part2:

Collision detection and momentum exchange for the particles with both the walls of the box and eachother

Part3:
   • Thermodynamics in Python (tutorial): ...  
Visualisation of the speed distirubtion of the particles showing how it changes overtime

Part4:
   • Thermodynamics in Python (tutorial): ...  
Adding a real gas (Xenon) and calculating the thermo-kinetic measurments (temperature) and making the animation nicer


source: https://github.com/davesspace/tutoria...