Dear ZongQuan,

Use the 'block' geometric object to define a parallelepiped using the
material you want, then remove the unwanted part with another
parallelepiped with material air. Set their axes by defining e1,e2 and
e3.  For example: 

(make block (center 0 0 0) (material mat) (size 1 1 1)
        (e1 1 1 0) (e2 1 -1  0) (e3 0 0 1))

would make a cube with sides of length 1, that has been rotated 45
degrees. You could 'cut-away' some of the cube to the right (along
x-axis) like this:

(make block (center 1 0 0) (material air) (size 2 1 1)

This would give you a prism. To make an equilateral triangle you will
need to set the directions (vectors) of (e1, e2, e3) accordingly to give
a rhombus, then cut away.
        
See: 

http://ab-initio.mit.edu/wiki/index.php/Meep_Reference#geometric-object

Output the epsilon file and use h5topng to check your geometry.



Jon

Imperial College



On Wed, 2010-05-12 at 17:40 +0100, easylife wrote: 
> Hello, everyone.
>  
> I want to know how to defome a triangle in Meep.
>  
> Many thanks
>  
> zongquan
> 
> 
> 
> ______________________________________________________________________
> 
> 网易为中小企业免费提供企业邮箱(自主域名)





_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to