Hi, I am not sure, but you can check C++ interface. If you has no f.use_real_fields(); line in your code it is possible to get complex values as far as f.get_field(component_name,vector_position) returns std:complex<double> value, e.g. your can get amplitude or phase of Ex, Hz and so on.
Kostya > Message: 1 > Date: Sun, 8 Apr 2012 00:42:33 +0200 > From: Filip Dominec <filip.domi...@gmail.com> > To: meep-discuss@ab-initio.mit.edu > Subject: [Meep-discuss] Measure flux as complex field amplitude, not > intensity > Message-ID: <20120408004233.c361d93f9dfe2397e9f26...@gmail.com> > Content-Type: text/plain; charset=US-ASCII > > Dear Meep users, > I wrote a Python-MEEP simulation of a gaussian pulse passing through a simple > structure. My script can be found at http://fzu.cz/~dominecf/sphere.py; more > information is in this file and I hope it may even be useful for somebody. > > At the input and output of the simulation volume, there are flux planes > measuring the intensity transmission and reflection spectra, T(f) and R(f), > which are plotted succesfully. > > However, I would like to obtain the complex _amplitude_ spectra of > transmission and reflection, say t(f) and r(f). I believe that Meep knows > these values all the time and only at the end it simply calculates > R(f)=|r(f)|^2 and T(f)=|t(f)|^2. > > But I need to know the complex r(f), t(f) to calculate also the phase of the > passing wave. > > Any hints are appreciated. Thank you in advance! > Filip Dominec _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss