d delay fps
Canvas is matched to your browser window. -1 ≤ x,y ≤ 1. d is the slit width. λ = 0.45 is the wave length.
Wave equation. One slit diffraction on 1024×1024 lattice. Wave intensity u2 is ploted to the left and 2 u2 is shown to the right.

One slit diffraction with ABC

Absorbing boundary conditions (ABC) are used at the left/right borders and periodic at the top/bottom ones. To get incident wave an oscillating force is added at the left border. See also λ = 0.23 and u dynamics plot (a snapshot is shown to the left).

Electromagnetic wave simulation
updated 16 Mar 2014