On Tue, 5 Sep 2006, Andrea Locatelli wrote:
Thank you for the useful hint... The script works well for a single point, but I'm wondering if it is possible to make the same operation on the whole field structure, i.e. I have at each time step the 2D Ez field, and it would be great if I could have at the end of the simulation the 2D time-averaged |Ez|^2
Yes, instead of calling get-field to get the field at a point, call electric-energy-in-box to get the integral of epsilon*|E|^2 in some region.
Or, to get the integral of |Ez|^2, call (integrate-field-function Ez (lambda (ez) (sqr (magnitude ez))) ......) Steven _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

