Hi, In the mean time, I found out that the C++ function "add_volume_source" can receive as a parameter an amplitude-function. This function defines a factor with which the source is multiplied as a function of the position. The equivalent in Scheme is the amp-func parameter of source. So using such a function we can then implement the functionality which I mentioned in my previous mail. If this would not be correct, please let me know :)
br Manu On Wed, 2009-10-21 at 12:34 +0200, Emmanuel Lambert wrote: > Hi, > > Is it possible in Meep to define a custom source which is not only > function of the time, but also of the position. > If I interpret the source code files correctly, then this doesn't seem > possible with the current version 1.1.1. Is that correct? If so, is this > something that could be added in future versions? > If we want to excite exactly 1 mode, then we must be able to define not > not only an exact frequency (which can be done with a narrow bandwith > source), but also the amplitude as a function of the position in the > waveguide (along a one-dimensional line for example). > Any ideas on how to approximate this are welcome. > > regards, > Manu > _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

