Hi, everyone,

   I need to define a gaussian purlse as input source for 3D device.
   I find this in this list:
==================================
(define ((my-amp sigma k) y)
  (exp (- (* 0+2i pi (vector3-dot k y))
          (/ (vector3-dot y y) (* 2 sigma sigma)))))
(amp-func (my-amp ny (vector3 (+ 1.5 (* -0.5 size-x)) 0 0)))
==================================

but this is only 1D gaussian source for 2D device.
I would like to ask how to define 2D gaussian source for 3D device? I mean
the gaussian shape in both Y and Z direction.

I have try this one, but it doesn't work.
==================================
(define
  ((my-amp sigma-y sigma-z) y z)
   (+
(exp (- (* 0+2i pi (vector3-dot k y)) (/ (vector3-dot y y) (* 2 sigma
sigma))))
(exp (- (* 0+2i pi (vector3-dot k z)) (/ (vector3-dot z z) (* 2 sigma
sigma))))
)
===================================

it seems the my-amp only allow one parameter......

please give some help.
Thanks~
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to