Vignesh Gopakumar
  • Home
  • Research
  • Talks
  • Blog
  • Tokamak Toolkit

Tokamak Toolkit

Start here · An interactive introduction

How do we model a plasma?

A tokamak uses magnetic fields to confine plasma: a hot, electrically charged gas. This project connects models of its shape, heating and heat loss to calculate how the plasma changes over time.

Choose MAST-U or ITER. Follow one plasma update, see where fast learned models fit, and discover what the results establish. No plasma physics background needed.

An introduction to the plasma physics

MAST here refers to the MAST Upgrade (MAST-U) modelling route. The drawings are schematic. The MAST-U cases use simulated MAST-U-like geometry; the ITER cases are modelling benchmarks.

One plasma update, explained

Read at your own pace
Explore the model, equations and recorded evidence

Go deeper: inspect each module, play the data exchanges, try the guard, or read the recorded results.

1. Establish the scenario

Notation, units and model names

These are toolkit interface conventions. Backend adapters must convert native units and coordinates before exchanging quantities.

Quantities used in the map and physics panels
Quantity Meaning and location Unit
ρ Normalised toroidal-flux radius; axis 0, boundary 1. Not a geometric distance. Dimensionless
Te, Ti; ne Electron/ion temperatures and electron density, on cell centres. eV; m⁻³
ψ; q; V′ Poloidal flux, safety factor, and dV/dρ from the geometry interface. Wb; dimensionless; m³
Qe, Qi; sn Volumetric heating and particle source, on cell centres. W m⁻³; m⁻³ s⁻¹
χe, χi, De; ve Heat/particle diffusivities and particle convection, on cell faces. Negative convection is inward. m² s⁻¹; m s⁻¹
uⁿ; u⁽ᵏ⁾; Δt Accepted state at time index n; trial at nonlinear iteration k; proposed time step. State variables; s for Δt

Model names: TORAX advances core profiles; CHEASE supplies the ITER equilibrium; FreeGSNKE computes the MAST-U-like equilibrium; IMAS provides the data interface. TGLF supplies turbulence responses used to train a surrogate, EPEDNN supplies a learned pedestal response, and JOREK supports the offline stability branch. EC means electron-cyclotron heating and current drive.

Full notation and technical guide

2. Follow a coupled time step

Describe the plasmaShape, temperature, density
→
Evaluate the modelsHeating, losses, edge conditions
→
Update the profilesUpdated plasma, balance, model limits

The updated plasma becomes the input to the next time step.

Data exchange during a time step

INTEGRATED
MODELLING

Data in transit

Accepted plasma
Trial profiles

An explanatory sequence, not a numerical run or a literal solver call trace. Modules may be reevaluated during each nonlinear solve. Stability remains a separate offline branch.

Select a module to read about its inputs, outputs and current implementation.

● Implemented / measured◐ Limited / incomplete○ Planned / outside scope

3. Inspect a physics module

Select a map node or use Previous / Next. Equations describe the model; implementation status describes the selected machine.

Choose a module

4. Understand surrogate selection

A surrogate is a model trained to approximate a more expensive calculation. Before using its prediction, the guard checks the inputs and outputs against specified limits. Change a check below to see when the fallback is used.

Conceptual hard-switch demonstration only; finite values are assumed. These switches do not run a physics model or reproduce a certified domain. Ensemble agreement is not a calibrated uncertainty interval.

Plasma state→Guard→Surrogate

How the guard is implemented

5. Read the evidence and its limits

Implementation status is not a validation verdict. Read each result with its recorded scenario, acceptance criterion and claim status.

What the different checks establish
Numerical convergence
Refining the time step tests sensitivity to the numerical protocol. It does not establish agreement with an experiment or remove model bias.
Reference comparison
Comparing profiles with a declared reference tests accuracy in that case. A failed or non-evaluable comparison cannot support a validation claim.
Formal local robustness
A proof bounds a stated property inside a specified input region. An unresolved proof is not a counterexample; an out-of-domain input is outside that contract.

