logoalt Hacker News

Open-source, GPU-first EM simulation and automated meshing for KiCad

100 points • by binyu • yesterday at 12:05 PM • 14 comments • view on HN

Comments

stn8188 • yesterday at 1:19 PM

EM simulation has been a desired feature in KiCad for a long time, going back probably nearly a decade to the proposed SparseLizard integration. Last year at an industry conference I chatted with one of the leaders on the project and he definitely hinted that simulation capabilities are of great interest to users. I suspect that, with how easy it is to get both EM solver engines as well as setup GUIs using LLMs, it's just a matter of time until the community latches on to whichever solution ends up being the best.

thearn4 • yesterday at 3:04 PM

I did something like this with the recent GPU features of OpenEMS, which has been good enough for hobby FPV antennas that have PCB elements carrying RF. Tinkering with the mesh handling like a lot of PDE modelling is the tricky part. I'm at a point where the discrete adjoints are good-enough-for-hobby-work level of precision and good enough for numerical optimization (e.g. tweak a patch antenna design to be optimal for a narrow range of frequencies and fit mass and size constraints). Seems like others are approaching the space for broader PCB design.

amelius • yesterday at 2:18 PM

I have been doing this with Claude for a USB hub, using OpenEMS and Palace (from AWS).

These methods are very sensitive to the mesh used, so better spend some time first to get that right. A simple super speed pair of a few cm takes like 30mins to an hour to simulate/extract using a GPU.

I was expecting better performance, especially since Palace has a multigrid solver, but apparently this is where we are.

➕ show 1 reply
leosang • yesterday at 2:38 PM

this one leans on openEMS and Palace for a lot of the solving. a lot of the work went into auto meshing and grabbing the board straight from kicad.

threethirtytwo • yesterday at 5:52 PM

I know one of the things hindering electronics development via agents is physical testing. Software and math moves fast because the agent can test and reiterate.

If everything can be simulated can the agent in theory develop boards in the computer? Can it do that already? Of course EM stuff is part of this story.

I think at least on the hobbyist level it can do this?

➕ show 2 replies
felixmarlowe • yesterday at 2:28 PM

[dead]

mertleee • yesterday at 8:30 PM

[dead]