Skip to main content
Sandbox Physics

Gravity grows a small ripple

Cosmic Web and Shell Crossing

Why does nearly uniform matter form a cosmic web? Gravity draws more matter into slightly denser regions. Compression proceeds at different rates along different directions, forming sheets and filaments around emptier volumes. Collisionless matter can pass through the same place with different velocities, so its motion keeps a folded history in phase space.

Change an initial ripple and watch matter fold into sheets and filaments. Compare a displacement approximation with three-dimensional mesh gravity.

Interactive modelCosmic Web and Shell Crossing
Expansion scale factor1.091.09
RMS density contrast6.366.36
Peak mesh density / mean318318
Power in one long-wave mode2790 Mpc32790\,\mathrm{Mpc}^3
Mesh densityDisplacement referenceOne material line
A section through the middle of the mesh

The same density scale colours the box and this section. The highest colours saturate.

How a long wave grows

P100=L3∣1Np∑je−2πiyj,x∣2P_{100}=L^3\left|\frac1{N_p}\sum_j e^{-2\pi i y_{j,x}}\right|^2

Both curves use the same initial waves. The dotted curve extrapolates the displacement map through crossing.

Physics tutorial

Matter can fold without sticking together

BackgroundGravity amplifies a small excess of matter. The fastest compression can squeeze a region into a sheet while matter still extends along the other directions. Further compression builds filaments and dense nodes.

Why it mattersAfter different streams reach the same place, position alone no longer describes the motion. Following each particle reveals what a density picture hides.

Start with the essentials

Focus question
What changes when particles first pass through one another?
One-sentence intuition
Several velocities can coexist at one position; density sums their positive mass.

Core mathematical model

A displacement that grows with expansion

y(q,a)=q+a s(q),r=aLy\boldsymbol y(\boldsymbol q,a)=\boldsymbol q+a\,\boldsymbol s(\boldsymbol q),\qquad \boldsymbol r=aL\boldsymbol y

The first relation is the Zel’dovich reference in this matter-only universe. The labels identify the same matter. The second relation converts the displayed comoving box into physical position.

The first fold

J=det⁡ ⁣(I+a ∂s∂q),ρρˉ=1Jbefore crossingJ=\det\!\left(I+a\,\frac{\partial\boldsymbol s}{\partial\boldsymbol q}\right),\qquad \frac{\rho}{\bar\rho}=\frac1J\quad\text{before crossing}

Before crossing, a smaller volume holds the same mass. At the first fold this one-stream formula becomes singular. After crossing, each stream contributes positive mass; a negative determinant marks reversed orientation.

Gravity follows the changing density

∇y2U=32δ,dyda=a−3/2u,duda=a−1/2(−∇yU)\nabla_y^2U=\frac32\delta,\qquad\frac{d\boldsymbol y}{da}=a^{-3/2}\boldsymbol u,\qquad\frac{d\boldsymbol u}{da}=a^{-1/2}(-\nabla_yU)

Mesh gravity updates the density and force at every integration step. The dimensionless canonical momentum includes the expansion factor. The finite mesh smooths small structures.

Common difficulties

Crossing does not stop the streams

Typical misconceptionA dense sheet must make all particles stick together.

Better mental modelThe model follows collisionless matter. Streams pass through and continue responding to gravity; gas shocks would require another model.

A dense node and a halo

Typical misconceptionEvery bright knot already measures a halo mass.

Better mental modelColour shows coarse mesh density. Identifying a halo needs a separate definition and adequate force and mass resolution.

Run the experiment

  1. 01

    Open the sheet

    Choose A sheet folds, then move the time slider across the collapse.

    What to observe: The selected material line folds. Its position–velocity plot separates streams that overlap in position.
  2. 02

    Change the original ripple

    Drag the gold handle horizontally. Compare the new displacement reference with the completed mesh calculation.

    What to observe: A larger initial ripple reaches strong compression earlier. The camera can turn independently.
  3. 03

    Compare the two evolutions

    Choose An oblique web and enable the displacement reference. Inspect the power curve below the box.

    What to observe: Both start from the same waves. Mesh gravity responds to the later density, so their positions and long-wave power separate.

Sources and numerical scope

The displacement map follows Zel’dovich’s 1970 approximation. The cosmological variables, CIC mesh method and time factors follow the cited GADGET-2 methods; this small model uses a fixed low-pass mesh force.

Independent checks cover matter-only linear growth, actual half-cell particle response, positive mass deposition, a periodic sheet reference across crossing and a separate adaptive integrator. The finite mesh remains a large-scale teaching model.

Related experiments and articles

From ripples to the cosmic web · Reading path

Expansion, crossing and independently tested gravity

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleHow Gravity Builds the Cosmic Web
  2. ArticleMeasuring Motion with an Expanding Ruler
  3. ArticleWhy One Position Can Have Several Velocities
  4. ArticleHow Mesh Gravity Follows Folding Matter
  5. ArticleWhat a Power Spectrum Remembers
  6. ArticleGive an Exported Initial State to Another Integrator
  7. ArticleChoose What You Call a Halo, Then Read Feedback
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy