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

A12 · Lesson 53 · Project: a microstrip's capacitance two ways

An exact answer from conformal mapping, a numerical one from relaxation, and how to trust both

Every high-speed board is laid out with traces of a chosen impedance, usually 50 Ω, and the trace widths come from a field solver or from formulas fitted to one. In this project you'll build both ends of that chain. First, the exact capacitance of a stripline (a thin strip midway between two ground planes) from a conformal map, as Cohn worked it out in 1954. Then a relaxation solver for Laplace's equation with dielectrics, checked against that exact answer and sharpened by Richardson extrapolation. Finally the microstrip, a strip on top of a substrate with air above it, which has no exact formula; you'll compare your solver with the Hammerstad–Jensen formula that PCB calculators use.

Predict

A relaxation solver puts a zero-thickness strip on a grid. As the grid gets finer, how does its error in C′ shrink?

Name it

The exact stripline

A strip of width w midway between ground planes b apart, with εr filling the space. Cohn mapped a quarter of the cross-section (half the strip and one ground plane) onto a parallel-plate rectangle with an elliptic-function map. Its sides are in the ratio K(k′)/K(k), where K is the complete elliptic integral of the first kind and

k=sechπw2b,k′=tanh⁡πw2b

so by lesson 24 each quarter has εK(k′)/K(k), and the four are in parallel:

C′=4ε0εrK(k′)K(k),Z0=εrcC′

K is easy to compute exactly with the arithmetic–geometric mean: K(k)=π2AGM(1,1−k2), where AGM repeats a,b←a+b2,ab until they agree.

Relaxation with dielectrics

In a material, Laplace's equation becomes ∇⋅(ε∇V)=0. On a grid, give each link between neighbors a permittivity, and make every free point the weighted average V=∑εkVk∑εk of its four neighbors. A link lying along a dielectric surface gets the average, 1+εr2. The capacitance comes from the energy, as in A9's project:

C′=ε0∑linksεlink(ΔV)2

Microstrip

With a substrate below and air above, the wave isn't purely in one material, so define εeff=C′/C′0 (with and without the substrate) and

Z0=1cC′C′0

Hammerstad and Jensen's fit, good to about 1% for a thin strip with w/h≥1:

εeff=εr+12+εr−12(1+12hw)−1/2,Z0=120π/εeffw/h+1.393+0.667ln⁡(w/h+1.444)

Richardson extrapolation

If the error goes as h, two grids give C(h)≈C∞+Ah and C(h/2)≈C∞+Ah/2, so C∞≈2C(h/2)−C(h).

Worked example

Find the exact capacitance of an air stripline with w = b.

Show the solution
  1. The modulus. Here πw2b=1.5708, so k=sech1.5708=0.3985k′=tanh⁡1.5708=0.9172
  2. The elliptic integrals. K(k)=1.6394 and K(k′)=2.3626.
  3. The capacitance. C′=4×8.854×2.36261.6394pF/m=51.04pF/m
  4. The impedance. Z0=1cC′=65.4Ω

Answer C′ = 51.04 pF/m, and Z0 = 65.4 Ω.

Worked example

A relaxation solver gives 52.32 pF/m with 20 cells across b and 51.67 pF/m with 40. Extrapolate.

Show the solution
  1. Extrapolate. C′≈2×51.67−52.32=51.02pF/m
  2. Compare with the exact value. Against the exact 51.04, the two runs were off by 2.5% and 1.2%, and the extrapolation is off by 0.04%.

Answer the extrapolated value is 51.02 pF/m, within 0.04% of the exact 51.04 pF/m.

Check

Step 1. Write K(k), the complete elliptic integral by the AGM, and stripline_C(w_b, er), the exact capacitance per meter of a stripline with width-to-spacing ratio w_b.

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

Check

Step 2. Write stripline_grid(nb, nw, side) and capacitance(V, ex, ey). The grid has rows 0 to nb (rows 0 and nb are the ground planes) and nx = nw + 2*side + 1 columns (columns 0 and nx − 1 are grounded walls far out). The strip is row nb // 2, columns side to side + nw, at 1 V. Return V, the boolean mask fixed, and link permittivities ex (shape (nb + 1, nx - 1), between V[i, j] and V[i, j + 1]) and ey (shape (nb, nx), between V[i, j] and V[i + 1, j]), all 1 here. The solver solve is written for you.

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

Check

Step 3. Write microstrip(h, er) returning (eeff, Z0) for a strip of width w = 2h on a substrate h cells thick, with a grounded shield 10h above the ground plane and grounded walls 8h beyond each strip edge. Row 0 is the ground plane, the strip is row h (columns 8*h to 8*h + 2*h), and the substrate fills rows 0 to h: links below row h get εr, and horizontal links on row h get (1+εr)/2. solve and capacitance are included; run 700 sweeps.

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

Check

A solver whose error goes as h gives 60.1 pF/m on one grid and 0.6 pF/m less on a grid twice as fine. What's the extrapolated value?

Write units the way you normally would: 1.5 pF/m and 0.0015 nF/m are the same answer.

Check

A microstrip has C′ = 130 pF/m and, with its substrate replaced by air, C′0 = 30 pF/m. What's its characteristic impedance?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

What's the effective permittivity of a microstrip with w/h = 1 on a substrate with εr = 4.3, by Hammerstad and Jensen?

Explain why

Why is it worth checking a field solver against the stripline, which has an exact answer, before trusting it on a microstrip, which doesn't?

Practice

Keep practicing

6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.