yt.lagos.Halo.virial_mass

Halo.virial_mass(virial_overdensity=200.0, bins=300)

Return the virial mass of the halo in Msun, using only the particles in the halo (no baryonic information used).

The virial mass is calculated, using the built in Halo.virial_info functionality. The mass is then returned.

Parameters :

virial_overdensity : float

The overdensity threshold compared to the universal average when calculating the virial mass. Default = 200.

bins : int

The number of spherical bins used to calculate overdensities. Default = 300.

Returns :

mass : float

The virial mass in solar masses of the particles in the halo. -1 if not virialized.

Examples

>>> vm = halos[0].virial_mass()

Previous topic

yt.lagos.Halo.virial_info

Next topic

yt.lagos.Halo.virial_radius

This Page