Animation of planar harmonic progressive EM wave passage through planar interface. Application of Snell's law, visualization of evanescent wave when exceeding critical angle.
Refractive indices are $n_1 = 1$, $n_2 = 2$. Wavelength and phase velocity of waves are in inverse proportion to the refractive index.
Refractive indices are $n_1 = 1$, $n_2 = 2$.
Refractive indices are $n_1 = 1.5$, $n_2 = 1$.
Refractive indices are $n_1 = 1.5$, $n_2 = 1$. In the second medium we see an evanescent wave exponentially decreasing away from the interface and propagating along the interface.
Field state is shown for constant time value. Refractive indices are $n_1 = 1$, $n_2 = 2$. For refraction toward normal, any value of angle of incidence is permissible.
Field state is shown for constant time value. Refractive indices are $n_1 = 1.5$, $n_2 = 1$. For refraction away from normal, the wave passes into the second medium only if $\vartheta_1 < \vartheta_C$. For supercritical angle of incidence, the wave does not pass and in the second medium we observe an evanescent wave. The wave is damped away from the interface more rapidly the larger the angle of incidence.
Source code that generated the gifs displayed above: nb