Dear all users.

Hello, all.

I am a new user in meep and want to plot band diagram of photonic crystal
(PHC) in meep.

After taking challenging time, I eventually succeeded to compute band
structure of 3D PHC slab.

However, unfortunately, I can not sure the result what I got. because I am
a beginner.

I would appreciate if anyone could send me an example code of 2D or 3D
photonic crystal structure.

Or please check my code below.

Sincerely.

-------------- square lattice PHC slab code ------------------



(define-param h 0.4) ; the thickness of the slab
(define-param eps (* 2.0 2.0)) ; the dielectric constant of the slab
(define-param loweps 1.0) ; the dielectric constant of the substrate
(define-param r 0.2) ; the radius of the holes
(define-param supercell-h 4) ; height of the supercell

; triangular lattice with vertical supercell:
(set! geometry-lattice (make lattice (size 1 1 supercell-h)))
(set! geometry
      (list (make block (material (make dielectric (epsilon loweps)))
  (center 0 0 0)
  (size infinity infinity supercell-h))
    (make block (material (make dielectric (epsilon eps)))
  (center 0) (size infinity infinity h))
    (make cylinder (material air)
  (center 0) (radius r) (height supercell-h))))

(define-param k-interp 16)
(define-param fcen 0.5)
(define-param df 1)



(set! sources
  (list
    (make source
      (src (make gaussian-src (frequency fcen) (fwidth df)))
      (component Hz) (center 0.37 0.16)
    )
  )
)


(run-k-points 300 (interpolate k-interp (list (vector3 0 0 0) (vector3 0.5
0 0)(vector3 0.5 0.5 0) (vector3 0 0 0))))
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to