Commit 5bbffb6
ForceFreeStates - TEST - Pin the DCON axis condition on a flat-core diverted fixture
Adds test/runtests_fixed_axis.jl and a 129x129 synthetic DIII-D-like ramp-up
fixture (q0 = 3.42, diverted, no wall, n = 1; analytic profiles, 303 kB) on which
the Frobenius free-axis start produces et[1] ~ -1e5 and a negative plasma-matrix
eigenvalue while the DCON fixed-axis start gives et[1] = +1.50 and a stiff W_p
eigenvalue of +1.609e4, matching Fortran DCON v1.5.5 on the 257x257 parent.
Asserts: the default is fixed_axis = true; with it et[1] > 0, W_p has no negative
eigenvalue and its stiff eigenvalue is within 2 % of the DCON value; the Delta'
diagonal is independent of the axis condition (rtol 1e-3). The defect of the
Frobenius start is pinned with @test_broken so a repaired compute_axis_init
reports an unexpected pass.
Runtime ~2 min (two full free-boundary runs at mpsi 128).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent c4276de commit 5bbffb6
6 files changed
Lines changed: 3875 additions & 0 deletions
File tree
- test
- test_data
- regression_rampup_fixed_axis
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments