TExcelTAD

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 QQ of the dominant TE101_{101} 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 a×ba \times b (Rectangular Waveguides) shorted at z=0z = 0 and z=dz = d. Each guide mode travelling back and forth forms a standing wave, and the shorting walls (where tangential E\mathbf{E} must vanish) require a whole number ll of half guide-wavelengths along dd: β=lπ/d\beta = l\pi/d. Combined with the guide's β2=k2−(mπ/a)2−(nπ/b)2\beta^2 = k^2 - (m\pi/a)^2 - (n\pi/b)^2:

fmnl=12με(ma)2+(nb)2+(ld)2f_{mnl} = \frac{1}{2\sqrt{\mu\varepsilon}}\sqrt{\left(\frac{m}{a}\right)^2 + \left(\frac{n}{b}\right)^2 + \left(\frac{l}{d}\right)^2}

for TEmnl_{mnl} (mm, nn not both zero, l≥1l \ge 1) and TMmnl_{mnl} (m,n≥1m, n \ge 1, l≥0l \ge 0). With b<a<db < a < d the lowest is TE101_{101}: one half-sine across aa, one along dd, nothing across bb.

a = 22.86 mm (x) d = 30 mm (z, down the page) TE101 E along y (out of page), largest at the centre H loops in the x-z plane one half-wave along a and one along d f101 = 8.244 GHz

The electric energy is stored mostly near the centre, where EyE_y peaks; the magnetic energy mostly near the walls, where H\mathbf{H} 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, QQ compares the stored energy with the energy lost per radian of oscillation:

Q=ω0WPloss,1Q=1Qc+1Qd+1Qext,Δf3 dB=f0QQ = \frac{\omega_0 W}{P_\text{loss}}, \qquad \frac{1}{Q} = \frac{1}{Q_c} + \frac{1}{Q_d} + \frac{1}{Q_\text{ext}}, \qquad \Delta f_{3\,\text{dB}} = \frac{f_0}{Q}

Losses add: in the walls (QcQ_c), in any dielectric filling (Qd=1/tan⁡δQ_d = 1/\tan\delta for a completely filled cavity) and through the coupling ports to the outside (QextQ_\text{ext}). The wall loss uses the surface resistance Rs=πfμ0/σR_s = \sqrt{\pi f\mu_0/\sigma} of Lossy Media: Pc=Rs2∮∣Htan∣2 dSP_c = \frac{R_s}{2}\oint\lvert\mathbf{H}_\text{tan}\rvert^2\,dS. For TE101_{101} this integral can be done in closed form, giving

Qc=(kad)3 b η2π2Rs⋅12a3b+2bd3+a3d+ad3Q_c = \frac{(kad)^3\, b\,\eta}{2\pi^2 R_s}\cdot\frac{1}{2a^3 b + 2bd^3 + a^3 d + ad^3}

Roughly, QcQ_c 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 QQ.

Worked example: a closed piece of WR-90

Given: a copper cavity with a=22.86 mma = 22.86\ \text{mm}, b=10.16 mmb = 10.16\ \text{mm}, d=30.0 mmd = 30.0\ \text{mm}, air-filled, σ=5.8×107 S/m\sigma = 5.8 \times 10^7\ \text{S/m}.

Find: f101f_{101}, the next resonance, RsR_s, QcQ_c and the 3 dB3\ \text{dB} bandwidth.

Solve:

f101=2.998×108210.022862+10.0302=8.244 GHz,f102=11.95 GHzRs=π⋅8.244×109⋅4π×10−75.8×107=23.69 mΩQc=7707,Δf=8.244 GHz7707=1.07 MHz\begin{aligned} f_{101} &= \frac{2.998 \times 10^8}{2}\sqrt{\frac{1}{0.02286^2} + \frac{1}{0.030^2}} = 8.244\ \text{GHz}, \qquad f_{102} = 11.95\ \text{GHz} \\ R_s &= \sqrt{\frac{\pi \cdot 8.244 \times 10^9 \cdot 4\pi \times 10^{-7}}{5.8 \times 10^7}} = 23.69\ \text{m}\Omega \\ Q_c &= 7707, \qquad \Delta f = \frac{8.244\ \text{GHz}}{7707} = 1.07\ \text{MHz} \end{aligned}

Check: the next mode is 3.7 GHz3.7\ \text{GHz} higher, so TE101_{101} is well isolated. A lumped LC resonator at 8 GHz8\ \text{GHz} would need sub-nanohenry and sub-picofarad parts with QQ in the tens; the cavity gives 77077707 because its "inductor" and "capacitor" are the whole volume and its loss is confined to a skin depth of 0.73 μm0.73\ \mu\text{m}.

In Python: formula against fields

