PyStratify against PyMoosh

← Verification · Thin films · Point dipole
Reference
PyMoosh modes.guided_modes
Kind
code: another group's code
Calculated
every guided n_eff (TE and TM) of four lossless guides against FilmSource.guided_poles, the poles behind the guided channel
Agreement
1e-9 (PyMoosh's search stops at 1e-10); observed ≤ 1.1e-11
A symmetric slab of n = 2 in air, 633 nm: the guided modes PyStratify finds against PyMoosh's mode solver Every TE and TM mode, numbered from the highest index: the poles PyStratify finds behind a dipole's guided channel against PyMoosh's guided_modes (its search stops at 1e-10). A mode appears at its cutoff, n_eff = 1. The test runs four guides.
10020030040050060011.21.41.61.82thickness [nm]neff
mode 1, PyStratify mode 2, PyStratify mode 3, PyStratify mode 4, PyStratify mode 5, PyStratify mode 6, PyStratify mode 7, PyStratify mode 8, PyStratify mode 1, PyMoosh mode 2, PyMoosh mode 3, PyMoosh mode 4, PyMoosh mode 5, PyMoosh mode 6, PyMoosh mode 7, PyMoosh mode 8, PyMoosh
Hover to read values.
  • largest |n_eff − n_eff(PyMoosh)|: 1.93×10⁻¹¹
  • PyStratify the lines, the reference the circles

Run it yourself: test_planar_codes.py · planar_codes.py · figures.py on GitHub, PyStratify 97e52a9