Issues mapping materials from library (but works in plot2D) #2775
-
It seems that when use component=mp.Dielectric I can get accurate vaules for my geometry when using materials with user assigned index values. But when I try using a material from the library (e.g. material=Au) I only get air in the material's place. The simulation still seems to run correctly but I would like to map this data as a check. To check this I also used the plot2D function. There I see my material but not when I try to extract the data myself. What is going on? Also is there a way to extract the complex permitivity or does component=mp.Dielectric only give the real values? I'm fairly new to MEEP so thanks all for any insights!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Plot2D is "smart" in that it looks at your sources, pulls the center frequency, and uses that to evaluate your (complex) Drude-Lorentz model. When you dump your structure naively, it's not smart. And will just return the (real) DC component of your material model. Some routines let you pass in an optional frequency parameter. It'd be good to go through the docs to check exactly which ones (get_array() should). |
Beta Was this translation helpful? Give feedback.
Plot2D is "smart" in that it looks at your sources, pulls the center frequency, and uses that to evaluate your (complex) Drude-Lorentz model.
When you dump your structure naively, it's not smart. And will just return the (real) DC component of your material model. Some routines let you pass in an optional frequency parameter. It'd be good to go through the docs to check exactly which ones (get_array() should).