S516 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S5 · Lesson 16 · Wave lab

Fresnel reflection, Brewster's angle by search, group index and Gaussian pulse spreading, in Python

Lessons 7 to 10 gave closed forms for reflection at a boundary, for the group index of a dispersive glass and for how far a pulse spreads in a fiber. This lab computes each from its definition: the Fresnel coefficients with complex angles so total internal reflection comes out by itself, Brewster's angle by searching for the zero of rp rather than by formula, the group index by numerically differentiating n(λ), and the broadening of a Gaussian pulse from the fiber's group-velocity dispersion. Each result is then compared with the formula it should reproduce.

  • The curve is the width of a Gaussian pulse after traveling L in a fiber, τ(L)=τ01+(L/LD)2, with the dispersion length LD=τ02/|β2| and β2=−Dλ2/(2πc).
  • Short pulses have short dispersion lengths: a 10 ps pulse in standard fiber at 1550 nm doubles its width after about 8 km.
  • Far beyond LD the width grows linearly with distance, as Δτ=|D|LΔλ predicts.

Predict

A 10 ps Gaussian pulse at 1550 nm travels 100 km of fiber with D = 17 ps/(nm·km). Roughly how wide is it at the end?

Name it

The computations

  • Fresnel with complex angles: cos⁡θt=1−(n1sin⁡θi/n2)2 taken as a complex square root; beyond the critical angle it's imaginary and both reflectances come out exactly 1.
  • Brewster by search: rp(θ) changes sign at Brewster's angle; bisection on its sign finds it without the formula, and must agree with arctan⁡(n2/n1).
  • Group index: ng=n−λdn/dλ, with the derivative by a central difference.
  • Gaussian pulse broadening: for a transform-limited Gaussian pulse of width τ0, τ(L)=τ01+(L/LD)2 with LD=τ02/|β2| and β2=−Dλ2/(2πc) (D in s/m², 1 ps/(nm·km) = 10⁻⁶ s/m²).

Check

Write fresnel(n1, n2, theta): return (Rs, Rp) using a complex square root for cos⁡θt, and brewster(n1, n2): Brewster's angle in degrees, found by bisecting on the sign of rp.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write group_index(n, lam, h=1e-3): the group index of a function n(λ) at λ by a central difference, and check it against Cauchy's A+3B/λ2.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write pulse_width(t0_ps, D, lam_nm, L_km): the width in ps of a Gaussian pulse of initial width t0 after L km of fiber with dispersion D ps/(nm·km), and dispersion_length(t0_ps, D, lam_nm) in km.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does a shorter optical pulse spread more quickly in a dispersive fiber?