The EJS Rail Gun Model simulates a rail gun created by running current through long rods generating a magnetic field that accelerates a current-carrying cross-rod. The simulation shows the generated magnetic field. Users can adjust the current in the rails and rod as well as the spacing between the rails. 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.
The Rail Gun 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_em_RailGun.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 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).
Rain Gun Model Source Code
Source Code for the Rail Gun Model program. The source code archive contains an XML representation of the Ejs model. Unzip this archive in your Ejs Workspace to compile and run this model using Ejs. download 117kb .zip
Published: May 21, 2009
previous versions
A. Cox, Computer Program RAIL GUN MODEL, Version 1.0 (2009), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8992&DocID=1204).
Cox, A. (2009). Rail Gun Model (Version 1.0) [Computer software]. Retrieved March 23, 2025, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8992&DocID=1204
%0 Computer Program %A Cox, Anne %D May 21, 2009 %T Rail Gun Model %7 1.0 %8 May 21, 2009 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8992&DocID=1204
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.