MaterialGrid for LorentzianSusceptibility materials #2037
-
Hello Meep community, According to the Meep document, LorentzianSusceptibility type materials are supported in MaterialGrid class. However, after doing many times of try and error, I still found that only the epsilon parts are interpolated and the E_susceptibilities are completely ignored. And the geometry region using the MaterialGrid material showed that it is just a pure dielectric material not a LorentzianSusceptibility material. (I have read the code “meepgeom.cpp” and found that sigma_diag and sigma_offdiag are interpolated in the code.) I can find some examples that use MaterialGrid for two dielectric materials in Github. But I can’t find any example for MaterialGrid with two LorentzianSusceptibility materials. Can anyone provide a simple example for MaterialGrid using LorentzianSusceptibility materials? Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You probably need to add the susceptibilities to |
Beta Was this translation helpful? Give feedback.
-
Hi there, |
Beta Was this translation helpful? Give feedback.
You probably need to add the susceptibilities to
extra_materials
(see theSimulation
constructor).