Author Topic: Electromagnetic Simulations & Renders with openEMS & Blender  (Read 1588 times)

0 Members and 1 Guest are viewing this topic.

Offline SchottkyTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: 00
I would like to share my recent work about experimenting with electromagnetic simulations of PCBs in openEMS and then visualising and rendering the results in Blender. This is mainly for educational purposes; to learn and understand how RF and high frequency circuits and antennas work and hopefully inspire people to study these topics.

My workflow is as follows:
  • Using KiCAD to create RF circuits or to import projects from other PCB design software such as Altium
  • Export design from KiCAD as VRML file into Blender
  • Modify, adjust and fix geometries and areas of interest in Blender, also add port location and field dump planes 
  • Export geometries as STL files into openEMS and setup simulation
  • Save simulated field data as VTK files
  • Open VTK files in Paraview and perform any necessary filter operations such as clipping and warp
  • Export Paraview scene as X3D files back into Blender
  • Use Blender’s Geometry Nodes to visualise and animate
This may seem like a long work flow of exports and imports, however once you get going it becomes manageable. KiCAD can export the hyperlynx files which can be used in openEMS with a tool called hyp2mat, but unfortunately this tool has been retired.

Below are some of recent simulations and animations

60GHz mmWave radar

I used to openEMS and Blender simulate and render the how the electromagnetic waves are launched and radiated from a patch antenna array setup! The design is based on Texas Instruments mmWave evaluation board, specifically TIDEP-01001 which features the AWR6843 60GHz single-chip mmWave sensor. The design was done in Altium and I simply imported it in KiCAD.

There are four channels feeding the array, you can see how the e-field component is generated and then propagates in the transmission lines towards the array. Since all the channels are in-phase with each other, the radiated electric field shows one main lobe at 0 degrees, and smaller side lobes.



2.4GHz Wi-Fi PCB meandered inverted F & PCB layout

Here I used the antenna design reference from TI's app note AN043 along with a PCB. I simulated the antenna’s radiated fields and also the surface currents in the PCB. All designed in KiCAD





Curved Coax cable simulation with open termination

The coax cable was designed completely in Blender including its inner core, dielectric and outer shield. I used Blender’s geometry nodes to create a mesh from a curve. This animation shows a gaussian pulse propagates in the cable and then bounces back. I’ve scaled the E-Field beyond the coax’s diameter for better visualization.

 

Offline Marsupilami

  • Frequent Contributor
  • **
  • Posts: 265
  • Country: us
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #1 on: June 09, 2023, 05:15:43 am »
These are really cool, man. I'm always mesmerized by any EM sim result, but your visualization is on a completely different level.  :clap:
 

Offline KE5FX

  • Super Contributor
  • ***
  • Posts: 1909
  • Country: us
    • KE5FX.COM
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #2 on: June 09, 2023, 06:35:17 am »
OK, that's cool as hell.  :-+
 

Offline 6313oscar

  • Newbie
  • Posts: 3
  • Country: nl
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #3 on: June 09, 2023, 06:18:00 pm »
This is really really nice, good inspiration source! :clap: :clap:
Any way to see a tutorial video on your Youtube channel for combining simulation over the 3D PCB render in the near future? :popcorn:
« Last Edit: June 09, 2023, 06:20:35 pm by 6313oscar »
 

Offline SchottkyTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: 00
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #4 on: June 16, 2023, 08:00:58 pm »
This is how a human finger interacts with a 60GHz electromagnetic wave! You can see how some waves travel tangential to the skin and some are reflected creating interference patterns.



 
The following users thanked this post: EugenioN, Marsupilami

Offline SchottkyTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: 00
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #5 on: June 28, 2023, 11:44:35 pm »
The apollo lunar rover had a high gain antenna with a foldable parabolic reflector for voice and video transmission to earth. This #openEMS animation shows how the reflector dish unfolds and how the received electromagnetic waves become focused at the antenna feed


 
The following users thanked this post: Marsupilami

Offline SchottkyTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: 00
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #6 on: July 02, 2023, 05:08:08 pm »

 
The following users thanked this post: Marsupilami

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6316
  • Country: ro
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #7 on: July 02, 2023, 06:56:06 pm »
Wow, looks amazing!  :-+
 
The following users thanked this post: Schottky

Offline Glowas

  • Newbie
  • Posts: 3
  • Country: pl
Re: Electromagnetic Simulations & Renders with openEMS & Blender
« Reply #8 on: July 24, 2023, 05:54:27 am »
Amazing stuff, Im waiting for the first tutorial  :-+
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf