Dear Meep users,
I am trying to define a structure of 2D photonic crystal. In this structure I
need to define lets say a region of 10 by 10 rods in a hexagon lattice, shifted
by the vector ( 10 10 0).
I am trying to do that in meep by "shift-geomtric-object":
(set! Geometry (shift-geometric-object geometry (vector3 10 10 0)))
Meep gives me an error:
ERROR: In procedure vector->list:
ERROR: Wrong type argument in position 1 (expecting VECTORP): #f
Here is the bit of the geometry definition of the code:
(set! geometry-lattice (make lattice (size (+ (* 40 a) (* 2 dpml)) (+ (* 40 h)
(* 2 dpml)) no-size)))
(set! geometry
(list
(make cylinder
(center (* -1 (/ a
4)) (* -1 (/ h 2)) 0)
(radius r)
(height infinity) ;
the default axis of the cylinder is parallel to z axis
(material (make
dielectric (epsilon eps)))
)
(make cylinder
(center (/ a 4) (/
h 2) 0)
(radius r)
(height infinity) ;
the default axis of the cylinder is parallel to z axis
(material (make
dielectric (epsilon eps)))
)
)
)
(set! geometry (shift-geometric-object geometry (vector3 10 10 0)) )
I am a bit confused, it seems Meep expects something else as the first argument
to the function "shift-geometric-object".
Nothing else makes sense to be the object for this function since I need the
geometry to be shifted.
Thanks for your help,
Asa
Asa Asadollahbaik
PhD Research Student
Room 2045, Building 25
University of Southampton
Highfield Avenue
Southampton
SO17 1BJ
Phone Number : 023 8059 8365
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss