PyStratify against PyMoosh

← Verification · Thin films · Plane wave
Reference
PyMoosh field (one Fourier order: a single plane wave)
Kind
code: another group's code
Calculated
E_y (s) and H_y (p) every 5 nm through the stacks above
Agreement
1e-12; observed ≤ 1.6e-14
An AR pair (64 nm n = 2.35, 105 nm n = 1.46) on glass at 633 nm, 60°: the field through the stack against PyMoosh PyMoosh's field routine with one Fourier order is a single plane wave; sampled every 2 nm through both layers and 200 nm into the glass (E_y for s, H_y for p, as each code normalizes them). The test runs every stack at every angle and wavelength every 5 nm.
50100150200250300350-1-0.500.511.5depth below the surface [nm]field
Re Ey (s), PyStratify Im Ey (s), PyStratify Re Hy (p), PyStratify Im Hy (p), PyStratify Re Ey (s), PyMoosh Im Ey (s), PyMoosh Re Hy (p), PyMoosh Im Hy (p), PyMoosh
Hover to read values.
  • largest |difference|: 1.96×10⁻¹⁵
  • PyStratify the lines, the reference the circles

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