Example Notebooks¶
Fifteen Jupyter notebooks in examples/ demonstrate the full SCPN-Fusion-Core
stack, from equilibrium solves to closed-loop control with uncertainty
quantification. Pre-built HTML exports are published to GitHub Pages on
every push to main.
Golden Base¶
Notebook |
Description |
|---|---|
|
Golden Base v2 – formal proofs, closed-loop SNN control, DIII-D shot replay, and deterministic reproducibility. The single most comprehensive demonstration of the neuro-symbolic pipeline. |
|
Legacy v1 frozen base (preserved for reproducibility of published results). |
Core Tutorials (01–10)¶
Notebook |
Description |
|---|---|
|
MVR-0.96 compact reactor optimizer: multi-objective sweep over \(R\), \(A\), \(\kappa\), \(B_t\), \(I_p\) subject to Greenwald, Troyon, and Lawson constraints. |
|
Petri net to SNN compilation pipeline: define places, transitions, and contracts; compile to LIF neurons; execute in closed loop. |
|
Free-boundary Grad-Shafranov solver tutorial with Picard iteration, coil geometry, and SPARC GEQDSK validation. |
|
Divertor heat flux calculation, TBR estimation, and blanket neutronics with port-coverage and streaming correction factors. |
|
Cross-validation against 8 SPARC GEQDSK equilibria and the ITPA H-mode confinement database (53 shots, 24 machines). |
|
Inverse equilibrium reconstruction and QLKNN-10D neural transport surrogate benchmarks. |
|
D/T/He-ash multi-species transport evolution: fuel depletion, He-ash accumulation and pumping, independent Te/Ti, coronal tungsten radiation. |
|
Five-criterion MHD stability suite: Mercier interchange, ballooning (\(s\)-\(\alpha\) diagram), Kruskal-Shafranov, Troyon beta limit, and NTM seeding (modified Rutherford equation). |
|
Free-boundary coil current optimization via Tikhonov-regularised least-squares with self-consistent GS-coil outer iteration. |
|
Full-chain Monte Carlo UQ: IPB98(y,2) scaling-law exponents, transport model coefficients, and equilibrium boundary perturbation propagated through to \(Q\), \(P_{\mathrm{fus}}\), and \(\beta_N\) confidence envelopes. ITER vs SPARC comparison. |
Supplementary Demos¶
Notebook |
Description |
|---|---|
|
ITER-like Q=10 closed-loop simulation with PID ramp-up and H-infinity flat-top control, including a tearing-mode disruption scenario with controller recovery. |
|
Vertical integration demo: NMPC-JAX, Rutherford MHD island evolution, quantitative SOC (calibrated MJ), Bosch-Hale D-T reactivity. |
|
Extended compiler walkthrough with alternative Petri net topologies. |
Running Notebooks¶
All notebooks can be run locally after installing the package:
pip install -e ".[dev,ml]"
jupyter lab examples/
Or launch directly in the cloud: