Self-consistent quasistatic response of coupled two-dimensional
nanostructures, by finite differences. Eigenmodes and bands for any
geometry; cross sections under a plane wave, the local density of states
around a dipole, and electron energy loss for a swift electron —
drift-biased and substrate-coupled throughout.
First load downloads ~35 MB (Pyodide + numpy + scipy) — cached after.
v0.1.0·Updated 2026-11-08
Model & Assumptions
Experimental
Model
Quasistatic self-consistent response, discretised by finite differences.
A single dimensionless η(ω) carries all
the material and frequency dependence; the geometry enters through a
Coulomb kernel V(q) and a
second-derivative operator D(q), and
the potential solves
ϕ=[1−(M+Mˉ)]−1ϕext.
Perturbative orders (SHG, THG with the cascaded contribution) are each
screened at their own harmonic. Runs this project's Python reference
library in the browser through Pyodide — the same code its test
suite exercises, not a port. The charts name three rungs of the one
formalism: Level 1 is the unpatterned sheet,
Level 2 the ribbon eigenmodes and their bands,
Level 3 the LDOS map.
Assumptions
Quasistatic: every dimension and separation well below the free-space
wavelength, retardation entering only through the sources' Lorentz
factors. Sheets are strictly two-dimensional and carry no thickness.
σ is local in real space — nonlocal in
Q only through the drift tensor — and is
evaluated pointwise at the guided q. Swift
electrons are aloof and parallel: there is no penetrating-trajectory
formalism here.
Validity
Graphene with ∣EF∣≫kBT in the
plasmonic window below the interband edge at
2∣EF∣; thin metal films for
t≪W. The drift closed forms are
T=0 in the tensor itself, though the Drude weight
carries temperature. Nonlinear conductivities keep field gradients to
linear order, valid for optical wave vectors
≲1nm−1.
η carries the
intraband (Drude) conductivity alone, with no interband
term, so a mode drawn above roughly
0.83×2∣EF∣ is an artefact of a
conductivity that has stopped being valid there, not a prediction.
Limitations
Nanoribbons only for now; nanotubes and nanodisks are not wired up.
Nonlinear orders and drift have never been derived together, and the tool
refuses the pair rather than guessing. A substrate screens both the
response and the source through the same reflection coefficient, but it
has no third-party implementation to have been checked against; what is
checked is its perfect-mirror limit, which reproduces the textbook image
construction to 2×10−13 — and that test
drives the linear solve, not the screened eigenproblem the Modes and
Dispersion views take whenever a stack is set, which nothing has
checked. The EELS loss probability, the dissymmetry
g, and the band and peak-tracking routines are
unchecked against any outside code in the same way. The LDOS is in
arbitrary units: its
2π2∣p∣2 normalisation has no
external confirmation. Absolute magnitudes carry a 3–12 %
modelling choice in the edge cell weights, though peak positions do not.
References
Rasmussen et al., Nanoscale 15, 3150 (2023);
Sci. Adv. 10, eadn6312 (2024);
Rodríguez Echarri, García de Abajo & Cox, Nat. Commun.
17, 1114 (2026). Full list below.
System
Parameters
Parameters
GeometryRibbon 1
Discretization
Material
GeometryRibbon 2
Discretization
Material
GeometryRibbon 3
Discretization
Material
GeometryRibbon 4
Discretization
Material
GeometryRibbon 5
Discretization
Material
Source
Normal incidence, polarised across the ribbons. That is the
q=0 case.
Grid
to
to
The map is at one energy, set on the slider above the map. Put it
on a resonance — the Modes view gives you the band
energies, and Material shows where
Reη meets them.
Environment
The substrate is the half-space at the bottom. Layers added here
sit between it and the sheet, each with its own thickness and
permittivity.
Component
eVnm
Starting the Python solver…
Cross section vs energy
Nothing computed for these settings yet — press Run.
Sheet conductivity
Export this result
Geometry
Ribbons
Estimate —Route —Headline —
Export the geometry
Notes
One self-consistent problem. Every structure here is
a two-dimensional sheet whose induced charge responds to the total
potential, external plus induced. Discretising the sheet on
L nodes turns that into a linear system
ϕ=[1−(M+Mˉ)]−1ϕext,Mjj′=Vjj′(q)Dj′(q)
in which V(q) is the Coulomb
kernel between node cells, D(q)
the finite-difference second derivative, and
Mˉ the reflected interaction
a layered substrate adds. All the material physics sits in one
dimensionless number,
η(ω)=iσ(ω)/ωWεˉ,
so the eigenvalues of the geometric operator are
material-independent and the resonances are wherever
η(ω)=ηj. That is why
Modes and Dispersion are offered
under every excitation: they are properties of the structure, not of
how you drive it.
Drift is not a Doppler shift
A drift current is carried by a skewed Fermi–Dirac
distribution, and solving the Boltzmann equation on it gives an
anisotropic, nonlocal conductivity tensor — with
α=vFQ/(ω+iγ)
and β=vd/vF,
σ∥(Q)=(α+β)22σω(1−α21+αβ−1−β2)
Three things a frame shift would get wrong, and this does not: the
drift survives Q→0, so it renormalises
even the plane-wave response; the non-reciprocity lives in
(α+β)2 and the
αβ cross term, so
q→−q is a symmetry only at
β=0; and
η becomes a tensor, which is why
Dispersion refuses a drifted run and falls back to
the extended-sheet map — a single eigenvalue spectrum then has
no resonance condition to invert. The drifted ribbon dispersion is
read off the LDOS map instead.
What the numbers mean
The Dirac cone is electron–hole symmetric, so every
conductivity takes ∣EF∣ and hole
doping gives exactly the electron-doped answer. Signed formulas
would return Reσ<0 —
gain from a passive sheet.
Eigenvalues are geometric. The same
ηj come out under any conductivity
convention, so they cannot be used to pin one. The tool hides the
operator's charge-neutrality null mode, whose
η diverges; it is an artefact, not a
resonance.
The LDOS is in arbitrary units. Read peak positions
and relative weights.
Examples
References
[1]T. P. Rasmussen, A. Rodríguez Echarri, F. J. García de Abajo & J. D. Cox, Nonlocal and cascaded effects in nonlinear graphene nanoplasmonics, Nanoscale 15, 3150 (2023).
[2]T. P. Rasmussen, A. Rodríguez Echarri, J. D. Cox & F. J. García de Abajo, Generation of entangled waveguided photon pairs by free electrons, Sci. Adv. 10, eadn6312 (2024).
[3]A. Rodríguez Echarri, F. J. García de Abajo & J. D. Cox, Nonreciprocal plasmons in one-dimensional carbon nanostructures, Nat. Commun. 17, 1114 (2026), doi:10.1038/s41467-025-67872-5.
[4]Cox, Yu & García de Abajo, Phys. Rev. B 96, 045442 (2017) — the nonlinear sheet conductivities.
[5]Yu, Cox, García de Abajo et al., ACS Photonics 4, 3106 (2017) — the coupled-ribbon geometry one example uses. The only evidence tying those parameters to that paper's Fig. 5c is a comment in the reference code, so read the example as the parameters the reference attributes to it.
[6]G. W. Hanson, Dyadic Green's functions and guided surface waves for a surface conductivity model of graphene, J. Appl. Phys. 103, 064302 (2008) — the interband logarithm.
[7]M. Jablan, H. Buljan & M. Soljačić, Plasmonics in graphene at infrared frequencies, Phys. Rev. B 80, 245435 (2009) — the 2D plasmon dispersion the sheet pole reproduces.
Got a photon out of place?
Bug, suggestion, or just want to say hi — we'd love to hear from you.