Just define a function of position (relative to the center of the source). e.g. here is a gaussian in the x direction (constant in y and z):

(define (my-amp-func p)
        (exp (- (sqr (vector3-x p)))))

then do ... (amp-func my-amp-func)

Steven

On Tue, 24 Oct 2006, Huazhong Wang wrote:
i want to make a light beam and need to specify the amp-func property of source. but i don't know how to give argument to it in simulation. because amp-fun is a function which needs an argument (a vector) input. who knows how to use amp-func? could you send your code to me?

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

Reply via email to