I want to calculate band diagram of 2D metal photonic crystals. And my code is below,
(set! geometry-lattice (make lattice (size 1 1 no-size)))
(set! geometry
(list
(make cylinder (center 0 0 0 ) (radius 0.472) (height infinity)
(material
(make dielectric (epsilon 1)
(polarizations (make polarizability (omega 1e-20) (gamma 0.051603) (delta-epsilon 3.6372e+41) ))
)
)
)
)
)
(define-param fcen 0.7 )
(define-param df 2 )
(define-param k-interp 4)
(set-param! resolution 100)
(set! source
(list
(make source
(src (make gaussian-src (frequency fcen) (fwidth df)))
(component Hz) (center 0.48 0.1 0)
)
)
)
(set! symmetries
(list
(make mirror-sym (direction X) (phase -1))
(make mirror-sym (direction Y) (phase -1))
)
)
(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))
)
)
and this code has a error message,
ERROR: Wrong number of arguments to max
What is the problem? Thanks.
--
Ki-young Choi
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

