2D Wave Diffraction: Slits and Obstacles
The scalar wave equation in two dimensions, solved by an explicit leapfrog scheme with rigid walls and an absorbing sponge. Presets give a free circular wavefront, single-slit diffraction, double-slit interference with an on-axis central maximum, and an obstacle that casts a shadow the wave bends into. The primary scene is the physical displacement field with a tanh-compressed water map so the faint transmitted pattern is visible; the side panel reads the screen intensity along a far column. The time step is held within the two-dimensional stability (CFL) bound for the chosen wave speed. The single-slit diffraction, the symmetric central double-slit maximum, hard-wall phase inversion, and circular-wavefront isotropy are the physical content.
WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.