[fdfd.waveguide*] comment updates

This commit is contained in:
jan 2025-12-10 19:45:26 -08:00
commit d4f1008c5c
2 changed files with 3 additions and 1 deletions

View file

@ -413,7 +413,6 @@ def _normalized_fields(
shape = [s.size for s in dxes[0]]
# Find time-averaged Sz and normalize to it
# H phase is adjusted by a half-cell forward shift for Yee cell, and 1-cell reverse shift for Poynting
Sz_tavg = inner_product(e, h, dxes=dxes, prop_phase=prop_phase, conj_h=True).real
assert Sz_tavg > 0, f'Found a mode propagating in the wrong direction! {Sz_tavg=}'