🕸️ Cosmic Web
Watch the large-scale structure of the Universe emerge spontaneously. Tiny density fluctuations grow under gravity into the stunning web of filaments, voids, and galaxy clusters we observe today.
Gravitational Instability & the Cosmic Web
The large-scale structure of the Universe — filaments, walls, voids and clusters — grew entirely from gravitational amplification of tiny quantum fluctuations (~10−5 amplitude) imprinted during inflation.
This simulation solves Newton's direct-summation N-body problem with softened gravity:
a_i = G·Σ_j m_j·(r_j−r_i) / (|r_j−r_i|² + ε²)^(3/2),
where ε prevents singularities when particles approach each other.
Periodic boundary conditions wrap particles at the box edges, mimicking
a representative volume of the Universe.
Initial conditions use a uniform grid plus small sine-wave density perturbations (Zel'dovich approximation) to seed the collapse. The density field (colour map) is computed by counting particles per grid cell — brighter regions host more mass. Over time, matter streams from voids into filaments and collapses into dense nodes.
About Cosmic Web — Large-Scale Structure N-Body Simulation
This simulation models the large-scale structure of the Universe — the vast network of galaxy filaments, cluster nodes, and empty voids known as the cosmic web. Starting from a nearly uniform distribution of matter seeded by tiny quantum density fluctuations from the inflationary epoch, gravity amplifies these perturbations over billions of years. Matter drains from low-density voids, flows along sheet-like walls, and collapses into thread-like filaments that converge at massive galaxy cluster nodes. Users can observe how adjusting the number of galaxies, cluster seeds, filament strength, and void size changes the visual character of the web in real time.
The cosmic web was first predicted theoretically in the 1970s and confirmed observationally through large-scale redshift surveys such as the CfA Redshift Survey (1986) and the Sloan Digital Sky Survey (2000s), which revealed that galaxies across hundreds of megaparsecs are not distributed randomly but trace an intricate foam-like structure that spans the observable Universe.
Frequently Asked Questions
What is the cosmic web?
The cosmic web is the largest-known structure in the Universe — a network of galaxy filaments, walls, massive cluster nodes, and vast nearly-empty voids. It spans hundreds of megaparsecs and contains virtually all the visible matter in the observable Universe. The web is scaffolded by invisible dark matter, which forms the gravitational skeleton along which ordinary baryonic matter and galaxies accumulate.
How do I use the simulation controls?
Drag anywhere on the canvas to orbit the 3D point cloud; scroll or pinch to zoom in or out. The Galaxies slider sets the number of rendered points (40k–200k). Clusters sets the number of dense node seeds. Filament strength controls what fraction of galaxies lie along inter-cluster bridges, while Void size determines how empty the inter-cluster regions are. Toggle Hubble flow to enable or disable the gentle radial expansion drift, and use Reset to regenerate the structure with the current parameters.
Why do filaments form between clusters rather than a random scatter?
Filaments form because gravity is anisotropic in a perturbed density field: matter first collapses along the shortest axis of an overdense region (forming a sheet or wall), then along the second axis (forming a filament), and finally along all three axes (forming a cluster node). This sequence — described mathematically by the Zel'dovich approximation — means the densest lines of sight between neighbouring mass concentrations are the preferred channels along which matter streams, naturally producing the web-like pattern of interconnected bridges.
What physics equations govern cosmic web formation?
At the linear stage, perturbation growth follows the linearised continuity, Euler, and Poisson equations in an expanding universe: the density contrast delta(x,t) grows as D+(t) (the linear growth factor). At the mildly non-linear stage, the Zel'dovich approximation maps each fluid element from its Lagrangian position q to Eulerian position x(q,t) = q - D+(t) * psi(q), where psi is the displacement potential derived from the initial density field. Full non-linear evolution requires N-body codes that solve the Poisson equation with a force softening length epsilon to prevent singularities: a_i = G * sum_j m_j * (r_j - r_i) / (|r_j - r_i|^2 + epsilon^2)^(3/2).
What are real examples of cosmic web structures observed by astronomers?
The Sloan Great Wall (discovered 2003) stretches approximately 1.37 billion light-years and is one of the largest known filamentary superstructures. The Laniakea Supercluster (mapped 2014) spans 520 Mpc and contains our own Milky Way galaxy. The Hercules-Corona Borealis Great Wall (~10 billion light-years, reported 2013) may be the largest structure yet identified. At smaller scales, the Perseus-Pisces filament and the Coma filament are well-studied examples observable in optical redshift surveys.
Is it a misconception that galaxies move outward through voids because of the Hubble flow?
Yes — on cosmic web scales, the dominant motion of matter is gravitational infall toward filaments and clusters, not the uniform Hubble expansion. The Hubble flow describes the overall expansion of space between distant regions, but on scales of tens to hundreds of megaparsecs, peculiar velocities driven by the gravitational pull of overdensities dominate. Matter in voids is evacuated because gravity pulls it toward denser surrounding walls and filaments, not because voids expand faster than the background. The simulation's Hubble drift control is a visual approximation of the global expansion trend.
Who first predicted and discovered the cosmic web?
The theoretical framework was developed in the 1970s–1980s. Yakov Zel'dovich proposed the pancake collapse mechanism (1970) predicting sheet-like structures. In 1986, the CfA Redshift Survey led by Valerie de Lapparent, Margaret Geller, and John Huchra revealed the first clear observational evidence of the bubble-and-filament structure. The term "cosmic web" was popularised by Jaan Einasto in the 1980s and later by Rien van de Weygaert and Bernard Jones, whose work formalised the topological classification of the web into voids, walls, filaments, and clusters.
What related phenomena or simulations connect to the cosmic web?
The cosmic web is directly linked to dark matter halo formation (halos form at the nodes of the web), galaxy rotation curve anomalies (evidence for dark matter that builds the web's scaffold), the Cosmic Microwave Background power spectrum (which encodes the initial fluctuations that seeded the web), and Hubble's Law (the expansion that sets the overall scale). Large N-body simulations such as the Millennium Simulation (2005), IllustrisTNG, and the EAGLE project have reproduced the full cosmic web in detail, including gas physics and galaxy formation.
How is knowledge of the cosmic web used in astronomy and technology today?
Mapping the cosmic web is central to cosmological surveys like DESI (Dark Energy Spectroscopic Instrument), Euclid, and the Rubin Observatory LSST, all of which aim to measure dark energy and dark matter by tracking how the web's structure evolves with redshift. Weak gravitational lensing surveys use the web's mass distribution to constrain cosmological parameters. Algorithms developed to detect filaments (DisPerSE, NEXUS+, T-web) have also found applications in medical imaging, where similar topology-detection methods identify vascular networks and neural connectivity patterns.
What are current open questions and frontier research directions about the cosmic web?
Key open questions include: the exact nature of dark energy that drives accelerated expansion and controls the web's growth rate; whether dark matter is cold, warm, or fuzzy (axion), since each predicts different small-scale filament substructure; the origin of observed cosmic voids that appear larger than standard LCDM predicts; the role of feedback from supermassive black holes in evacuating matter from filaments; and whether the Hubble tension (the discrepancy between local and CMB-inferred expansion rates) reflects new physics that would alter the web's formation history. Next-generation surveys and high-resolution hydrodynamic simulations are actively addressing these questions.