🔭

Space & Astronomy

Solar systems, spiral galaxies, gravitational body interaction and orbital mechanics — all in real time, right in the browser.

10+ simulations Three.js · WebGL Uses Leapfrog, Kepler

Category Simulations

Open a simulation — it runs right in your browser, no installation needed

🌠
★☆☆ Easy
Warp Speed Starfield
Thousands of stars streak radially outward as you jump to light speed — a procedural GLSL warp tunnel.
Three.js GLSL Shader
☀️
★★★ Advanced New
Solar Flare & CME
Magnetic reconnection releases stored energy as a flare (classed A-X by X-ray flux) and a CME that reaches Earth in 1-3 days, sparking geomagnetic storms and aurorae.
Solar Flare CME Space Weather Canvas 2D
📡
★★★ Advanced New
Radio Telescope Array
Interferometry & aperture synthesis: a baseline B gives resolution θ≈λ/B, and combining many baselines synthesises a giant aperture (VLA, VLBI). See fringes and the synthesised beam.
Interferometry Aperture Synthesis VLBI Canvas 2D
🪐
★★★ Advanced
Planetary Rings — Roche & Resonance
Thousands of Keplerian particles around a planet. Inside the Roche limit they cannot coalesce; resonances with a moon carve the Cassini Division; shepherd moons confine narrow ringlets.
Canvas 2D Kepler Roche Resonance
☢️
★★★ Advanced
Van Allen Belts
Earth's dipole traps charged particles on bouncing helical paths. Watch protons and electrons spiral, mirror at the poles, drift around the planet — and fall into the loss cone if their pitch angle is too small.
Canvas 2D Magnetosphere Magnetic Mirror Lorentz
🪐
★★★ Advanced
Orbital Resonance — Mean-Motion Lock
When periods lock to integer ratios, gravity tugs sum coherently. Watch 3:2, 2:1, 4:1 and the Galilean Laplace 4:2:1: conjunction lines bunch and the resonance angle librates.
Canvas 2D Kepler Resonance Laplace
🌊
★★★ Advanced
Ocean Tides — Lunar & Solar
The Moon and Sun raise tidal bulges; their alignment drives spring and neap tides. See the 1/r³ tidal force, watch the bulge axis follow the Sun–Moon resultant, and read a tide gauge.
Canvas 2D Astronomy Tides Gravitation
☀️
Popular ★★☆ Moderate
Solar System
8 planets with realistic orbits, moons and Saturn's rings. Asteroid belt, time and camera controls. Orbits computed by Newton's laws.
Three.js OrbitControls Newton
🌌
★★☆ Moderate
Spiral Galaxy
80,000 stars forming a spiral galaxy with arms, nebulae and a central bulge. Adjust the number of arms, bar scale and spread.
Three.js 80k Particles PointsMaterial
☄️
★★★ Advanced
N-Body Gravity
Gravitational interaction of hundreds of bodies via Leapfrog. Forming a galactic disk, circular orbits, two-galaxy collision.
Three.js Leapfrog N²-gravity
🪐
★☆☆ Easy
Kepler Planets
All 8 planets with real orbital radii and periods. Saturn's rings, asteroid belt, labels, focus on a planet with a click.
Three.js Kepler Orbits
🌑
New ★★☆ Moderate
Orbital Mechanics
N-body Velocity Verlet integrator. Three scenarios: Solar System, Lagrange Points (Jupiter Trojans), and Gravity Assist flyby.
Canvas 2D N-body Lagrange Points Kepler
💥
New ★★☆ Moderate
Star Evolution
Animated stellar life cycle from nebula to remnant. Live HR diagram shows the evolutionary track. Choose any mass from 0.5 to 20 M☉.
Canvas 2D HR Diagram Stellar Physics Particles
🌙
New ★★☆ Moderate
Binary Stars
Two stars orbiting their common centre of mass. Watch mass transfer, accretion disc formation and HR evolutionary tracks in real time.
Canvas 2D Gravity Mass Transfer HR Diagram
☄️
New ★☆☆ Beginner
Meteor Shower
Watch a stunning meteor shower with glowing trails, draggable radiant point, and fragmentation effects. See how the radiant point controls the entire stream direction.
Canvas 2D Particles Astronomy
🌍
★☆☆ Beginner
Solar System (Kids)
A colourful, interactive solar system for younger explorers. Click planets to learn fun facts about each world.
Kids Three.js Educational
🌐
★★☆ Moderate
Planetary Atmosphere
Rayleigh scattering and Mie scattering on a procedural planet. Watch how the atmosphere colour changes with angle and altitude.
GLSL Rayleigh Three.js
🔭
New ★★★ Advanced
Gravitational Lensing
Simulate Einstein rings, multiple images, and light deflection by a point mass or galaxy cluster. Based on General Relativity lens equations.
Einstein Ring Dark Matter General Relativity
🌌
New ★☆☆ Beginner
Hubble's Law — Expanding Universe
Every galaxy recedes at v = H₀ × d. Adjust the Hubble constant, observe redshift and find the Hubble sphere where v = c.
Hubble Constant Redshift Cosmology
🪐
★★☆ Moderate New
Exoplanet Transit
Watch a planet cross its star and see the photometric flux dip in the live light curve. Adjust planet radius, orbital distance, inclination, and limb darkening.
Transit Method Light Curve Kepler / TESS
🌌
★★☆ Moderate New
Aurora Borealis
Watch charged solar-wind particles spiral along magnetic field lines, excite oxygen and nitrogen at 80–300 km altitude, and produce the aurora's green, red and purple curtains.
Aurora Magnetosphere Solar Wind
🌊
★★★ Advanced New
Gravitational Waves — Binary Inspiral & LIGO Detection
Binary black hole inspiral: watch the chirp waveform grow in frequency and amplitude as the pair spirals inward, and see how LIGO's interferometer detects the passing gravitational wave.
Gravitational WavesLIGOBinary Black HoleChirp MassGW150914
🌙
New ★★☆ Moderate
Tidal Locking
See how tidal forces synchronise a moon's rotation to its orbital period — spin down from an arbitrary rate and watch the system lock into synchronous rotation.
Tidal Locking Moon Orbital Mechanics
🪐
New ★★★ Advanced
Planetary Formation
Simulate accretion disk dynamics and planetesimal collisions — watch dust grains clump into rocky worlds through gravitational attraction and inelastic collisions.
Planetesimals Accretion Formation

Learning Resources

Articles and tutorials about space & astronomy

About Space & Astronomy Simulations

Gravity, orbits, and the cosmos — explored through real physics

Space and astronomy simulations bring celestial mechanics to life. From Kepler's orbital equations to N-body gravitational dynamics, every object follows the same physics that governs real planets, stars, and galaxies. You can watch how gravity shapes spiral galaxy arms, how planets maintain stable orbits, and what happens when massive bodies collide or a star exhausts its nuclear fuel on the Hertzsprung–Russell diagram.

The simulations use energy-conserving integrators — Leapfrog and Velocity Verlet — that keep long-running trajectories numerically stable. By tweaking central mass, orbital eccentricity, or stellar mass, you develop intuition for the forces that sculpt the universe across every scale: binary star systems, Lagrange point trojans, gravity-assist flybys, and colliding galaxies.

Modern computational astronomy relies on the same numerical techniques used here — leapfrog integration for satellite trajectory planning, N-body codes for galaxy-formation research, and HR diagrams for stellar classification. Running these simulations in a browser makes the underlying mathematics tangible: you can directly see how a slight increase in orbital velocity shifts a circular orbit to an ellipse, or how a third body's perturbation can eject a planet from a stable system entirely.

Key Concepts

Topics and algorithms you'll explore in this category

Kepler's LawsElliptical orbits and conservation of angular momentum
N-body GravityMutual gravitational forces between multiple masses
Leapfrog IntegratorEnergy-conserving method for long-term orbit stability
Barnes-Hut TreeO(n log n) approximation for many-body gravity
Stellar EvolutionMass-luminosity tracks on the HR diagram
Binary StarsMass transfer and tidal forces in close systems

🚀 Test Your Space Knowledge

5 questions — orbits, light-speed, black holes and more

Frequently Asked Questions

Common questions about this simulation category

How are planetary orbits calculated?
Two-body orbits follow Kepler's analytical equations. Multi-body scenarios use a Leapfrog (Störmer-Verlet) integrator, which conserves energy over millions of steps — avoiding the drift that ruins Euler-method trajectories.
Can I simulate real solar system distances?
The simulations use normalised units scaled for visual clarity. However, the gravitational physics (inverse-square law, orbital eccentricity, period-distance relationships) are mathematically faithful to real-world astronomy.
How many bodies can the N-body simulation handle?
The Barnes-Hut tree reduces complexity from O(n²) to O(n log n), enabling hundreds of gravitational bodies in real time. The galaxy simulation handles ~10 000 star particles using Three.js instanced rendering.

Other Categories

Space & Astronomy Simulations — Frequently Asked Questions

How accurate are the orbital simulations?
Orbital simulations use real Keplerian mechanics and RK4 integration. They demonstrate gravitational dynamics qualitatively; they are not scaled to real planetary masses/distances but can be configured with real parameters.
Can I see real exoplanet transits?
The Exoplanet Transit simulation uses real transit geometry and the Mandel-Agol limb darkening formula. You can input parameters matching real exoplanet systems.
What relativity simulations are available?
Schwarzschild geodesics, Wormhole 3D, Twin Paradox spacetime diagram, Lorentz Contraction, Minkowski diagram, Gravitational Redshift, and Gravitational Lensing — 7 relativity simulations total.
Are there simulations for younger students?
Yes — the Space Explorers category has kid-friendly simulations: Fun Black Hole, Defend Earth, Moon Phases, Rocket Launch, and Planet Sizes.