University of Maryland Physics Education Research Group


Resources on the Web for Teaching Physics

Physics Software from the UMd PERG:
Collide -- Simulation for a 1D Collision with a Variety of Forces

I. D. Johnston, M. A. Oldfield, University of Sydney
E. F. Redish, University of Maryland

Download File (36 KB)


Brief description

This program displays the collision of a particle in one dimension with another particle.   The struck particle may be a single mass or a pair of masses joined by a spring.   The force between the projectile and the struck particle(s) may be chosen from a variety of forces, and the user may choose to display the positions and velocities of the masses or their momenta and the forces they feel .


Pedagogical utility

The program can be used to motivate the introduction of the concept of center of mass.   It can also be used to help the student understand the role of Newton's second law in collisions, a topic often suppressed.   The three-body case is sufficiently rich that a number of independent explorations are possible.


Appropriate for


Screen views

Fig. 1: The display of position and velocity of the three particles as a function of time.


Availability

The code may be downloaded by clicking here. (36K)

The file is a zip file. Unpack it using WinZip. You will then find the following files in your directory:


Technical information

Forces are input as potential functions which are then differentiated locally to find the force. The forces included are:

  1. Coulomb force
  2. Harmonic Oscillator
  3. Dipole-dipole
  4. Lennard-Jones(6-12 potential)
  5. Short range repulsive
  6. Short range attractive

The potential for the short range forces is

Units are chosen so that the potential strengths = 1 for all potentials.   The rest length of the spring potential is taken to be 1. The range r0 of the short range force can be entered on the data-input screen.


Contact person

E. F. Redish, University of Maryland, College Park, MD 20742;
phone: 301-405-6120, fax: 301-314-9531, e-mail: redish@physics.umd.edu


Program help

This program calculates the motion of 2 or 3 particles which interact through forces. It displays a cartoon of the particles as their positions change. You may choose to observe positions and velocities, forces and momenta or energies of the particles. You may select the types forces through which the particles interact. You may also choose one of two different solution methods: Euler or Runge-Kutta.

Select any menu item by using the mouse, or by typing the first letter of its name.   Alternatively highlight it by moving the arrow keys, and then activate your choice by pressing <Enter> .

The selections on the main menu have the following meanings:

SET DATA: Brings up a data input screen that lets you set system parameters and choose options.   Use cursor keys to select a field.   Overtype to change numerical fields.   Use space to toggle option buttons. (Filled = selected)

GRAPHS: Performs the calculation and displays graphs of position, velocity, and the energies -- kinetic, potential, and total.

OPTIONS: Permits selecting the solution method, the number of particles (2 or 3), the types of graphs plotted, and a time delay for machines that are too fast.

QUIT:   Ends the program and returns to DOS.

When the graphs and animation are being displayed, the OPTIONS and QUIT entries are replaced by:

MEASURE: Allows reading of coordinates from any point on a graph.   Select any point with the mouse.   The coordinates of that point will be displayed at the top of the screen.   (Note: the reading given is the position of the tip of the cursor in graph coordinates.   It is not necessarily a point on the curve displayed.)

RETURN: Returns to the main menu.


Information about PERG Resource materials from PERG PERG Homepage PER elsewhere on the web Resource materials for teachers

Maintained by University of Maryland PERG
Comments and questions may be directed to E. F. Redish
Last modified May 31, 2007