MD
A Molecular Dynamics Program


MD is a program which simulates the behavior of a collection of N particles in a box, by computing their positions, velocities and accelerations at STEP_NUM regularly spaced times.

The program does some initialization, and then enters an integration loop. The results of each time step are summarized by printing the time, and the kinetic and potential energies (whose sum should be constant).

The main work occurs in the function update; most of the rest of the work is carried out in function compute.

Source Code:

Completed Source Code:

Here are "completed" versions of the programs.
(Access to these files may be restricted until everyone has had a chance to work on the problems!)

Batch Script:

Once you have made a md executable, you need to copy this script file to the same directory that contains the executable, and issue the command qsub md.sh. That submits a request to have the executable program run on 4 processors. You can type showq to see if the request has started yet.

You can go up one level to the OpenMP page.


Last revised on 15 August 2008.