phi_r

cosmic.sample.cmc.elson.phi_r(r, gamma, rho_0)[source]

Compute the gravitational potential of an Elson profile at radius r with slope gamma, central concentration rho_0, and assumed scale factor a = 1

Needed to compute the escape speed (for resampling stars)