Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Week 5 Exercise

The goal of this week’s exercise is to set up situations in which a more massive body moves in a sea of background particles and experiences a dynamical friction force.

Getting started

A notebook has been provided that sets up a disk of planetesimals orbiting a central star. Try running this first and test out the visualization server and check that the notebook is outputting png files correctly.

Part 1: Planet migration

First, we’ll add a planet to the disk and see whether we can reproduce the results from the Kirsh et al. paper.

Add a planet to the disk in a circular orbit with a=1a=1. You can try different masses, but a good starting point is to take the planet mass to be 10% of the total disk mass. Note that because we are using the tree code for gravity, the particles array may be reordered, so it is best to label the planet with e.g. hash="planet" so that you can refer to it later (I’ve done something similar with the star).

Use your simulation to

Part 2: Dynamical friction in a spherical cluster

Make modifications to the code to initialize a spherical cluster of particles. One way to do this is to choose the planetesimal locations so that they are uniformally-distributed in a sphere, and give the particle velocity random directions, with speed 1/r\propto 1/\sqrt{r}. You’ll see some adjustment at first when you run the simulation, but the system should settle down to a stable spherical cluster of particles.

Once you have a spherical cluster, you can try adding a planet and see whether the orbit decays and whether it matches the prediction from the Chandrasekhar dynamical friction formula.

You might also be able to think up some other numerical set up to illustrate the concept of dynamical friction.

For example, rather than using a swarm of planetesimals around a central star, you could also set up a self-gravitating cluster of stars (without the massive central object). In the C version of REBOUND there is a routine to initialize a Plummer sphere that you could translate into Python for your initial condition.