;Here is one way to define a Gaussian beam profile in a 2D model.
;Define gaussian amplitude function
(define-param sigma1 1.0)
(define (gaussy y)
(exp
(* -1.0 (/ (* (vector3-y y) (vector3-y y)) (* sigma1 sigma1)))
)
)
;This example is for a pulsed source
(begin
(set! sources (list
(make source
(src (make gaussian-src (frequency fcen) (fwidth df)))
(component Ey)
(amp-func gaussy)
(center (+ dpml (* -0.5 sx)) 0)
(size 0 w))))
From: [email protected]
[mailto:[email protected]] On Behalf Of Rita Ribeiro
Sent: Wednesday, July 11, 2012 6:41 AM
To: [email protected]
Subject: [Meep-discuss] Gaussian Beam
How can i define a Gaussian beam profile?
I have a waveguide and i want to a have a Gaussian profile in the end.
R.
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2179 / Virus Database: 2437/5125 - Release Date: 07/11/12
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss