galpy.potential.Potential.mvir¶
-
Potential.
mvir
(vo, ro, H=70.0, Om=0.3, overdens=200.0, wrtcrit=False, forceint=False)¶ NAME:
mvirPURPOSE:
calculate the virial massINPUT:
vo - velocity unit in km/s
ro - length unit in kpc
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
KEYWORDS:
forceint= if True, calculate the mass through integration of the density, even if an explicit expression for the mass existsOUTPUT:
M(<rvir)HISTORY:
2014-09-12 - Written - Bovy (IAS)