Hi all,

I'm trying to build a 2D Bragg grating in a waveguide by making some
grooves on the sidewalls.

I can do uniform Bragg gratings (all periods same width) with
geometric-object-duplicates

Now, I'd like to change the width progressively, and hence I cannot use
the same approach.

I've been looking to the 'loop' howto on the wiki, but I cannot manage
how to make a loop that makes a list of objects in different positions
and with different widths, depending on the loop variable.

I've tried several things, the one making more sense to me (but not
working) is (not changing the width of the slices):
(set! geometry
        (list
                (make block (center 0 0) (size W L)
                        (material (make dielectric (index nde))))
                (do ((x (* -1 Gp) (+ x 1))) ((> x Gp))
                        (make block (center 0 (* x 0.12)) (size W 0.12)
                                (material (make dielectric (index
1.0)))) ) ) )

It is clear I don't have the scheme skills, please give me some hint  :-)

Thanks in advance,
Pascual.
-- 
Dr. Pascual Muñoz Muñoz - Telecommunication Engineer
Optical Communications Group - iTEAM Research Institute
[EMAIL PROTECTED] - www.gco.upv.es - www.upv.es


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

Reply via email to