Technical notesResults and evidenceRemaining work
Methods and authorship

Research status and build log

ITER convergence result

The current continuous baseline passes the stated time-step refinement criterion. all 33 original cases reach five seconds at all three maximum-step settings: 99 of 99 valid trajectories and 264 of 264 passing endpoint comparisonsC-305. the largest changes are 0.219% for coarse-to-middle and 0.0423% for middle-to-fine, both below the 1% acceptance limitC-306.

Read the full result · What changed in the solver and closure · Reproduce the numerical argument. The owner accepts the frozen closure (OQ-52), approves dual-layer validated binary64 Taylor-spline full uncertainty propagation for the five-second ITER hybrid scenario (OQ-54: 300 valid five-second strict-gate runs out of 324 (254 Sobol training, 46 untouched holdout, 24 invalid or cutoff-censored retained) in 4.33 node-hours, with warm-JIT parity 5.91 × 10−16C-335; 2,621,440 outward-rounded binary64 Taylor cells (131,072 leaves × 20 members) enclose P_fus,end mean in [90.4, 239.1] MW, p05 in [8.3, 157.2] MW and p95 in [201.5, 337.1] MW, with transport_error carrying S_1 = 0.843 and S_T = 0.868C-337), and packages outward-rounded Zonotope-Taylor M4 certificates that close all in-domain ITER v2 local-robustness states and tighten pedestal bounds (OQ-55: 64-leaf outward-rounded binary64 Zonotope-Taylor bounds narrow GH0 pedestal pressure to [0.0442, 0.0584] MPa (41.0× tighter than CROWN) and width to [0.0348, 0.0413] psi_norm (44.7× tighter), cutting worst-case width/sample-span from 119.1× to 1.98×C-338; all 15 in-domain V6 states proved, zero unknown and five outside domain at one leaf, tightening previously unknown states 0, 3157 and 7893 from 1.71×, 1.63× and 1.39× of tolerance to 0.039×, 0.121× and 0.100× (13.4×–43.8× tighter)C-339).

The aim of this work is to use learned physics models within a coupled plasma simulation. A surrogate can reduce the cost of repeated calculations, but its accuracy on a test dataset does not tell us how it will behave when the plasma evolves. The coupled calculation changes the inputs the model receives, and errors can feed back through the other modules.

The Tokamak Toolkit connects selected equilibrium, heating, transport and edge models. Guards check the surrogate inputs and outputs against declared limits and record when a fallback is used. Ensemble routes also check model disagreement. The current ITER baseline uses a continuous transport closure near those limits; the technical notes explain how it differs from the earlier hard switch.

The transport calculation uses JAX, with IMAS adapters for exchanging plasma data. Fixed-step paths support differentiation. The adaptive validation checks individual implicit-root derivatives, but does not support reverse-mode differentiation through retry decisions.

The code is private for now. These pages document the methods, results and unresolved problems, with links to the evidence behind each reported number. Methods and authorship describes the use of Claude and Codex for code and drafts, and the owner’s responsibility for physics, licensing and publication decisions.

Status

milestone M5
log entries 94
tests passing 1235 recorded full-mode results, 1235 with gated codes disabled
source 31407 lines + 17709 lines of tests
baseline commit 42db6bc; continuation source retained with its evidence
updated 2026-11-28

Counts aggregate retained execution reports for the displayed code revision, with affected files rerun after code changes. The full suite has 2 skipped tests; the second suite disables gated codes and has 2 skipped tests. Source size is counted from the current checkout; continuation artifacts bind the executed source hashes.

Where to start

  • New to the project: read the primer, then the technical reading guide. Use the glossary for unfamiliar terms.
  • Checking the present result: read the accepted scope and limitations, then follow its links to evidence.
  • Following the development: read the log from the bottom up. Each entry records what was known at its date; later entries may resolve an earlier blocker.
  • Auditing a statement: follow its claim ID to the claims register, and its OQ number to the owner’s decision.

