In this exercise, we will use to investigate the gravitational potential of dark matter profiles in dwarf galaxies using the Jeans equations formulation for collisionless systems. We will use mock data based on Walker et al. (2009). Dwarf galaxies are dark matter, so we can assume the gravitational potential is only given by dark matter density profile.
import matplotlib.pyplot as plt
import time
import numpy as np
import galpy
from galpy.df import jeansSelect one of the dwarf galaxies data for line-of-sight (LOS) velocity dispersion profiles. The columns are (1) radial distance in the plane of the sky in pc, (2) LOS velocity dispersion measured at the given radial distance in km/s, (3) error in the velocity dispersion measured in km/s
These values might be useful since galpy standard units are given in velocity normalized by the circular velocity of the Milky Way , and the approximate distance of the sun to the Milky Way’s center .
v0=220 #km/s
r0=8e3 #pc
G_c=4.30091e-3 #pc (km/s)^2 Msun^-1In Walker et al. (2009) two of the dark matter profiles that are studied are the Navarro–Frenk–White (NFW) profile https://
We can define a potential we are working with in galpy as follows (NFW as example): (giving ro and vo will produce outputs in for densities and for velocity dispersions, inputs must be on galpy units though).
To explore the dark matter profile of dwarf galaxies, we will use the density profiles that define the potential with a characteristic density . Such a density will be the input in our potentials (for the NFW profile as defined in you might want to write ). Density inputs have units
(1) After selecting one of the galaxies, define an NFW and Burkert potential in and plot the corresponding density profiles in a range of 10 to 2000 pc. Taking the previous example, you can use to evaluate the density of the given potential at different distances . Use at least 3 values of scale density in the range - for each profile. What are the main differences between the two density distributions (you might use a log scale in your plots).
(2) Since we only have access to LOS velocities, we need the anisotropy to compute the velocity dispersions from the Jeans equations. Use at least 5 values of the anisotropy in the range -1 and compute the radial velocity dispersions with . Use to compute at a given radial distance . Plot vs (do not compare with the data yet).
(3) is defined in an arbitrary radial position of the sky, contains information about the inclination of our system, and then it can be used to obtain projected that we can compare with our data. Use to compute at given distances. The densities of stars (dens) and (surfdens) should be functions of (use ), you can use the analytical formulas given in section 3.1 of Walker et al. (2009), note that can be ignored and Table 1 lists the for each galaxy. Plot the obtained with the different values of and for the two dark matter profiles and compare with your data.
(4) Select your best model to compute the total mass of dark matter contained in a radius of 300 pc and of your selected galaxy and compare with Table 2 of Walker et al. (2009).
(5) In principle, you can estimate the best-fitting parameters for your model and get an estimate of the mass of your dark matter halo. It is usual that people define a likelihood based on and then apply an optimization technique to get the best-fitting parameters in this case for ( and ).