2D Transmission Line Field Solver
by Henrik Forstén | Source code & issues
A quasi-static 2D field solver for transmission line analysis using the finite difference method with adaptive mesh refinement.
Validity
- Designed for microstrip, stripline, and coplanar waveguide structures commonly used in PCB RF and high-speed digital designs.
- Provides good results when the transmission line supports TEM or quasi-TEM propagation, which covers most practical PCB geometries below the onset of higher-order modes.
- Results have been checked against EM solver and actual measurement data with different geometries and transmission line types, showing close agreement with small error in typical use cases.
- Accurate from RF through microwave and high-speed digital frequencies where return currents are confined and skin effect is significant.
- Suitable for impedance control, loss estimation, and S-parameter generation in the vast majority of PCB transmission line applications.
Limitations
- Higher-order modes, dispersion, and cutoff behavior are not modeled. Structures that support non-TEM modes (e.g., waveguides) are outside the solver's validity range.
- Current is modeled at the surface for AC and DC resistance is blended smoothly at low frequencies. Full 2D/3D current density inside conductors is not solved, which can reduce accuracy at frequencies where skin depth is comparable to conductor thickness.
- At DC and low frequencies (~<1 MHz), return current spreads over the ground plane. Since the solver infers inductance from capacitance, partial inductance and finite ground width effects may be inaccurate.
- Results apply to uniform, infinitely long transmission lines.
- Radiation is not modeled
Methodology
The solver computes the characteristic impedance and propagation parameters of transmission lines by solving Laplace's equation for the electric potential distribution in the cross-section:
∇²V = 0
From the potential solution, the capacitance per unit length is calculated by integrating the electric field around the conductor. The inductance is determined by solving the same problem with air dielectric to find C0, then using:
L = 1 / (c² · C0)
where c is the speed of light.
Loss Calculations
Conductor loss is computed with perturbation method that calculates losses only on conductor boundaries. DC bulk resistance is blended at low frequencies for better loss at frequencies where skin depth is of similar scale as conductor dimensions. The surface roughness model implements Gradient model.
Dielectric loss is calculated from the loss tangent of each dielectric region, weighted by the field energy distribution.
S-Parameters
S-parameters are computed from the RLGC transmission line model using standard ABCD matrix formulation. For differential lines, modal decomposition separates odd and even modes, which are then combined into 4-port S-parameters.
Adaptive Mesh Refinement
The solver uses adaptive mesh refinement to concentrate grid points where the field gradients are highest (near conductor edges and dielectric interfaces), improving accuracy while keeping computation tractable.