Loading Blender model...

Cosmic Web from the Zeldovich Approximation

Grow filaments, sheets and clusters from a Gaussian random density field with a BBKS power spectrum.

The science

Idea. In an expanding universe small density fluctuations grow with the linear growth factor D(a). Zeldovich (1970) noticed that the same displacement field can be pushed beyond the linear regime: each particle that started on a regular lattice position q moves to x(q, a) = q + D(a) ψ(q), with the displacement ψ fixed by the initial density: ∇·ψ = -δlin, i.e. ψk = i k δk / k².

Initial field. δk is Gaussian with the power spectrum P(k) = kn T²(k), where T is the BBKS transfer function with shape Γ = Ωm h (h = 0.674). The field is made by filtering white noise in Fourier space (a 3D FFT written in plain JavaScript) and normalised so that the rms density contrast per grid cell at a = 1 is the slider value. An optional Gaussian cut-off removes small scales (the "truncated Zeldovich approximation").

Growth. For a flat universe with Λ: D(a) ∝ E(a) ∫0a da' / (a' E(a'))³, E² = Ωm a-3 + (1-Ωm), normalised to D(1) = 1. For Ωm = 1 this gives D = a.

Web classification. The displacement gradient ∂ψ/∂q is a symmetric 3×3 matrix with eigenvalues λ1 ≤ λ2 ≤ λ3. A particle's volume element is squeezed to zero along axis i when 1 + D λi = 0. Counting how many axes have collapsed gives 0 = void, 1 = sheet (wall/pancake), 2 = filament, 3 = knot (cluster). Eigenvalues are computed from central differences of ψ with the closed-form trigonometric formula.

Honest limits. After shell crossing the Zeldovich approximation lets particles stream through each other instead of being held together by gravity, so collapsed structures smear out; real N-body simulations keep them compact. It also ignores baryons, halos' internal structure, redshift-space distortions, and uses a small periodic grid (64³ particles in High, 32³ in Low), so only the large-scale pattern, not halo counts, is meaningful. The bright "galaxy" sprites sit on the densest local maxima of the density grid and are illustrative.

Tests shown in the panel: (1) a single plane wave, for which the Zeldovich density is known exactly, ρ = 1/(1 - Dδ0 cos kq), is deposited on a grid from particles and compared with the formula; (2) Parseval's theorem checks the FFT; (3) D(a) = a is verified for Ωm = 1.

3D models: Blender (named parts, baked textures, Draco GLB) · Three.js r160 · physics in plain JavaScript.

Made with 🟠 Blender · Three.js