9Notebooks
8Tutorial Scripts
1Streamlit Dashboard
4CLI Commands

Open a notebook

Rendered from the repository's examples/ series — viewable right here with plots, tables and code.

H∞ · H-infinity controller Open full page ↗

Tutorial Scripts

ScriptDescriptionLines
tutorial_01_basic_pid.pyMinimal PID controller on a simple tokamak model. 5 minutes to first result.85
tutorial_02_gs_equilibrium.pySolve GS equilibrium, plot flux surfaces, extract q-profile and pressure.120
tutorial_03_phase_sync.pyKuramoto synchronisation with Knm, animate phase evolution.95
tutorial_04_mpc_control.pyMPC with 20-step horizon on digital twin. Compare with PID baseline.140
tutorial_05_rust_speedup.pyBenchmark Python vs Rust backends. Reproduce speedup table.75
tutorial_06_full_scenario.pyEnd-to-end: equilibrium → transport → stability → controller → simulation.200

CLI Commands

# Run interactive demo (opens browser dashboard)
scpn-control demo

# Run Kuramoto + GK benchmark suite
scpn-control benchmark --suite all

# Validate physics solvers against reference data
scpn-control validate --strict

# Start live WebSocket phase streaming
scpn-control live --port 8765 --fps 30