hmf.halos.mass_definitions.SOVirial.r_to_m

SOVirial.r_to_m(r, z=0, cosmo=FlatLambdaCDM(name="Planck15", H0=67.7 km / (Mpc s), Om0=0.307, Tcmb0=2.725 K, Neff=3.05, m_nu=[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}\).