Can epsilon in a medium can be changed during the simulation? #2654
-
Hello,
This however doesn't seem to actually produce any change in epsilon during the simulation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is something I ran into while reading the MEEP documentition I dont know if this will help but this is what it said: We are outputting the dielectric function ε but have wrapped its output function which would otherwise run at every time step in at_beginning, which does just what it says. There are several other such functions to modify the output behavior — and you can, of course, write your own, and in fact you can do any computation or output you want at any time during the time evolution and even modify the simulation while it is running. This is what I read in the tutorials/basics section in the MEEP documentation, it's the second tutorial "A 90° Bend". |
Beta Was this translation helpful? Give feedback.
You can also look at
set_materials
, which is intended to work well within arbitrary step functions.(Just search the docs for that function -- there's no active link).