On Sun, 5 Nov 2006, Simone Sugliani wrote:
This is my first post and I would thank Steven Johnson and ab-initio MIT group for their great work. I'm trying to simulate an optical graded index waveguide in order to obtain some useful project parameters. I have calculated the modal behaviour of the structure at a given frequency using MPB. Could you suggest to me the simplest way to excite the waveguide with the exact modal field pattern (*.h5) found in MPB?

I've done this in the C++ interface by reading the mode field pattern into an array (via the h5file::read function), and then defining the current amplitude function as a function that interpolates from this array.

It's a bit trickier to do in the libctl interface because the HDF5 I/O functions are not directly accessible there.

Steven

PS. The next release of MPB will be callable as a library, so my plan is to directly hook this in to Meep so that you can tell it to compute the eigenmode in a given region and use it as a source. No ETA on this feature yet, though.

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to