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, (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?
Cutoffs are 6.56 GHz (TE₁₀), 13.11 (TE₂₀), 14.75 (TE₀₁) and 16.15 (TE₁₁ and TM₁₁ together). At 15 GHz the first three propagate; above 16.15 GHz there are five.
Name it
What the lab computes
- Rectangular guide modes: for every (m, n) not both zero, TE cuts off at ; TM exists only for m, n ≥ 1, at the same cutoff.
- Bessel zeros: ; TM modes use the zeros of and TE modes the zeros of , found by bisection.
- Cavity modes: a rectangular cavity has TE (l ≥ 1, m and n not both 0) and TM (m, n ≥ 1) modes at . Weyl's law estimates the count below f as , 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 (or of , 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?
A cavity resonates wherever a whole number of half wavelengths fits along each of its three dimensions at once. Every combination of three such numbers gives a mode, so the number of modes below a frequency counts the lattice points inside an octant of a sphere whose radius grows with frequency; that grows as the cube of frequency and in proportion to the volume, which is Weyl's law. A room a meter or more across has dimensions many wavelengths long at gigahertz frequencies, so the count reaches thousands, closely spaced in frequency. With so many overlapping modes, stirring the field with a rotating paddle makes it statistically uniform, which reverberation chambers exploit for testing.