GDS imports, A tutorial roadmap for metamaterial simulation? #2126
-
Hello everyone, I have just come across meep and have managed to get it running on my Linux machine (without parallelization). I am going through the various tutorials on the docs page. I am interested in simulating metamaterials in the THz regime. Any guides or useful pages would be highly appreciated. Also, is there a way to import GDS or STEP files to define geometries in meep? Edit: About GDS import, Once the file is loaded how can we view it to be sure it is the right geometry? Is there a viewer for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See FAQ/Does Meep support importing GDSII files? There are three different ways to visualize the geometry in Meep: (1) 2D cross sections using plot2D, (2) obtain the ε data in memory as a NumPy array using Note that (1) tends to be the fastest method because it does not involve initializing the structure and fields classes internally. Also note that the ε data may contain intermediate values because of the interpolation from the Yee grid. |
Beta Was this translation helpful? Give feedback.
See FAQ/Does Meep support importing GDSII files?
There are three different ways to visualize the geometry in Meep: (1) 2D cross sections using plot2D, (2) obtain the ε data in memory as a NumPy array using
Simulation.get_epsilon()
and visualize it using e.g. matplotlib or mayavi, and (3) output the ε data to an HDF5 file on disk and visualize in post processing. The tutorials provide examples of all of these visualization methods.Note that (1) tends to be the fastest method because it does not involve initializing the structure and fields classes internally. Also note that the ε data may contain intermediate values because of the interpolation from the Yee grid.