Notebooks¶
Notebook-based exploratory workflows are discovered from examples/ at build time.
| Notebook | Description |
|---|---|
| D–³He reactor: density & temperature profile-shape optimization | Optimize the shape of the density and temperature profiles of a D–³He reactor while holding the fusion power fixed at 525 MW, so that the operating point stays below the Greenwald density limit and the Troyon β limit. Fixed machine (given): plasma volume V_p = 150 m³, minor radius a = 1.13 m, plasma current I_p = 7.8 MA, toroidal field B0 = 9.2 T. Operating point (given): volume-average electron density n_avg = 1.3×10²⁰ m⁻³, volume-average temperature T_avg = 70 keV. Free variables (optimized): the profile shapes — the density and temperature peaking factors — and the particle confinement time tau_p ∈ [1, 10] s. The model is built from the project's own relations (fusdb): the parabolic profile generator, the Bosch–Hale D–³He reactivity, the D–³He reaction-rate integral, the thermal pressure / toroidal-β definitions, and the Greenwald / Troyon operational limits. |
| Reactivity Curves From Registered Relations | This notebook replaces the removed plotting helper with direct calls to the current reactivity relations. |
Read ENDF-6 MF=3 Sections with endf |
Set source_path to any ENDF-6 file, choose an MT, and run the last cell. The selected MF=3 section is exported as an annotated .yaml file in the same folder as the input file. |
| Reconcile overview | Loads every reactor.yaml under reactors/, reconciles each one, and renders a single variable-by-reactor table plus the plasma cross-sections. Reactor header is red when reconciliation failed, normal otherwise. Variable cells (a variable is used when it enters the reactor's active relation graph): - green — input, used, value unchanged after reconcile (value). - yellow — input, used, moved within tolerance (input (value)). - red — input, used, moved beyond tolerance (input → value, the culprit input is bold). - transparent + grey value — variable not used. - transparent + normal value — value computed by reconcile. Diagnostics (warnings, errors, failed relations) are printed inline while each reactor is solved. |
| Relation and Variable Graph From the Current Registries | This notebook inspects RELATIONS and VARIABLES directly, builds a graph with networkx, and writes a rendered artifact without using removed plotting helpers. |
| Steady-state plasma composition examples | This notebook evaluates steady-state composition for DT, DD, and D-He3 cases using steady_state_plasma_composition(). All available sigmav_* inputs are populated for each case. |
| Energy Confinement Time From the Current API | This notebook keeps the analytical comparison, but uses direct fusdb objects and focused Reactor.run(...) calls throughout. |
Local Usage¶
- Install Jupyter if needed:
pip install jupyterlab - Start Jupyter:
python -m jupyter lab - Open notebooks from the
examples/folder.