Density contrast (halos = region above delta_c)
Histogram of delta vs Gaussian

Press-Schechter Dark Matter Halos: Density Field, Threshold and Histogram (2D)

Smooth a Gaussian random density field of dark matter at a chosen scale and let every region above the spherical-collapse threshold delta_c = 1.686 become a halo. Change the spectral index, smoothing radius, amplitude and redshift to see sigma(M), the collapsed mass fraction, the characteristic mass and the Press-Schechter multiplicity function. A Blender-built plinth and glass frame hold the 3D density landscape, with numerical checks of the statistics built in.

Made with 🟠 Blender