Commit 0c17097
FFS - IMPROVEMENT - Ground the density cap in the Frobenius scale and protect rationals
Reframes the cap as log-uniform sampling of the Frobenius region: near the axis every
component is a power law in psi, and cubic interpolation of psi^p on a log-uniform
grid errs by ~(p*c)^4/384, so c = 0.05 resolves even the steepest spectrum component
(p = mmax/2) to ~2e-4 while the physics responds far below that.
Two generalization guards, motivated by cross-equilibrium testing: the capped region
now ends at the innermost rational surface when that sits inside psi = 0.1, and no
knot inside a rational's RATIONAL_RES_RADIUS window is ever removed -- preserving the
Delta'-stencil structure for decks (e.g. higher n) whose rationals reach the core.
Both guards are no-ops on every current case, verified: DIII-D m512 and Solovev m512
reproduce the previous cap's step counts and knot sets exactly.
Cross-equilibrium check of the rule itself: tj_analytic_direct m1024 (analytic,
traced) 1470 -> 959 steps at et[1] 1.3e-9; LAR m1024 (inversion path, clean geometry)
951 -> 875 at et[1] identical to 8 digits; Solovev ldp m512/m1024 ~unchanged steps at
~4.5e-7 absolute et[1] shift (a +-10.4 cancellation amplifies this to 3e-5 relative).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent a737b3d commit 0c17097
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
503 | 514 | | |
504 | 515 | | |
505 | 516 | | |
506 | | - | |
| 517 | + | |
507 | 518 | | |
508 | 519 | | |
509 | 520 | | |
| |||
0 commit comments