How the GAS Program Works with a Note on Simulating Turtles with Touch Sensors
The GAS program is a display simulation of a 2 dimensional ideal gas. Barriers, or walls, are line segments, and molecules, alias particles or balls, are circles. Collisions occur between balls and other balls as well as between balls and walls. All collisions are elastic. Global gravitational, electric, and magnetic fields can be imposed to act on the articles. The following is a description of some of the inner workings on the program.