The Balls in a Box model shows that a system of particles is very sensitive to its initial conditions. In general, an isolated system of many particles that is prepared in a nonrandom configuration will change in time so as to approach its most random configuration where it is in equilibrium. What happens if we choose the initial conditions in a very special way?
The default initial condition corresponds to eight stationary particles perfectly aligned on the x-axis. Two particles approach from the left and the right. What happens when these particles collide with the eight stationary particles? The Ejs model solves Newton's second law of motion numerically but pauses when a collision is detected. This is called an Ejs event. Conservation of energy and momentum are applied at the event and the simulation is resumed.
The Balls in a Box model was created using the Easy Java Simulations (Ejs) modeling tool. It is distributed as a ready-to-run (compiled) Java archive. Double clicking the ejs_sto_BallsInBox.jar file will run the program if Java is installed. Ejs is a part of the Open Source Physics Project and is designed to make it easier to access, modify, and generate computer models. Additional Ejs models for classical mechanics are available. They can be found by searching ComPADRE for Open Source Physics, OSP, or Ejs.
Please note that this resource requires
at least version 1.5 of
Balls in a Box Model source code
The source code zip archive contains an XML representation of the Balls in a Box Model. Unzip this archive in your Ejs workspace to compile and run this… more... download 9kb .zip
Last Modified: November 16, 2008
%0 Computer Program %A Christian, Wolfgang %D November 15, 2008 %T Balls in a Box Model %7 1.0 %8 November 15, 2008 %U http://www.compadre.org/Repository/document/ServeFile.cfm?ID=8307&DocID=913
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.