---
title: "Boundary Wave Tunnel Interactive Lab | Sandbox Physics"
description: "How can light still get through a narrow gap when it should be totally internally reflected?"
canonical_url: "https://sandboxphysics.com/labs/boundary-wave-tunnel/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/boundary-wave-tunnel/"
last_modified: "2026-10-30"
---

Optics 088 · Waveguides, structured light, and modern optics

# Boundary Wave Tunnel

**How can light still get through a narrow gap when it should be totally internally reflected?** Past the critical angle, the light beyond the surface does not travel away; it becomes an evanescent field that fades exponentially into the gap. If a second medium lies within a few decay lengths, that field couples into it and some light gets through again. This is frustrated total internal reflection, and the transmission falls quickly as the gap widens.

A 3D cutaway of two prisms shows fields found by matching complex Maxwell boundary conditions. Change the air gap, compare the s and p fields and their different decay depths, check that the Poynting flux is conserved and freeze field samples.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

The prisms are modeled as infinite, lossless, parallel half-spaces with assumed fixed indices and ideal internal ports. The finite cutaway, the slowed phase motion and the cursor that does not disturb the field are schematic. Scattering by a real probe, a finite beam and the outer prism faces are not modeled, and the Lab says nothing about tunnelling time.

Physics tutorial

## Audit the physics of Boundary Wave Tunnel

**Background** Beyond the critical angle at a glass–air interface, the wavevector component normal to the surface becomes imaginary: $\kappa=k_0\sqrt{n_g^2\sin^2\theta-1}$. The air then holds a nonzero evanescent electric field, but a single decaying wave carries no time-averaged power across the surface. Bringing in a second glass half-space changes the whole boundary-value problem.

**Why it matters** How can light still get through a narrow gap when it should be totally internally reflected?

Start with the essentials

- **Focus question**: How can light still get through a narrow gap when it should be totally internally reflected?
- **One-sentence intuition**: Transmission has to be computed from the electric and magnetic fields together, not read off from how bright the field looks: $\langle S_z\rangle=\tfrac12\operatorname{Re}(\mathbf E\times\mathbf H^*)_z$. With two boundaries, the solution contains both evanescent terms and can carry power across the air gap, even though no geometric ray crosses it.

### Core mathematical model

#### Coordinates, indices and decay conventions

$$
k_x=k_0n_g\sin\theta,\quad k_{z,a}^2=k_0^2-k_x^2,\quad\theta_c=\arcsin(1/n_g)
$$

The normal axis Z points from the first glass into the air. X lies along the surface in the plane of incidence, and nothing varies along Y. The angle is measured from the normal, not from the surface. Both glasses have an assumed fixed index of 1.515, and air has index one. The time dependence is an exponential with negative frequency. Below the critical angle the wave in air propagates instead of decaying exponentially.

#### Penetration depth for amplitude and for intensity

$$
E(z)\propto e^{-\kappa z},\quad |E(z)|^2\propto e^{-2\kappa z},\quad\delta_E=\kappa^{-1},\quad\delta_I=(2\kappa)^{-1}
$$

These depths describe how far the field reaches into the air behind a single totally reflecting interface. The intensity depth is half the amplitude depth. They do not give the exact power transmittance of two prisms, and the field between two prisms need not follow a single decaying exponential. At or below the critical angle there is no finite evanescent decay depth.

#### Both polarizations satisfy Maxwell boundary conditions

$$
\begin{pmatrix}U\\V\end{pmatrix}_{z+d}=\begin{pmatrix}\cos\delta&i\sin\delta/Y\\iY\sin\delta&\cos\delta\end{pmatrix}\begin{pmatrix}U\\V\end{pmatrix}_{z},\quad Y=w\frac{k_z}{k_0}
$$

For s polarization, U is the electric field component along the invariant direction and w is one. For p polarization, U is the magnetic field along that direction, scaled by the vacuum impedance, and w is the inverse relative permittivity. Its partner V is the weighted derivative divided by the imaginary vacuum wavenumber. Both U and V are continuous across each interface. Taking the sine-over-wavenumber limit analytically keeps the calculation finite at the critical angle.

