Skip to content

GDS imports, A tutorial roadmap for metamaterial simulation? #2126

Answered by oskooi
Srinivas-Ganti asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oskooi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants