NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.21k stars 618 forks source link

Fix bug related to incorrect position of near-field monitor in example for zone plate #2783

Closed oskooi closed 7 months ago

oskooi commented 7 months ago

Fixes a bug in Tutorial/Focusing Properties of a Binary-Phase Zone Plate whereby the near-field monitor was not entirely in air (as required by the near-to-far field transformation feature) but rather extending partly into the substrate as shown in this diagram:

image

Thanks to Prof. Apratim Majumder from the U. of Utah for the bug report.

Also, the entire script has been reformatted to improve Python readability.