Re: [Meep-discuss] Doubt about concept of flux spectrum in MEEP

2014-04-15 Thread Filip Dominec
As far as I know, there remains the problem of the mode shape generally being different for different frequencies. In some specific cases, such as hollow metallic waveguide, the mode cross-section remains the same, so it is easy to excite/detect the first mode selectively at broad frequency range.

Re: [Meep-discuss] Doubt about concept of flux spectrum in MEEP

2014-04-15 Thread Steven G. Johnson
The frequency dependence isn't a major problem for computing output power in each mode, since generally you only need the power at a small number of frequencies (a few dozen to a few hundred), and Meep can compute the explicit Fourier transforms of the fields in the flux plane at these

Re: [Meep-discuss] Doubt about concept of flux spectrum in MEEP

2014-04-14 Thread Filip Dominec
Another option would be to define an amplitude-recording-plane: for instance, knowing the Ex-field and Hy-field, one can easily separate the amplitudes of both forward- and backward-propagating waves along the z-axis. The usual scattering problems with properly absorbing boundaries then require

Re: [Meep-discuss] Doubt about concept of flux spectrum in MEEP

2014-04-14 Thread Steven G. Johnson
On Apr 14, 2014, at 4:52 PM, Filip Dominec filip.domi...@gmail.com wrote: Another option would be to define an amplitude-recording-plane: for instance, knowing the Ex-field and Hy-field, one can easily separate the amplitudes of both forward- and backward-propagating waves along the z-axis.

Re: [Meep-discuss] Doubt about concept of flux spectrum in MEEP

2014-04-14 Thread Steven G. Johnson
A more general solution would be to use code similar to the eigenmode-source feature: call MPB to compute the modes for a given cross-section (and for each desired frequency), and use those to perform the relevant overlap integrals with the Fourier-transformed fields in the same cross-section.