On Tue, 29 Aug 2006, hb wrote:
I calculate the flux of a bunch of random sources(contious-src sources) in Z direction. Before "meep-fields-flux-in-box fields ...", I use a run function as follow:
      (run-until 200
                     (at-beginning output-epsilon))

However when I changed 200 into other number(such as 300. 1000. 2000), the results of the flux are different with each other greatly. Is there some thing wrong?
 What does it mean, if I use 200 or 300?

If you use complex fields (set! force-complex-fields? true), then the flux (Re E* x H) is the time-average flux for steady-state fields with a single frequency. Thus, if you use complex fields and use only continuous-src sources with a single frequency, then the flux-in-box should *eventually* settle down to a constant value, if you wait long enough for transient effects to die away (assuming you have absorbing boundaries).

If you don't use complex fields, then the flux from flux-in-box is just the instantaneous flux at a given time, and will oscillate. In this case, it's not surprising if you get different values from different times.

Steven

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to