Wave 30: Fourier Series, Gravitational Lensing & Epidemic Wavefront

Wave 30 spans three fields in one release: the mathematics of Fourier decomposition with animated epicycle chains, the astrophysics of spacetime curvature bending light, and the biology of infectious disease spreading across a population grid. All three ship with full EN + UK pages.

Platform Numbers

463
Simulations
72
Categories
50
Devlogs
30
Waves

Wave 30 Simulations

🎵

Fourier Series Builder

Decompose square, sawtooth, triangle, pulse, and half-rectified waves into rotating epicycles. Watch harmonics add up in real time and inspect the frequency spectrum.

Open →
🔭

Gravitational Lensing

Reverse ray-trace every pixel through three lens models — point mass (Einstein ring), SIS, and NFW profile — and watch a galaxy or quasar distort into arcs.

Open →
🦠

Epidemic Wavefront

FTCS reaction-diffusion SIR model on a 150×150 grid. Tune β, γ and diffusivity D; observe how R₀ = β/γ governs whether a wavefront ignites or fizzles.

Open →

🎵 Fourier Series Builder

The Mathematics

Any periodic signal can be written as a sum of sinusoids: f(x) = ∑ cn cos(nx + φn). The Fourier Series Builder computes analytic coefficients for five classic waveforms at the press of a button — no numerical integration required.

Epicycle Animation

The drawEpicycles(t) function chains rotating arms of decreasing length, one per harmonic. The tip of the last arm traces the reconstructed waveform. The live frequency-spectrum bar chart below the canvas shows amplitude vs. harmonic number, updating as the number of terms changes.

What to Try

🔭 Gravitational Lensing

Reverse Ray-Tracing

For each pixel (i, j) in the image plane, the deflect(ix, iy) function computes the angular position on the sky where light actually came from. The canvas is filled by sampling the off-screen source image at those redirected coordinates.

Three lens models are implemented:

What to Try

🦠 Epidemic Wavefront

Reaction-Diffusion SIR

The classic SIR compartmental model is extended to 2D space by adding a diffusion term for the infected population:

Spatial spread enters through the Laplacian term D·∇²I, discretised with a 5-point finite-difference stencil and Neumann (no-flux) boundary conditions. Integration uses forward Euler (FTCS) with Δt = 0.25, running 1–20 steps per animation frame depending on the speed slider.

Fisher-KPP Wavefront Speed

Far ahead of the wavefront, S ≈ 1 and the infected density is small. In this limit the equation for I linearises to Fisher’s equation, whose minimum wavefront speed is v = 2&sqrt;(D·(β−γ)). The simulation displays R₀ = β/γ in large type, colour-coded green (R₀ < 1, epidemic fades) through orange to red (R₀ > 2, rapid spread).

Initial Conditions

What to Try

Technical Highlights

Tags

Fourier Series Epicycles Harmonic Analysis Gravitational Lensing General Relativity Dark Matter SIR Model Reaction-Diffusion Epidemiology Fisher-KPP Wave 30

Wave 31 Preview

Three simulations are being designed for the next release:

All Wave 31 simulations will ship with EN + UK pages on launch day.