Run a real-time 2D wave interference and Doppler effect simulation on a stabilized FDTD PDE grid—creating constructive/destructive nodal lines, slit diffraction, Mach cones, and interactive ripples.
A smooth quadratic sponge boundary damps outgoing ripples cleanly along all four tank edges so walls do not reflect false echoes back across your experiment.
Rather than drawing fake concentric circles, this simulation solves the real two-dimensional scalar wave PDE on a 180×112 grid of water heights at every timestep, updating positive crests (bright teal) and negative troughs (warm coral) directly into a single fast ImageData buffer.
In Dual-Source Interference, two synchronized point dippers radiate circular wavefronts. Along rays where peak meets peak (path difference = whole wavelengths), waves double in amplitude; along quiet dark rays where peak cancels trough (path difference = half-wavelengths), water stays nearly flat.
In Double-Slit Diffraction, straight plane waves strike a solid wall pierced by two narrow gaps. As Huygens' principle predicts, each gap radiates semi-circular wavelets that diffract behind the wall and interfere—forming the exact wave foundation of the quantum double-slit experiment.
In Doppler & Mach Cone mode, a moving emitter compresses wavefronts ahead of itself (higher frequency/shorter wavelength) and stretches them behind. Push source speed above wave speed c_wave = 0.45 grid/step (v > 1.5c), and wavefronts pile into a sharp V-shaped shock wave / Mach cone!
| Medium / Vehicle | Wave Speed | Typical Speed / Mach | Mach Cone Half-Angle μ = arcsin(1/M) |
|---|---|---|---|
| Capillary Water Ripples | ~0.23 m/s | Pond bug (~Mach 1.5) | ~41.8° wake angle |
| Sound in Dry Air (20 °C) | 343 m/s | Mach 1.00 (Sonic) | 90.0° flat shockwall |
| Concorde Cruise (20 km alt) | 295 m/s (cold air) | Mach 2.02 (~600 m/s) | 29.7° conical boom |
| SR-71 Blackbird | 295 m/s | Mach 3.20 (~980 m/s) | 18.2° narrow shock cone |
| Sound in Seawater (20 °C) | 1,522 m/s | Acoustic / Sonar | 4.4× faster than air |
A 40-second animation: 2D FDTD wave PDE interference, quiet nodal rays, and supersonic Mach cones.
In Dual-Source mode, double Frequency from 0.14 to 0.34 and count how many additional dark cancellation lines fan out between sources.
Pick Supersonic Mach Cone (>1.5c): watch the trailing V-wake angle sharpen as source speed increases past wave speed.
Switch to Double-Slit Diffraction and see flat vertical waves turn into curved overlapping arcs behind the barrier.
We apply a 12-cell quadratic sponge damping layer around all edges so outgoing ripples decay smoothly before reaching the grid boundary.
In FDTD wave solvers, numerical signals cannot travel slower than real waves per timestep (c Δt/Δx ≤ 1/√2); staying safely below at 0.45 prevents exponential blowup.
Diffraction spreading scales with λ/w (wavelength divided by gap width); raising frequency shrinks wavelength λ so beams stay tighter.
A supersonic jet outruns its own pressure sound waves in 3D the exact same way a fast boat or moving dipper outruns 2D water ripples, stacking crests along a Mach cone.