On Wed, 5 Jul 2006, Michelle Povinelli wrote:
An example of why passing step functions to run-k-points might be useful: simulation of a waveguide in a photonic-crystal slab. The source position and frequency range can be chosen to mostly excite the waveguide mode; I might want to output the field and extract the mode frequency.
Good point, but I'll have to think carefully about how the step functions will interact with run-k-points, which does multiple runs and has to reset the fields for each one.
Alternatively, if you have a single k point and want to output the field, you can just call (run-until ...) after calling run-k-points. See, for example, how I output a period's worth of fields in the tutorial for the ring resonator etcetera, after extracting the frequency.
Another function: is there a TOTAL flux function (not as a function of frequency)? For simulations that eventually settle into a steady state at constant frequency, it is overkill to Fourier transform the flux.
Yes. See the meep-fields-flux-in-box function in the reference manual. _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

