Hello
Meep can deal with a lot of objects in particular triangle. You have
to use the toolbox (sphere, cylinder, cone, block, ellipsoid) in order
to define the object you want.
For your triangular block they are many different meanings to create it.
For example you can define a first block with your material then a
second which epsilon value is 1 to cut the part you dont want for
your triangular block. Playing with the axes directions of the second
block you can create all the triangles you need.
Another possibility is to use the code given by Matt Miskiewicz for a
right triangle and to modify it to create the triangle you need :
; this code goes anywhere
(define ((someObject n1 n2) posVect)
(begin
(set! e1 (* n1 n1)) ; do whatever calculation wanted
(set! e2 (* n2 n2))
(make dielectric
(epsilon
(if (> (vector3-x posVect) (vector3-y posVect)) e1 e2) ;
change this to make more complex shapes
)
)
)
)
; this code goes in the geometry list:
(make block (center 0 0) (size 5 5)
(material (make material-function (material-func
(someObject 1.5 1)
)))
)
Hope it helps
CHARLES Cédric
Dear Steven and meep users,
i hope to know if meep can deal with triangular block,
thanks you for your help
best regards
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss