Dear Steven and Meep users,
I want to draw a ring, with different epsilon in different quadrant, so I
use the material function to implement it. I first defined three materials,
n0,n1 and n2. Then I use the following for my ring:
************************************************************************************
(define (f p)
(if (or (< (vector3-norm p) r1) (> (vector3-norm p) r2)) (material n0))
(if (and (> (vector3-norm p) r1) (< (vector3-norm p) r2) (> (*
(vecotr3-x p) (vecotr3-y p)) 0)) (material n1))
(if (and (> (vector3-norm p) r1) (< (vector3-norm p) r2) (< (*
(vecotr3-x p) (vecotr3-y p)) 0)) (material n2)))
(set! geometry (list
(make block (center 0 0 0) (size sxy sxy infinity)
(material (make material-function (epsilon-func f))))
))
However, when I runned the meep, error occured: ERROR: wrong type for
property epsilon type number.
Could anyone help me with this? It is better if some examples on more
complicated geometries can be given.
Thanks in advance!
Regards,
Zhanghua
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss