Power-law density spherical potential¶
- class galpy.potential.PowerSphericalPotential(amp=1.0, alpha=1.0, normalize=False, r1=1.0, ro=None, vo=None)[source]¶
Class that implements spherical potentials that are derived from power-law density models
\[\rho(r) = \frac{\mathrm{amp}}{r_1^3}\,\left(\frac{r_1}{r}\right)^{\alpha}\]- __init__(amp=1.0, alpha=1.0, normalize=False, r1=1.0, ro=None, vo=None)[source]¶
NAME:
__init__
PURPOSE:
initialize a power-law-density potential
INPUT:
amp - amplitude to be applied to the potential (default: 1); can be a Quantity with units of mass or Gxmass
alpha - power-law exponent
r1= (1.) reference radius for amplitude (can be Quantity)
normalize - if True, normalize such that vc(1.,0.)=1., or, if given as a number, such that the force is this fraction of the force necessary to make vc(1.,0.)=1.
ro=, vo= distance and velocity scales for translation into internal units (default from configuration file)
OUTPUT:
(none)
HISTORY:
2010-07-10 - Written - Bovy (NYU)