PyStratify against scattnlay: near fields
- Reference
- scattnlay, near fields
- Kind
- code: another group's code
- Calculated
- E and H in every layer and in the host of eight spheres and multilayers (x ≤ 12)
- Agreement
- 1e-10; observed ≤ 8.2e-13. Shown, not asserted: scattnlay fails in the inner three layers of the 10-layer graded sphere (nan, up to 1e3; PyStratify's coefficients there are pinned to 60 digits) and loses digits toward the centre (≤ 4.7e-3 at r = 0, where PyStratify is exact)
|E|², PyStratify
|E|², scattnlay (fieldnlay)
Hover to read values.
- largest relative difference (vector field):
- PyStratify the lines, the reference the circles
Run it yourself: mie_codes.py · test_mie_codes.py · figures.py · MIE_CODES.md on GitHub, PyStratify 97e52a9