How the physics fits together

The overview below shows interfaces across the project. Some routes are offline or planned; their presence in the diagram does not mean every module runs inside each coupled time step. The machine explorer above gives the scenario-specific route.

How the physics codes in the Tokamak Toolkit exchange information Diagram. TORAX, the core transport solver, sits in the centre and evolves electron and ion temperature, electron density and poloidal flux. Above it, the equilibrium: a prescribed CHEASE EQDSK for the ITER hybrid scenario supplies flux-surface geometry every step; FreeGSNKE computes MAST-U-like free-boundary equilibria from coil currents and its two-way coupling to TORAX is planned. On the left, the sources: TORAX sends density, temperature and Z_eff; RF heating (Gaussian deposition), ASCOT5 fusion alphas (with the magnetic field from the EQDSK, updated outside the loop and held between updates) and other TORAX source models return heat, particle and current sources. On the right, the transport coefficients: TORAX sends gradients, q, magnetic shear, temperature ratio and collisionality; QLKNN, a neural network trained offline on QuaLiKiz, and the Bohm/gyro-Bohm fallback both feed the guard, which picks one per face; with the Sauter neoclassical model they return diffusivities, convection, bootstrap current and conductivity. Below, the pedestal and sawtooth models exchange pressure and q for edge values and profile resets, and TORAX writes profiles, sources and fluxes to IMAS IDSs. A separate offline branch takes the CHEASE EQDSK or a saved TORAX state through a unit and input adapter into JOREK. Its run wrapper records provenance for fixed-boundary equilibria and linear pedestal-stability scans. Native HDF5 energies and perturbations provide growth rates and mode locations. ITER hybrid time-step checks have passed; grid convergence is open. There is no JOREK feedback into TORAX or trained JOREK surrogate. Equilibrium Heating, current and particle sources Transport coefficients Turbulence, behind the guard MHD stability · outside the loop Prescribed equilibrium CHEASE EQDSK file ITER hybrid scenario Free-boundary FreeGSNKE MAST-U-like machine Coil currents Core transport TORAX evolves Te, Ti, ne and ψ on ρ implicit solve every time step Fusion alphas ASCOT5 orbit following, AFSI birth source RF heating Gaussian deposition Other sources TORAX models: auxiliary heating, ohmic, radiation, e-i exchange, gas puff, pellets QuaLiKiz quasilinear code QLKNN neural surrogate Bohm/gyro-Bohm physics fallback Guard per face Neoclassical TORAX, Sauter model Pedestal, sawteeth TORAX models IMAS IDSs Stability inputs Case (a): CHEASE EQDSK Case (b): saved TORAX state on the same EQDSK boundary Input adapter SI/eV → normalised units profiles and namelist JOREK + run wrapper fixed-boundary equilibrium linear pedestal n-scans MPI runs with provenance Stability analysis HDF5 energies → growth rates mode location; Δt / grid checks flux-surface geometry planned coupling: ↓ ψ(R,Z), geometry ↑ p(ψ), j(ψ), Ip B(R,Z) n, T, Zeff heat, particle, current sources gradients, q, ŝ, Ti/Te, collisionality χe, χi, De, Ve, bootstrap current, conductivity training (offline) pressure, q edge values, profile resets profiles, sources, fluxes EQDSK boundary, p(ψ), FF′(ψ) saved profiles and current ITER hybrid: Δt checks passed; grid convergence open. Reference analysis only; feedback and a guarded JOREK surrogate remain undecided. every time step, inside the compiled loop outside the loop (updates, training, JOREK) planned, not yet coupled neural network
How the physics codes exchange information during a run. TORAX solves core transport; the other codes supply its geometry, transport coefficients and sources. The JOREK branch analyses MHD stability offline from the EQDSK or a saved TORAX state, with no feedback into the transport loop. Its ITER hybrid time-step checks have passed; grid convergence is still open. Hover over a box for what it does. JOREK implementation and checks.

Core transport: TORAX. The open-source JAX transport code. On a radial grid in ρ it evolves the electron and ion temperatures, the electron density and the poloidal flux ψ (current diffusion), with an implicit solve every time step (Newton-Raphson, with Picard iteration as a fallback). The original fixed-step compiled loop supports end-to-end differentiation. The new opt-in adaptive validation uses strict Newton and rejected-step rollback; reverse-mode differentiation through its retry decisions is not supported. Entries 1 to 3 and 97 to 98.

Prescribed equilibrium. The CHEASE equilibrium of the ITER hybrid scenario, shipped with TORAX as an EQDSK file. TORAX builds its flux-surface geometry (volumes, areas, metric coefficients) from it. ASCOT5 takes its magnetic field from the same file, with the poloidal flux scaled to TORAX’s plasma current. JOREK uses the same separatrix boundary for its ITER stability reference cases: the EQDSK profiles in case (a), and profiles derived from a saved TORAX state in case (b).

Free-boundary equilibrium: FreeGSNKE. Solves the free-boundary Grad-Shafranov equation for the MAST-U-like machine description and writes an IMAS equilibrium IDS. Not yet coupled to transport: that needs a turbulence model valid on a spherical tokamak, which QLKNN is not. Entry 6.

Coil currents. The poloidal-field coil currents, with the coil, passive-structure and wall geometry of the machine description, are the input to the free-boundary solve.

Fusion alphas: ASCOT5. AFSI computes where D-T fusion alphas are born from TORAX’s density and temperature profiles. ASCOT5 follows each alpha along its guiding-centre orbit while it slows down on electrons and ions, or is lost. The power given to electrons and to ions is mapped back to TORAX’s grid and replaces TORAX’s local alpha-heating model. ASCOT5 runs outside the compiled loop; its result is held as a prescribed source until the next update. Entries 10, 12 and 15.

RF heating. A radial Gaussian deposition of RF power to electrons, normalised to the requested absorbed power, with an optional co-located driven current. This is the physics model an RF deposition surrogate would fall back to. Entry 5.

Other sources. TORAX’s own source models: auxiliary heating, ohmic heating, radiation, electron-ion heat exchange, gas puff and pellet fuelling. Which ones are active depends on the scenario configuration.

QuaLiKiz. A quasilinear gyrokinetic turbulence code. QLKNN was trained on its output, offline; the Tokamak Toolkit does not run QuaLiKiz itself.

QLKNN. A neural network that returns turbulent heat and particle fluxes from local plasma parameters (normalised gradients, q, magnetic shear, temperature ratio, collisionality) in microseconds. Entry 4.

Bohm/gyro-Bohm. An empirical transport model. It is used at each face where the guard rejects the surrogate (OQ-1).

The guard. At every radial face and every time step, the surrogate’s output is kept only if its inputs are inside the training domain and its outputs are finite and within bounds. Otherwise the fallback value is used and the substitution is recorded. Entry 4.

Neoclassical. TORAX’s Sauter model: the bootstrap current and the plasma conductivity used in current diffusion.

Pedestal and sawteeth. TORAX’s pedestal model sets the temperature and density at the pedestal top, the outer boundary of the core solve. Its sawtooth model flattens the core profiles inside the q = 1 surface when the trigger condition is met.

IMAS IDSs. The Tokamak Toolkit writes its state as IMAS data structures (core_profiles, core_sources, core_transport, equilibrium). Unit and coordinate conversions happen only in these adapters. FreeGSNKE writes its own equilibrium IDS.

JOREK stability inputs. Case (a) takes the CHEASE EQDSK pressure and FF′. Case (b) uses pressure and current from the saved TORAX ITER hybrid state, on the same EQDSK separatrix. JOREK solves a new equilibrium: case (b) scales FF′ to match the target plasma current, so its safety-factor profile differs from TORAX’s fixed-geometry state. This is an offline snapshot, not a time-step coupling. Input cases.

