galpy.potential.evaluateDensities

galpy.potential.evaluateDensities(Pot, R, z, phi=None, t=0.0, forcepoisson=False)[source]

Evaluate the density corresponding to a potential or sum of potentials.

Parameters:
  • Pot (potential or list of potentials) – Dissipative forces in such a list are ignored.

  • R (float or Quantity) – Cylindrical Galactocentric distance.

  • z (float or Quantity) – Distance above the plane.

  • phi (float or Quantity, optional) – Azimuth (default: None).

  • t (float or Quantity, optional) – Time (default: 0.0).

  • forcepoisson (bool, optional) – If True, calculate the density through the Poisson equation, even if an explicit expression for the density exists.

Returns:

density

Return type:

float or Quantity

Notes

  • 2010-08-08 - Written - Bovy (NYU)

  • 2013-12-28 - Added forcepoisson - Bovy (IAS)