King DF

class galpy.df.kingdf(W0, M=1.0, rt=1.0, npt=1001, ro=None, vo=None)[source]

Class that represents a King DF:

\[\begin{split}f(\mathcal{E}) = \begin{cases} \rho_1\,(2\pi\sigma^2)^{-3/2}\,\left(e^{\mathcal{E}/\sigma^2}-1\right), & \mathcal{E} > 0\\0, & \mathcal{E} \leq 0\end{cases}\end{split}\]

where \(\mathcal{E}\) is the binding energy. See also King potential.

__init__(W0, M=1.0, rt=1.0, npt=1001, ro=None, vo=None)[source]

NAME:

__init__

PURPOSE:

Initialize a King DF

INPUT:

W0 - dimensionless central potential W0 = Psi(0)/sigma^2 (in practice, needs to be <~ 200, where the DF is essentially isothermal)

M= (1.) total mass (can be a Quantity)

rt= (1.) tidal radius (can be a Quantity)

npt= (1001) number of points to use to solve for Psi(r)

ro=, vo= standard galpy unit scaling parameters

OUTPUT:

(none; sets up instance)

HISTORY:

2020-07-09 - Written - Bovy (UofT)