Spherical Collapse of a Cosmic Overdensity: Radius History and Overdensity Growth (2D)
A cross-section of the same top-hat sphere with its turnaround, virial and Hubble-flow circles, the exact nonlinear overdensity against linear growth with the 1.686 collapse threshold, and the same checks as the 3D scene.
Take a slightly overdense ball of matter in an expanding Einstein-de Sitter universe and watch 900 test particles ride the exact parametric solution: the ball expands more slowly than the Hubble flow, turns round at overdensity 5.55, falls back and settles at half the turnaround radius with a mean density 178 times the background. Choose the mass, the linear overdensity and the Hubble constant to see the collapse redshift, virial radius and virial speed. A radial integration, perturbation theory and SI-unit density checks are built in.
A cross-section of the same top-hat sphere with its turnaround, virial and Hubble-flow circles, the exact nonlinear overdensity against linear growth with the 1.686 collapse threshold, and the same checks as the 3D scene.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install