Consistency checks

← Verification · Spheres · Point dipole

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.

Silver sphere

decay rates against Mie's series in 40 digits

Open in calculator
2040608010010⁻²10⁻¹11010²10³10⁴distance from the surface [nm]Γ / Γ₀
total, radial, PyStratify total, tangential, PyStratify radiative, radial, PyStratify radiative, tangential, PyStratify total, radial, Mie (40 digits) total, tangential, Mie (40 digits) radiative, radial, Mie (40 digits) radiative, tangential, Mie (40 digits)
total, radialtotal, tangentialradiative, radialradiative, tangentialPyStratifyMie (40 digits)

Source

Source typeElectric point dipole
λ [nm]633
r min [nm]51
r max [nm]150
points41
R 50 nm p r 60 nm ⊥ radial⊥∥ tangential∥ R 50 nm p r 60 nm ⊥ radial⊥∥ tangential∥

Sphere · Electric dipole

LabelMaterialnkThickness [nm]
CSilverconst0.093450
HAirconst10∞

Gold nanoshell

decay rates inside and outside against transfer matrices in 60 digits

Open in calculator
2040608010012014010⁻¹11010²10³10⁴distance from the centre [nm]Γ / Γ₀
total, radial, PyStratify total, tangential, PyStratify total, radial, 60 digits total, tangential, 60 digits
total, radialtotal, tangentialPyStratify60 digits, 22 points

Source

Source typeElectric point dipole
λ [nm]614
r min [nm]5
r max [nm]150
points44
R 55 nm p r 70 nm ⊥ radial⊥∥ tangential∥ R 55 nm p r 70 nm ⊥ radial⊥∥ tangential∥

Sphere · Electric dipole

LabelMaterialnkThickness [nm]
CSilicaconst1.45050
1Auconst0.272.935
HWaterconst1.330∞

Silicon sphere

a magnetic dipole's decay rates against 60-digit transfer matrices

Open in calculator
5010015020025030010⁻¹11010²distance from the surface [nm]Γ / Γ₀
total, radial, PyStratify total, tangential, PyStratify total, radial, 60 digits total, tangential, 60 digits
total, radialtotal, tangentialPyStratify60 digits

Source

Source typeMagnetic point dipole
λ [nm]800
r min [nm]102
r max [nm]400
points41
R 100 nm m r 120 nm ⊥ radial⊥∥ tangential∥ R 100 nm m r 120 nm ⊥ radial⊥∥ tangential∥

Sphere · Magnetic dipole

LabelMaterialnkThickness [nm]
CSiliconconst3.70.005100
HAirconst10∞

Metal sphere

total and radiative rates against the series in 40 digits

Open in calculator
5010015020025030010⁻²10⁻¹11010²10³10⁴distance from the surface [nm]Γ / Γ₀
total, radial, PyStratify total, tangential, PyStratify radiative, radial, PyStratify radiative, tangential, PyStratify total, radial, 40 digits total, tangential, 40 digits radiative, radial, 40 digits radiative, tangential, 40 digits
total, radialtotal, tangentialradiative, radialradiative, tangentialPyStratify40 digits

Source

Source typeElectric point dipole
λ [nm]600
r min [nm]26
r max [nm]325
points36
R 25 nm p r 35 nm ⊥ radial⊥∥ tangential∥ R 25 nm p r 35 nm ⊥ radial⊥∥ tangential∥

Sphere · Electric dipole

LabelMaterialnkThickness [nm]
CMetalconst0.053.525
HAirconst10∞

Magnetic multilayer

the radiative rate against the power reaching the far field

5010015020025030035040010⁻¹11010²distance from the centre [nm]Γ_rad / Γ₀
electric, radiative rate (PyStratify) magnetic, radiative rate (PyStratify) electric, power in the far field magnetic, power in the far field
electricmagneticradiative rate (PyStratify)power in the far field

Source

Source typeElectric and magnetic dipoles
λ [nm]614
r min [nm]5
r max [nm]400
points38
R 90 nm p r 120 nm ⊥ radial⊥∥ tangential∥ R 90 nm p r 120 nm ⊥ radial⊥∥ tangential∥

Sphere · Electric dipole

LabelMaterialnkμThickness [nm]
CCoreconst1.4501.350
1Auconst0.272.93120
2Shellconst1.601.720
HWaterconst1.3301.1∞

The calculator has no permeability: this setup opens there only without μ.

Two-point Green's dyadic

the Green's dyadic between two points, order by order, against 80 digits

Open in calculator
2040608010012010⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1order ℓ|g_ℓ|
TM, PyStratify TE, PyStratify TM, 80 digits TE, 80 digits
TMTEPyStratify80 digits, every 3 in ℓ

Source

Source typeElectric point dipole
Offset from origin · r [nm]56
observed at r [nm]60
ℓ min1
ℓ max120
ℓ step1
R 55 nm p r 56 nm ⊥ radial⊥∥ tangential∥ R 55 nm p r 56 nm ⊥ radial⊥∥ tangential∥

Sphere · Electric dipole

LabelMaterialnkThickness [nm]
CSilicaconst1.45050
1Auconst0.272.935
HWaterconst1.330∞

Quadrupole coupling

the quadrupole's coupling to each order against finite differences

1234567810⁻¹¹10⁻⁸10⁻⁵10⁻²1010⁴10⁷10¹⁰order ℓ|coupling|
regular wave (ψ), PyStratify outgoing wave (ξ), PyStratify regular wave (ψ), finite differences outgoing wave (ξ), finite differences
regular wave (ψ)outgoing wave (ξ)PyStratifyfinite differences

A quadrupole couples to the vector spherical waves W=M+N\mathbf{W} = \mathbf{M} + \mathbf{N} through

16∑ijQij ∂jWi,\tfrac{1}{6}\sum_{ij} Q_{ij}\,\partial_j W_i,

which PyStratify evaluates in closed form; the reference takes central differences of the same waves in 40-digit arithmetic. The axial (m = 0) family is drawn, 47 nm from the centre with k = 0.013 nm⁻¹: the regular wave fades with order, the outgoing one grows. The test covers all five families.

Casimir–Polder potential

the Casimir–Polder potential against its non-retarded limit −C₃/d³

102030405010⁻²⁷10⁻²⁶10⁻²⁵10⁻²⁴10⁻²³10⁻²²10⁻²¹10⁻²⁰10⁻¹⁹distance from the surface [nm]|U| [J]
|U|, PyStratify C₃/d³, non-retarded limit
|U|PyStratifynon-retarded limit

Close to the surface an atom sees a flat, non-retarded half-space:

U(d)→−C3d3,C3=ℏ4π∫0∞α(iξ) ε(iξ)−1ε(iξ)+1 dξU(d) \to -\frac{C_3}{d^3}, \qquad C_3 = \frac{\hbar}{4\pi}\int_0^\infty \alpha(i\xi)\,\frac{\varepsilon(i\xi) - 1}{\varepsilon(i\xi) + 1}\,d\xi

PyStratify sums the sphere's full retarded response. The two meet within a nanometre (0.3 % at 0.5 nm) and part further out by design, as retardation and the sphere's curvature weaken the potential (37 % at 50 nm).