Hi
I'm doing a 3D simulation. I want to calculate the integral of |Ez|^2/(|E|^2)
over 200 time steps at the end of the sumulation time. I need to calculate the
whole field. I have looked through the meep-discuss but have no idea.
I write the function like:
(define Ezsum 0)
(define (do-Ez-sum)
(set! Ezsum (+ Ezsum
(integrate-field-function (list Ez Ex Ey)
(lambda (ez ex ey) (/ (sqrt ez) (+ (sqrt ex) (sqrt ey) (sqrt
ez))))))))
(after-time 300 (run-until 500 do-Ez-sum))
Is there anything wrong ???
How can I output the results?? It seems that "output-field-function" is not
applicable. Can anyone give me a sample code???
Thank you !!!
---------------------------------
雅虎邮箱,以安全著称,是值得信赖的邮箱专家! _______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss