galpy.potential.Potential.rhalf

Potential.rhalf(t=0.0, INF=inf)[source]

Calculate the half-mass radius, the radius of the spherical shell that contains half the total mass.

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

  • INF (float or Quantity, optional) – Radius at which the total mass is calculated (default: numpy.inf).

Returns:

Half-mass radius.

Return type:

float or Quantity

Notes

  • 2021-03-18 - Written - Bovy (UofT)