Tokamak Physics: A Computational Reference¶
This reference chapter covers the mathematical and physical foundations of tokamak plasma physics as implemented in SCPN-Fusion-Core. It is intended as a self-contained reference for graduate students and researchers entering the field. Equations are given in SI units throughout.
I. Magnetohydrodynamic Equilibrium¶
Ideal MHD Force Balance¶
A magnetically confined plasma in static equilibrium satisfies:
Combined with Maxwell’s equations \(\nabla \times \mathbf{B} = \mu_0 \mathbf{J}\) and \(\nabla \cdot \mathbf{B} = 0\), this forms a closed system.
In axisymmetric geometry (\(\partial/\partial\phi = 0\)), the magnetic field can be written:
where \(\psi(R,Z)\) is the poloidal flux per radian and \(F(\psi) = R B_\phi\). Substituting into the force balance yields the Grad-Shafranov equation:
This is a nonlinear elliptic PDE. The free functions \(p(\psi)\) and \(F(\psi)\) are constrained by experimental data (pressure profile and current profile measurements) or parametric models.
Solov’ev Analytic Solution¶
For \(p'(\psi) = \text{const}\) and \(FF'(\psi) = \text{const}\), the GS equation becomes linear and admits exact solutions (Solov’ev 1968). The Solov’ev equilibrium is:
where \(A = -\mu_0 R_0^2 p'/\psi_0\) and the \(c_i\) satisfy boundary conditions. This solution provides a useful benchmark for numerical solvers.
Numerical Solution: Picard Iteration¶
The GS equation is discretised on a uniform \((R,Z)\) grid. At each Picard step, the right-hand side is evaluated at the current \(\psi^{(k)}\), and the resulting linear elliptic PDE is solved by Red-Black SOR or multigrid. Under-relaxation \(\psi^{(k+1)} = (1-\alpha)\psi^{(k)} + \alpha\psi_\text{new}\) with \(\alpha \sim 0.1\) ensures convergence.
Flux-Surface Geometry¶
From the converged \(\psi(R,Z)\), the code extracts:
Magnetic axis \((R_\text{ax}, Z_\text{ax})\) — the O-point
Separatrix geometry — the \(\psi = \psi_\text{bry}\) contour
X-point(s) — saddle points of \(\psi\)
Normalised flux coordinate \(\hat\psi = (\psi - \psi_\text{ax})/(\psi_\text{bry} - \psi_\text{ax})\)
Safety factor \(q(\hat\psi) = \frac{1}{2\pi}\oint\frac{B_\phi}{R B_p}\,dl\)
II. Neoclassical Transport Theory¶
Classical vs. Neoclassical¶
In a uniform magnetic field, Coulomb collisions produce classical cross-field diffusion with step size \(\rho_L\) (Larmor radius) and step rate \(\nu_{ei}\) (electron-ion collision frequency):
In toroidal geometry, particles with small parallel velocity are trapped by the \(1/R\) variation of \(B_\phi\). The trapping condition is \(v_\parallel / v < \sqrt{2\varepsilon}\), where \(\varepsilon = r/R_0\). These particles execute banana orbits with width:
Since \(\Delta_b \gg \rho_L\), the neoclassical diffusion coefficient is enhanced:
Collisionality Regimes¶
The dimensionless electron collisionality:
determines which transport regime applies:
Regime |
Condition |
Transport scaling |
|---|---|---|
Banana |
\(\nu_e^* < 1\) |
\(D \propto \nu_{ei} q^2 \rho_L^2 \varepsilon^{-3/2}\) |
Plateau |
\(1 < \nu_e^* < \varepsilon^{-3/2}\) |
\(D \propto q \rho_L^2 v_{te} / (R_0)\) |
Pfirsch-Schlüter |
\(\nu_e^* > \varepsilon^{-3/2}\) |
\(D \propto 2 q^2 D_\perp^\text{classical}\) |
Neoclassical Resistivity¶
The parallel resistivity in a tokamak is modified by trapped-particle effects. The Sauter formulation (Sauter, Angioni & Lin-Liu 1999, 2002) gives:
where \(f_t = 1 - (1-\varepsilon)^2 / [\sqrt{1-\varepsilon^2}(1 + 1.46\sqrt{\varepsilon})]\) is the trapped fraction and \(C_R\) is a correction factor.
The Spitzer resistivity is:
Bootstrap Current¶
Trapped particles in a density or temperature gradient produce a collisionless current (the bootstrap current). For a tokamak with \(n'\) and \(T'\) gradients:
where the \(L_{3k}\) are the Sauter bootstrap coefficients. At high \(\beta_p\), bootstrap current can provide 50–80% of the total plasma current, enabling steady-state operation.
III. Resistive MHD Instabilities¶
Sawteeth¶
The sawtooth instability is a periodic relaxation oscillation in the plasma core. It occurs when the \(q = 1\) surface exists inside the plasma.
Trigger (Porcelli 1996):
The internal kink mode becomes unstable when the potential energy \(\delta W\) crosses a threshold. The Porcelli criterion includes three stabilising effects:
Ideal MHD drive \(\delta W_\text{MHD}\) (destabilising when \(s_1 \hat\beta_p > s_\text{crit}\))
Diamagnetic stabilisation \(\omega_{*i}\) (stabilising at low \(\hat\beta_p\))
Fast-ion stabilisation \(\delta W_h\) (from NBI or ICRH fast ions)
A crash is triggered when the growth rate of the reconnecting mode exceeds all stabilising frequencies:
Crash (Kadomtsev 1975):
During the crash, magnetic reconnection at the \(q = 1\) surface flattens the core profiles. The mixing radius \(r_\text{mix}\) is found by flux conservation:
NTM: Modified Rutherford Equation¶
Neoclassical tearing modes grow magnetic islands at rational surfaces (\(q = m/n\)). The island half-width \(w\) evolves according to the Modified Rutherford Equation:
where:
\(\Delta'\) is the tearing stability index
\(\alpha_\text{bs}\) is the bootstrap drive (destabilising)
\(\alpha_\text{GGJ}\) is the Glasser-Greene-Johnson curvature stabilisation
\(\alpha_\text{pol}\) is the polarisation current threshold
\(\alpha_\text{ECCD}\) is the ECCD stabilisation term
A seed island (from a sawtooth crash or ELM) grows if the bootstrap drive exceeds the threshold set by curvature and polarisation terms. ECCD at the rational surface adds a stabilising term that can suppress the island.
IV. Current Diffusion and Profile Control¶
Flux Diffusion Equation¶
The poloidal flux evolves according to:
where \(\mathcal{L}\) is the cylindrical diffusion operator:
and \(j_\text{source} = j_\text{bs} + j_\text{ECCD} + j_\text{NBI} + j_\text{LHCD}\).
Boundary conditions:
Axis (\(\rho = 0\)): \(\partial\psi/\partial\rho = 0\) (symmetry)
Edge (\(\rho = 1\)): \(\psi = \text{const}\) (Dirichlet, fixed total current)
Numerical scheme: Crank-Nicolson (second-order in time, unconditionally stable):
This leads to a tridiagonal system solved by scipy.linalg.solve_banded.
Current Drive Sources¶
ECCD: Gaussian deposition peaked at the resonance location:
where \(\eta_\text{CD} \sim 0.2\)–\(0.3\) A/W is the current drive efficiency.
NBI: Broader deposition with tangential injection geometry:
LHCD: Off-axis deposition for current profile shaping:
V. Edge Physics¶
Two-Point Model¶
The SOL parallel heat transport along open field lines connects the upstream (midplane) temperature \(T_u\) to the target (divertor) temperature \(T_t\):
where \(q_\parallel\) is the parallel heat flux, \(L_\parallel\) is the connection length, and \(\kappa_0 = 2000\) W/(m·eV7/2) is the Spitzer-Härm parallel conductivity.
The upstream electron temperature is estimated from pressure balance:
Eich Scaling¶
The heat flux width at the outboard midplane:
where \(B_{p,\text{omp}}\) is the poloidal field at the outboard midplane in Tesla. This multi-machine regression (Eich 2013) is based on data from ASDEX-U, JET, DIII-D, MAST, NSTX, and C-Mod.
The peak parallel heat flux to the divertor:
where \(R_t\) is the strike-point major radius and \(f_x\) is the flux expansion factor. The surface heat flux \(q_\text{surf} = q_\parallel \sin\alpha\) (where \(\alpha\) is the field-line incidence angle) must remain below \(\sim 10\) MW/m2 for steady-state tungsten operation.
VI. Plasma Control Theory¶
Shape Control¶
The plasma boundary position \(\mathbf{r}_b\) depends on the coil currents \(\mathbf{I}_c\) through a response matrix (Jacobian):
The control problem is to find \(\delta\mathbf{I}_c\) that minimises boundary error with bounded coil currents. The Tikhonov-regularised pseudoinverse:
balances tracking accuracy against actuator effort.
Vertical Stability¶
An elongated plasma (\(\kappa > 1\)) is unstable to vertical displacement events (VDEs) on the ideal MHD timescale. The linearised dynamics:
where \(n_\text{idx}\) is the stability index (negative for instability). The growth rate \(\gamma \sim 10^3\)–\(10^4\) s-1 demands sub-millisecond feedback.
The super-twisting sliding mode controller provides finite-time convergence to zero tracking error with robustness to model uncertainty:
where \(s = z - z_\text{ref}\) is the sliding variable.
Gain Scheduling¶
A tokamak discharge traverses multiple operating regimes (ramp-up, L-mode flat-top, L-H transition, H-mode flat-top, ramp-down). Each regime has different plant dynamics and requires different controller gains.
A gain-scheduled controller maintains a bank of regime-specific controllers and switches between them based on a regime detector (confinement time \(\tau_E\), disruption probability, current ramp rate). Bumpless transfer ensures smooth actuator output during transitions:
where \(\beta(t)\) ramps linearly from 0 to 1 over the transfer interval.
VII. Burning Plasma and Ignition¶
The power balance of a D-T fusion plasma:
where:
\(P_\alpha = \frac{1}{4} n_D n_T \langle\sigma v\rangle E_\alpha V\) is the alpha heating power
\(P_\text{aux}\) is the external heating (NBI, ECRH, ICRH)
\(P_\text{loss} = W / \tau_E\) is the transport loss
\(P_\text{rad}\) includes Bremsstrahlung and line radiation
The D-T fusion reactivity peaks near \(T = 14\) keV with \(\langle\sigma v\rangle \approx 4 \times 10^{-22}\) m3/s (Bosch-Hale parametrisation).
Ignition (\(Q \to \infty\)) requires \(P_\alpha > P_\text{loss} + P_\text{rad}\) with \(P_\text{aux} = 0\). This sets a minimum triple product:
VIII. Confinement Scaling Laws¶
The empirical IPB98(y,2) scaling (ITER Physics Basis 1999) for H-mode energy confinement time:
where \(I_p\) is in MA, \(B_T\) in T, \(\bar{n}_{19}\) in \(10^{19}\) m-3, \(P_\text{loss}\) in MW, \(R\) in m, and \(M\) is the isotope mass number.
The H-factor \(H = \tau_E / \tau_E^\text{IPB98(y,2)}\) measures performance relative to the database. ITER requires \(H \geq 1.0\) for \(Q = 10\).
Domain of validity: The scaling was derived from conventional tokamaks (\(A > 2.5\), \(\kappa < 2.0\)). Spherical tokamaks (NSTX, MAST) and stellarators fall outside this domain and typically show \(H < 1\).
IX. Nuclear Engineering¶
Tritium Breeding¶
The \(n + {}^6\text{Li} \to T + {}^4\text{He} + 4.8\) MeV reaction breeds fresh tritium. The tritium breeding ratio (TBR) must exceed 1.0 for a self-sufficient reactor. A lithium blanket with neutron multiplier (Be or Pb) achieves TBR = 1.05–1.15.
Neutron Wall Loading¶
The first-wall neutron flux:
For a 2 GW fusion reactor, \(\Gamma_n \sim 2\)–\(3\) MW/m2. Structural materials (RAFM steels, SiC/SiC composites) must withstand this for \(\sim 10\) full-power years (50–100 dpa).
X. Glossary¶
- banana orbit¶
The trajectory of a trapped particle in a tokamak, shaped like a banana in the poloidal cross-section due to the \(\nabla B\) drift.
- bootstrap current¶
Self-generated toroidal current arising from density and temperature gradients in the presence of trapped particles.
- divertor¶
The region where open field lines are directed to target plates for controlled power exhaust.
- H-mode¶
High-confinement mode, characterised by a steep pressure gradient (pedestal) at the plasma edge.
- L-mode¶
Low-confinement mode, the default confinement state without a transport barrier.
- NTM¶
Neoclassical tearing mode; a magnetic island driven by the loss of bootstrap current in the island region.
- Pfirsch-Schlüter¶
The high-collisionality regime of neoclassical transport.
- safety factor¶
\(q = rB_\phi / (R_0 B_\theta)\); the number of toroidal transits per poloidal transit of a field line.
- sawtooth¶
Periodic core relaxation oscillation at the \(q = 1\) surface.
- separatrix¶
The last closed flux surface; the boundary between confined plasma and the SOL.
- SOL¶
Scrape-Off Layer; the region of open field lines outside the separatrix.
- Troyon limit¶
The maximum normalised beta \(\beta_N\) before ideal ballooning/kink instability.
- VDE¶
Vertical displacement event; rapid vertical motion of an elongated plasma.