Statistical Mechanics Simulators
The Physics 317 class (Modern Physics II) at Cornell includes a laboratory project in which students
must write a program to simulate the evolution of a population of particles obeying the three different
possible statistics (Maxwell-Boltzmann, Fermi-Dirac, and Bose-Einstein). The resulting source code
from when I took this course as an undergraduate is available below.
The code makes reference to the "gplot" plotting package available on the Cornell physics computers
but not used elsewhere; these commands would have to be replaced by equivalent instructions for another
package for this program to be recompiled.
Statistical Mechanics Simulators
Maxwell-Boltzmann Statistics
Fermi-Dirac Statistics
Bose-Einstein Statistics