NanoComp / meep

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

Add documentation/tutorial for Bloch mode source and decomposition #2510

Open stevengj opened 1 year ago

stevengj commented 1 year ago

Both the eigenmode source and the mode decomposition should work as-is for a periodic structure, where instead of a plane you have a unit cell. However, it isn't documented clearly and hasn't been tested for a while. It would be good to add this to the manual (and test suite) explicitly.

(Basically, you just give the mode source/monitor region a finite size in the periodic direction corresponding to the unit-cell period. You then have to pass direction explicitly so that Meep knows in which direction you want to propagate.)

stevengj commented 1 year ago

cc @sophiefisher, who just told me that she actually used this feature as part of the validation for her 2022 paper. From her experience, it sounds like it works as expected 🎉 !