Cavity Resonators
Close both ends of a waveguide with metal and the waves trapped inside can only exist at discrete frequencies, like the notes of an organ pipe. That is a cavity resonator: the microwave equivalent of an LC tank, but with a quality factor of thousands to tens of thousands instead of tens to hundreds. Cavities set the frequency of radar oscillators and frequency standards, filter the signals in mobile-phone base stations, accelerate particles, and measure the loss tangent of materials more precisely than any capacitor bridge. This lesson finds the resonant modes of a rectangular cavity, computes the conductor-loss of the dominant TE mode with a closed formula, and checks that formula by integrating the fields numerically.
Resonant frequencies
A rectangular cavity is a guide of cross-section (Rectangular Waveguides) shorted at and . Each guide mode travelling back and forth forms a standing wave, and the shorting walls (where tangential must vanish) require a whole number of half guide-wavelengths along : . Combined with the guide's :
for TE (, not both zero, ) and TM (, ). With the lowest is TE: one half-sine across , one along , nothing across .
The electric energy is stored mostly near the centre, where peaks; the magnetic energy mostly near the walls, where circulates. The two exchange every quarter period, just as charge on a capacitor and current in an inductor do in an LC circuit (Resonance and Q).
Quality factor
At resonance, compares the stored energy with the energy lost per radian of oscillation:
Losses add: in the walls (), in any dielectric filling ( for a completely filled cavity) and through the coupling ports to the outside (). The wall loss uses the surface resistance of Lossy Media: . For TE this integral can be done in closed form, giving
Roughly, is the ratio of the cavity's volume to the volume of its skin-depth layer, times a geometry factor: big cavities with smooth, highly conductive walls have high .
Worked example: a closed piece of WR-90
Given: a copper cavity with , , , air-filled, .
Find: , the next resonance, , and the bandwidth.
Solve:
Check: the next mode is higher, so TE is well isolated. A lumped LC resonator at would need sub-nanohenry and sub-picofarad parts with in the tens; the cavity gives because its "inductor" and "capacitor" are the whole volume and its loss is confined to a skin depth of .
In Python: formula against fields
The script lists the lowest resonances, evaluates the formula, then computes independently from the TE fields: stored energy (electric and magnetic energies are equal at resonance) and wall loss over the six walls, by midpoint sums on a grid. It ends with the effect of a lossy filling.
import numpy as np
C, MU0, ETA0, SIGMA = 2.998e8, 4e-7 * np.pi, 376.73, 5.8e7
a, b, d = 22.86e-3, 10.16e-3, 30.0e-3 # a WR-90 section closed at both ends
def f_res(m, n, l):
return C / 2 * np.sqrt((m / a)**2 + (n / b)**2 + (l / d)**2)
modes = []
for m in range(3):
for n in range(2):
for l in range(3):
if (m or n) and l >= 1: # TE_mnl: m, n not both zero, l >= 1
modes.append((f_res(m, n, l), f"TE{m}{n}{l}"))
if m and n: # TM_mnl: m, n >= 1, l >= 0
modes.append((f_res(m, n, l), f"TM{m}{n}{l}"))
print("lowest resonances:", ", ".join(f"{name} {f/1e9:.3f} GHz" for f, name in sorted(modes)[:4]))
f0 = f_res(1, 0, 1)
w = 2 * np.pi * f0
k = w / C
rs = np.sqrt(w * MU0 / (2 * SIGMA))
# closed-form conductor Q of the TE101 mode
qc = (k * a * d)**3 * b * ETA0 / (2 * np.pi**2 * rs) / (2 * a**3 * b + 2 * b * d**3 + a**3 * d + a * d**3)
print(f"TE101: f0 = {f0/1e9:.4f} GHz, Rs = {rs*1e3:.2f} mOhm, Qc (formula) = {qc:.0f}")
# the same Q from the fields: Q = w W / P_wall, with E0 = 1 V/m
n = 400
x = (np.arange(n) + 0.5) / n * a
y = (np.arange(n) + 0.5) / n * b
z = (np.arange(n) + 0.5) / n * d
X, Z = np.meshgrid(x, z, indexing="ij")
Ey = np.sin(np.pi * X / a) * np.sin(np.pi * Z / d)
Hx = (np.pi / (w * MU0 * d)) * np.sin(np.pi * X / a) * np.cos(np.pi * Z / d) # magnitudes only
Hz = (np.pi / (w * MU0 * a)) * np.cos(np.pi * X / a) * np.sin(np.pi * Z / d)
dA = (a / n) * (d / n)
W = 2 * 0.25 * 8.854e-12 * np.sum(Ey**2) * dA * b # peak E and H energies equal at resonance
H2_top = np.sum(Hx**2 + Hz**2) * dA # y = 0 and y = b walls
H2_x0 = np.sum((np.pi / (w * MU0 * a))**2 * np.sin(np.pi * z / d)**2) * (d / n) * b # x = 0 and x = a: Hz only
H2_z0 = np.sum((np.pi / (w * MU0 * d))**2 * np.sin(np.pi * x / a)**2) * (a / n) * b # z = 0 and z = d: Hx only
P = rs / 2 * (2 * H2_top + 2 * H2_x0 + 2 * H2_z0)
print(f"Qc from the fields = {w * W / P:.0f}")
# loading by a dielectric with tan(delta) and the resulting 3 dB bandwidth
for tand in [0.0, 2e-4, 2e-3]: # Q_d = 1/tan(delta) if the cavity is filled
q = 1 / (1 / qc + tand)
print(f"tan(delta) = {tand:.0e}: Q = {q:6.0f}, 3 dB bandwidth = {f0 / q / 1e6:.2f} MHz")lowest resonances: TE101 8.244 GHz, TE102 11.953 GHz, TE201 14.034 GHz, TE011 15.577 GHz
TE101: f0 = 8.2441 GHz, Rs = 23.69 mOhm, Qc (formula) = 7707
Qc from the fields = 7707
tan(delta) = 0e+00: Q = 7707, 3 dB bandwidth = 1.07 MHz
tan(delta) = 2e-04: Q = 3033, 3 dB bandwidth = 2.72 MHz
tan(delta) = 2e-03: Q = 470, 3 dB bandwidth = 17.56 MHz
The two values agree, which validates both the formula and the field expressions. A dielectric with (PTFE-like) more than halves ; at the dielectric dominates. (Filling the cavity would also lower by ; the last lines keep to isolate the loss.) That sensitivity is the basis of the cavity-perturbation method: insert a thin sample, measure the shift in (which gives ) and the change in (which gives ), the way low-loss laminates are characterised for datasheets.
Guided lab: measure f0 and Q
Hand calculation. and for your cavity's dimensions and wall metal (brass has about , so falls by ).
Simulation. The script with your values.
What you would measure. Couple a vector network analyser (milliwatt output) to the cavity through a small loop or probe at each end, kept weak (undercoupled) so . Read at the peak of and the bandwidth between the points; the loaded . Expect within about of the calculation (machining tolerance and the probes' small perturbation), and an unloaded of perhaps to of the theoretical : real surfaces are rough, joints in the walls add resistance, and oxide lowers the surface conductivity. With weak coupling , so record the peak transmission too.
Hazards and safe setup. Milliwatt test signals: no exposure concern. Never feed a cavity from a transmitter or magnetron; the fields of a high- cavity at high power can arc and heat surfaces quickly.
Pitfalls
- Mode labels depend on axis choice. TE assumes along the length ; another axis choice renames the same field.
- Forgetting coupling. A strongly coupled port lowers the measured ; is not .
- Ignoring degenerate modes. In a cube, TE, TE and TM share one frequency and mix; filters avoid exact symmetry.
- Assuming room-temperature copper data. Surface finish, plating and temperature change ; superconducting cavities reach of .
Practice
- Find for a cubic air cavity of side , and name two other modes at the same frequency.
- A resonance at has a bandwidth of . What is ?
- A copper cavity has . What dielectric loss tangent would halve its if it were filled?
Answer
- ; TE and TM are degenerate with it.
- .
- gives .
Test yourself
For a rectangular cavity with , the lowest resonance is…
- TM
- TE
- TE
- TEM
A copper cavity resonates in TE at about…
How do wall, dielectric and coupling losses combine in a cavity's ?
- the values add
- the reciprocals add
- the largest wins
- they multiply
A cavity has and . Its bandwidth is…