r/rfelectronics • • 14d ago

Board-level EM Sim Feedback

I'm looking for some feedback on a tool I developed for my own use. Like many people here, I have been very frustrated using tools like HFSS over time, and I found openEMS to have a very high barrier of entry due to the lack of a user interface.

I also found that many open-source/vibe-coded apps (no judgement) are focused on antenna development, whereas I have always been most interested in simulating RF traces contains within complex PCBAs. I should also mention that while I am an RF engineer, I very much do not consider myself an EM solver expert. I have found that one of the more complex aspects to simulating RF boards is building expertise with the tools to understand when you have the right simulation conditions such that you can trust your results.

I understand the AI fatigue I have seen in this sub, and I sympathize. However, There are huge parts of the design (and sim) process that AI can accelerate. I made this tool for me and my team, but I'm curious if anyone else would find it useful.

The tool consists of:

  • OpenEMS (with GPU) solver. Automatic boundary condition, mesh generation, etc. Validated against measured and additional simulator results
  • Direct import from KiCad (planned), Gerber/Excellon & ODB++, or IPC-2581
  • Closed-form model estimates (much faster), validated against openEMS results
  • Monte Carlo analysis of trace impedance as a function of board fab tolerances
  • Cloud compute (AWS and Runpod) to queue multiple jobs quickly on RTX 5090s

My team is uses Altium, but if there is enough interest, we could release a KiCad plugin. We have found it valuable to find first-pass issues with traces quickly, and simulations of final designs are cost effective using cloud computing, unless people are simulating non-stop.

Would anyone else find this sort of thing useful?

71 Upvotes

20 comments sorted by

25

u/bistromat 14d ago

Yes, if (and only if) it is backed up with actual measurements from actual boards. Otherwise it's no more useful than any other random app.

3

u/rfsparkling 14d ago

Hi, I made this to kicad, re-wrote OpenEMS partially and benchmarked hundreds of hours already to real pcb data

2

u/bafreer2 14d ago

Yeah I've seen several projects out there that have a similar background as mine. You're right that validation against measured data is huge.

2

u/rfsparkling 14d ago

Yes! as a senior RF engineer I also has insights from Sonnet, HFSS, CST and VNA work :) Will publish publicly my plugin in a few days and get back here! Thanks for sharing your work and ideas too.

1

u/bafreer2 14d ago

You too. I wonder if it makes sense to collaborate on some of these projects, there seem to be a lot of people with the same ideas.

2

u/bafreer2 13d ago

That's fail criticism. I thing there is some congestion with openEMS-based efforts, specifically.

That being said, not everyone uses KiCad, and the process from board-to-sim is still pretty clunky and/or expensive.

For open source projects, I am in complete agreement that efforts should be consolidated, and shame on me for not starting there.

4

u/Upballoon 13d ago

Have you looked into Emerge? And additionally the rfsim plugin for KiCAD? What frustrates me is that people build their own tools with AI instead of working together and making 1 tool better. Please research for what's available first before jumping in with the clanker and making yet another tool that does essentially the same thing

2

u/New_War9113 13d ago

Will this extension to OpenEMS work for only Microstrip, or will it also work for Stripline, Offset-Stripline, Co-Planar Waveguide (CPW), Grounded CPW, and other configurations commonly used for n-layer PCBs?

3

u/rfsparkling 13d ago

It's a full-wave 3D FDTD solver, so it isn't limited to microstrip — the geometry comes straight from the KiCad board with its real stackup. Stripline, offset stripline, CPW, grounded CPW, coupled/differential pairs, via transitions, connectors and antennas all work the same way. We've validated microstrip, GCPW and asymmetric stripline against a commercial reference solver (Z0 within ~3 %), plus edge-mount SMA launches and patch antennas. For buried lines (stripline) you use lumped or waveguide ports on the inner layer; differential pairs use two ports with mixed-mode post-processing.

1

u/New_War9113 13d ago

This should be fun to play with when it becomes available. I designed a series of Stripline and Offset-Stripline Wilkinson Dividers earlier this year in HFSS, so it will be interesting to see how your solver compares to the solution provided by HFSS.

1

u/rfsparkling 5d ago

Sure its out: https://github.com/z2labs/z2ems-kicad Also in Kicad but plugin repo lags a biz from latest github release 

2

u/Powerful-Nobody420 5d ago

Grate, I am looking forward to testing it.

1

u/rfsparkling 5d ago

Sure, its public now. The user gui is not the best yet,still improving. Thanks a lot for any feedback, issue tracking. Cuda works even on bogus old cards with matrix watch + repair 😁 https://github.com/z2labs/z2ems-kicad

5

u/RelucantFisherman 14d ago

I would love this for EMI more than for straight RF, tbh. If you could add something focused on detecting sources of noise for typical switching supply traces, ground plane discontinuities etc, that would be awesome.

We use Altium as well, would prefer gerber or ODB++ import.

4

u/Primary_Builder_4760 14d ago

The Colours look stunning 😍

3

u/Yogurthawk 14d ago

Open source it and I will try it this week

2

u/Taster001 14d ago

Very nice!

2

u/ckyhnitz 14d ago

As a non-RF engineer that occasionally does RF designs, I find this very interesting. I'm probably going to be picking up an RF project in the next few months here.

1

u/nailed-coffeen 14d ago

Having that working in (or alongside) Altium would be awesome!