Hi everybody,
I'd like to output the electric field intensity (|E|^2) from a 3D simulation.
I wrote the following function:
(define (eSquared r ex ey ez)
(+ (* (magnitude ex) (magnitude ex)) (* (magnitude ey) (magnitude ey)) (*
(magnitude ez) (magnitude ez))))
(define (output-efield2) (output-field-function "e2" (list Ex Ey Ez) eSquared))
In my 'run-sources' section, I have:
(at-every 100 output-efield2)
However, all I seem to get are black pictures, if I analyze the h5-files using
h5topng.
Does anybody have an idea what is going wrong?
Thanks,
Milan
PS. The magnitude-function seems to work properly in command-line mode.
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss