This simulation illustrates the superposition of multiple modes within a cavity
(of size $L = 1$ m), like that of a laser or vibrating strings.
The animation is made from the sum of several stationary modes:
$$
y(x, t) = A\sum_{n=n_0}^{n_f}\sin(k_nx)\sin(\omega_n t),
$$
where $\omega_n = \pi v n/L$ and $k_n = \omega_n/v$. The sum is performed from mode $n_0$ to mode
$n_f$. In the One mode position (see below), only one mode is simulated in the cavity ($n_f$ = $n_0$).
Buttons:
-
Starts or pauses the simulation.
-
Restarts the simulation.
-
One mode: Switches between one mode and multimode (superposition of multiple modes in the cavity).
In the Multimode position, $n_f$ must be greater than or equal to $n_0$.
Read more: