galpy.potential.Potential.mvir¶
- Potential.mvir(H=70.0, Om=0.3, t=0.0, overdens=200.0, wrtcrit=False, forceint=False, ro=None, vo=None, use_physical=False)[source]¶
NAME:
mvir
PURPOSE:
calculate the virial mass
INPUT:
H= (default: 70) Hubble constant in km/s/Mpc
Om= (default: 0.3) Omega matter
overdens= (200) overdensity which defines the virial radius
wrtcrit= (False) if True, the overdensity is wrt the critical density rather than the mean matter density
ro= distance scale in kpc or as Quantity (default: object-wide, which if not set is 8 kpc))
vo= velocity scale in km/s or as Quantity (default: object-wide, which if not set is 220 km/s))
KEYWORDS:
forceint= if True, calculate the mass through integration of the density, even if an explicit expression for the mass exists
OUTPUT:
M(<rvir)
HISTORY:
2014-09-12 - Written - Bovy (IAS)