Hi everybody,
I posted this question some time ago, but the issue has become a bit more
urgent since I'm now constantly running out of memory when I try to calculate
|E|^2 from the individual components in Matlab.
Can anybody help me out (using denergy is no option for me)?
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