A hard sphere model of an ideal gas.
Hard Sphere Gas extends the Hard Disk model to three dimensions. Particles move with constant velocity until a collision event is detected. Although collision detection is not the most efficient computation algorithm for this problem, it is straightforward, accurate and fast-enough for small numbers of particles to show the physics that gives rise to a simple model of an inert monatomic gas. The accumulate data averages the speed histogram over many time steps.
The Hard Sphere Gas model is designed to teach Ejs modeling. In particular, collisions are detected using using EJS events and this is not efficient for large numbers of spheres. Right click within the simulation to examine this model in the Ejs modeling and authoring tool. See:
The Easy Java Simulations (EJS) documentation can be downloaded from the ComPADRE Open Source Physics collection and from the Ejs website.
This simulation was created by Wolfgang Christian using the Easy Java Simulations (Ejs) modeling tool. You can examine and modify this simulation if you have Ejs installed by right-clicking within a plot and selecting "Open Ejs Model" from the pop-up menu. Information about Ejs is available at: <http://www.um.es/fem/Ejs/>.