⏱️ Reading time: 8 min
FieldForge is an open source plugin for running EM simulation on a KiCad-designed circuit board using the GPU, without going through a Gerber file or building the simulation mesh by hand (0xSufi/fieldforge). You pick a net or a differential pair directly inside KiCad, and the plugin extracts the board’s exact geometry and stackup, generates an automatic mesh, and runs a GPU solver (openEMS or Palace) to return that trace’s S-parameters right in the editor.
📑 En este artículo
The project targets signal integrity between 1 and 50 GHz, the range where a PCB trace stops behaving like an ideal wire and starts mattering as an antenna, coupler, or lossy line. That range covers high-speed USB, PCIe, fast Ethernet, and much of RF design, and until now simulating it properly meant exporting by hand or paying for a commercial tool.
How FieldForge’s EM simulation works inside KiCad
The entire flow runs without leaving KiCad. The plugin uses KiCad 9’s IPC API to read, in headless mode, the PCB layers as polygons with their vias and the board’s actual stackup; according to the project, this extraction has already been verified on real designs such as Antmicro’s 8-layer Jetson Orin board, a HackRF One, Castor & Pollux, and StickHub, covering three different generations of the .kicad_pcb format (0xSufi/fieldforge).
With the geometry extracted, FieldForge generates an automatic graded mesh (with edge snapping between 1/3 and 2/3 and a smoothness limit of 1.5) and hands it to one of two backends: a CUDA FDTD engine (Yee kernels for sm_61 and sm_86 GPUs) or, in the current production path, a shielded-MoM solver that outputs Touchstone files directly. The Palace-and-Gmsh-based solver, meant for more general meshes, is still, according to the project’s own documentation, queued to run on a separate lab server, not part of the flow that already works end to end.
Today’s production path is shielded-MoM: it takes the board or an already-saved geometry, solves with GPU where one is available, performs adaptive band synthesis (between 8 and 12 points to cover a full band), and if the rational fit turns out non-passive or fails to converge, it falls back to an honest point-by-point sweep instead of forcing a result that doesn’t hold up (0xSufi/fieldforge). For differential pairs, the same command returns Touchstone files in mixed mode (SDD/SCC): the S-parameters that describe how much signal reflects and how much passes through the trace at each frequency, the standard format that later gets plotted or imported into another tool.
The current state, according to the repository, covers board extraction, automatic meshing, GPU FDTD, and end-to-end shielded-MoM S-parameter production, including mixed-mode pairs and via-transition sweeps up to 50 GHz (0xSufi/fieldforge). The flow looks like this:
flowchart TD
A["KiCad: pick a net or differential pair"] --> B["IPC API: geometry + stackup"]
B --> C["Automatic mesh (openEMS or Palace/Gmsh)"]
C --> D["GPU solver: FDTD or shielded-MoM"]
D --> E["Touchstone S-parameters"]
E --> F["Plugin panel in KiCad"]
What changes for high-speed PCB designers
Before installing, it’s worth checking two concrete things. First, the GPU: the CUDA kernels are compiled for the sm_61 and sm_86 architectures, meaning cards from the Pascal generation onward (0xSufi/fieldforge); without one of those, the FDTD path doesn’t run as documented. Second, the license: the core (core/ and pyff/) is Apache-2.0, but the KiCad plugin (kicad-plugin/) is GPL-3.0-or-later (0xSufi/fieldforge). If you’re planning to package this inside a proprietary flow, that license split between layers matters to your legal team, not just to whoever installs it.
What we tested in our sandbox
We ran FieldForge in an isolated environment to see if the installation path is as straightforward as the README promises. Cloning the repository (38.4 MB) took 1.621 s with a peak memory of 56.3 MB:
git -c protocol.allow=never -c protocol.https.allow=always -c core.hooksPath=/dev/null clone --depth 1 --single-branch --no-tags -- https://github.com/0xSufi/fieldforge /tmp/lab-runs/lab-0vi6jagz/w/repo
Cloning into '/tmp/lab-runs/lab-0vi6jagz/w/repo'...
That’s where the test stopped, because the sandbox returned no supported stack detected and never got to installing dependencies or running a simulation. It’s an honest result, not a staged one: the automatic stack detector we used (similar to what many CI pipelines run) doesn’t recognize this repository as installable without manual intervention. In practice, adopting FieldForge today isn’t a pip install followed by nothing else: you have to follow the project’s own script, ./ci/run_ci.sh all, and have the right GPU on hand.
FieldForge vs. openEMS, Palace, and gerber2ems
FieldForge doesn’t replace the solvers it uses, it orchestrates them. openEMS and Palace remain the calculation engines; what the project adds is automatic extraction from KiCad and the meshing that, until now, had to be built by hand.
| Tool | What it does | KiCad integration | License |
|---|---|---|---|
| FieldForge | Extracts geometry, generates an automatic mesh, and runs openEMS or shielded-MoM; returns Touchstone files in the plugin | Direct (PyQt6 plugin + IPC API) | Apache-2.0 (core/pyff) and GPL-3.0-or-later (plugin) |
| openEMS | FDTD engine that FieldForge uses as one of its two calculation backends | None native; manual meshing | GPL-3 |
| Palace + Gmsh | Second backend (FEM solver), described by the project as queued for a separate lab server | None native; integrated only inside FieldForge | Apache-2.0 |
| gerber2ems (Antmicro) | Exports Gerber and runs openEMS; FieldForge uses it as its own cross-reference | None; requires exporting Gerber by hand | Apache-2.0 |
The project’s own comparison against gerber2ems, on the same pair of traces, reports a p95 difference of 0.32 dB in |ΔSDD21| and 2.34 dB in |ΔSDD11| between 0.2 and 6 GHz, within the thresholds the project set for itself (0.5 and 3 dB) (0xSufi/fieldforge). Against the analytical formula for characteristic impedance, FieldForge reports -1.74% error for microstrip and +1.21% for stripline, within a self-imposed 2% threshold and without touching the mesh by hand. These figures come from the project’s own validation reports, not an independent measurement of ours.
What the Hacker News community says
The release sparked a thread on Hacker News where several developers who already mix EM and KiCad by hand compared notes. thearn4 says they built something similar using OpenEMS’s recent GPU features, enough for hobby FPV antennas with RF elements right on the PCB, and agrees that mesh handling, as with most differential-equation modeling, remains the hard part of the problem.
leosang points out that the project doesn’t reinvent the solver: it relies on openEMS and Palace to do the solving, and that the project’s own contribution is automating the mesh and extracting the board directly from KiCad, which matches what the repository itself documents.
The most useful data point for setting expectations comes from amelius, who used Claude together with OpenEMS and Palace on AWS to simulate a USB hub, and warns that the result is highly sensitive to the mesh chosen. In their experience, a simple differential pair a few centimeters long takes between 30 minutes and an hour to simulate, even with a GPU. It’s a community opinion, not a FieldForge measurement, but it sets a realistic time floor for anyone who thinks GPU means instant results.
Limitations and when to wait
- Non-standardized installation: our sandbox couldn’t detect a supported stack; you have to follow the project’s own CI script, not a generic package manager.
- FEM backend not yet production-ready: the Palace/Gmsh solver is, according to the project’s own documentation, queued for a separate lab server, not running in the path that already works end to end (0xSufi/fieldforge).
- Specific GPU required: the CUDA kernels target sm_61 and sm_86; outside that range of architectures, the FDTD path has no documented support (0xSufi/fieldforge).
- Small, new project: about 30 stars and 1 fork on GitHub as of 2026-11-30 (0xSufi/fieldforge), with what that implies for community support compared to tools with years of use like openEMS.
- Split license: Apache-2.0 in the core, GPL-3.0-or-later in the KiCad plugin; anyone embedding it in a closed product needs to review that boundary with their legal team (0xSufi/fieldforge).
- Real simulation time: per the experience amelius reports on Hacker News, even with a GPU a simple pair a few centimeters long can take between 30 minutes and an hour.
References
- 0xSufi/fieldforge on GitHub: original repository, README, licenses, and validation reports cited in this article.
- Hacker News thread on FieldForge: community discussion on EM simulation and KiCad.
- amelius’s comment on Hacker News: first-hand experience simulating a USB hub with OpenEMS and Palace on GPU.
Featured image: Foto de Alexandre Debiève en Unsplash
How each article is made (sources, testing and editorial criteria): How we work.
Did it work for you? Got a different error? Say so below: questions get answered and help the next reader.
Leave a comment
0 Comments