On Sun, 6 Jan 2008, Manoj Rajagopalan wrote: > So right now is there a way to create a rotated box source? I only see a > "size" parameter in the source, no hints for orientation
Well, you could do it by passing an amp-func parameter that is zero outside the rotated box (or any other shape of your choice, for that matter). In this case the size/center parameters are just the bounding box. (The geometric_volume parameters themselves, as specified in the libctl front-end by size/volume, are always boxes aligned with the grid.) [Geometric objects (cylinders, blocks, etcetera) used to defined the dielectric function etcetera can be oriented arbitrarily.] Actually, it would be pretty easy to write a function for the front-end that allowed the user to pass arbitrary geometric objects for the source shape [the implementation would just use the amp-func method mentioned above, internally, although I would probably want to do more sophisticated averaging around object boundaries and handle zero-thickness objects], if people were interested in such a feature. I've never needed such a thing myself. Regards, Steven G. Johnson _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

