The Physics of the Universe
Home › Simulations › Wave Interference & Doppler Effect Simulation (2D Ripple Tank)

Wave Interference & Doppler Effect Simulation (2D Ripple Tank)

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.

Presets:
Switch between Dual-Source, Double-Slit, Tap Pond, and Doppler/Mach Cone presets—enable Doppler Audio Siren in Doppler mode to hear frequency shifts!

Key Equations & Physics Model

2D Scalar Wave Equation: ∂²u/∂t² = c² ( ∂²u/∂x² + ∂²u/∂y² )
Courant Stability Limit (CFL): c Δt / Δx ≤ 1/√2 ≈ 0.707 (Solver uses 0.45)
Mach Shock Cone Half-Angle: sin(μ) = c_wave / v_source = 1 / Mach

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.

Wave Interference Nodal Lines and Doppler Mach Cone DiagramTwo-Source Wave InterferenceConstructive Max (Δr = mλ)Destructive Nodal LinesDoppler Shift & Supersonic Mach ConeShock Cone: sin(μ) = c_wave / v_source
Wave interference creates bright constructive maxima and quiet nodal lines (left), while a supersonic moving source compresses ripples into a V-shaped Mach cone (right).

How the Physics Works

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!

Wave Speeds, Doppler Mach Numbers & Shock Cone Angles

Medium / VehicleWave SpeedTypical Speed / MachMach Cone Half-Angle μ = arcsin(1/M)
Capillary Water Ripples~0.23 m/sPond bug (~Mach 1.5)~41.8° wake angle
Sound in Dry Air (20 °C)343 m/sMach 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 Blackbird295 m/sMach 3.20 (~980 m/s)18.2° narrow shock cone
Sound in Seawater (20 °C)1,522 m/sAcoustic / Sonar4.4× faster than air

How do wave interference & sonic booms work?

A 40-second animation: 2D FDTD wave PDE interference, quiet nodal rays, and supersonic Mach cones.

Experiments to Try

Spot Quiet Destructive Nodal Rays

In Dual-Source mode, double Frequency from 0.14 to 0.34 and count how many additional dark cancellation lines fan out between sources.

Form a Clear Supersonic Sonic Boom

Pick Supersonic Mach Cone (>1.5c): watch the trailing V-wake angle sharpen as source speed increases past wave speed.

Send Plane Waves Through Two Slits

Switch to Double-Slit Diffraction and see flat vertical waves turn into curved overlapping arcs behind the barrier.

Frequently Asked Questions

What keeps waves from reflecting noisily off the screen borders?

We apply a 12-cell quadratic sponge damping layer around all edges so outgoing ripples decay smoothly before reaching the grid boundary.

What does CFL stability mean?

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.

Why do higher frequencies bend less around corners?

Diffraction spreading scales with λ/w (wavelength divided by gap width); raising frequency shrinks wavelength λ so beams stay tighter.

How is a sonic boom related to ripples?

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.

Related Topics & Tools