galpy.potential.mass¶
- galpy.potential.mass(Pot, R, z=None, t=0.0, forceint=False)[source]¶
NAME:
mass
PURPOSE:
convenience function to evaluate a possible sum of masses
INPUT:
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 z
HISTORY:
2021-02-07 - Written - Bovy (UofT)
2021-03-15 - Changed to integrate to spherical shell for z is None slab otherwise - Bovy (UofT)