The method I refer to lets you define those boundary conditions for rectilinear 
or cylindrical domains.

For a rectilinear domain, imagine your computation domain as a large block, 
divided up in to smaller yee cells.  The faces of the large domain block can be 
assigned to have metallic, periodic, or magnetic boundary conditions.

To uniquely specify the faces of the block, meep assigns each face a direction 
and a sign.  Two opposing faces are High X and Low X, for example.  It's just a 
logical way for assigning labels "+X", "-X", "+Y", "-Y", "+Z", and "-Z" to the 
six sides of a box.

If you want an arbitrary waveguide, however, you need to define the surface of 
your waveguide through your "eps" definition (see tutorial). To make a metallic 
waveguide, set eps to be very large and negative (-1e20) for vectors at and 
larger than your arbitrary surface.

Best,
Matt




On Tue, 12 Feb 2008, Mani chandra wrote:

> Hi Matt,
>   Thank you for replying. I have a few more doubts and I was hoping if you 
> could help me out. How can one construct an arbitrary shaped waveguide and 
> set the boundary conditions for it.Note that I want to define my waveguide 
> *inside *the computational cell, like some bent rectangular shape. And what 
> does "high" in set_boundary mean? If I have an arbitrary shaped waveguide 
> then how does the "direction d" come into play?
> 
> Thanking you,
> Mani chandra
>

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

Reply via email to