FDTD Matrix

How to use openEMS. Discussion on examples, tutorials etc

Moderator: thorsten

Post Reply
akotowski
Posts: 3
Joined: Mon 17 Aug 2020, 17:29

FDTD Matrix

Post by akotowski » Mon 17 Aug 2020, 17:36

The model in the CSX display shows objects at high resolution overlaid on the grid.
1.) How is the matrix for the FDTD simulation generated?
2.) Is there any anti-aliasing?
3.) Is the mass of the objects conserved?
4.) Is it possible to view the objects at actual resolution?
Thanks for your help

HexAndFlex
Posts: 13
Joined: Sat 06 Oct 2018, 09:11

Re: FDTD Matrix

Post by HexAndFlex » Tue 18 Aug 2020, 09:46

You can view the discretized model using the Debug PEC option.

https://openems.de/index.php/Model_Visualization.html

There is a similar option for exporting dielectric materials. I can't find it in the online docs, but if you explore the runOpenEMS function in MATLAB the info there.

Both export data to view in paraView

akotowski
Posts: 3
Joined: Mon 17 Aug 2020, 17:29

Re: FDTD Matrix

Post by akotowski » Thu 20 Aug 2020, 02:13

Thank you.

The options are:
openEMS_opts = '--debug-PEC --debug-material --no-simulation';
RunOpenEMS( Sim_Path, Sim_CSX, openEMS_opts );

When I run this code and view the PEC dump I see the 'metal' shapes. I also have a 'water' object.
When I view the material dump I see the outline of the simulation box, but nothing inside.
The water object is clearly there both from AppCSXCAD and from viewing the simulation results

Any suggestions?

HexAndFlex
Posts: 13
Joined: Sat 06 Oct 2018, 09:11

Re: FDTD Matrix

Post by HexAndFlex » Thu 20 Aug 2020, 10:08

You will need to use paraView to visualise. Also, as the material is a volumetric solid, you will probably need to do some section cuts of the data to see inside.

akotowski
Posts: 3
Joined: Mon 17 Aug 2020, 17:29

Re: FDTD Matrix

Post by akotowski » Thu 20 Aug 2020, 23:26

Thanks, that worked. I had to see inside the box.

Post Reply