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.
Metal nanoshell
every Mie coefficient against transfer matrices in 60 digits
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Silica | const | 1.45945 | 0 | 15 | |
| 1 | Metal | const | 0.157917 | 3.16622 | 5 | |
| H | Air | const | 1 | 0 | ∞ |
Field at the centre
the field at the centre against Bohren & Huffman's d₁ and c₁
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Sphere | const | 3 | 0.01 | x λ / 2π | |
| H | Air | const | 1 | 0 | ∞ |
Homogeneous sphere
Mie's series, one shell and fifty identical shells must agree
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Sphere | const | 1.5 | 0 | x λ / 2π | |
| H | Air | const | 1 | 0 | ∞ |
Optical theorem
extinction and scattering two ways: optical theorem, angular integral
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Silica | const | 1.45 | 0 | 50 | |
| 1 | Au | const | 0.27 | 2.93 | 5 | |
| H | Air | const | 1 | 0 | ∞ |
Rayleigh limit
the dipole coefficient a₁ against Rayleigh's limit as x → 0
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Sphere | const | 1.5 | 0.2 | x λ / 2π | |
| H | Air | const | 1 | 0 | ∞ |
Lossless multilayer
random lossless multilayers must absorb nothing
Absorption is what extinction leaves after scattering,
so for spheres with no loss anything above rounding is energy the recursion invents. Eight shells of random real indices 1.2–3.5 in water, at every size up to x = 300: it stays below the test's 10⁻¹², growing slowly with the orders summed.
Chiral shell
the T-matrix against transfer matrices in 80 digits
Source
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Core | const | 1.45 | 0.01 | 40 | |
| 1 | Chiral shell | const | 1.6 | 0.02 | 15 | |
| H | Water | const | 1.33 | 0 | ∞ |
The calculator holds no chirality: this sphere opens there without κ.
Graphene-coated sphere
the plasmon resonance against its quasi-static position
A conducting sheet σ on a sphere of radius R shifts the resonance of order ℓ to where, in the quasi-static limit,
PyStratify's full solution with the sheet (graphene, = 0.5 eV, ε = 2.1 inside, 1.77 outside) finds the peak of |T₁|; the two meet as and part by retardation, within as the test asserts.
Thin film as a sheet
a 1 nm film as a shell and as a 2D conducting sheet
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Core | const | 3.5 | 0 | 200 | |
| 1 | Film | const | 3.92501 | 0.636941 | 1 | |
| H | Water | const | 1.33 | 0 | ∞ |
Near-field truncation
|E|² outside with the truncation PyStratify picks, against 120 orders
Open in calculatorSource
Sphere · Plane wave
| Label | Material | n | k | Thickness [nm] | ||
|---|---|---|---|---|---|---|
| C | Gold-like | const | 0.25 | 3 | 50 | |
| H | Water | const | 1.33 | 0 | ∞ |