# Kinetic Theory I

This Java applet simulates a 2 dimensional gas of hard spheres. It illustrates several important concepts in statistical mechanics/kinetic theory, such as: mean free path and average time between collisions, the approach to thermal equilibrium and the Maxwell-Boltzmann speed distribution, and the question of macroscopic irreversibility vs. microscopic reversibility.

To use the applet, enter a number in the text field, click "Set", then click "Run." The "molecules" are spheres of radius one pixel (the default value; you can change the radius to two pixels by clicking in the "Make particles bigger" box) and do not interact except when they come in contact; then they scatter elastically. The small box on the right shows the distribution of speeds as the collisions take place. The blue line is the theoretical result for an ideal gas in thermal equilibrium--a two dimensional Maxwell-Boltzmann distribution.

Left to itself, the simulation will run for a long time; you will probably want to click "Stop" at some point. After the animation stops, you can check the microscopic reversibility of this system by clicking on "Reverse." This flips around all the velocities of the particles and runs the system for a time equal to the time it had run previously. In principle, that should "undo" every collision and restore the initial distribution of positions and velocities. You can see how roundoff error prevents this from happening after a sufficiently large number of collisions per molecule have taken place.

### Tidbits

You'll find that the reversibility depends on the number of collisions per particle. (Keep in mind that when the number of collisions equals the number of particles, each particle has collided twice, on average.) The very fast propagation of roundoff error with each collision (extreme sensitivity to initial conditions) is an indication of chaos in this system.

How fast the speed distribution approaches the steady state seems to depend also on the number of collisions per particle. Check out also how the the relative size of the fluctuations about the steady state distribution is greater for fewer particles.

If you're interested in quantitative estimates, you will find a lot more information on the physics of this system on this other page!