On Thu, 1 Jun 2006, Charlton Chen wrote:
How can I define arbitrary geometric objects in Meep? In
particular, the dielectric structure I'd like to simulate is a
two-dimensional polygon with a large number of vertices.

The most efficient thing, if you have a shape with flat surfaces, is to build it out of the primitive shapes. For example, it's quite easy to make a hexagon out of three blocks.

Alternatively, you can use the material-function type in order to make your dielectric function an arbitrary function of position, as specified by a Scheme function that you write. This is more general (e.g. if you want to specify some weird curved shape, or a continuous variation of epsilon), but the simulation will start up more slowly.

Steven

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

Reply via email to