galpy.potential.evaluateDensities¶
-
galpy.potential.
evaluateDensities
(Pot, R, z, phi=None, t=0.0, forcepoisson=False)¶ NAME:
evaluateDensitiesPURPOSE:
convenience function to evaluate a possible sum of densitiesINPUT:
Pot - potential or list of potentials (dissipative forces in such a list are ignored)
R - cylindrical Galactocentric distance (can be Quantity)
z - distance above the plane (can be Quantity)
phi - azimuth (can be Quantity)
t - time (can be Quantity)
forcepoisson= if True, calculate the density through the Poisson equation, even if an explicit expression for the density exists
OUTPUT:
rho(R,z)HISTORY:
2010-08-08 - Written - Bovy (NYU)
2013-12-28 - Added forcepoisson - Bovy (IAS)