You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the example in Tutorial/Optical Forces involves two separate calculations: (1) using a fixed kz as the k_point, find the resonant mode of the coupled waveguide system using Harminv and (2) using the resonant frequency from (1), excite the waveguide mode using EigenModeSource via eig_match_freq=True to compute the Maxwell stress tensor. However, the first run is not actually required as @stevengj pointed out in #1204: an EigenModeSource with eig_match_freq=False and k_point set to kz will already compute the mode via MPB. However, rather than having to specify direction=mp.Z as part of the EigenModeSource declaration, Meep should automatically infer that the k direction is kz.
The text was updated successfully, but these errors were encountered:
Currently, the example in Tutorial/Optical Forces involves two separate calculations: (1) using a fixed kz as the
k_point
, find the resonant mode of the coupled waveguide system usingHarminv
and (2) using the resonant frequency from (1), excite the waveguide mode usingEigenModeSource
viaeig_match_freq=True
to compute the Maxwell stress tensor. However, the first run is not actually required as @stevengj pointed out in #1204: anEigenModeSource
witheig_match_freq=False
andk_point
set to kz will already compute the mode via MPB. However, rather than having to specifydirection=mp.Z
as part of theEigenModeSource
declaration, Meep should automatically infer that the k direction is kz.The text was updated successfully, but these errors were encountered: