Making a Ring Galaxy



OK, in this assignment you are going to make a 2D simulation of the formation of a ring galaxy. One way to form a ring galaxy is to drop a small satellite galaxy down the rotation axis of a large disk galaxy. We are going to mock this up in 2D by simulating a disk galaxy where we slowly turn on and then turn off a satellite galaxy potential at the center of the disk galaxy.

Galaxy Potentials:

For the disk galaxy potential, use the logarithmic potential: phi = 0.5*vc2*ln(r2). If we are simulating the Milky Way, what should the value of vc be?
For the satellite galaxy potential, use the Hernquist potential, with mass Mtot=1010 Msun and scale radius a=300 pc.

Step 1: Pushing a particle

Step 2: Initializing the disk
Step 3: Adding a satellite
Tips: