On Aug 27, 2009, at 9:42 PM, Kevin Huang wrote:
Perhaps this can be done by simply defining the flux objects after I first do run-sources so that the fields are only accumulated after the source is off?
Yup, that should work and is probably the easiest thing. It is perfectly fine to call run (and variants) multiple times, and it is also fine to call add-flux in the middle of the simulation.
I'm not sure I understand why you would do this, though. If you want to subtract off the effect of the source (e.g. in order to compute reflected or scattered power), it is much better to use load-minus- flux to subtract the fields from a normalization run. See the waveguide-bend example in the tutorial.
Steven _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

