SCPN-Fusion-Core¶
Neuro-symbolic control framework for tokamak fusion reactors
Version 3.9.11
SCPN-Fusion-Core is an open-source Python and Rust framework for control-first tokamak simulation. It helps teams express plasma-control logic as stochastic Petri nets, compile that logic into spiking-neural controllers, run it against physics-informed plant models, and publish reproducible validation evidence without hiding blocked full-fidelity gates.
What makes it different: Most fusion codes are physics-first (solve equations, then bolt on control). SCPN-Fusion-Core is control-first – it provides a contract-checked neuro-symbolic compilation pipeline where plasma control policies are expressed as Petri nets, compiled to stochastic LIF neurons, and executed against physics-informed plant models.
Note
Evidence boundary: This is not a replacement for TRANSP, JINTRAC, GENE, CGYRO, GS2, DREAM, Aurora, STRAHL, or EFIT. The native solver stack now exposes nonlinear 5D gyrokinetic state contracts, local electromagnetic diagnostics, decomposition contracts, and fail-closed full-fidelity benchmark gates, but production parity still requires same-case external reference outputs and quantitative thresholds. Treat the current public evidence as a control-algorithm, native-kernel, and validation-framework release, not as a completed production turbulence or reconstruction code.
Reader Orientation¶
SCPN-Fusion-Core is best read as three connected systems: a control compiler, a native physics-kernel laboratory, and a reproducible validation/reporting surface. The public reports distinguish validated local contracts from blocked full-fidelity parity rows. Use the project overview, onboarding guide, and benchmark taxonomy before treating any number as a production claim.
What Readers Can Do Today¶
Prototype controller and replay logic against local physics-informed models.
Inspect native Python and Rust solver kernels and benchmark reports.
Learn fusion-control architecture through quickstarts and notebook exports.
Prepare same-case reference-solver campaigns with explicit blockers.
Evaluate the funding and hardware needed for stronger parity evidence.
Licensing Model¶
SCPN-Fusion-Core is dual-licensed. The open-source path is AGPL-3.0-or-later for research, review, education, reproducible validation, public derivative work, and network-deployed AGPL services. Commercial licences are available for proprietary reactor programs, internal deployments, closed operational workflows, commercial support, and integrations that cannot use AGPL reciprocal terms.
Commercial licensing contact: protoscience@anulum.li
Key Features¶
Neuro-symbolic compiler – Petri net to SNN compilation with formal verification (37 hardening tasks)
Safety interlocks – inhibitor-arc hard-stop channels with contract-proof checks for thermal/density/beta/current/vertical limits
Grad-Shafranov equilibrium – Picard + Red-Black SOR or multigrid V-cycle, validated on 8 SPARC GEQDSK files
1.5D radial transport – coupled energy/particle transport with IPB98(y,2) confinement scaling
AI surrogates – FNO turbulence, neural equilibrium, neural transport MLP, ML disruption predictor
Digital twin – real-time twin with RL-trained MLP policy and chaos monkey fault injection
Rust acceleration – 11-crate Rust workspace providing 10–50x speedups with pure-Python fallback
Real data validation – SPARC GEQDSK, ITER 15 MA baseline, ITPA H-mode confinement database
Fail-closed full-fidelity campaign – explicit GENE/CGYRO/GS2, DREAM, Aurora/STRAHL, FreeGS, electromagnetic, and decomposition blockers tracked as reports rather than promoted to passes
Graceful degradation – every module works without Rust, without SC-NeuroCore, without GPU
Getting Started
- Installation
- Quick Start
- Choose the Right First Run
- Solve a Grad-Shafranov Equilibrium
- Read a SPARC GEQDSK File
- Run the Validation Suite
- Run a Compact Reactor Search
- Launch the Tokamak Flight Simulator
- Compile a Petri Net to an SNN Controller
- Generate a 3D Flux-Surface Mesh
- Use the Rust Accelerated Kernel
- Available Simulation Modes
- Tutorial Notebooks
Public Documentation Hubs¶
Learning Path
Advanced Tutorials
User Guide
- Equilibrium Solver
- Transport and Stability
- Control Systems
- Design Philosophy
- Tokamak Flight Simulator
- Model-Predictive Control
- Disruption Prediction
- Shattered Pellet Injection (SPI)
- Digital Twin
- Integrated Control Room
- Neuro-Cybernetic Controller
- Safety Interlocks (v3.5.0)
- Self-Organised Criticality Learning
- Analytic Solver
- TORAX Hybrid Loop
- Related Modules
- HIL and FPGA Register Mapping
- Nuclear Engineering
- Diagnostics
- Neuro-Symbolic Compiler (SCPN)
- HPC and GPU Acceleration
- Validation Framework
API Reference
scpn_fusion.core– Physics- Equilibrium Solver
- FRC Rigid-Rotor Equilibrium
- Free-Boundary Kernel Adapters
- Fusion Kernel Solver Runtime
- GEQDSK I/O
- Force Balance
- Compact Reactor Optimiser
- Global Design Scanner
- Integrated Transport Solver
- RF Heating
- MHD Sawtooth
- Hall-MHD Discovery
- Stability Analyser
- MHD Stability Criteria
- Runaway Electron Dynamics
- Neural Equilibrium
- Neural Transport
- FNO Turbulence Suppressor
- FNO Training
- Turbulence Oracle
- Fusion Ignition Simulator
- Divertor Thermal Simulation
- Sandpile Fusion Reactor
- Warm Dense Matter Engine
- Uncertainty Quantification
- Geometry 3D
- 3D Equilibrium
- 3D Field-Line Tracing
- GPU Runtime Bridge
- Gyro-Swin Surrogate
- Heat ML Shadow Surrogate
- Rust Compatibility Layer
- Research Bridges
- Current Diffusion
- Current Drive Sources
- Sawtooth Dynamics
- NTM Island Dynamics
- SOL Two-Point Model
- Control API
- Tokamak Flight Simulator
- Tokamak Digital Twin
- Digital Twin Ingest
- Traceable Runtime (JAX/TorchScript)
- Model-Predictive Control (Optimal)
- State-of-the-Art MPC
- Disruption Predictor
- Shattered Pellet Injection
- Integrated Control Room
- Neuro-Cybernetic Controller
- SOC Fusion Learning
- Analytic Solver
- Director Interface
- Fueling Mode Controller
- TORAX Hybrid Loop
- Real-Time EFIT
- Plasma Shape Controller
- Vertical Stabiliser (Sliding Mode)
- Fault-Tolerant Control
- Safe RL Controller
- Scenario Scheduler
- Gain-Scheduled Controller
scpn_fusion.nuclear– Nuclearscpn_fusion.diagnostics– Diagnosticsscpn_fusion.engineering– Engineeringscpn_fusion.scpn– Neuro-Symbolicscpn_fusion.hpc– HPC Bridgescpn_fusion.io– Data Interop
Example Notebooks
Reference
Project