kicad2ems Solver Matrix
kicad2ems docs · solver cross-check ·

kicad2ems Solver Matrix

By solver

Every example against its reference

What the matrix says

Where the solvers part ways

  1. openEMS is now the reference on 51 of 52 boards, and gfdtd reproduces it. Every example was run on openEMS (122 min in all). gfdtd's rms |ΔS| from it is 0.001–0.067, median 0.006. The one exception is rf_siw (0.17), a 0.1 GHz shift in cut-off: its S21 group delay matches openEMS's at 0.466 ns. The 15 stored references agree with the fresh runs to within 0.017. antenna_array4x4_phased did not finish on openEMS in 40 min and is scored against gfdtd.
  2. mom25d's stack auto fixes the boards with a cut ground. mom25d now picks the whole stack when the ground has apertures under the signal copper, or a port is below the ground. On those boards it went from wrong to close: antenna_slot 0.952 → 0.059, antenna_ifa 0.876 → 0.069, antenna_monopole 1.12 → 0.096, antenna_vivaldi 0.862 → 0.076, rf_dgs 0.739 → 0.088, rf_slotline 0.924 → 0.156. rf_msvia, which failed before, runs at 0.020. Each board's page shows the earlier run as "mom25d (before)". antenna_aperture's whole stack has 78,459 unknowns, past this machine for a direct solve, and stops at the 30-minute limit; mom25d fast solves it.
  3. The wideband dielectric fixes the 10 GHz boards. On the 12 configs that set diel = "wideband", mom25d now uses the same Djordjevic-Sarkar FR-4 as the FDTD solvers: rf_bends 0.099 → 0.030, rf_spiral 0.111 → 0.038, rf_ms2cpw 0.127 → 0.071, rf_meander 0.166 → 0.111, and the crosstalk and serpentine boards 0.04–0.06 → 0.02–0.03. The earlier report's phase gap on these boards was the dielectric model.
  4. mom25d on single-ground RF circuits: 0.02–0.07 from openEMS. That covers the coupler, branch-line, Wilkinson, filters and transitions. Larger values have known causes. The shielded filter (0.147) is modelled without its can. The rat-race (0.109) has its isolation null. Patches and arrays are 0.10–0.16, mostly S11 near resonance.
  5. mom25d fast is as close to openEMS as mom25d, in under a third of the time. With quad cells and coarsening (--mom-quads on --mom-quad-tol 60 --mom-coarsen 2) the boards have 2–5× fewer unknowns, and across the 44 boards both solve the median deviation is the same (0.049). It is within 0.01 of mom25d's on 38 of them, closer on 4 (rf_combline 0.160 → 0.132, antenna_array2x2 0.143 → 0.123) and further on 2 (rf_ebg 0.320 → 0.353, antenna_cp_patch 0.097 → 0.108). It takes 9.3 min for the 44 boards against 30.2 min for standard mom25d, 3.2× (both on the merged code of 6 November): antenna_slot 13 s, antenna_cp_patch 13 s, rf_siw 33 s. It also solves antenna_aperture (0.192, 17k unknowns), whose 78k unknowns on the standard mesh need more memory than this machine has for a direct solve.
  6. mom25d is wrong on rf_siw, and on rf_ebg for a reason not yet found. With openEMS settling it, mom25d's SIW is the one that is off (1.11): its group delay is 0.425 ns against 0.466 ns. Its whole stack ran out of memory at 16 GB. rf_ebg (0.32) has a complete ground: its patches are on In1, so it is not an aperture board, as the earlier report said.
  7. mixed is mom25d alone on all but three boards, and is wrong on one of the three without a warning. It found a long, lone straight run to cut on only rf_stripline, sma_launch and rf_bends. It matches mom25d on the first two. On rf_bends (0.514) it cuts four stretches, so its network has 14 ports, and the adaptive band fit stopped at its 60-solve cap with a prediction error of 1.9. Between the solved frequencies the curve is meaningless; the log says nothing. Fix: warn when the band fit ends at its cap unconverged. mixed declines the 8 boards stack auto sends to the whole stack, with a message.
  8. The line model misses coupling it cannot see, without a warning. On rf_marchand (0.92) it traces the input line and the output pair as separate chains. On rf_dgs (0.73) it models a plain line, with the ground slot unseen. Combline, serpentine and pcoupled (0.52–0.86) couple across three or more lines. Where its sections fit the layout it is within 0.03–0.12, in under a second per board.
  9. Fixed since: memory under a cap, and large boards on the GPU. emsdev's memory check read only the root cgroup's limit, so under a systemd scope's cap mom25d planned solves that could not fit (in a 4 GB scope it saw 11.2 GB); it now reads the process's own cgroup. mom25d now asks the GPU backend what fits and keeps the GPU's factor for the next frequencies: antenna_cp_patch (40.8k unknowns), where the compressed fallback took more than 30 minutes, solves in 145 s; where RAM is short a streamed path fills the GPU's LU a block of rows at a time. Past 25,000 unknowns the GPU path beats the hybrid: rf_siw 296 s against 456 s.

How it was measured

Each example's own config (examples/*.toml, lossy as written) run once per solver, forcing the solver with --solvers: openEMS, gfdtd, mixed and the line model on main of 5 November 2026 (kicad2ems f90b7ba, mom25d d2ff078, gfdtd bc13c48, kicad2ems-fdtd 3802231); mom25d and mom25d fast on main of 6 November (mom25d 501c571, with the day's speed work), without a memory cap. mom25d and mixed ran with lumped ports, the kind the FDTD solvers have, and with mom25d's defaults: stack auto, and the dielectric each config names. The reference is a fresh openEMS run, else gfdtd's. Where examples/reference holds a stored openEMS result, it is scored too, as a check on the fresh run. "mom25d (before)" is the earlier mom25d run (ground stack, constant dielectric), shown on each board's page but not in the matrix. "mom25d fast" is mom25d with --mom-quads on --mom-quad-tol 60 --mom-coarsen 2, run on 6 November with that day's mom25d (its speed work); its times compare with mom25d's (the same code), not with the other columns'. The two mom25d columns' deviations are computed against the curves the page holds (|S| to 0.01 dB, phase to 0.1°: about 1e-3, well below the figures shown).

Deviation: each solver's S matrix and the reference's, resampled to 161 points over their common band. The figure is the rms over frequency and over every S term both computed (single-excitation runs leave the others out) of |S − Sref| as complex numbers, which counts phase. The magnitude toggle uses ||S| − |Sref|| instead. For scale: 0.02 is about a 0.17 dB error on a through path or a 2 dB error on a −20 dB match, and 0.1 is a clear miss.

The 5 November runs each had a memory cap of 16 GB (a systemd scope, no swap); every run a 30-minute limit, 40 for openEMS. Times are single runs on an i7-13700K with a Radeon RX 7800 XT (gfdtd and mom25d on the GPU through Vulkan), meant as an indication rather than a benchmark. "n/a" is the solver declining the board with its own message: the line model has no far field, mom25d has no model of gap-fed antennas without a ground plane, and mixed declines boards mom25d models with the whole stack.