Examples
FORGE ships with six progressive example scripts in the examples/
directory. Each script is self-contained and can be run directly:
python examples/01_mastu_strike_point.py
The examples use MAST-U geometry and demonstrate increasingly advanced features.
# |
Script |
Description |
|---|---|---|
1 |
|
Simplest case — optimise to a single strike point. |
2 |
|
Replace the strike point with a strike surface. |
3 |
|
Add wall buffers to penalise SOL–wall interaction. |
4 |
|
Enable X-Point Target (XPT) divertor configuration. |
5 |
|
Combine buffers and X-Point Target — the full feature set. |
6 |
|
Demonstrate Tikhonov regularisation constraints. |
Each example builds on the previous one. Start with Example 1 to understand the basic workflow, then work through the rest to learn how to layer in additional features.