Hi Milan,
I've tried you function and it works.
Have you tried to specify the dataset (real part) when converting to png:
h5topng -z 0 -d e2.r myfile.h5
Because if you don't specify it what you get is a black picture.
Best Regards.
David.
José David Doménech Gómez
Optical and Quantum Communications Group.
Universidad Politécnica de Valencia.
iTEAM Edificio 8G - Acceso D -
www.gco.upv.es
> 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
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss