Hi,
the solution I found for that was this (just the relevant code)
....
(define v1 (vector3 a 0 0 )) ; Define basis vectors
(define v2 (vector3 0 a 0 ))
.....
......
(set! geometry
(append
(geometric-objects-duplicates v1 -10 10 ;; duplicates the list of
objects below this line
(geometric-object-duplicates v2 -10 10 ;; creates a column of
cylinders
(make cylinder (radius r) (height 0) (center 0 0 0) (material
silicon)
)))
(geometric-object-duplicates v1 -10 10; To create a line defect in the
lattice
(make cylinder (radius r) (height 0) (center 0 0 0) (material air)
))
) ;; End of append
) ;; End of set geometry
Note that the first command is geometric-objectS-duplicates, while the
second is geometric-object-duplicates (without S). The second one creates
just a column repeating a cylinder in v2 direction, and the first one
creates a repetition of the columns in the v1 direction.
Also, I recall there was a command like (set! default-material ...) to set
properties the background material.
Julio
2011/6/4 hodjat hajian <[email protected]>
> Dear users, Hi.
> I want to make square/triangular lattice of holes in a dielectric
> background. The below program makes a row of air holes in a dielectric
> background:
>
> (set! geometry-lattice (make lattice (size sx sy no-size))) ; sx and sy
> define the size of computational cell
> (set! geometry
> (append
> (list
> (make block (center 0 0) (size wx wy infinity) (material (make dielectric
> (epsilon 12)))) ; wx and wy define size of lattice
> )
> (geometric-object-duplicates (vector3 1 0) 0 (- Nx 1) ; Nx is the number of
> holes in x direction.
> (make cylinder (center (+ r (* -0.5 wx)) 0) (radius r) (height infinity)
> (material air))
> )
> )
> )
>
> but I want to know how can I shift this row to upper or lower rows to make
> a square lattice? How can I make a triangular lattice of holes in a
> dielectric background?
> If you have better idea, besides of the above mentioned program, tell me
> please.
> Best.
> Hodjat.
>
>
>
>
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss