The Ejs Einstein's Train and Tunnel model displays the famous thought experiment from special relativity where a train enters a tunnel as seen from two points of view. In one case the train is seen in the reference frame of the tunnel, while in the other case the train is seen in its reference frame. The relative velocity and the rest length of the tunnel can be changed via a text boxes. You can modify this simulation if you have Ejs installed by right-clicking within the plot and selecting "Open Ejs Model" from the pop-up menu item.
Ejs Einstein's Train and Tunnel 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_ehu_sr_train.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 special relativity 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
Ejs Einstein’s Train and Tunnel Model Source Code
The source code zip archive contains an XML representation of the Ejs Einstein's Train and Tunnel Model. Unzip this archive in your Ejs workspace to compile… more... download 11kb .zip
Published: September 29, 2008
Aguirregabiria, J. (2008). Ejs Einstein’s Train and Tunnel Model (Version 1.0) [Computer software]. Retrieved July 7, 2015, from http://www.compadre.org/Repository/document/ServeFile.cfm?ID=7900&DocID=676
%A Juan Aguirregabiria %T Ejs Einstein's Train and Tunnel Model %E Wolfgang Christian, (ed) %D August 18, 2008 %U http://www.compadre.org/Repository/document/ServeFile.cfm?ID=7900&DocID=676 %O 1.0 %O application/java
%0 Computer Program %A Aguirregabiria, Juan %D August 18, 2008 %T Ejs Einstein's Train and Tunnel Model %E Christian, Wolfgang %7 1.0 %8 August 18, 2008 %U http://www.compadre.org/Repository/document/ServeFile.cfm?ID=7900&DocID=676
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.