2D Wave Interference Simulator Back
Wave Physics · Acoustics · Optics

2D Wave Interference Simulator

Simulate real-time 2D interference patterns from up to 4 point sources. Adjust wavelength, frequency, phase offset, and damping — then explore presets like Young's double slit, antiphase sources, and 4-corner grid arrays.

Sources
Wave Parameters
Wavelength λ (px) 60
Frequency f (Hz) 1.0
Damping 0.50
Display
Speed
Presets

Wave Equation (Cylindrical)

$$\psi = \sum_i \frac{A}{\sqrt{r_i}} \sin\!\left(kr_i - \omega t + \phi_i\right)$$

$k=2\pi/\lambda$, $\omega=2\pi f$, $r_i$: distance from source $i$

CAE Applications: Phased-array ultrasonic testing (UT), speaker array beam-forming, Helmholtz equation in acoustic FEA, underwater acoustic propagation modeling.
2
Sources
Render (ms)
0.00s
Time

Drag a source dot to reposition it

What is 2D Wave Interference?

🧑‍🎓
What exactly is "interference" when we talk about waves? I see the simulator has multiple sources, so are they just adding together?
🎓
Basically, yes! Interference is the phenomenon where two or more waves overlap in space. The resulting wave at any point is the sum of the individual wave amplitudes. In this simulator, you can see this in real-time. Try moving the sources closer together by dragging them—you'll see the pattern of bright and dark bands (constructive and destructive interference) change dramatically.
🧑‍🎓
Wait, really? So those dark spots are where the waves cancel out completely? What controls how strong that cancellation is?
🎓
Exactly. Perfect cancellation happens when waves are perfectly out of phase. The key parameters are wavelength and phase. For instance, if two sources are in phase (phase = 0), points where the path difference is a whole number of wavelengths get bright bands. Try using the "Phase" slider for one source—you'll see the entire interference pattern rotate and shift, which is crucial for technologies like beam-steering.
🧑‍🎓
That makes sense. But why does the equation have a $\sqrt{r}$ in the denominator? And what does the "Damping" slider do?
🎓
Great observation! The $\frac{1}{\sqrt{r}}$ factor is because these are 2D surface waves, like ripples on a pond. The energy spreads out along the circumference of a circle, so amplitude decays with distance. The "Damping" slider adds an *extra* exponential decay (not shown in the core equation) to model real-world energy loss, like friction. Slide it up and watch how the waves don't travel as far—this is critical for accurate simulation of materials in engineering.

Physical Model & Key Equations

The core of the simulator is the superposition of cylindrical waves from each source. Each wave's amplitude decays as it propagates outward in two dimensions, and its value at any point in time and space is given by a sinusoidal function.

$$\psi(\mathbf{r}, t) = \sum_{i=1}^{N}\frac{A}{\sqrt{r_i}}\sin\!\big(k r_i - \omega t + \phi_i\big)$$

Here, $\psi$ is the total wave field (what you see visualized). $A$ is the source amplitude, $r_i$ is the distance from the $i$-th source to the calculation point, $k = 2\pi/\lambda$ is the wavenumber, $\omega = 2\pi f$ is the angular frequency, and $\phi_i$ is the phase offset of the $i$-th source. The $\sqrt{r_i}$ term is the geometric spreading factor for 2D waves.

The condition for constructive or destructive interference is determined by the phase difference between waves arriving at a point. For two sources with the same phase ($\phi_1 = \phi_2$), a simplified condition emerges based on the path difference $\Delta r = |r_1 - r_2|$.

$$\text{Constructive: }\Delta r = n\lambda$$ $$\text{Destructive: }\Delta r = \left(n + \frac{1}{2}\right)\lambda$$

Here, $n$ is any integer (0, 1, 2...). This is why you see alternating bright and dark bands (fringes). When you adjust the frequency $f$ in the simulator, you're changing $\lambda$, which directly changes the spacing of these fringes according to these equations.

Real-World Applications

