Chee Fai
2018-11-05 12:38:47 UTC
Dear all,
I started using MEEP about 2 weeks ago and have been doing some test calculations on MEEP, mainly to reproduce results of cavity mode and Q factors of a H1 photonic crystal cavity as reported in this paper:
https://www.osapublishing.org/oe/abstract.cfm?uri=oe-20-27-28292
When EPS averaging is off, harminv could find the modes and the Q values. The mode frequency changes quite significantly with resolution and it doesn't quite converge to the right value but it finds the correct modes i.e. the modes have the expected field distributions. Overall, despite the deviation in the mode frequency and Q values, it works fairly well in finding the modes.
However, when I turn EPS averaging on, harminv could find the mode with the correct frequency and Q value but only for certain resolutions. The mode is lost somehow when I increase the resolution. Not only that, the mode distribution is totally off when averaging is on.
Note:
- I check the mode distribution by creating h5 output files over 1 wavelength to create PNG and gifs as it was done in the tutorial. I don't think this is the problem but I am going to try changing a method to create outputs of field distribution
- I perform harminv on Ex, Ey and Hz, all at the same non-zero position, away from points/lines of symmetry.
I have checked that the x, y and z symmetry that I applied are correct for the structure and the source. I have also tried to see what happens when I change the excitation bandwidth and/or simulation stop time but I didn't really see a trend that points to the problem of what could affect harminv and the mode distribution. I have also checked the archive to see if others have faced similar problems. Alas, I am here. I hope someone can point to the solution or a direction on how to solve this issue.
Thank you very much.
Best,
Chee
P.S. I can attach my code if it helps.
I started using MEEP about 2 weeks ago and have been doing some test calculations on MEEP, mainly to reproduce results of cavity mode and Q factors of a H1 photonic crystal cavity as reported in this paper:
https://www.osapublishing.org/oe/abstract.cfm?uri=oe-20-27-28292
When EPS averaging is off, harminv could find the modes and the Q values. The mode frequency changes quite significantly with resolution and it doesn't quite converge to the right value but it finds the correct modes i.e. the modes have the expected field distributions. Overall, despite the deviation in the mode frequency and Q values, it works fairly well in finding the modes.
However, when I turn EPS averaging on, harminv could find the mode with the correct frequency and Q value but only for certain resolutions. The mode is lost somehow when I increase the resolution. Not only that, the mode distribution is totally off when averaging is on.
Note:
- I check the mode distribution by creating h5 output files over 1 wavelength to create PNG and gifs as it was done in the tutorial. I don't think this is the problem but I am going to try changing a method to create outputs of field distribution
- I perform harminv on Ex, Ey and Hz, all at the same non-zero position, away from points/lines of symmetry.
I have checked that the x, y and z symmetry that I applied are correct for the structure and the source. I have also tried to see what happens when I change the excitation bandwidth and/or simulation stop time but I didn't really see a trend that points to the problem of what could affect harminv and the mode distribution. I have also checked the archive to see if others have faced similar problems. Alas, I am here. I hope someone can point to the solution or a direction on how to solve this issue.
Thank you very much.
Best,
Chee
P.S. I can attach my code if it helps.