Consistency checks

← Verification · Thin films · 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.

Index-matched film

a film matched to its surroundings is no film: Γ/Γ₀ = 1 everywhere

Open in calculator
FilmOut2040608010012014016018010⁻¹⁷10⁻¹⁶depth in the film [nm]|Γ / Γ₀ − 1|
electric dipole, max over orientations, PyStratify magnetic dipole, max over orientations, PyStratify
electric dipole, max over orientationsmagnetic dipole, max over orientations

Source

Source typeElectric and magnetic dipoles
λ [nm]600
z min [nm]5
z max [nm]195
z step [nm]5
z = 0zpd 200 nmz 100 nm∥ parallel∥⊥ normal⊥z = 0zpd 200 nmz 100 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst1.50∞–
1Filmconst1.50200auto
↓Outconst1.50∞–

Absorbing film, electric dipole

the total rate against escape + guided + absorbed

Open in calculator
5010015020025030035040010⁻¹11010²10³height above the film [nm]Γ / Γ₀
perpendicular, total (PyStratify) parallel, total (PyStratify) perpendicular, escape + guided + absorbed parallel, escape + guided + absorbed
perpendicularparalleltotal (PyStratify)escape + guided + absorbed

Source

Source typeElectric point dipole
λ [nm]600
z min [nm]-400
z max [nm]-5
points30
z = 0zpd 100 nmz -50 nm∥ parallel∥⊥ normal⊥z = 0zpd 100 nmz -50 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Absorberconst0.23100auto
↓Outconst10∞–

Absorbing film, magnetic dipole

the total rate against escape + guided + absorbed

Open in calculator
5010015020025030035040010⁻¹110height above the film [nm]Γ / Γ₀
perpendicular, total (PyStratify) parallel, total (PyStratify) perpendicular, escape + guided + absorbed parallel, escape + guided + absorbed
perpendicularparalleltotal (PyStratify)escape + guided + absorbed

Source

Source typeMagnetic point dipole
λ [nm]600
z min [nm]-400
z max [nm]-5
points30
z = 0zmd 100 nmz -50 nm∥ parallel∥⊥ normal⊥z = 0zmd 100 nmz -50 nm∥ parallel∥⊥ normal⊥

Thin films · Magnetic dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Absorberconst0.23100auto
↓Outconst10∞–

Thick high-index film

the error reported against the accuracy asked for, 18 guided modes

Open in calculator
0.00020.00040.00060.00080.00110⁻⁹10⁻⁸10⁻⁷10⁻⁶10⁻⁵10⁻⁴10⁻³tolerance asked forerror
error reported, PyStratify tolerance × max(1, |Γ / Γ₀|), the accuracy asked for
error reportedtolerance × max(1, |Γ / Γ₀|), the accuracy asked forPyStratifythe accuracy asked for

Source

Source typeElectric point dipole
Offset from origin · z [nm]400
λ [nm]600
tolerance min1e-08
tolerance max0.001
points11, log
z = 0zpd 800 nmz 400 nm∥ parallel∥⊥ normal⊥z = 0zpd 800 nmz 400 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Filmconst3.50800auto
↓Outconst10∞–

Lossless guide

the total rate against escape + guided, through a lossless guide

Open in calculator
GuideOut204060801001201401601800.20.40.60.8depth in the film [nm]Γ / Γ₀
total, PyStratify escape guided escape + guided
total, PyStratifyescapeguidedescape + guided

Source

Source typeElectric point dipole
λ [nm]600
z min [nm]5
z max [nm]195
z step [nm]5
z = 0zpd 200 nmz 100 nm∥ parallel∥⊥ normal⊥z = 0zpd 200 nmz 100 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Guideconst1.50200auto
↓Outconst10∞–

Free-space pattern

the emission pattern of a dipole in nothing: the free dipole's

Open in calculator
02040608010012014016018000.020.040.060.080.10.12polar angle θ [°]power per solid angle
perpendicular, PyStratify parallel, in its plane (φ = 0), PyStratify (3/8π) sin²θ (3/8π) cos²θ
perpendicularparallel, in its plane (φ = 0)PyStratify(3/8π) sin²θ, every 6°(3/8π) cos²θ, every 6°

Source

Source typeElectric point dipole
Offset from origin · z [nm]100
λ [nm]600
θ min [°]0
θ max [°]180
θ step [°]2
z = 0zpd 200 nmz 100 nm∥ parallel∥⊥ normal⊥z = 0zpd 200 nmz 100 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Filmconst10200auto
↓Outconst10∞–

Perfect mirror

the Sommerfeld reference itself against the image dipole of a perfect mirror

246810121416182000.511.52kd = 4πh/λΓ / Γ₀
electric ⊥, Sommerfeld integrals electric , Sommerfeld integrals magnetic , Sommerfeld integrals electric ⊥, image dipole electric , image dipole magnetic , 2 − image dipole
electric ⊥electric magnetic Sommerfeld integralselectric ⊥, image dipole, every 0.5 in kdelectric , image dipole, every 0.5 in kdmagnetic , 2 − image dipole, every 0.5 in kd

Given a perfect mirror, rs=−1r_s = -1 and rp=1r_p = 1, the Sommerfeld integrals must reproduce the image dipole (Drexhage; Chance, Prock & Silbey), with x=kd=4πh/λx = kd = 4\pi h/\lambda:

Γ⊥Γ0=1+3(sin⁡xx3−cos⁡xx2)\frac{\Gamma_\perp}{\Gamma_0} = 1 + 3\left(\frac{\sin x}{x^3} - \frac{\cos x}{x^2}\right)
Γ∥Γ0=1−32(sin⁡xx+cos⁡xx2−sin⁡xx3)\frac{\Gamma_\parallel}{\Gamma_0} = 1 - \frac{3}{2}\left(\frac{\sin x}{x} + \frac{\cos x}{x^2} - \frac{\sin x}{x^3}\right)

A magnetic dipole sees the mirror with the opposite sign, 2−Γ∥/Γ02 - \Gamma_\parallel/\Gamma_0. This checks the reference every other film-emitter row relies on.

Silver film

decay rates against the Sommerfeld integrals, written without PyStratify

Open in calculator
5010015020025030035040010⁻¹11010²height above the silver [nm]Γ / Γ₀
perpendicular, PyStratify parallel, PyStratify perpendicular, Sommerfeld integral parallel, Sommerfeld integral
perpendicularparallelPyStratifySommerfeld integral

Source

Source typeElectric point dipole
λ [nm]633
z min [nm]-400
z max [nm]-5
points40, log
z = 0zpd 60 nmz -50 nm∥ parallel∥⊥ normal⊥z = 0zpd 60 nmz -50 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Agconst0.0564.2860auto
↓Outconst1.520∞–

Weakly absorbing guide

decay rates against the Sommerfeld integrals through the guide's quasi-poles

Open in calculator
501001502002503003504000.511.522.533.5height above the film [nm]Γ / Γ₀
perpendicular, PyStratify parallel, PyStratify perpendicular, Sommerfeld integrals parallel, Sommerfeld integrals
perpendicularparallelPyStratifySommerfeld integrals

Source

Source typeElectric point dipole
λ [nm]633
z min [nm]-400
z max [nm]-10
points30, log
z = 0zpd 200 nmz -50 nm∥ parallel∥⊥ normal⊥z = 0zpd 200 nmz -50 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1TiO₂const2.30.001200auto
↓Outconst1.520∞–

Lossless guide limit

guided power by residues against the same guide with a trace of loss

Open in calculator
501001502002503003504000.511.522.533.5height above the film [nm]Γ / Γ₀
perpendicular, lossless guide parallel, lossless guide perpendicular, core loss k = 1e-7 parallel, core loss k = 1e-7
perpendicularparallellossless guidecore loss k = 1e-7

Source

Source typeElectric point dipole
λ [nm]633
z min [nm]-400
z max [nm]-10
points30, log
z = 0zpd 200 nmz -50 nm∥ parallel∥⊥ normal⊥z = 0zpd 200 nmz -50 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1TiO₂const2.30200auto
↓Outconst1.520∞–

Slab modes

guided modes against the three-layer dispersion relation, thickness swept

Open in calculator
10020030040050060011.21.41.61.82thickness [nm]neff
mode 1, PyStratify mode 2, PyStratify mode 3, PyStratify mode 4, PyStratify mode 5, PyStratify mode 6, PyStratify mode 7, PyStratify mode 8, PyStratify mode 1, dispersion relation mode 2, dispersion relation mode 3, dispersion relation mode 4, dispersion relation mode 5, dispersion relation mode 6, dispersion relation mode 7, dispersion relation mode 8, dispersion relation
mode 1mode 2mode 3mode 4mode 5mode 6mode 7mode 8PyStratifydispersion relation

Source

Source typeGuided modes
λ [nm]633
d min [nm]100
d max [nm]600
d step [nm]20
z = 0zpd 500 nmz 167 nm∥ parallel∥⊥ normal⊥z = 0zpd 500 nmz 167 nm∥ parallel∥⊥ normal⊥

Thin films · Electric dipole

LabelMaterialnkThickness [nm]Coherence
↓Inconst10∞–
1Slabconst20100–600auto
↓Outconst10∞–