On Mon, 8 Oct 2007, Lars Erik Solberg wrote:
> I am considering using Meep, but if I were to do so, I would need to be 
> able to import general descriptions of a volume, probably in the form of 
> matrixes.

There is currently no easy way to import a HDF5 file (or similar 
grid-based dataset) for the dielectric function.  That is, there is no 
built-in function for this.  However, it is possible, in principle.

First, you should consider whether it is necessary.  The geometric 
primitives provided by the .ctl interface are general enough to describe 
most geometry, and for very weird shapes you can just specify the 
dielectric function as an arbitrary user-defined function of position.

Since you can specify the dielectric function as an arbitrary user-defined 
function of position, you are free in principle to load your grid of 
dielectric values into a matrix, and then have your function interpolate 
into that matrix as needed.  (In the Scheme interface, this will be rather 
slow, but if performance is a concern you can do it quickly in the C++ 
interface.)

Regards,
Steven G. Johnson

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

Reply via email to