On Fri, 14 Apr 2006, Qi Wu wrote:
  I would like to create several sources with related phase relationship.
I want the first source to be a "gaussian-src", and the second one
is related to the first one by a phase factor exp(i * phi) where phi is
a phase I know.

Just use the amplitude property of the source, which is a complex number and can therefore set the phase:

(define gauss (make gaussian-src (frequency f) (fwidth df)))
(set! sources (list (make source (src gauss) (center 0))
                    (make source (src gauss) (center 0)
                                 (amplitude (exp (* 0+1i phi))))))


Steven

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

Reply via email to