Hi Meep users
I am a beginner user for Meep software. I have written my first
program in the field of photonic crystal that describe the propagation
of plane waves into a 10*10 matrix of rods . but when i run the
program, the following error is occured.but have no idea how I can
solve this.
ERROR: Wrong type argument in position 2: 0
(define lx 20)
(define ly 20)
(define r 0.35)
(define eps 4)
(define step 1)
(define-param dpml 1)
(define-param susept2 0.002)
(define mat (make dielectric (epsilon eps) (chi2 susept2)))
(set! geometry-lattice (make lattice (size lx ly no-size)))
(set! geometry (make block (center 0 0 0) (size infinity infinity
no-size) (material air)))
(map (lambda(x)
(map (lambda(y)
(set! geometry (make cylinder (center x y 0) (material mat)
(radius
r) (height infinity))))
(arith-sequence -4 1 10)))
(arith-sequence 5 -1 10))
(set! pml-layers (list (make pml (thickness dpml))))
(set-param! resolution 20)
(set! sources (list
(make source
(src (make continuous-src
(wavelength 1.55)
(width 20)))
(component Ez)
(center -7 0 0)
(size 0 3))))
(run-until 200
(at-beginning output-epsilon)
(to-appended "ez" (at-every 0.3 output-efield-z)))
Thank you.
Mehdi Kamali
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss