# Arbitrary spherical density potential¶

class galpy.potential.AnySphericalPotential(dens=<function AnySphericalPotential.<lambda>>, amp=1.0, normalize=False, ro=None, vo=None)[source]

Class that implements the potential of an arbitrary spherical density distribution $$\rho(r)$$

__init__(dens=<function AnySphericalPotential.<lambda>>, amp=1.0, normalize=False, ro=None, vo=None)[source]

NAME:

__init__

PURPOSE:

Initialize the potential of an arbitrary spherical density distribution

INPUT:

dens= (0.64/r/(1+r)**3) function of a single variable that gives the density as a function of radius (can return a Quantity)

amp= (1.) amplitude to be applied to the potential

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:

2021-01-05 - Written - Bovy (UofT)