JOREK input adapter. Converts SI/eV to JOREK’s normalised units and writes profile files and namelists on the host, outside JAX. Physics choices are explicit inputs. Output is read from native HDF5 restart files, rather than an IMAS IDS. Adapter.

JOREK and run wrapper. An external Tier A MHD reference. The implemented ITER workflow solves fixed-boundary equilibria and scans toroidal mode number for linear pedestal stability. The wrapper snapshots inputs and the executable, launches MPI/OpenMP runs, classifies failures and timeouts, and retains outputs with provenance. It is never called inside the compiled transport loop. Run wrapper.

Stability analysis. Fits growth rates from magnetic and kinetic energies, locates the perturbations, and compares time-step and grid checks. The ITER hybrid pedestal modes passed the time-step check, while doubled-grid checks returned not converged under Decision 7. Under OQ-53, JOREK coupling closes at L1 offline stability auditing (tkit.physics.jorek_stability and tkit jorek-check), with no feedback into TORAX and no L3 JOREK-trained surrogate. Checks and limits.

Milestones

Each milestone has acceptance criteria fixed in advance; three of them end in a review by a human expert, not by the agent that built the code.

milestone what it delivers state human gate
M0 Scaffold data structures, the guard, the coupling loop, IMAS adapters, tests done 18 Sep 2026 —
M1 Open baseline open-source physics codes wired in; a published benchmark reproduced done 1 Oct 2026 physicist review: passed
M2 Training data sampled datasets from first-principles turbulence codes, with provenance done 3 Oct 2026 —
M3 Surrogates neural ensembles with physics built in, running inside the loop done 10 Oct 2026 —
M4 Verification evidence package and guarded model records package complete; limits retained certified within stated limits
M5 Uncertainty and validation ITER prior propagation, sensitivity and reference-label calibration bounded deliverable closed; full UQ incomplete reduced-scope sign-off granted

The log

Show all 94 entries, newest first
Date Title Categories
28 Nov 2026 Zonotope-Taylor binary64 bounds close ITER v2 local robustness and tighten EPEDNN built, measured, decision
28 Nov 2026 Validated binary64 Taylor-spline propagation completes five-second ITER uncertainty measured, decision
28 Nov 2026 JOREK fine-grid checks, Tier A coupling, and L1 closeout measured, decision
4 Nov 2026 Machine explorer separates scenario, coupling and evidence built
4 Nov 2026 Animated information flow follows a plasma update built
4 Nov 2026 Interactive machine map explains the integrated modelling workflow built
2 Nov 2026 Flux preservation before smoothing is insufficient measured
1 Nov 2026 Narrower radial smoothing is not a monotone improvement measured
1 Nov 2026 Full ITER ensemble passes five-second convergence measured
1 Nov 2026 Strict physical residuals and continuous transport fixed, built
26 Oct 2026 EC loop-state power and current pass the fixed GENRAY reference criterion built, measured
26 Oct 2026 Every EC local robustness box crosses the training boundary built, measured
26 Oct 2026 Optimized ELU bounds narrow the intervals; physical limits remain unresolved built, measured
26 Oct 2026 Grid check of the case (b) pedestal modes: set-up and cost decision, measured
26 Oct 2026 Direct ELU bounds do not resolve the transport proof built, measured
26 Oct 2026 Optimized transport bounds remain too wide for physical limits built, measured
25 Oct 2026 EC and pedestal output bounds; transport limits remain unresolved built, measured
25 Oct 2026 Transport intervals calibrated on the states the coupled runs visit measured, decision
25 Oct 2026 Conformal intervals for the transport and EC surrogates built, measured
25 Oct 2026 Time-step check of the case (b) pedestal growth rates measured
25 Oct 2026 Both transport ensembles pass the monotonicity proof built, measured
25 Oct 2026 Linear JOREK n-scan of the TORAX ITER hybrid state: three pedestal modes grow measured
25 Oct 2026 Linear JOREK n-scan of the TORAX ITER hybrid state: first job measured
25 Oct 2026 JOREK equilibrium for the TORAX ITER hybrid state decision, measured
25 Oct 2026 Owner limits the MAST-U certification scope decision, measured
25 Oct 2026 Time-step check of the JOREK growth rates; the grid check did not run measured
24 Oct 2026 Linear JOREK n-scan of the ITER hybrid EQDSK case measured, fixed
24 Oct 2026 The projected reference stopped at its heat-flux limit fixed, measured
16 Oct 2026 ITER hybrid equilibrium in JOREK on the EQDSK separatrix fixed, measured
16 Oct 2026 ITER hybrid equilibrium solved by JOREK from the TORAX EQDSK measured
16 Oct 2026 JOREK input adapter, output reader and run wrapper built
16 Oct 2026 JOREK integration: scope, build and regression checks decision, built
16 Oct 2026 The width-search range controls the reference flux measured
16 Oct 2026 Both basis roles change the reference flux measured
15 Oct 2026 Separating width-search and final-basis effects built, hardened
15 Oct 2026 Reference refinement changes the heat-flux sign measured, negative
15 Oct 2026 Preparing a bounded reference convergence study built, fixed
11 Oct 2026 Both reference backends reproduce their own outputs measured
11 Oct 2026 The reference must preserve signed energy transport measured
11 Oct 2026 The diagnostic reports only status fields the wrapper exposes fixed
11 Oct 2026 A full-precision signed-heat diagnostic route is prepared built
11 Oct 2026 Owner retains the transport contract and selects MIT decision
11 Oct 2026 Saved heat transport implies inward flux at the rejected MAST-U face measured, negative
11 Oct 2026 Negative heat diffusivity leaves the MAST-U reference inadmissible measured, negative
11 Oct 2026 The MAST-U reference diagnostic is prepared for review built
11 Oct 2026 The MAST-U candidate replay fails reference coverage measured
11 Oct 2026 The MAST-U candidate replay preserves masks and guard accounting built
11 Oct 2026 The approved MAST-U candidate is trained and checked offline built, measured
11 Oct 2026 MAST-U retraining preparation preserves the existing holdouts built
11 Oct 2026 The approved MAST-U artifact upload matches downloaded checksums measured
11 Oct 2026 MAST-U feedback label collection passes local artifact checks measured, hardened
11 Oct 2026 MAST-U remediation starts with matched fluxes and guard history measured, negative
11 Oct 2026 Verification begins: ITER passes the transport check; MAST-U misses it measured, decision, negative
10 Oct 2026 M3 closed: surrogates for transport, EC heating and the ITER pedestal measured, decision
10 Oct 2026 The MAST-U transport surrogate in the loop, and the M3 acceptance audit measured, negative
10 Oct 2026 The EC and ITER pedestal surrogates inside TORAX built
10 Oct 2026 A structured EC surrogate meets the held-out accuracy targets decision, built
10 Oct 2026 EC reference dataset v1 on ITER states, and a first held-out baseline measured
10 Oct 2026 Conventions for the EC reference labels and the ITER pedestal boundary decision, built
10 Oct 2026 Matched comparison of TGLF, the final v3 surrogate and QLKNN inside TORAX measured
8 Oct 2026 The corrected EC reference produces native heating and current profiles measured
8 Oct 2026 The first EC reference run stops at its plotting device negative
8 Oct 2026 Building the EC reference and preparing its first pilot built
8 Oct 2026 Checking a saved EC reference and retaining pilot failures built
8 Oct 2026 Reading EC heating and current without losing their conventions built
8 Oct 2026 Porting the selected ITER pedestal model to JAX built
7 Oct 2026 Reviewing the comparison job and saved Newton trace fixed
7 Oct 2026 A plan for completing M3 and starting verification decision
7 Oct 2026 Transport-surrogate validation on two scenarios measured
7 Oct 2026 A baseline trainer for RF and pedestal response data built
7 Oct 2026 Guards and data interfaces for RF and pedestal surrogates built, hardened
7 Oct 2026 The v3 surrogates meet the held-out target measured, negative
3 Oct 2026 Dataset v3: TGLF inputs along TORAX trajectories built
3 Oct 2026 The TGLF surrogate inside the TORAX loop built, measured
3 Oct 2026 Heat-flux positivity and monotonicity of TGLF in the gradients built, measured
3 Oct 2026 Active learning round 1 against uniform sampling, and the plan for dataset v3 negative, decision
3 Oct 2026 Baseline TGLF surrogates for MAST-U and ITER, including a recreated TGLF-NN built
2 Oct 2026 TGLF datasets for MAST-U and ITER, version 1 built
2 Oct 2026 TGLF built, checked and timed for the M2 datasets measured
2 Oct 2026 ASCOT5 production run: alpha heating from 6400 markers measured
1 Oct 2026 Fix: NaN forward-mode gradients through TORAX’s Newton solver fixed
1 Oct 2026 M1 physicist review: benchmark tolerance, pedestal, time step, ASCOT5 and the fallback model decision
1 Oct 2026 ASCOT5 second cluster run: a tighter orbit tolerance, and a production run lost to a time limit measured
1 Oct 2026 ITER L-mode benchmark against RAPTOR, from the TORAX paper measured
1 Oct 2026 ASCOT5 fusion-alpha heating for the ITER flat-top: first cluster run measured
1 Oct 2026 Run tracking with Simvue built
30 Sep 2026 Energy and particle balance on the ITER benchmark measured
30 Sep 2026 Fix: wrong minor radius in the IMAS export fixed
30 Sep 2026 FreeGSNKE wrapper and a MAST-U free-boundary equilibrium built
22 Sep 2026 Solver stalls in the ITER ramp-up, analytic RF heating, Aurora and ASCOT5 builds measured, built
21 Sep 2026 Guard inside TORAX, and a fix for an unset smoothing default built, fixed
21 Sep 2026 Fixed-step loop over TORAX and a time-step convergence study measured
21 Sep 2026 TORAX backend and the ITER hybrid reference runs built
21 Sep 2026 Newton-Raphson solver for the coupling loop built
No matching items

    What’s next

    The action plan gives dependencies and completion criteria.

    • M4: verification. ITER version 2 is packaged beside the original model; historical per-member CROWN local robustness gives 12 states proved, three unknown and five outside domain under the actual local-robustness toleranceC-326, and coupled outward-rounded binary64 Zonotope-Taylor verification (OQ-55) proves all fifteen in-domain states (all 15 in-domain V6 states proved, zero unknown and five outside domain at one leaf, tightening previously unknown states 0, 3157 and 7893 from 1.71×, 1.63× and 1.39× of tolerance to 0.039×, 0.121× and 0.100× (13.4×–43.8× tighter)C-339) while tightening EPEDNN trajectory bounds (64-leaf outward-rounded binary64 Zonotope-Taylor bounds narrow GH0 pedestal pressure to [0.0442, 0.0584] MPa (41.0× tighter than CROWN) and width to [0.0348, 0.0413] psi_norm (44.7× tighter), cutting worst-case width/sample-span from 119.1× to 1.98×C-338) and interior EC local bounds (coupled five-member binary64 Zonotope-Taylor bounds tighten interior 1% and 2% EC boxes by 9.0× (40.5× to 4.49× sample span) and 16.6× while running about 5× faster than five uncoupled CROWN passesC-340). Exact proof boxes remain separate from ordinary guard margins (all four verified input boxes match the previous loaders; 48 of 48 retained pedestal states keep identical predictions and decisions; none of the 57 EC states is inside the exact proof boxes, so no EC certificate-based output check applies thereC-284), and OQ-50/OQ-52/OQ-55 record certification within the stated EC-boundary and MAST-U limits.
    • JOREK stability (closed at L1, OQ-53). Doubled-grid checks ran within budget (11.04 of 20.0 node-h spent (2,827 core-h across 8 jobs; 8.96 node-h unused), with 160 x 256 runs costing roughly 850–960 core-h for 1–2 modes against the 500 core-h/state surrogate gateC-334) and returned not converged (n = 12 shifts −25.4% (82.9 to 61.8 kHz, rms 0.0037) and n = 16 shifts −1.7% (70.6 to 69.4 kHz, rms 0.0017), with both flipping localization from edge to axis (psi_N = 0.01) in 3.34 node-hC-330, 2,160 s−1 over 2,100 healthy steps (t = 22 to 2071, 1.08 decades growth, R2 = 0.9988 on [1600, 2071], 3.75 node-h), −60.2% below 80 x 128 (5,419 s−1) and still slowly settlingC-331). Reusable Tier A offline auditing (tkit.physics.jorek_stability, tkit jorek-check) is tested (75 of 75 JOREK unit tests and 4 of 4 independent regression tests pass in standard and TKIT_TIER_A_ONLY=1 modesC-332), MAST-U axisymmetric feasibility is demonstrated (0.95× contraction and m <= 8 Fourier smoothing remove X-point Jacobian inversion (Z = ±1.05 m), pass check_grid, and complete 50 axisymmetric steps (t = 21.11) with positive density and temperatureC-333), and no L3 surrogate inside lax.scan is pursued.
    • M5: numerical convergence and validated binary64 full UQ. all 33 original cases reach five seconds at all three maximum-step settings: 99 of 99 valid trajectories and 264 of 264 passing endpoint comparisonsC-305. The continuous closure, strict solve and rejected-step rollback (the new research baseline uses a continuous guarded closure, Newton trials accepted only after residual decrease, and adaptive rollback of the complete state and auxiliary dataC-304, maximum accepted physical-channel L1 is 1.76 × 10−9 against a 10−8 gate, and native mean L1 is 1.01 × 10−14 against 10−10; no crash occursC-307, result) pass temporal refinement on the baseline (three selected five-second trajectories pass the raw audit; only one of ten finite-difference controls survives the derivative timeoutC-327, the 18,432-trajectory design projects roughly 1,710–1,877 node-hours in the measured worker layout, before derivatives and recoveryC-328). Under OQ-54, tkit.uq.taylor_spline completes five-second ITER hybrid uncertainty propagation and Sobol sensitivity via outward-rounded binary64 Taylor/Bernstein p-boxes and MAPIE split-conformal calibration (300 valid five-second strict-gate runs out of 324 (254 Sobol training, 46 untouched holdout, 24 invalid or cutoff-censored retained) in 4.33 node-hours, with warm-JIT parity 5.91 × 10−16C-335, untouched-holdout R2 of 0.964, 0.972, 0.885 and 0.877 across P_fus,mean, P_fus,end, W_th,end and Q_fus,end, with 90% MAPIE split-conformal half-widths of ±17.9 MW and ±19.7 MW on fusion power (95–100% holdout coverage)C-336, 2,621,440 outward-rounded binary64 Taylor cells (131,072 leaves × 20 members) enclose P_fus,end mean in [90.4, 239.1] MW, p05 in [8.3, 157.2] MW and p95 in [201.5, 337.1] MW, with transport_error carrying S_1 = 0.843 and S_T = 0.868C-337). Pedestal/equilibrium reference discrepancy remains unquantified (K-035).
    • Profile Newton separately (K-022), distinguishing compilation, ensemble evaluation and Jacobian cost. Historical speed-up belongs to v1.
    • ASCOT5 follow-ups, before neutral-beam ions: the alphas’ mean birth energy (K-011) and the core heating profile (K-012).
    • Future extension: extending the benchmark to a STEP power-plant flat-top is planned as a future extension. For now the work stays with the ITER benchmark and MAST-U.

    © Copyright 2026 Vignesh Gopakumar

     
     
    Code and first draft by Claude (Anthropic) and Codex, working to a brief by Vignesh Gopakumar, who reviewed and approved this page. How this is built · Tokamak Toolkit home