Skip to content

Commit c3958c6

Browse files
logan-ncclaude
andcommitted
FFS - EXPERIMENT - Phase 1 of route (a): the remap manufactures the noise, worth ~50%
Gate 1a (dtmax forcing dense saves) flips the geometry from a flat floor with white-noise correlation to converging data with r1 -> +0.98, and cuts accepted steps 37% at mpsi=512 and 53% at mpsi=1024, dropping the per-doubling ratio 1.92x -> 1.43x. Gate 1a's internal confound is settled from the existing etol sweep: four decades of integration accuracy leave the geometry residuals flat, while forcing dense steps at the same accuracy cleans them ~24x. The error is set by the spacing of the resample abscissae, not by node accuracy -- which is why etol and abstol were both null. Gate 1b could not run: post-refinement saves break the periodic closure. Recorded as inconclusive, with the periodicity constraint noted for Phase 2. src probes reverted; no source changes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent c31d38b commit c3958c6

2 files changed

Lines changed: 80 additions & 0 deletions

File tree

handoff/issue376/PREDICTIONS.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,42 @@ et[1] identical to 6-7 digits across the ladder.
119119
Route (a) is strongly motivated. This also refutes the section 11 speculation that a good share
120120
of the near-axis steps might be legitimate resolution of real structure, and shows the ~20%
121121
ceiling was a limit of that PARTIAL repair, not of fixing the source.
122+
123+
--- Phase 1 gates (route (a)), written before the runs ---
124+
125+
Two candidate manufacturers of eps inside the Fill Site A trace+remap, probed one line at a time
126+
on the DIIID stripped decks at mpsi 512 and 1024 (baselines 3977 / 7638 accepted steps; nu
127+
mid-plasma residual flat at 1.51e-6 / 1.29e-6):
128+
129+
Gate 1a "remap interpolation error": dtmax = 2pi/2000 at DirectEquilibrium.jl:294 forces >=2000
130+
solver steps, so ff_x_nodes get much denser and the periodic-cubic resample error (~h^4) collapses,
131+
with tolerances and refinement untouched.
132+
- predicts, if the remap is the source: nu/offset/rcoords residuals drop by orders of magnitude
133+
and start converging; accepted steps fall toward the LAR-like flat scaling.
134+
135+
Gate 1b "pre-refinement save drift": save_positions=(true,false) -> (false,true) at line 290. The
136+
saved states are currently taken BEFORE refine_affect! Newton-projects them onto the flux surface,
137+
so every saved rfac carries the raw per-step drift off the surface.
138+
- predicts, if the drift is the source: same qualitative drop, and the fix is nearly free.
139+
- note reltol is already 1e-10, so the drift should be ~1e-10 relative -- too small to explain a
140+
1e-6..0.19 floor. Expected to be null or minor; running it to be sure rather than assuming.
141+
142+
If BOTH are null, the eps is manufactured by neither candidate and Phase 2 must be rethought
143+
before any code is written.
144+
145+
Phase 1 RESULTS:
146+
Gate 1a (dtmax=2pi/2000) FIRES. Geometry goes from flat to converging: near-axis nu residual
147+
2.11e-5 / 2.12e-5 (flat, r1 -0.52/-0.74) -> 7.42e-7 / 8.22e-8 (converging, r1 +0.97/+0.98).
148+
Accepted steps 3977 -> 2521 (-37%) at mpsi=512 and 7638 -> 3614 (-53%) at mpsi=1024; the
149+
per-doubling ratio drops 1.92x -> 1.43x. Far beyond the section 11 "20% ceiling".
150+
151+
Gate 1a's internal confound (dtmax improves integration accuracy AND save density together)
152+
settled for free from the existing etol sweep: at mpsi=512 mid-plasma, nu residual is 1.544e-6 /
153+
1.513e-6 / 1.769e-6 for etol 1e-8 / 1e-10 / 1e-12 -- FLAT across four decades of integration
154+
accuracy -- versus 6.36e-8 for gate 1a at etol 1e-10. Integration accuracy is not the lever;
155+
save/step density is. That is the remap-interpolation signature.
156+
157+
Gate 1b DID NOT RUN: save_positions=(false,true) breaks the periodic closure (theta=0 is the
158+
unrefined initial condition while theta=2pi is refined), so the PeriodicBC check rejects the
159+
data. Its premise was weak anyway (drift ~reltol=1e-10, far below the observed floor). Recorded
160+
as inconclusive; Phase 2 must preserve the periodic closure when choosing evaluation points.

handoff/issue376/RESULTS.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,47 @@ Two things this overturns:
561561
**Phase 0 verdict: proceed.** The premise of route (a) is confirmed with the input, fill-site and
562562
grid confounds each eliminated by measurement.
563563

564+
## 15. Phase 1 of route (a): the remap is the manufacturer, and the prize is ~50%
565+
566+
**Gate 1a — force dense saves.** `dtmax = 2π/2000` at `DirectEquilibrium.jl:294` shrinks the
567+
spacing of `ff_x_nodes`, leaving tolerances and refinement untouched.
568+
569+
| mpsi | accepted steps | near-axis `nu` resid | near-axis r1 |
570+
|---|---|---|---|
571+
| 512 stock | 3977 | 2.11e-5 (flat) | −0.515 |
572+
| 512 + dtmax | **2521 (−37%)** | 7.42e-7 | **+0.968** |
573+
| 1024 stock | 7638 | 2.12e-5 (flat) | −0.744 |
574+
| 1024 + dtmax | **3614 (−53%)** | 8.22e-8 | **+0.984** |
575+
576+
The geometry flips from a flat floor with white-noise correlation to **converging** data with
577+
r1 → +0.98, and the per-doubling step ratio drops **1.92× → 1.43×**.
578+
579+
**The confound inside Gate 1a is settled.** `dtmax` improves integration accuracy *and* save
580+
density together. The existing etol sweep separates them, at mpsi=512 mid-plasma:
581+
582+
| variant | `nu` resid | `offset` resid |
583+
|---|---|---|
584+
| etol 1e-8 | 1.544e-06 | 9.09e-06 |
585+
| etol 1e-10 | 1.513e-06 | 7.93e-06 |
586+
| etol 1e-12 | 1.769e-06 | 7.04e-06 |
587+
| **etol 1e-10 + dtmax** | **6.36e-08** | **3.39e-07** |
588+
589+
Four decades of integration accuracy move nothing; forcing dense steps at the *same* accuracy
590+
cleans by ~24×. **The error is set by the spacing of the resample abscissae, not by how accurately
591+
each node is computed** — the remap-interpolation signature, and the reason `etol` and `abstol`
592+
were both null.
593+
594+
**Gate 1b did not run.** `save_positions=(true,false) → (false,true)` breaks the periodic closure
595+
— θ=0 is the unrefined initial condition while θ=2π is refined — and the `PeriodicBC` check
596+
rejects it. Its premise was weak regardless (drift ~ reltol = 1e-10, orders below the observed
597+
floor). Recorded as inconclusive, with a constraint for Phase 2: **whatever points are evaluated,
598+
the periodic closure must be preserved.**
599+
600+
**Phase 1 verdict: proceed.** `dtmax` is a brute-force proxy — it forces 2000 steps per surface and
601+
still leaves finite resample error. The Phase 2 fix evaluates *exactly* at the target abscissae, so
602+
the resample error at the output nodes is zero rather than merely small, and it does not force
603+
extra steps.
604+
564605
## Implications / ranked follow-ups
565606

566607
1. **Use the two-pass auto grid** (`mpsi=0`, `psi_accuracy`) — already the example default; it

0 commit comments

Comments
 (0)