Re: Hexagonal lattice points

"Steven G. Johnson" <[email protected]>
Newsgroups gmane.comp.science.photonic-bands
Message-ID <[email protected]>
On Jul 6, 2009, at 3:32 PM, Randy Tompkins wrote:
> I am wanting to model the band structure of a photonic crystal slab  
> (air in dielectric) with hexagonal lattice points (as opposed to  
> circles) arranged in a triangular lattice pattern.  Is this possible  
> with MPB?  If so, what code would I use for the geometry?

Yes.  I normally make a hexagon out of three blocks, e.g. with the  
following code that returns a hexagon with a given inscribed-circle  
radius, center, and material:

(define C->L (compose cartesian->lattice vector3))
(define (hexagon r c m)
   (list
    (make block (center c) (material m) (size (* r (sqrt 4/3)) (* 2 r))
	 (e1 (C->L 1 0)) (e2 (C->L 0 1)))
    (make block (center c) (material m) (size (* r (sqrt 4/3)) (* 2 r))
	 (e2 (C->L (/ (sqrt 3) 2) 0.5)) (e1 (C->L -0.5 (/ (sqrt 3) 2))))
    (make block (center c) (material m) (size (* r (sqrt 4/3)) (* 2 r))
	 (e2 (C->L (/ (sqrt 3) 2) -0.5)) (e1 (C->L 0.5 (/ (sqrt 3) 2))))
    ))

_______________________________________________
mpb-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.