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?
Roughly as h. Near the edge of a thin strip the potential goes as (lesson 38, a knife edge), so the field is infinite there and the grid can't represent it well. Halving h about halves the error, which is what makes Richardson extrapolation from two grids so effective here.
Name it
The exact stripline
A strip of width w midway between ground planes b apart, with 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 , where K is the complete elliptic integral of the first kind and
so by lesson 24 each quarter has , and the four are in parallel:
K is easy to compute exactly with the arithmetic–geometric mean: , where AGM repeats until they agree.
Relaxation with dielectrics
In a material, Laplace's equation becomes . On a grid, give each link between neighbors a permittivity, and make every free point the weighted average of its four neighbors. A link lying along a dielectric surface gets the average, . The capacitance comes from the energy, as in A9's project:
Microstrip
With a substrate below and air above, the wave isn't purely in one material, so define (with and without the substrate) and
Hammerstad and Jensen's fit, good to about 1% for a thin strip with :
Richardson extrapolation
If the error goes as h, two grids give and , so .
Worked example
Find the exact capacitance of an air stripline with w = b.
Show the solution
- The modulus. Here , so
- The elliptic integrals. and .
- The capacitance.
- The impedance.
Answer C′ = 51.04 pF/m, and = 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
- Extrapolate.
- 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 , and horizontal links on row h get . 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, = 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 = 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?
The stripline and the microstrip share everything that can go wrong in the solver: the grid, the relaxation, the thin strip with its singular edges, the boundary walls and the energy formula for C′. Only the stripline has an exact answer, from the conformal map, so comparing there measures the solver's actual error and how it shrinks with the grid (about as h here, so Richardson extrapolation works). Once that's known, the microstrip result, which adds only the dielectric interface, can be trusted to a similar accuracy, and its agreement with Hammerstad and Jensen to about 1% then says something about both.
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.