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. This model explores what happens if the initial conditions are chosen 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 and collide with the aligned balls. The Ejs model solves Newton's second law of motion numerically, pauses when a collision is detected, applies conservation of energy and momentum to the collision, and then the simulation is resumed. Small changes in the initial conditions of the system can be made to explore the sensitivity of the motion to perturbations.
The Balls in a Box model was created using the JavaScript version of the Easy Java Simulations (Ejs) modeling tool.
Please note that this resource requires
at least version 1.5 of Java.
Web EJS version of Balls in Box
Web EJS saves the EJS model in a Jason file. This format is not compatible with desktop EJS. download 270kb .zip
Last Modified: November 3, 2023
W. Christian, Computer Program BALLS IN A BOX JS MODEL, Version 1.0 (2023), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=16643&DocID=5804).
W. Christian, Computer Program BALLS IN A BOX JS MODEL, Version 1.0 (2023), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=16643&DocID=5804>.
Christian, W. (2023). Balls in a Box JS Model (Version 1.0) [Computer software]. Retrieved September 7, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=16643&DocID=5804
Christian, Wolfgang. "Balls in a Box JS Model." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=16643&DocID=5804 (accessed 7 September 2024).
%A Wolfgang Christian %T Balls in a Box JS Model %D October 3, 2023 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=16643&DocID=5804 %O 1.0 %O text/html
%0 Computer Program %A Christian, Wolfgang %D October 3, 2023 %T Balls in a Box JS Model %7 1.0 %8 October 3, 2023 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=16643&DocID=5804
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.