Consistency checks
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.
Checks that need no other code: closed forms, limits and conservation laws, the same series summed in extended precision, and independent routes through PyStratify's own physics. Each case plots PyStratify against its reference on the same axes.
Dielectric cylinder
Qsca against the Bessel boundary equations solved directly, radius swept
Open in calculator
E along the axis, PyStratify
H along the axis, PyStratify
E along the axis, Bessel equations
H along the axis, Bessel equations
E along the axisH along the axisPyStratifyBessel equations, every 15 nm
Source
Source typePlane wave
θ from axis [°]90
λ [nm]600
R min [nm]20
R max [nm]600
R step [nm]5
Cross section
Side
Cross section
Side
Cylinder · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Cylinder | const | 1.5 | 0 | 20–600 | |
| H | Air | const | 1 | 0 | ∞ |
Index-matched cylinder
a cylinder of its host's index is no cylinder: the field is the plane wave
Open in calculator
E along the axis, Ez, PyStratify
H along the axis, Ey, PyStratify
E along the axis, Ez, the plane wave
H along the axis, Ey, the plane wave
E along the axis, EzH along the axis, EyPyStratifythe plane wave, every 20 nm
Source
Source typePlane wave
θ from axis [°]82.69
λ [nm]600
x min [nm]-250
x max [nm]250
x step [nm]2.5
Cross section
Side
Cross section
Side
Cylinder · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Cylinder | const | 1.5 | 0 | 100 | |
| H | Host | const | 1.5 | 0 | ∞ |