» Discrete simulation of a hard sphere gas

…simulation and velocity distribution visualization I wrote while preparing for my Kinetic Theory exam.

Elastically colliding hard spheres are a simple but practical model for gas kinetics. Using a simulation of this model one can see how the velocity distribution of such a gas tends towards a Maxwell-Boltzmann equilibrium distribution.

Sources are available.

Video of 3D hard sphere gas

Video of 2D hard sphere gas