Free Gas

This program simulates the behavior of gas molecules. Molecules are modeled as perfectly elastic particles with no internal energy except that which is due to their motion. Collisions between molecules are elastic. Unlike Gas in a Box, the Free Gas model has no boundaries. Molecules are free to "wrap" the screen; that is, if they leave one edge they reappear on the other edge. Particles are colored according to speed -- blue for slow, green for medium, and red for high speeds.

For detailed instructions on using the program, take a look at the info window from the Free Gas model.

Download the StarLogoT source code for the Free Gas model:
Download freegas

To run this file you need StarLogoT2002 for the Macintosh.
(download StarLogoT)

Click on one of the pictures to see a quicktime movie of the model:
The movie shows typical molecular motion, with the path of one molecule traced in yellow. The graphs show a) the relative numbers of molecules with different speeds and b) the velocity distribution.