Hi! I should acknowledge that I didn't used meep for quite a long time therefore I may be wrong. You have pointed it correctly that to implement user defined custom source one have to use custom_src_time. There is an specific example specific for python-meep that I used to create a planewave with circular polarization. You may look at it for the reference, the file is included under samples directory in python-meep sources.
Regarding another aspect that you have mentioned - the use of numpy arrays for this purpose - you have to implement it on your own. custom_src gets two parameters - time step and in some cases a vector and it should return a value at specified time and point. You should take into account that to avoid static fields these values are not used directly, the first derivative is used. There is probably another way that may be easier - because user can control time stepping of simulation, he may also directly manipulate the fields between time steps - e.g. adding some arbitrary field values to arbitrary points. This is direct tweaking of simulation, it is not documented anywhere and some care should be taken about when and what should be modified, but principally it is the same thing as defining custom sources. These are not specific to python-meep, you may use either C++ or Scheme interface to libmeep with the same considerations. Hope it helps, Shawkat Nizamov _______________________________________________ Mailing list: https://launchpad.net/~python-meep Post to : python-meep@lists.launchpad.net Unsubscribe : https://launchpad.net/~python-meep More help : https://help.launchpad.net/ListHelp