Standalone Julia scripts implementing textbook tokamak plasma-physics calculations as a self-study exercise.
These scripts do not use FUSE.jl. FUSE.jl was the original intent, but its precompilation issues under Julia 1.11.6 remain unresolved. The working calculations run independently of it.
The models use analytic approximations and idealised profiles. They are not gyrokinetic or neoclassical solvers and have not been benchmarked against validated codes or experimental data. Positive or plausible-looking output is only a sanity check, not validation. Treat all results as illustrative scalings, not predictions.
- D-T fusion power density from an analytic reactivity approximation
- ITER-89P energy-confinement scaling
- Simplified neoclassical and turbulent transport estimates
- 0-D heating, fusion, radiation, and conduction accounting
- Derived confinement, Lawson, and gain metrics
- Simplified MHD stability indicators
| File | Purpose |
|---|---|
fusion_analysis_fixed.jl |
Main end-to-end educational analysis |
fusion_calculations.jl |
Standalone physics examples |
fusion_learning_example.jl |
Introductory walkthrough |
fusion_analysis.jl |
Earlier superseded version, retained for reference |
simple_fuse_example.jl |
Non-working FUSE.jl loading experiment |
git clone https://github.com/Sarvesh2304/FUSE_fusion_analysis.git
cd FUSE_fusion_analysis
julia fusion_analysis_fixed.jl
julia fusion_calculations.jl
julia fusion_learning_example.jlRequires Julia 1.11.6 or later. The working scripts use only the Julia standard library.
The default configuration is intentionally illustrative, not self-consistent. In particular, the reported gain depends directly on the chosen heating profile and approximate reactivity. Changing those inputs changes the result; the script does not independently constrain them.
MIT. See LICENSE.
Sarvesh Pardeshi (@Sarvesh2304)