Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

EJS Modeling

Overview   -   EJS Overview   -   Installing EJS   -   Running Models   -   Packaging   -   References   -   Find Models

Running Models

Examining an EJS Model

Right-clicking within an Ejs model, such as Dirac Delta Scattering, allows a user to examine the model contained in the jar file.

A Google search for a simulation often returns hundreds of hits but it is usually impossible to determine how the program was created. Programs created with Ejs are different because they contain an XML description of the model inside the compiled jar file. Executing the jar and right-clicking on the simulation allows a user to copy the model into Ejs as show in the figure. This simple operation exposes the model's details for inspection and modification. This feature allows the following teaching scenario:

  1. A teacher prepares a simulation with a simple model of a phenomenon studied in the classroom and distributes it to students.
  2. Students run the simulation and work with it as instructed in the simulation narrative or exercise assignment.
  3. Students right-click on the simulation to gain access to the simulation code and study it using EJS.
  4. Students modify the simulation to change or extend the model or the view of the simulation, according to a modeling exercise prescribed by the teacher.
  5. Students package and send the modified simulation back to the teacher for correction.
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics