Closed zhixwang closed 1 year ago
Hi.
This error occurs when the lattice period is an integer multiple of the wavelength (3000 = 375 * 8). (In this case, there are diffraction order component in a direction parallel to the layer. It makes singular matrix and error in calculation of inverse matrix.
A way to avoid this problem is to introduce a slight deviation in the wavelength (e.g., set lamb0 to 375.001).
Thank you.
Thanks a lot!
Dear Authors,
Hi, thanks a lot for your library. I recently encountered a very strange error using this library. My code is as follows, which is only slightly modified from your Example0.ipynb:
When I run this snippet (in a Jupyter notebook), I got the following error:
I find this error very strange because it only happens when
px=3000
. If I change the value ofpx
from3000
to either2999
or3001
, the error is no longer there.Do you have any idea why it happens? Is there any wrong way of using your library here?
Many thanks!
Best wishes,