In a gas, unlike in a solid or a liquid, the particles (atoms or molecules) are relatively far away from each other. The chaotic motion of the gas particles is to be illustrated here in a simulation. Thereby, the model of an ideal gas is taken as a basis. The following assumptions are made:
The control panel of this app has two buttons. The first one ("Reset") creates the initial state, the second one ("Start/Pause/Resume") can be used to start, stop or continue the animation. The option "Slow motion" will decelerate the animation. The type of gas can be selected from four examples, namely nitrogen (N2), oxygen (O2), argon (Ar) and hydrogen (H2). A numerical input is possible - within certain limits - for the amount of substance (a measure for the number of particles, unit mole), the absolute temperature (unit Kelvin) and the pressure (unit kilopascal). The inputs are to be confirmed with the Enter key. Below the input fields, the calculated volume is displayed (unit cubic centimeter). In some cases, the pressure is modified to give a volume between 100 cm3 and 1000 cm3. The radio buttons in the lower part of the control panel determine what will be displayed in the drawing area:
Note: For older computers, problems with the computing speed may occur.