Hi,
 I tried to give a chirp signal function as the custom source, whose
equation is given as sc(t) in http://en.wikipedia.org/wiki/Pulse_compression..

Since I am new to scheme I just tried giving the source function as t*i,
where i is a complex number I got the following error: Wrong type to apply
:2
when I changed that to just t i got the error as:Wrong type to apply :1

Please suggest towards debugging it and if possible suggest if the above
equation can be simulated in meep
The code goes as follows:

(define t 1)
(define i 1)
(= i (sqrt -1))
(set! geometry-lattice (make lattice (size 390 384 no-size)))
(set! geometry  (list

        (make block (center -100 -10) (size 10 10 infinity)
                (material (make dielectric  (epsilon 2.5))))
        (make block (center -180 0) (size 20 384 infinity)
                (material (make dielectric  (epsilon 4.5))))
        (make block (center 0 55) (size 8 8 infinity)
                (material (make perfect-metal)))
        (make  block (center -30 20) (size 10 10 infinity )
                (material (make dielectric  (epsilon 2.5))))
        (make cylinder (center 0 70) (radius 4) (height 16) (axis 0 1 0)
        (material (make medium (epsilon 48) (D-conductivity (/ (* 2 pi 0.1
30) 48)))))))


(set! sources (list
               (make source
                 (src(make custom-src(src-func(
                    (+ i t ))
                    (start-time 0)
                        (end-time 50)
                                )))
                 (component Ez)
                 (center -194 0)
         (size 0 10)
         (amplitude 400)))))
(set! pml-layers (list (make pml (thickness 1)))
(set! resolution 2)
(run-until 900
           (at-beginning output-epsilon)
           (to-appended "ez" (in-volume (volume (center -194 0) (size 2
384)) (at-every 1  output-efield-z))))


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

Reply via email to