Computer Program Detail Page
Ejs Einstein’s Train and Tunnel Model
written by Juan Aguirregabiria
edited by Wolfgang Christian
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 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 Java (JRE).
1 source code document is available
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 and run this model using Ejs.
download 11kb .zip
Published: September 29, 2008
ComPADRE is beta testing Citation Styles!
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.
Citation Source Information
The APA Style presented is based on information from APA Style.org: Electronic References.
The Chicago Style presented is based on information from Examples of Chicago-Style Documentation.
The MLA Style presented is based on information from the MLA FAQ.