Supercomputing Applications
Lab 14A Report Form
Experimenting with the Serial (non-parallel) version
of the N-body program

  1. Your name: __________________________________, Period: _____, Date __________

  2. Code is given to you that demonstrates two and three bodies attracted to each other. In the given code, the bodies have equal initial velocities (0) and equal masses, so each is attracted the same way. Run this code and plot the results with GnuPlot.

  3. Now experiment with a variation on the given program. For example, vary the number of initial particles and/or vary the initial masses. Create one particle whose mass is very much more than the other particles. Give the lighter particles an initial velocity in some direction other than directly at the large mass. Plot your results with Gnuplot.

  4. Experiment 1: Your first variation.

  5. Experiment 2: Your second variation.

  6. If you've tried other experiment(s), describe these below: