Hello,

I am trying to add a phase in terms of time but by setting the amplitude as a 
function. 

I see there is a way to do it as a function of space, but how do you do it as a 
function of time? I’d like to add a chirp to the pulse.

Here is an example of what I’m trying, but I keep getting errors.

(define (my-func meep-time)
  (exp (- (* 0+#i meep-time meep-time))))

(set! sources (list
               (make source
                (src (make gaussian-src (frequency fcen) (fwidth df)))
                 (component Hy) ; needed for TM
                 (center 0 0 (+ (* -0.5 sz) dpml)) ; located at - end of 
waveguide
                 (amp-func my-func))))

Thank you


_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to