On Nov 28, 2008, at 12:23 AM, Yan Liu wrote: > I have a matrix of dielectric data of 200*200*200. And I need to > import them to definite the epsilon value. However, I have tried two > different methods: > 1) by using map to do loops in MEEP, it takes more than 4 days to > read the data. > 2) by writing a very long .ctl file which contains 200*200*200 "make > blocks", it takes also a very long time.
To do something like this efficiently, you currently need to use the C+ + interface. There, you can read the data into an array, then define a function eps(x,y,z) that interpolates points into the array quickly. Steven _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

