Lab / Wave Simulation
🌊

Wave Simulation

2D wave equation simulation with interference, diffraction, Doppler effect, and Young's double slit experiment. Drop stones in a virtual ripple tank.

Left-click: drop impulse / drag to emit waves. Right-click / drag: place walls.

Controls

0.50
0.002
200
0.15
3

Color Map

TroughZeroCrest

Open ripple tank. Click anywhere to drop stones and create circular waves. Drag for continuous emission.

Uses the 2D wave equation u_tt = c^2 (u_xx + u_yy) solved with finite differences and Verlet integration. Click to drop impulses, right-click to place walls. All computation runs client-side on Canvas with ImageData rendering for performance.