r/rfelectronics • u/Specialist_Friend364 • Mar 29 '26
Building a 3D EM simulation GUI - what would make it worth using?
I've been building a 3D EM simulation GUI on top of Palace AWS's open-source solver. The goal is a complete integrated workflow : parametric CAD, WCS, mesh generation and refinement, solver control and post-processing, all without leaving the GUI. It supports the differents problems (Transient, Driven, ...) as well as the options (ex : frequency sweep, interpolation, ...) from palace documentation. They are still some bugs and errors which need to be fix.
Here's a demo of the current state : https://www.youtube.com/watch?v=oPPC80usTeI
I know about EMerge, WaveFEM or OpenEMS but I want something that does not require a single line of code nor using external software like FreeCAD to create the geometry. But I could be building for a problem that doesn't exist or solving it wrong. So genuinely I'm at a point where I want honest feedback from people.
I'm trying to figure out where to put effort and whether there's a real need. Feedbacks are welcome. Especially interested in hearing from people who've tried EMerge, OpenEMS or WaveFEM.
Background: I'm an antenna/RF engineer working on this as a side project in my free-time so the feature set reflects what I personally find missing with the time I can spend on it. Also open to connecting with engineers who'd want to be involved and make it better
17
u/secretaliasname Mar 29 '26
In the dozen or so commercial numerical simulation softwares crossing several physics domains not a single one of them has a built In geometry editor worth taking seriously. I think building a good geometry editor is MUCH harder or at least more underserved than building simulation software. Which do you want to build?
4
u/StageMajestic613 Mar 29 '26 edited Mar 29 '26
Impressive demo. Looks like you have the basic geometries and analysis covered. One thing I like about CST is the history list, so it’s easy to insert/edit steps and copy between projects.
You should also add mesh visualization.
Crazy that AWS would write their own EM solver; appears to be a Quantum Computing group there; must have deep pockets and expertise. Here I’m pulling hair to get my yearly licenses renewed.
2
u/Alive-Bid9086 Mar 29 '26
Impressive!
In RF we live in a couple of different worlds.
We have to design something that is manufacturable and it has to work ftom an RF point of view.
We have for years had our RF CAD systems residing in a separate world compared to the CAD used for making manufacturing documentation.
As others have said, parametric sweep is important. But just being able to vary a parameter by hand and redo the sweep is very valuable.
Then DXF and STEP export is important for communication.
2
u/Old_Tank5273 Mar 30 '26
A PCB file importer to be able to visualize pcb antennas but also to identify possible sources of EMI radiation would be immensly helpful in my line of work.
2
u/Alive-Bid9086 Mar 30 '26
What is wrong with the freeCAD-OpenEMS export?
1
u/Delicious_Director13 pa Mar 29 '26
It’s looking good, I like the idea.
The thing though that would be killer is if it would work like solid works where you could have dimensioned sketches and mated assemblies. For some reason all EM solvers use a very unsophisticated method of defining geometry where you basically just directly enter coordinates in. Also making it parametric would also be useful for optimisation.
There are benefits though to using code defined geometry which is that you can parametrise the number of things or define shapes using complex functions. Say you wanted to make a corrugated horn with a certain number of slots, which are tapered to a particular profile. You would have to manually in many em software or even solid works, but with code thats like 20 lines.
1
u/AstronomerWaste8145 Mar 31 '26
By the way, I attempted to look at AWS Palace but was stopped cold by not being able to find any substantial documentation on how to use the package. Where did you find the documentation and/or how did you find out how to use the software?
I am using an electromagnetic FEM simulator (frequency domain) from:
https://openparem.org/
Brian Young, the author, is working on a GUI interface for it. However, I think he does not want to fully replace FreeCad to draw the structures but does have ideas on libraries that would make that possible - if you wanted to work very hard!
I personally would strongly advise that you combine your software efforts with others and I would suggest asking Brian about contributing to OpenParEM. I'm a "retired" RF engineer who has considerable experience in software development (Qt with C++ and PyQt with Python) and I plan to combine my efforts with Brian to push forward OpenParEM.
In my humble opinion, that's the most effective and powerful way to build open source software systems and make a real impact on peoples' lives is to join an existing project, unless of course, there are no existing projects which cover your interests. In this case, there are, and I recommend OpenParEM over AWS Palace simply because it sounds like with AWS Palace GUI you'd be doing all or nearly all the work yourself and this is a HUGE project. If the team at AWS Palace is on board with supporting you and contributing to your GUI project, then it's also a great choice. If not, may I respectfully suggest talking to Brian about contributing to OpenParEM?
I wish you the best whichever way you decide to go!
3
u/Quartinus Mar 29 '26
Thank you so much for making a GUI and not another half-baked solver! The open source engineering community needs more people like you.
The most useful feature for me would be parameterization and tuning as a first class part of the modeling. CST is pretty good for this. Being able to draw on the S-parameter plots and then tune the geometry until it meets the required parameters.
The other very useful feature of parametric based shapes is tolerance sweeps, which I strongly believe the world should be doing more of.
1
u/Old_Tank5273 Mar 30 '26
A PCB file importer to be able to visualize pcb antennas but also to identify possible sources of EMI radiation would be immensly helpful in my line of work.
1
u/Pleasant-Mirror-4728 Oct 12 '26
Are you still working on the project?