onepower.hmi.SOVirial_Mead.r_to_m#

SOVirial_Mead.r_to_m(r, z=0, cosmo=FlatLambdaCDM(name='Planck15', H0=<Quantity 67.74 km / (Mpc s)>, Om0=0.3075, Tcmb0=<Quantity 2.7255 K>, Neff=3.046, m_nu=<Quantity [0., 0., 0.06] eV>, Ob0=0.0486))#

Return the mass corresponding to r for this mass definition

Parameters:

r (float or array_like) – The radius to convert to mass. Units should be compatible with halo_density().

Notes

Computed as \(\frac{4\pi r^3}{3} \rho_{\rm halo}\).