The script lists the lowest resonances, evaluates the QcQ_c formula, then computes QQ independently from the TE101_{101} fields: stored energy W=2⋅ε04∫∣Ey∣2dVW = 2 \cdot \frac{\varepsilon_0}{4}\int\lvert E_y\rvert^2 dV (electric and magnetic energies are equal at resonance) and wall loss Rs2∮∣Htan∣2dS\frac{R_s}{2}\oint\lvert\mathbf{H}_\text{tan}\rvert^2 dS over the six walls, by midpoint sums on a 400×400400 \times 400 grid. It ends with the effect of a lossy filling.

python · try it yourself
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 tan⁡δ=2×10−4\tan\delta = 2 \times 10^{-4} (PTFE-like) more than halves QQ; at 2×10−32 \times 10^{-3} the dielectric dominates. (Filling the cavity would also lower f0f_0 by εr\sqrt{\varepsilon_r}; the last lines keep f0f_0 to isolate the loss.) That sensitivity is the basis of the cavity-perturbation method: insert a thin sample, measure the shift in f0f_0 (which gives εr′\varepsilon_r') and the change in QQ (which gives tan⁡δ\tan\delta), the way low-loss laminates are characterised for datasheets.

Guided lab: measure f0 and Q

Hand calculation. f101f_{101} and QcQ_c for your cavity's dimensions and wall metal (brass has about σ=1.5×107 S/m\sigma = 1.5 \times 10^7\ \text{S/m}, so QcQ_c falls by 5.8/1.5≈2\sqrt{5.8/1.5} \approx 2).

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 Qext≫QcQ_\text{ext} \gg Q_c. Read f0f_0 at the peak of ∣S21∣\lvert S_{21}\rvert and the bandwidth between the −3 dB-3\ \text{dB} points; the loaded QL=f0/ΔfQ_L = f_0/\Delta f. Expect f0f_0 within about 0.5 %0.5\ \% of the calculation (machining tolerance and the probes' small perturbation), and an unloaded QQ of perhaps 6060 to 90 %90\ \% of the theoretical QcQ_c: real surfaces are rough, joints in the walls add resistance, and oxide lowers the surface conductivity. With weak coupling Q0≈QL/(1−∣S21∣peak)Q_0 \approx Q_L/(1 - \lvert S_{21}\rvert_\text{peak}), 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-QQ cavity at high power can arc and heat surfaces quickly.

Pitfalls

  • Mode labels depend on axis choice. TE101_{101} assumes zz along the length dd; another axis choice renames the same field.
  • Forgetting coupling. A strongly coupled port lowers the measured QQ; QLQ_L is not Q0Q_0.
  • Ignoring degenerate modes. In a cube, TE101_{101}, TE011_{011} and TM110_{110} share one frequency and mix; filters avoid exact symmetry.
  • Assuming room-temperature copper data. Surface finish, plating and temperature change RsR_s; superconducting cavities reach QQ of 101010^{10}.

Practice

  1. Find f101f_{101} for a cubic air cavity of side 20 mm20\ \text{mm}, and name two other modes at the same frequency.
  2. A resonance at 5.00 GHz5.00\ \text{GHz} has a 3 dB3\ \text{dB} bandwidth of 0.8 MHz0.8\ \text{MHz}. What is QQ?
  3. A copper cavity has Qc=8000Q_c = 8000. What dielectric loss tangent would halve its QQ if it were filled?
Answer
  1. f=c22/0.02=10.6 GHzf = \frac{c}{2}\sqrt{2}/0.02 = 10.6\ \text{GHz}; TE011_{011} and TM110_{110} are degenerate with it.
  2. Q=5000/0.8=6250Q = 5000/0.8 = 6250.
  3. 1/Q=1/8000+tan⁡δ=2/80001/Q = 1/8000 + \tan\delta = 2/8000 gives tan⁡δ=1.25×10−4\tan\delta = 1.25 \times 10^{-4}.

Test yourself

For a rectangular cavity with b<a<db < a < d, the lowest resonance is…

  1. TM110_{110}
  2. TE101_{101}
  3. TE011_{011}
  4. TEM

A 22.86×10.16×30 mm22.86 \times 10.16 \times 30\ \text{mm} copper cavity resonates in TE101_{101} at about…

  1. 6.56 GHz6.56\ \text{GHz}
  2. 8.24 GHz8.24\ \text{GHz}
  3. 11.95 GHz11.95\ \text{GHz}
  4. 14.75 GHz14.75\ \text{GHz}

How do wall, dielectric and coupling losses combine in a cavity's QQ?

  1. the QQ values add
  2. the reciprocals 1/Q1/Q add
  3. the largest QQ wins
  4. they multiply

A cavity has f0=8.244 GHzf_0 = 8.244\ \text{GHz} and Q=7707Q = 7707. Its 3 dB3\ \text{dB} bandwidth is…

  1. 10.7 kHz10.7\ \text{kHz}
  2. 1.07 MHz1.07\ \text{MHz}
  3. 107 MHz107\ \text{MHz}
  4. 8.24 MHz8.24\ \text{MHz}