Try setting mesh-size to 1. If it is different, MPB will average the epsilon values over a mesh of "mesh-size" points around each grid point.

I'm attaching a test file I just created.
I didn't compare any simulation results, just the created .h5 files.

I don't fully understand the mesh-size averaging, but setting it to 1 seems to work to get identical epsilon outputs. :)


On 05/11/13 20:17, Niederberger, Armand wrote:
Dear all,
Have you successfully used the epsilon-input-file command in your control files?

In my simulation of optical gratings, there seems to be a problem whenever I 
use epsilon-input-file.

Concretely:

-          First, I simulate (normally, no epsilon-input-file) my grating and 
export the eps file

-          Second, I modify the control file to import the previously generated 
epsilon-input-file and delete any all geometry commands

I notice the following:

-          When importing the epsilon file and outputting it again, the values 
changed (averaged? Scaled?) even if I am setting eps-averaging off.

-          The simulation no longer yields the same result if I import the 
epsilon file (e.g. as if the wavelength had changed).

My questions:

-          Are there any parameters I have to set along with eps-import-file? 
(since re-importing does not work)

-          Does the order of the commands play a crucial role? (just 
checking...)

N.B. I'll be happy to reproduce the code if needed but I don't like to spam 
people :)

Thanks a lot
Armand




_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss


Attachment: epsilon-comparison.ctl
Description: application/extension-ctl

_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to