#### Power at the input and output ports

$$
T=|t|^2,\quad R=|r|^2,\quad R+T=1,\quad S_z/S_{z,\rm in}=\frac{\operatorname{Re}(UV^*)}{Y_g}
$$

With two prisms, both ports sit in the same glass, so the squared magnitude of the scalar amplitude equals the power fraction. For a single interface, transmission also includes the real admittance ratio of air. A lone evanescent term has companion fields a quarter cycle out of phase, so its normal flux is zero. Balanced power does not mean the fields vanish.

### Common difficulties

#### Can the brightness of an evanescent field be read as transmission?

**Typical misconception** The field intensity decays exponentially, so the light that gets through two prisms must follow exactly that exponential.

**Better mental model** No. Transmission depends on both interfaces, on polarization and on how the fields match coherently at each boundary. Behind a single interface, the tail carries no power outward, even where its electric intensity is bright. The exponential decay for a thick gap is an asymptotic limit; it does not replace the full solution for a thin gap.

### Run the experiment

1. 01

   #### Scene 1: Single-interface TIR

   Start with the single boundary. Compare the nonzero electric field in the air with the normal energy flux, which is zero. Move the ideal sampling cursor: neither output power should change.

   **What to observe:** With zero gap, all the light goes through and none reflects. Beyond the critical angle, a thick gap approaches total internal reflection at a single interface. Below the critical angle, the same solver shows lossless Fabry–Perot fringes.

2. 02

   #### Scene 2: Ideal near-field sample

   Bring in the second prism and narrow the gap. Compare the s and p transmission curves, the electric field matched at the boundaries and the normal Poynting component, which is conserved.

   **What to observe:** The field in the air looks brighter or dimmer with polarization because the full electric field has different components in each case. For p polarization the scalar variable is magnetic, so its squared magnitude is not the electric intensity.

3. 03

   #### Scene 3: Two-boundary tunnelling

   Go below the critical angle, then set the gap to zero. You will see ordinary multiple-reflection resonances, and at zero gap the transmission of uniform glass. Freeze a complex scan before changing any control.

   **What to observe:** A real near-field probe disturbs the boundary problem. The ideal cursor here reports a field value without taking any energy away, so it cannot predict the power a probe collects, its scattering or its back-action.

Physical conclusion

The field beyond the boundary is real, but its brightness does not measure power. Match the full complex fields at the boundaries, then look at where the energy flows.

## Related experiments and articles

Fluctuational electrodynamics · Reading path

### From thermal emission to heat and force across a nanometre gap

Articles on this path that use this experiment, followed by the other experiments they suggest.

1. [Article **Evanescent waves and the surface phonon polariton of silicon carbide**](https://sandboxphysics.com/stories/fluctuational-electrodynamics/evanescent-waves-and-surface-polaritons/)
2. [Lab **Near-Field Thermal Radiation: Probe Above Hot SiC** Compare how two frequencies decay with height](https://sandboxphysics.com/labs/thermal-near-field-probe/)

Waves & optics · Starter path

## From one ray to interference measurement

Start with refraction, find where the ray picture stops working, then use interference to measure tiny distances.

[Start here → **Optical Boundary Explorer** Turn the incident angle and watch reflected and transmitted power trade off. Then switch to the critical-angle scene. Observe · 11 min](https://sandboxphysics.com/labs/optical-boundary-explorer/)

1. [1 Optical Boundary Explorer](https://sandboxphysics.com/labs/optical-boundary-explorer/)
2. [2 Rainbow Caustic Observatory](https://sandboxphysics.com/labs/rainbow-laboratory/)
3. [3 Camera Obscura](https://sandboxphysics.com/labs/camera-obscura/)
4. [4 Coherent Wave Composer](https://sandboxphysics.com/labs/coherent-wave-composer/)
5. [5 Young Double-Slit Bench](https://sandboxphysics.com/labs/young-double-slit-bench/)
6. [6 Michelson Precision Lab](https://sandboxphysics.com/labs/michelson-precision-lab/)

[View the full path →](https://sandboxphysics.com/topics/waves-and-optics/#starter-path)
