boo.ctl file:

(set! geometry-lattice (make lattice (size 16 16 no-size)))

(set! pml-layers (list (make pml (thickness 1.0))))

(define ((my-amp sigma k) x)
(exp (- (* 0+2i pi (vector3-dot k x)) (/ (vector3-dot x x) (* 2 sigma sigma
)))))

(set! sources (list
(make source
; (src (make gaussian-src (frequency 0.15) (fwidth 1) ))
(src (make continuous-src (frequency 0.58) (width 0.02)))
(component Ez)
(center -7 0)
(size 0 6)
(amp-func (my-amp 1 (vector3 0.58 0 0)))
)))

(set! resolution 10)

(run-until 200
           (at-beginning output-epsilon)
   (to-appended "ez" (at-every 0.2 output-efield-z))
   )

outputs processed with following commands:

h5topng -t 0:200 -R -Zc dkbluered -S 3 -a yarg -A boo-eps-* boo-ez.h5
convert *.t* ez.gif


Hi all,

I've been trying to get some code to output a gaussian beam. The above is
the code I'm using but it won't work... I don't understand why... By not
work I mean that the gif file in the end is all black... Maybe the code
does work and I'm just processing the outputs incorrectly...

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

Reply via email to