T7: General 3 body problem (ejection, softening)

Before the tutorials:

Do, think about, and research the following:

During the tutorials:

Program it!

Maybe you can further explore the power of C++ if you did not mannage last time:

Example programs:

These are just examples.

Discussion of the results:

Plot your results with gnuplot and plot the behaviour of the systems using different initical conditions. Can you explain what you see ?

Example plots:


Programming goals for T7:

Goal of this tutorial is that you get further familiar with the vector class in C++. In addition you might get more familiar with reading your initial setup directly from a file.