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

S5 · Lesson 23 · Guide lab

Waveguide mode lists, Bessel zeros and counting a cavity's modes, in Python

Lessons 13 to 18 found cutoff frequencies one mode at a time. A designer needs the whole list: which modes propagate in a guide at a given frequency, where a circular guide's modes start (which needs the zeros of Bessel functions), and how many resonances a cavity has below some frequency, which sets how a shielded room or a microwave oven behaves. This lab computes all three, the Bessel zeros from the power series itself, and checks the cavity count against Weyl's formula.

  • The curve is Weyl's estimate of the number of electromagnetic modes below frequency f in a cavity of volume V, N≈8π3Vf3c3 (both polarizations), here for a 1 m × 0.8 m × 0.6 m box.
  • The count grows as the cube of frequency: a room-sized cavity has thousands of modes below 3 GHz, which is why a reverberation chamber's field is nearly uniform statistically.
  • The lab counts the exact modes and compares.

Predict

How many modes does WR-90 (22.86 × 10.16 mm) carry at 15 GHz, and which?

Name it

What the lab computes

  • Rectangular guide modes: for every (m, n) not both zero, TE_mn cuts off at c2(m/a)2+(n/b)2; TM_mn exists only for m, n ≥ 1, at the same cutoff.
  • Bessel zeros: Jn(x)=∑k(−1)kk!(k+n)!(x2)2k+n; TM_nm modes use the zeros of Jn and TE_nm modes the zeros of Jn′, found by bisection.
  • Cavity modes: a rectangular cavity has TE_mnl (l ≥ 1, m and n not both 0) and TM_mnl (m, n ≥ 1) modes at c2(m/a)2+(n/b)2+(l/d)2. Weyl's law estimates the count below f as 8π3Vf3c3, more accurate the more modes there are.

Check

Write rect_modes(a, b, fmax): a list of (name, cutoff) for every TE and TM mode of an a × b guide (meters) cutting off below fmax (Hz), sorted by cutoff.

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

Check

Write J(n, x) from the power series (60 terms) and bessel_zero(n, lo, hi, derivative=False): the zero of Jn (or of Jn′, by a central difference with h = 10⁻⁶) between lo and hi, by bisection.

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

Check

Write cavity_modes(a, b, d, F): count the TE and TM modes of an a × b × d box (meters) below F (Hz), and weyl(a, b, d, F).

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 large metal room have thousands of resonances below a few gigahertz?