galpy.potential.NFWPotential.rvir

NFWPotential.rvir(H=70.0, Om=0.3, t=0.0, overdens=200.0, wrtcrit=False, ro=None, vo=None, use_physical=False)[source]

Calculate the virial radius for this density distribution.

Parameters:
  • H (float, optional) – Hubble constant in km/s/Mpc. Default is 70.0.

  • Om (float, optional) – Omega matter. Default is 0.3.

  • t (float, optional) – Time. Default is 0.0.

  • overdens (float, optional) – Overdensity which defines the virial radius. Default is 200.0.

  • wrtcrit (bool, optional) – If True, the overdensity is wrt the critical density rather than the mean matter density. Default is False.

  • ro (float or Quantity, optional) – Distance scale for translation into internal units (default is the object-wide value).

  • vo (float or Quantity, optional) – Velocity scale for translation into internal units (default is the object-wide value).

Returns:

Virial radius.

Return type:

float

Notes

  • 2014-01-29 - Written - Bovy (IAS)