OSP-based Programs for Advanced Physics:
Classical Orbit Programs

 

nbody.OrbitApp shows two or more objects that are gravitational attracted to each other. Any number of objects can be added with any mass, initial position, and initial velocity.
You can change the following parameters in the OSP Control window:

x: sets the initial position in the x direction of the object to be added.

vx: sets the initial velocity in the x direction of the object to be added.

y: sets the initial position in the y direction of the object to be added.

vy: sets the initial velocity in the y direction of the object to be added.

m: sets the mass of the object to be added.

dt: sets the time step.

steps per display: sets the number of time steps in between updating the animation display.