PyStratify against MNPBEM
Under active development. Verification is growing as comparisons are added and rerun: the matrix, its figures and their presentation are not yet in their final form. Spotted an error, or missing a topic? Tell us.
MNPBEM computes with boundary elements, under GNU Octave. Each case computes the same quantity with PyStratify and with MNPBEM and plots both on the same axes.
Metal-like sphere
cross sections against MNPBEM's boundary elements (percent-level by design)
Open in calculator
Cext, PyStratify
Csca, PyStratify
Cext, MNPBEM (2044 faces)
Csca, MNPBEM (2044 faces)
CextCscaPyStratifyMNPBEM (2044 faces), every 25 nm
Source
Source typePlane wave
λ min [nm]400
λ max [nm]800
λ step [nm]2.5
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Metal-like | const | 0.157917 | 3.16622 | 20 | |
| H | Vacuum | const | 1 | 0 | ∞ |
Thin nanoshell
MNPBEM's boundary elements, 11–16% low: its mesh cannot resolve a 5 nm shell
Open in calculator
Cext, PyStratify
Cext, MNPBEM (1016 faces)
CextPyStratifyMNPBEM (1016 faces), every 25 nm
Source
Source typePlane wave
λ min [nm]400
λ max [nm]800
λ step [nm]2.5
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Silica | const | 1.45945 | 0 | 15 | |
| 1 | Metal-like | const | 0.157917 | 3.16622 | 5 | |
| H | Vacuum | const | 1 | 0 | ∞ |