Cosmic Web Toy (3D)

Expansion from the Friedmann equation and 32,768 particles drifting into filaments by the Zel'dovich approximation.

Switch to 2D

Presets

Playback

Universe and initial ripples

Camera

Layers

Quality

Model check

The science

What this is. A toy model of how the large-scale structure of the universe (the "cosmic web" of filaments, sheets and clusters) grows from tiny density ripples. The expansion history comes from the Friedmann equation; the clustering is the Zel'dovich approximation applied to 32,768 particles in a periodic box. It is a teaching model, not a research N-body code.

Equations

  • Friedmann: H(a)^2 = H0^2 [ Ωm a^-3 + ΩΛ + Ωk a^-2 ], Ωk = 1 - Ωm - ΩΛ. Radiation is neglected. Cosmic age t(a) H0 = ∫ da / (a E(a)), with E = H/H0 and H0 = 70 km/s/Mpc.
  • Linear growth of a small density contrast, D(a): D'' + (2 + dlnE/dlna) D' = 1.5 Ωm(a) D (primes = d/dlna). The page solves this ODE (RK4) and compares with Heath's integral D ~ E(a) ∫ da / (aE)^3. The growth rate f = dlnD/dlna is close to Ωm(a)^0.55.
  • Zel'dovich approximation: x(q, a) = q + D(a) ψ(q), where the displacement field ψ follows from a random Gaussian density field δ: ψ_k = i k δ_k / k^2. The field has power spectrum P(k) ~ k^n with a Gaussian small-scale cutoff, made with a 3D FFT. It is normalised so the linear rms contrast today is sigma0.
  • Colour shows the local density in a 16^3 grid of cells; the glowing galaxy symbols sit in the densest cells.

Independent checks

  • The age integral (Simpson) against the closed form for a flat universe, or against an independent RK4 time integration otherwise.
  • The growth ODE against Heath's integral at five epochs.
  • The Einstein-de Sitter limit, where D = a exactly.

Honest limits

The Zel'dovich approximation is exact only in the linear regime and for a single collapsing sheet. When the linear rms contrast approaches 1, particle streams cross ("shell crossing") and the approximation then smears and unphysically thickens structures instead of making haloes: the "Validity" readout warns of this. There is no gravity solver, no baryons, no dark-matter haloes and no realistic transfer function; the spectrum and the sigma0 values are illustrative (the real linear contrast on 8 Mpc/h scales is about 0.8). The box size only labels the scale bar. 32,768 particles is a very coarse sample. The Blender plinth, frame and galaxy models are decorative.

Loading model...
Loading Blender model...
Linear growth factor D(a)
Expansion history a(t)
Growth rate: ODE vs fit
Made with 🟠 Blender · Three.js