---
title: Cavity resonators
heading: Resonant modes of a closed metal box, quality factor from wall and dielectric loss, bandwidth and ring-down
eyebrow: S5 · Lesson 17 · Cavity resonators
xp: 50
---

::: hook
Close both ends of a waveguide and the waves bounce back and forth, building up a standing wave only at frequencies where a whole number of half guide-wavelengths fits. That's a cavity resonator, the microwave version of an LC tank, with a quality factor in the thousands to tens of thousands because its walls are the only thing that loses energy. Cavities set the frequency of microwave oscillators, filter signals in base stations and satellites, measure materials' permittivity, accelerate particles, and heat food: a microwave oven is a cavity, its hot and cold spots the pattern of its modes.
:::

::: play
- Resonant frequencies of the lowest modes of an air-filled rectangular cavity, a × b × d, against its length d: $f_{mnl} = \frac{c}{2}\sqrt{(m/a)^2 + (n/b)^2 + (l/d)^2}$.
- TE₁₀₁ is the lowest when b is the smallest dimension. Lengthening the cavity lowers every mode with l ≥ 1 and crowds them together.
- A cavity meant to resonate in one mode must keep the others far away in frequency, which is why the mode chart is the first thing a designer draws.
:::
:::

```sim plot
view: graph
x: d = 10..60 mm
y: f = 5..25 GHz
slider: a = 15..40 = 22.86 mm
slider: b = 5..20 = 10.16 mm
plot: 149.896229*sqrt(1/a^2 + 1/d^2) | samples: 300 | label: TE₁₀₁
plot: 149.896229*sqrt(1/a^2 + 4/d^2) | samples: 300 | color: ch2 | label: TE₁₀₂
plot: 149.896229*sqrt(4/a^2 + 1/d^2) | samples: 300 | dashed | color: ch3 | label: TE₂₀₁
plot: 149.896229*sqrt(1/a^2 + 1/b^2) | samples: 300 | dashed | label: TM₁₁₀
```

::: predict
## A copper cavity resonates at 10 GHz with a Q of about 7800. What bandwidth does it have, and how long does its stored energy take to decay by a factor of e after the drive stops?

- [ ] 1.3 GHz and 12 ps
- [x] 1.3 MHz and 124 ns
- [ ] 13 kHz and 12 µs
- [ ] 10 GHz and 0.1 ns

::: reveal
Bandwidth $f_0/Q$ = 10 GHz / 7800 = 1.3 MHz. The energy decays as $e^{-\omega_0t/Q}$, so its time constant is $Q/\omega_0$ = 7800/(2π × 10 GHz) = 124 ns: the field rings for over a thousand cycles. A lossless dielectric filling with tan δ = 0.0004 would cap Q at 2500, so the best cavities are empty or filled with sapphire.
:::
:::

::: nameit
## Modes

A rectangular cavity of a × b × d (a waveguide a × b shorted at z = 0 and z = d) has modes TE$_{mnl}$ and TM$_{mnl}$ with

$$f_{mnl} = \frac{c}{2\sqrt{\varepsilon_r}}\sqrt{\left(\frac{m}{a}\right)^2 + \left(\frac{n}{b}\right)^2 + \left(\frac{l}{d}\right)^2}$$

The integer l counts half guide-wavelengths along d. For b < a < d, the lowest is TE₁₀₁. Circular cavities (Bessel functions again) and coaxial cavities work the same way.

## Quality factor

$$Q = \omega_0\frac{\text{energy stored}}{\text{power lost}}, \qquad \frac{1}{Q} = \frac{1}{Q_c} + \frac{1}{Q_d} + \frac{1}{Q_\text{ext}}$$

- **Dielectric:** $Q_d = 1/\tan\delta$.
- **Walls**, for TE₁₀₁ (Pozar), with $k = 2\pi f_0/c$ and $R_s = \sqrt{\pi f_0\mu_0/\sigma}$:

$$Q_c = \frac{(kad)^3b\eta}{2\pi^2R_s}\cdot\frac{1}{2a^3b + 2bd^3 + a^3d + ad^3}$$

For a cube this reduces to $Q_c = \frac{\pi}{3\sqrt 2}\frac{\eta}{R_s}$.
- **External:** coupling to the outside world through irises or probes adds its own loss; when $Q_\text{ext} = Q_\text{unloaded}$ the cavity is critically coupled and absorbs all incident power at resonance.

The 3 dB bandwidth is $f_0/Q$, and stored energy decays with time constant $Q/\omega_0$.
:::

::: example
## A WR-90 cavity (a = 22.86 mm, b = 10.16 mm) is to resonate in TE₁₀₁ at 10 GHz. How long must it be, and what's its copper-wall Q?

::: solution
1. **Cavity length.** For TE₁₀₁,
   $$\begin{aligned} \frac{1}{d^2} &= \left(\frac{2f}{c}\right)^2 - \frac{1}{a^2} \\ d &= 19.85\ \text{mm} \end{aligned}$$
2. **Copper-wall Q.** With $R_s$ = 26.1 mΩ, Pozar's formula gives
   $$Q_c \approx 7800$$
3. **Bandwidth.**
   $$\begin{aligned} \Delta f &= \frac{10\ \text{GHz}}{7800} \\ &= 1.3\ \text{MHz} \end{aligned}$$
4. **With a lossy dielectric.** Filled with a dielectric with tan δ = 4 × 10⁻⁴ ($Q_d$ = 2500), the total Q would fall to
   $$\begin{aligned} Q &= \frac{1}{1/7800 + 1/2500} \\ &\approx 1900 \end{aligned}$$

**Answer:** the cavity must be 19.85 mm long, and its copper-wall Q is about 7800, a bandwidth of 1.3 MHz.
:::
:::

::: example
## A 2 cm copper cube resonates in TE₁₀₁. What's its frequency and Q?

::: solution
1. **Resonant frequency.**
   $$\begin{aligned} f &= \frac{c}{2} \cdot \frac{\sqrt{2}}{2\ \text{cm}} \\ &= 10.6\ \text{GHz} \end{aligned}$$
2. **Surface resistance.** There $R_s$ = 26.9 mΩ, so
   $$\frac{\eta}{R_s} = 14\,000$$
3. **Q.**
   $$\begin{aligned} Q_c &= 0.7405 \times 14\,000 \\ &\approx 10\,400 \end{aligned}$$
4. **Better walls.** Silver plating raises it by about 3%; cooling copper to cryogenic temperatures, several times; superconducting niobium cavities in accelerators reach $10^{10}$.

**Answer:** the cube resonates at 10.6 GHz with a Q of about 10,400.
:::
:::

::: example
## A 10 GHz cavity has an unloaded Q of 8000. What is its bandwidth, how fast does its stored energy decay, and what loaded Q does critical coupling give?

::: solution
1. **Bandwidth.**
   $$\begin{aligned} \Delta f &= \frac{f_0}{Q} \\ &= \frac{10\ \text{GHz}}{8000} \\ &= 1.25\ \text{MHz} \end{aligned}$$
2. **Energy decay.** The time constant is
   $$\begin{aligned} \tau &= \frac{Q}{\omega_0} \\ &= \frac{8000}{2\pi \times 10^{10}}\ \text{s} \\ &= 127\ \text{ns} \end{aligned}$$
3. **Loaded Q.** Critical coupling makes $Q_\text{ext} = Q_0$, so
   $$\begin{aligned} Q_L &= \frac{1}{1/8000 + 1/8000} \\ &= 4000 \end{aligned}$$
   and the coupled cavity's bandwidth doubles to 2.5 MHz.

**Answer:** the bandwidth is 1.25 MHz, the stored energy decays with a 127 ns time constant, and critical coupling gives a loaded Q of 4000.
:::
:::

::: check
given: a = 20 | 30; b = 10 | 15; d = 25 | 40; m = 1 | 2; l = 1 | 2
answer: 299.792458/2*sqrt((m/a)^2 + (l/d)^2)
unit: GHz
tolerance: 0.5%

## An air-filled cavity is {a} × {b} × {d} mm. What's the resonant frequency of TE$_{\given{m}0\given{l}}$?

::: right
Right. $\frac{c}{2}\sqrt{(m/a)^2 + (l/d)^2}$ = {answer} GHz.
:::

::: misses
- [299.792458*sqrt((m/a)^2 + (l/d)^2)] Each dimension holds half-wavelengths: divide by 2.
- [any] Not yet. $f = \frac{c}{2}\sqrt{(m/a)^2 + (n/b)^2 + (l/d)^2}$ with n = 0.
:::
:::

::: check
given: t = 0.0001 | 0.0004 | 0.002
answer: 1/t
tolerance: 0.5%

## A cavity is filled with a dielectric with a loss tangent of {t}. What Q does the dielectric alone allow?

::: right
Right. $1/\tan\delta$ = {answer}.
:::

::: misses
- [any] Not yet. $Q_d = 1/\tan\delta$.
:::
:::

::: check
given: c = 3000 | 8000 | 20000; d = 1000 | 2500 | 10000
answer: 1/(1/c + 1/d)
tolerance: 0.5%

## A cavity's walls alone give Q = {c} and its dielectric alone Q = {d}. What's its unloaded Q?

::: right
Right. $1/(1/Q_c + 1/Q_d)$ = {answer}.
:::

::: misses
- [c + d] Losses add, so the reciprocals of Q add.
- [any] Not yet. Add the losses: $1/Q = 1/Q_c + 1/Q_d$.
:::
:::

::: check
given: f = 2.45 | 10 | 35; Q = 500 | 5000 | 20000
answer: f*1e9/Q/1e6
unit: MHz
tolerance: 0.5%

## A cavity resonates at {f} GHz with Q = {Q}. What's its 3 dB bandwidth?

::: right
Right. $f_0/Q$ = {answer} MHz.
:::

::: misses
- [any] Not yet. Bandwidth = f₀/Q.
:::
:::

::: check
given: f = 2.45 | 10 | 35; Q = 500 | 5000 | 20000
answer: Q/(2*pi*f*1e9)*1e9
unit: ns
tolerance: 0.5%