Phased-Array Ultrasonic Testing (UT): In non-destructive testing of pipelines or aircraft wings, an array of ultrasonic transducers emits sound waves into the material. By precisely controlling the phase of each source (like you can in the simulator), engineers can "steer" and focus the resulting interference pattern to scan for cracks without disassembly.

Speaker Array Beam-forming: Concert venues and modern smart speakers use arrays of speakers. By adjusting the phase and delay between them, audio engineers can shape the interference pattern to direct sound energy towards the audience and away from walls, reducing echoes and improving clarity.

Acoustic FEA & the Helmholtz Equation: In Computer-Aided Engineering (CAE), software like ANSYS or COMSOL solves the Helmholtz equation to model steady-state wave interference in complex 3D geometries (e.g., car interiors, concert halls). This simulator visualizes the core principle that these expensive FEA simulations are calculating.

Underwater Acoustic Propagation: Sonar systems use arrays of hydrophones to detect submarines or map the seafloor. Modeling how sound waves interfere and propagate in 2D/3D water layers, which involves damping and multi-source effects, is directly analogous to what you can explore here by adding sources and adjusting damping.

Common Misunderstandings and Points to Note

First, remember the premise that "the 'wave sources' in the simulation are ideal points". Real slits or speakers have width, so they are not perfect point sources. For example, if a slit is too wide, the sharp interference fringes you see in this simulator become blurred. When adjusting parameters, also pay attention to the difference between 'phase' and 'initial phase'. The slider changes the start timing of the wave emitted by the source (the initial phase φ), which is different from the delay due to distance (the phase kr). The phase difference ΔΦ is determined by both.

Also, avoid discussing results with the attenuation setting left as 'none'. Two-dimensional water surface waves or sound waves experience amplitude decay as energy spreads out. Calculating without attenuation (plane wave approximation) shows uniform, strong fringes continuing far away, but in reality, contrast decreases with distance. In practical antenna directivity design, failing to account for this decay can lead to insufficient field strength at distances farther than expected.

Related Engineering Fields

The calculation logic of this simulator is the very foundation of "array signal processing". It's the technology of superimposing signals from multiple antenna elements (wave sources) to emphasize radio waves from a specific direction (beamforming) or cancel out noise from unwanted directions. For example, it's used in 5G base station Massive MIMO and target detection in radar.

Another major application is non-destructive testing and medical imaging. In ultrasonic flaw detection, the interference of ultrasonic waves emitted from multiple probes is used to pinpoint the location of defects inside materials with high precision. Medical ultrasound diagnostic devices (especially phased array probes) operate on the same principle, electronically controlling the phase to rapidly scan the ultrasound beam and capture moving images of the heart. Furthermore, in the photonics field, controlling light interference on silicon photonics chips enables ultra-compact optical switches and wavelength division multiplexers. Manipulating light with wavelength-scale microstructures means the concepts from this simulator are directly applicable in the microscopic world.

For Further Learning

As a first step, try to imagine "extension to 3D". This tool is only 2D (the xy-plane), but real sound waves and radio waves propagate in 3D space. When superimposing as spherical waves, the interference pattern changes from concentric circular fringes (in this simulator) to shells of light and dark on concentric spheres. This concept directly connects to understanding the three-dimensional directivity patterns (beams) of speaker arrays or radar.

If you want to dig deeper mathematically, it's recommended to learn how to express the superposition calculation using complex numbers (exponential functions). The current formula is written using the sine function sin, but using Euler's formula $e^{i\theta} = \cos\theta + i\sin\theta$ to write it as $ \psi \propto \sum \frac{A}{\sqrt{r_i}} e^{i(k r_i - \omega t + \phi_i)} $ makes calculating phase and deriving intensity ($|\psi|^2$) significantly easier. This is an extremely important technique also used in communications engineering and quantum mechanics.

If you want to experiment with the simulator, try lining up five or more wave sources equally spaced and shifting their phases linearly. For example, if you increase the phase of adjacent sources by 10 degrees each, you'll clearly see a "beam" forming where the wave energy concentrates in a specific direction. This is the essence of a phased array. Next, think about and try how you would need to change the phases to steer this "beam" in a different direction. That will be your first step in connecting this foundational theory to practical antenna design technology.