On Mon, 17 Dec 2007, shi lina wrote:
>        I have used meep some time. Now I want to obtain the phase of the 
> electric field. I can't find how to calculate it in meep tutorial. Can 
> you give me some suggestions? Thank you very much!

Unless you turn complex fields on (set force-complex-fields? to true), the 
fields are real by default, so it's not clear what you mean by the 
"phase".

If you turn on complex fields, then any of the functions that output the 
electric field will give you a complex quantity, and you can compute a 
phase as usual for a complex number.

Regards,
Steven G. Johnson

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

Reply via email to