## A cavity at {f} GHz with Q = {Q} is driven, then the drive stops. What's the time constant of its stored energy's decay?

::: right
Right. $Q/\omega_0$ = {answer} ns.
:::

::: misses
- [Q/(f*1e9)*1e9] Use the angular frequency.
- [2*Q/(2*pi*f*1e9)*1e9] That's the field's time constant; the energy decays twice as fast.
- [any] Not yet. Energy decays as $e^{-\omega_0t/Q}$.
:::
:::

::: check
given: s = 10 | 20 | 40; g = 5.8e7 | 6.1e7 | 3.5e7
answer: pi/(3*sqrt(2))*376.7303/sqrt(pi*299792458/2*sqrt(2)/(s*1e-3)*4e-7*pi/g)
tolerance: 0.5%

## A cube of side {s} mm with walls of conductivity {g} S/m resonates in TE₁₀₁. What's its conductor Q?

::: right
Right. $\frac{\pi}{3\sqrt 2}\frac{\eta}{R_s}$ at its resonant frequency: {answer}.
:::

::: misses
- [any] Not yet. Find f₀, then $R_s$, then $Q_c = 0.7405\,\eta/R_s$.
:::
:::

::: check
kind: parts
given: a = 22.86 | 40; d = 20 | 30 | 40; Q = 2000 | 8000

## An air-filled rectangular cavity has a = {a} mm and d = {d} mm (b smaller than both), and an unloaded Q of {Q}.

::: part
answer: 299.792458/2*sqrt(1/a^2 + 1/d^2)
unit: GHz
tolerance: 0.5%

### What is its TE₁₀₁ frequency?

::: misses
- [any] $\frac c2\sqrt{1/a^2 + 1/d^2}$.
:::
:::

::: part
answer: 299.792458/2*sqrt(1/a^2 + 1/d^2)*1000/Q
unit: MHz
tolerance: 0.5%

### What is its bandwidth?

::: misses
- [any] $f_0/Q$.
:::
:::

::: part
answer: Q/(2*pi*299.792458/2*sqrt(1/a^2 + 1/d^2)*1e9)*1e9
unit: ns
tolerance: 0.5%

### What is its energy decay time constant?

::: misses
- [any] $Q/\omega_0$.
:::
:::
:::

::: check
kind: parts
given: c = 5000 | 10000; t = 0.0001 | 0.001; e = 2000 | 10000

## A dielectric-loaded cavity has a wall Q of {c}, a dielectric with loss tangent {t}, and an external Q of {e}.

::: part
answer: 1/(1/c + t + 1/e)
tolerance: 0.5%

### What is its loaded Q?

::: misses
- [any] $1/Q = 1/Q_c + 1/Q_d + 1/Q_\text{ext}$, with $Q_d = 1/\tan\delta$.
:::
:::
:::

::: check
kind: derivation
vars: f = 1e9..1e11, s = 1e6..6e7

## A cube cavity resonates in TE₁₀₁ at frequency f, with walls of conductivity s.

::: step
answer: sqrt(pi*f*4e-7*pi/s)

### What is the walls' surface resistance?
:::

::: step
answer: pi/(3*sqrt(2))*376.73/sqrt(pi*f*4e-7*pi/s)

### What is its conductor Q?
:::

::: right
Right. Q grows as the square root of conductivity and falls as the square root of frequency.
:::
:::

::: explain
## Why does a cavity have a much higher Q than a resonator built from a lumped inductor and capacitor at the same frequency?

::: model
Q is the energy stored divided by the energy lost per radian of oscillation. A lumped inductor stores its energy in a magnetic field threaded through a thin wire, so the current crowds into a small conductor cross-section at high frequency, and the resistive loss is large compared with the energy stored. A cavity stores its energy in the whole volume of the box, and the current that sustains the fields flows over the entire inner surface, spread wide, in a layer one skin depth thick. Energy stored grows with volume while loss grows with surface area, so the ratio, and with it Q, grows with the cavity's size relative to the skin depth, reaching thousands or tens of thousands where a lumped circuit manages tens or hundreds.
:::
:::

::: practice

::: check
given: a = 22 | 35; d = 30 | 50; m = 1 | 2; l = 1 | 3
answer: 299.792458/2*sqrt((m/a)^2 + (l/d)^2)
unit: GHz
tolerance: 0.5%

## TE$_{\given{m}0\given{l}}$ in a {a} × b × {d} mm cavity?

::: misses
- [any] $\frac{c}{2}\sqrt{(m/a)^2 + (l/d)^2}$.
:::
:::

::: check
given: c = 4000 | 15000; d = 2000 | 8000
answer: 1/(1/c + 1/d)
tolerance: 0.5%

## Unloaded Q from $Q_c$ = {c} and $Q_d$ = {d}?

::: misses
- [any] Reciprocals add.
:::
:::

::: check
given: f = 5 | 24; Q = 1000 | 10000
answer: f*1e9/Q/1e6
unit: MHz
tolerance: 0.5%

## Bandwidth at {f} GHz, Q = {Q}?

::: misses
- [any] f₀/Q.
:::
:::
:::
