galpy.potential.mass¶

galpy.potential.
mass
(Pot, R, z=None, t=0.0, forceint=False)[source]¶ NAME:
massPURPOSE:
convenience function to evaluate a possible sum of massesINPUT:
Pot  potential or list of potentials (dissipative forces in such a list are ignored)
R  cylindrical Galactocentric distance (can be Quantity)
z= (None) vertical height up to which to integrate (can be Quantity)
t  time (can be Quantity)
forceint= if True, calculate the mass through integration of the density, even if an explicit expression for the mass exists
OUTPUT:
Mass enclosed within the spherical shell with radius R if z is None else mass in the slab <R and between z and zHISTORY:
20210207  Written  Bovy (UofT)
20210315  Changed to integrate to spherical shell for z is None slab otherwise  Bovy (UofT)