Illustrative background: the canvases, formulas and numbers on these slides are schematic. They are not computed or certified by PlasmaLean.
← PlasmaLean Hub Launch Interactive 3D Explorer ↗
Mathematical & Physical Background

The Geometry of Stellarators

From the Lorentz Force & Toroidal Foliations to Torus Knots, Quasisymmetry, and the Perils of Classical & Microturbulent Transport

Illustrative / schematic: the animations and formulas here are teaching sketches, not outputs of PlasmaLean. For what is actually proved in Lean, see the implementation plan and the stellarator contract slide below.

1. Electromagnetism Refresher

Why a simple toroidal solenoid fails catastrophically via $\nabla B$ drift, and why field lines must twist ($\iota \neq 0$).

2. 3D Geometry, Helices & Knots

Why a stellarator is a closed toroidal helix (Călugăreanu writhe), when field lines form $(m,n)$-torus knots, and what parameters shape it.

3. The Four Great Perils

Magnetic islands (KAM breakdown), Neoclassical $1/\nu$ banana losses, Microturbulence (ITG/TEM), and Coil Manufacturing Tolerances.

Slide 2 · Electromagnetism Refresher

Why a Simple Toroidal Magnetic Cage Fails

Lorentz Force & Guiding-Center Drift

A particle of mass $m$, charge $q$ in a magnetic field $\mathbf{B}$ obeys $m\dot{\mathbf{v}} = q(\mathbf{E} + \mathbf{v} \times \mathbf{B})$. To lowest order, it gyrates around a field line at cyclotron frequency $\Omega = qB/m$ with Larmor radius $\rho = v_\perp / \Omega$, conserving magnetic moment $\mu = \frac{m v_\perp^2}{2B}$.

By the Poincaré–Hopf theorem, a closed orientable surface carrying a nowhere-vanishing tangent field has Euler characteristic $0$, so it is a torus $T^2$ (a sphere is excluded by the hairy ball theorem). But bending a solenoid into a torus of major radius $R$ forces $B \propto 1/R$ (by Ampère's Law $\oint \mathbf{B}\cdot d\mathbf{l} = \mu_0 I_{\text{tf}}$). This gradient & curvature drive a cross-field drift:

$$\mathbf{v}_d = \frac{m}{q B^3}\left(v_\parallel^2 + \frac{1}{2}v_\perp^2\right) \mathbf{B} \times \nabla B$$
  • The Fatal Trap (Untwisted): Ions drift UP, electrons drift DOWN $\implies$ vertical electric field $\mathbf{E}_{\text{vert}}$ $\implies$ outward $\mathbf{E} \times \mathbf{B}$ expulsion into the wall in microseconds!
  • The Cure (Helical Twist $\iota$): Twisting field lines from top to bottom short-circuits the charge separation!

Helical twist alternates particle position between top and bottom, canceling net vertical drift.

Slide 3 · Differential Topology of Confinement

Magnetohydrostatic (MHS) Equilibrium & Nested Tori

Macroscopic Force Balance as Differential Forms

Viewing the plasma macroscopically as a conducting fluid with pressure $p(x)$, current density $\mathbf{J}(x)$, and magnetic field $\mathbf{B}(x)$, static equilibrium requires:

$$\mathbf{J} \times \mathbf{B} = \nabla p, \qquad \nabla \times \mathbf{B} = \mu_0 \mathbf{J}, \qquad \nabla \cdot \mathbf{B} = 0$$

Taking the inner product with $\mathbf{B}$ and $\mathbf{J}$ immediately yields two geometric orthogonality laws:

$$\mathbf{B} \cdot \nabla p = 0 \quad \text{and} \quad \mathbf{J} \cdot \nabla p = 0$$
  • Arnold-type topological argument: At a regular value where $\nabla p \neq 0$, the level set $\Sigma_p = p^{-1}(c)$ is a smooth surface to which $\mathbf{B}$ is tangent.
  • If a component of $\Sigma_p$ is compact, connected and orientable, and carries a nowhere-vanishing tangent field (e.g. $\mathbf{B} \neq 0$ on it), then $\chi = 0$ by Poincaré–Hopf and that component is diffeomorphic to a 2-torus $T^2$. These hypotheses are needed; they do not come for free.
  • Caveat: this is a statement about one regular level set. It says nothing about the existence of non-symmetric equilibria with a global nested family of such tori (Grad's conjecture; explicit counterexamples appeared in 2026, Landreman arXiv:2609.26742 and Gómez-Serrano–Liehr–Taylor arXiv:2609.24739).

Rotational Transform $\iota(\psi)$ as a Rotation Number

Label the nested flux surfaces by toroidal magnetic flux $\psi$. On each torus $\Sigma_\psi \cong S^1_\theta \times S^1_\phi$, the solenoidal field $\mathbf{B}$ defines a volume-preserving flow.

$$\iota(\psi) = \lim_{\phi \to \infty} \frac{\theta(\phi) - \theta(0)}{\phi} = \frac{d\psi_{\text{pol}}}{d\psi_{\text{tor}}}$$

How do we generate $\iota(\psi) \neq 0$?

  • Tokamak (2D Axisymmetric): Drives megamperes of internal plasma current $\mathbf{J}_\phi$ ($\implies$ transformer pulses & violent current-driven disruptions).
  • Stellarator (3D Non-Axisymmetric): Generates $\iota(\psi)$ purely from external 3D coils and 3D surface geometry with zero net plasma current ($I_p = 0$).
Slide 3b · What a Stellarator Must Deliver

The Stellarator Contract (C1–C5)

Why not just a tokamak?

An axisymmetric current-free field has $\iota = 0$: its field lines do not rotate poloidally, so it confines nothing. A tokamak therefore needs a large toroidal plasma current, which brings kinks, tearing, disruptions and continuous current drive. A stellarator obtains $\iota$ from 3-D shaping of the external field instead.

Non-axisymmetry is a consequence, not a goal: a current-free field with $\iota > 0$ cannot be axisymmetric. What matters is the extra properties below, on one candidate with common witnesses.

Full statement: implementation plan, "The stellarator contract".

  • C1. Current-free rotational transform: net toroidal plasma current zero or bootstrap-level ($|I_{\text{tor}}| \le I_{\max}$; vacuum is the limiting case) and $\iota \ge \iota_{\min} > 0$ on the confining surfaces, supplied by the external field.
  • C2. Omnigeneity for thermal ions and electrons: zero (or bounded) bounce-averaged radial drift of trapped particles, or a bounded effective ripple $\epsilon_{\text{eff}}$. Quasisymmetric and quasi-isodynamic fields are special cases.
  • C3. MHD stability at finite $\beta$: Mercier, ballooning and, where available, global ideal modes.
  • C4. Existence: nested flux surfaces and force balance $\mathbf{J}\times\mathbf{B} = \nabla p$.
  • C5. Thermal performance on the same candidate: core temperature above a burn threshold and below wall limits, from power balance with neoclassical losses from C2 and a stated anomalous-transport scaling.

PlasmaLean status (30 October 2026): C1 + C4 only in vacuum, on one KAM-certified torus of an exact rational field (RationalStellarator.field_vacuum, rationalStellarator_confined_forever_exists); C2 is not yet defined in Lean.

Slide 4 · Curves, Helices & Knot Theory

Is a Stellarator a Regular Helix or a Torus Knot?

1. Why It Is NOT a Regular Circular Helix

  • An infinite straight helix has constant curvature $\kappa_0$ and constant torsion $\tau_0$, enjoying exact continuous screw symmetry in $\mathbb{R}^3$.
  • Closing the Helix into a Torus: Bending the helix into a closed loop $\gamma_0 : S^1 \to \mathbb{R}^3$ breaks Euclidean symmetry! Curvature $\kappa(s)$ and torsion $\tau(s)$ become periodic functions of arc length $s$.
  • Garren–Boozer count: in the near-axis expansion in $r = \sqrt{\psi}$ about a closed curve, the quasisymmetry conditions outnumber the free functions at third order ($O(r^3)$): a formal overdetermination count for the expansion, not a non-existence theorem. Whether exact quasisymmetry can hold on a volume is open (Constantin–Drivas–Ginsberg, arXiv:2009.08860; Burby–Kallinikos–MacKay, arXiv:1912.06468). In practice, design becomes an approximate geometric optimization problem.

2. How Torus Knots & Writhe Govern the Twist

By the Călugăreanu–White–Fuller Theorem, the self-linking of a ribbon around the magnetic axis $\gamma_0$ decomposes into geometric Writhe and frame Twist:

$$\mathrm{Lk} = \mathrm{Wr}(\gamma_0) + \mathrm{Tw}(\gamma_0) \implies \iota_0 = \mathrm{Wr}(\gamma_0) + \frac{1}{2\pi}\oint \left(\frac{d\delta}{ds} - \tau(s)\right)ds$$
  • 3D Axis Writhe ($\mathrm{Wr}$): A helical axis winding $(1, N_{\text{fp}})$ around a torus is topologically an unknot, but its 3D writhe generates rotational transform $\iota_0$ without any plasma current!
  • Rational Field Lines = $(m,n)$-Torus Knots: Whenever $\iota(\psi) = n/m \in \mathbb{Q}$, every closed magnetic field line on $\Sigma_\psi$ is literally an $(m,n)$-torus knot!
Slide 5 · Interactive Field-Line Topology

Field Lines on $T^2$: KAM Foliations vs. Torus Knots

The Poincaré Return Map on a Poloidal Slice

In straight-field-line (Boozer) coordinates $(\psi, \theta, \phi)$, the magnetic field 2-form is $\omega_B = d\psi \wedge (d\theta - \iota(\psi)d\phi)$, so field lines satisfy the linear flow:

$$\theta(\phi) = \theta_0 + \iota(\psi)\,\phi \pmod{2\pi}$$
  • Irrational Diophantine $\iota \notin \mathbb{Q}$: A single field line densely fills the 2-torus $T^2$ (Kronecker foliation), forming a robust KAM flux surface that confines plasma pressure.
  • Rational $\iota = n/m \in \mathbb{Q}$: The field line closes on itself after $m$ toroidal and $n$ poloidal turns as an $(m,n)$-torus knot.
  • Peril #1 (Resonant Magnetic Islands): At rational $\iota = n/m$, any tiny resonant magnetic perturbation $B_{m,n}$ tears the flux surface into a chain of magnetic islands, short-circuiting radial confinement!

Left: 3D Field Line on Torus · Right: Poloidal Poincaré Section $(\psi, \theta)$

Slide 6 · Parameterizing the Design Space

What Parameters Determine a Stellarator's Shape?

In numerical optimizers, a stellarator's 3D geometry is commonly specified in three complementary ways (schematic summary):

1. Near-Axis Curve Parameters

Build outward from the magnetic axis $\gamma_0(s)$ in powers of $r = \sqrt{\psi}$:

  • $N_{\text{fp}} \in \mathbb{N}$: Number of discrete field periods around the torus.
  • Axis Harmonics $(R_{0,n}, Z_{0,n})$: Define curvature $\kappa(s)$, torsion $\tau(s)$, and axis writhe $\mathrm{Wr}(\gamma_0)$.
  • Elongation $\bar{\eta} > 0$: Controls $|B| = B_0(1 + r\bar{\eta}\cos\vartheta)$ and elliptical eccentricity via a 1D periodic Riccati ODE.

2. Outer Boundary Fourier Modes

Double Fourier series on $T^2$:

$$R(\theta,\phi) = \sum_{m,n} R_{m,n}\cos(m\theta - n N_{\text{fp}}\phi)$$ $$Z(\theta,\phi) = \sum_{m,n} Z_{m,n}\sin(m\theta - n N_{\text{fp}}\phi)$$
  • $R_{0,0}, R_{1,0}$: Major & minor radius.
  • $R_{0,1}, Z_{0,1}$: 3D helical axis excursion.
  • $R_{1,1}, Z_{1,1}$: Rotating ellipse twist.
  • $R_{2,1}, Z_{2,1}$: "Bean" / triangularity indentation (can help create a magnetic well, depending on the configuration).

3. 3D Modular Coil Filaments

External Biot–Savart hardware curves $\gamma_k : S^1 \to \mathbb{R}^3$:

$$\mathbf{B}(x) = \sum_{k=1}^{N_c} \frac{\mu_0 I_k}{4\pi}\oint \frac{\gamma_k'(s)\times(x-\gamma_k(s))}{\|x-\gamma_k(s)\|^3}ds$$
  • Unlinked poloidal loops with 3D out-of-plane warping reproduce helical fields without linked torus-knot coils.
  • Governed by clearance $d_{\min} > 0$ and max curvature $\kappa_{\max}$.
Slide 7 · Peril #2: Classical & Neoclassical Transport

The Broken Symmetry Penalty: $1/\nu$ Neoclassical Losses

Why Classical Stellarators Leaked Alpha Particles

  • Classical Transport: Random walk at step size equal to the tiny Larmor radius $\rho_i$ ($D_{\text{cl}} \sim \nu \rho_i^2$). Negligible in reactors.
  • 2D Tokamak Symmetry (Noether's Theorem): Because $\partial_\phi |B| = 0$, canonical toroidal momentum $P_\phi = m R v_\phi + q \psi_p$ is strictly conserved. Trapped "banana" orbits stay locked to a single flux surface ($\Delta \psi = 0$ over a bounce).
  • 3D Stellarator Asymmetry: Breaking axisymmetry ($\partial_\phi \vert{}B\vert{} \neq 0$) destroys $P_\phi$! Particles trapped in local 3D helical magnetic ripples experience an uncompensated radial bounce-averaged drift $\Delta \psi \neq 0$ ("super-bananas").
  • The Disastrous $1/\nu$ Scaling: As a fusion plasma gets hotter, collision frequency $\nu \propto T^{-3/2}$ drops, and radial heat diffusivity in an unoptimized stellarator explodes as:
    $$D_{1/\nu} \propto \frac{v_d^2}{\nu} \propto \frac{T^{7/2}}{B^2 R^2}$$

The Mathematical Cure: Quasisymmetry & Omnigeneity

1. Quasisymmetry (Boozer, Nührenberg & Zille): Even though the 3D surface is non-axisymmetric in $\mathbb{R}^3$, sculpt the geometry so the field magnitude $|B(\psi,\theta_B,\phi_B)|$ in Boozer coordinates depends only on a single helical combination:

$$|B(\psi, \theta_B, \phi_B)| = B(\psi, M\theta_B - N\phi_B)$$

By Noether's theorem on guiding-center symplectic phase space, this hidden symmetry restores an exact conserved helical momentum $P_{\text{hel}}$, completely eliminating $1/\nu$ losses!

2. Omnigeneity (the general condition): the bounce-averaged radial drift of every trapped particle vanishes, $\langle \dot{\psi} \rangle_{\text{bounce}} = 0$ (equivalently $\partial_\alpha \mathcal{J}_\parallel = 0$ for the second adiabatic invariant). Quasisymmetry is one special case; quasi-isodynamic fields (the W7-X line), in which the $|B|$ contours close poloidally, are another. An axisymmetric field is automatically omnigenous; a generic 3-D field is not.

Slide 8 · Peril #3: Microturbulent Transport

When Neoclassical Losses Are Tamed, Microturbulence Takes Over

What is Microturbulent Transport?

In Wendelstein 7-X, once 3D optimization suppressed neoclassical $1/\nu$ transport, radial heat loss was dominated by microturbulence—small-scale ($\sim \rho_i$) drift-wave instabilities driven by steep temperature and density gradients ($\nabla T_i, \nabla T_e, \nabla n$):

  • Cross-Field $\mathbf{E} \times \mathbf{B}$ Eddies: Microinstabilities create fluctuating potentials $\delta\phi$, driving radial turbulent advection $\delta\mathbf{v}_E = \frac{\mathbf{B} \times \nabla\delta\phi}{B^2}$.
  • ITG (Ion Temperature Gradient): Driven when $\eta_i = \frac{L_n}{L_{T_i}} = \frac{d\ln T_i}{d\ln n} > \eta_{\text{crit}}$ in regions of "bad" magnetic curvature ($\kappa_n < 0$) where $\nabla B$ and $\nabla p$ point in the same direction. Caused "ion temperature clamping" ($T_i \le 1.5\text{ keV}$) in early W7-X experiments!
  • TEM (Trapped Electron Mode): Driven when bounce-trapped electrons in magnetic wells precess in the same direction as drift waves, resonantly feeding them energy.

Sheared zonal flows and favorable bounce precession ($\partial_\psi \mathcal{J}_\parallel < 0$) suppress radial eddies.

Slide 9 · Geometric Control of Turbulence

How 3D Geometry Tames Microturbulence: Maximum-$J$ & $\widehat{\mathcal{A}}$

1. The Maximum-$J$ Criterion ($\partial_\psi \mathcal{J}_\parallel < 0$)

The longitudinal second adiabatic bounce invariant for particles trapped between mirror points $l_\pm$ is:

$$\mathcal{J}_\parallel(\psi, \alpha, v, \lambda) = mv \int_{l_-}^{l_+} \sqrt{1 - \lambda B(\psi,\alpha,l)}\,dl$$

Trapped particles precess toroidally at rate $\Delta\alpha = -\frac{1}{q}\frac{\partial \mathcal{J}_\parallel}{\partial \psi}$, where:

$$\frac{\partial \mathcal{J}_\parallel}{\partial \psi} = -\frac{mv\lambda}{2}\int_{l_-}^{l_+} \left(\frac{\partial B}{\partial \psi}\right)_{\alpha,l} \frac{dl}{\sqrt{1-\lambda B}}$$
  • When shaping and finite $\beta$ create a magnetic well ($\partial_\psi B > 0$), we get $\partial_\psi \mathcal{J}_\parallel < 0$ (Maximum-$J$).
  • Result: Trapped electrons precess backwards relative to drift waves, breaking the TEM resonance!

2. Helander–Mackenbach Available Energy ($\widehat{\mathcal{A}}$)

How much thermal free energy can a 3D magnetic geometry possibly release into turbulence while conserving phase-space volume and adiabatic invariants $(\mu, \mathcal{J}_\parallel)$?

$$\widehat{\mathcal{A}} = \iint z^{5/2}e^{-z}\,\Theta\!\Big(\hat{\omega}_*(z)\big[\hat{\omega}_*(z) - \hat{\omega}_\alpha(\lambda)\big]\Big)\,\hat{G}(\lambda)\,dz\,d\lambda$$
  • Here $\hat{\omega}_* = \omega_n + (z - \tfrac{3}{2})\omega_T$ is the diamagnetic gradient drive and $\hat{\omega}_\alpha \propto -\partial_\psi \mathcal{J}_\parallel$ is the bounce precession.
  • Why it is attractive for formal verification: $\widehat{\mathcal{A}}$ is a 2D geometric integral on each flux surface that bounds the available energy of the trapped-particle population. It is a proxy correlated with turbulent transport, not a bound on turbulent transport itself; using it in a heat-flux estimate requires a separately stated, supplied scaling.
Slide 10 · Peril #4: Engineering & Geometric Singularities

Other Critical Perils: Jacobian Folding & Coil Tolerances

Three Geometric & Hardware Failure Modes

  1. Flux-Coordinate Jacobian Folding ($\det D\Phi \le 0$): If Fourier shaping modes $(R_{m,n}, Z_{m,n})$ are pushed too far by an unverified optimizer, interior flux surfaces self-intersect or fold over (violating complex-analytic univalence on the poloidal disk $\mathbb{D}$).
  2. Ideal MHD Ballooning & Interchange ($\delta^2 W < 0$): At high plasma pressure $\beta = 2\mu_0 p / B^2$, pressure gradients in bad-curvature regions overcome magnetic field-line bending energy, triggering macroscopic instability.
  3. Sub-Millimeter Coil Manufacturing Sensitivity: Because 3D magnetic fields decay rapidly away from modular coils, a $\pm 1.5\text{ mm}$ assembly warp $\delta\gamma_k$ can destroy quasisymmetry or create resonant islands unless certified via Biot–Savart Fréchet Lipschitz bounds:
    $$\|\mathbf{B}(\gamma+\delta\gamma) - \mathbf{B}(\gamma)\| \le L_{\text{BS}}(d_{\min})\,\|\delta\gamma\|_{C^1}$$

Interactive Jacobian Univalence Test: Drag slider to over-shape $R_{2,1}$ and watch nested flux surfaces fold ($\det D\Phi \le 0$):

Shaping amplitude = 0.28 · ✓ Univalent Foliation ($\det D\Phi > 0$ everywhere)

Slide 11 · Field Guide to the Simulator

How to Read & Experiment with stellarator-explorer.html

What Each Slider & Input Controls

The explorer is an illustrative toy model: its formulas are schematic JavaScript, not computed or certified by PlasmaLean.

  • Field Periods $N_{\text{fp}}$ & Rotational Transform $\iota_0$: Set the discrete dihedral symmetry and field-line twist. Watch the Field-Line Topology card switch between Irrational KAM Surfaces and Closed $(q,p)$-Torus Knots!
  • Helical Axis Excursion $R_{0,1}$: Bends the central magnetic axis $\gamma_0$ into a 3D toroidal helix, increasing Călugăreanu writhe $\mathrm{Wr}(\gamma_0)$.
  • Bean / Triangularity $R_{2,1}$ & Magnetic Well $\partial_\psi B$: Indent the cross-section to make $\partial_\psi \mathcal{J}_\parallel < 0$ (Maximum-$J$), stabilizing TEM turbulence.
  • Gradients $a/L_{T_i}$ and $a/L_n$: Crank up $a/L_{T_i}$ or flatten $a/L_n$ to exceed $\eta_{\text{crit}}$ and trigger ITG Temperature Clamping (reproducing the W7-X wake-up call!).

Live Custom Function Formulas to Try

In Panel 3 of the explorer, you can type live mathematical expressions in phi, theta, and s:

  • Figure-8 / Spatial Writhe Axis:
    0.28 * cos(2 * phi)
  • Reversed-Shear Rotational Transform Profile:
    iota - 0.25 * s + 0.35 * s * s
  • Quasi-Helically Symmetric $|B|$ Modulation:
    1 - 0.22 * cos(theta - N * phi)
  • Unoptimized Toroidal Mirror Ripple (High $1/\nu$ & TEM):
    1 - 0.25 * cos(theta) - 0.20 * cos(N * phi)
Slide 12 · Ready to Explore

Launch the Interactive 3D Stellarator & Turbulence Explorer

You now have the complete geometric, topological, and physical toolkit. Click below to open the interactive laboratory, rotate the 3D magnetic bottle, test custom Fourier & field-line functions, and inspect the bad-curvature microturbulence zones in real time.

🚀 Open Stellarator & Microturbulence Explorer →

1. Rosetta Stone →

Dictionary mapping Stellarator Physics $\leftrightarrow$ Pure Geometry $\leftrightarrow$ Lean 4 Kernel Contracts.

2. 10-Min Kernel Audit →

Inspect the small Lean 4 verification kernel and non-vacuity sanity checks.

3. Pure Math Bounties →

6 self-contained Lean 4 challenge files in Topology, Diff. Geometry & Complex Analysis.