Dear Prof. Johnson and all,

I've changed the code of the tutorial example ring.ctl in order to have a
resonator made of anisotropic material, but I always get:

ERROR: Unbound variable: epsilon-diag

I really don't know what is wrong. My meep version is "1.6.8", so it
should be definitely new enough to support this utility.
I checked the manual and mailing list and found some related mails, but
nothing that could clear up (I hope I didn't make a trivial mistake).

Thanks in advance for any help or suggestion.

Best regards,
Iztok Bajc


; Calculating 2d ring-resonator modes, from the Meep tutorial - adapted.
(define-param w 1) ; width of waveguide
(define-param r 1) ; inner radius of ring
(define-param pad 4) ; padding between waveguide and edge of PML
(define-param dpml 2) ; thickness of PML
(define sxy (* 2 (+ r w pad dpml))) ; cell size
(set! geometry-lattice (make lattice (size sxy sxy 10)))

; Create a ring waveguide by two overlapping cylinders - later objects
; take precedence over earlier objects, so we put the outer cylinder
first. ; and the inner (air) cylinder second.
(set! geometry
          (make cylinder
                   (center 0 0 0)
                   (height 20)
                   (radius (+ r w))
                   (material (make dielectric (epsilon-diag  0.5 0.4 0.5)
(epsilon-offdiag 0.3 0.5 0.6) ) )
          )
)

(exit)



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

Reply via email to