Skip to content

Preserve Boozer profiles across field periods - #542

Merged
krystophny merged 1 commit into
mainfrom
fix/chartmap-field-period-profile
Nov 23, 2026
Merged

krystophny merged 1 commit into
mainfrom
fix/chartmap-field-period-profile

Conversation

@krystophny

Copy link
Copy Markdown
Member

Preserve the physical Boozer current coefficient (G = \mu_0 J_{\rm pol}/(2\pi)) and the flux-surface volume when a perturbation changes the field-period count during radial resampling. Here (J_{\rm pol}) is the poloidal current and (\mu_0) the vacuum permeability.

The resampling path copied profiles normalized to the source period into a file with the output period count. This scaled (G) by the output count divided by the source count. The change rescales both per-period profiles by the inverse ratio. Profile conversion

xychart-beta
    title "Two-field-period chartmap"
    x-axis ["Before", "Corrected", "Analytic"]
    y-axis "G (T m)" 0 --> 0.22
    bar [0.20, 0.10, 0.10]
Loading

The synthetic regression checks both radial interpolation paths and the exported covariant toroidal field. Native Python tests passed with 18 pass and 2 skip.

Chris&AI

@krystophny
krystophny added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit a9c8b5b Nov 23, 2026
8 checks passed
@krystophny
krystophny deleted the fix/chartmap-field-period-profile branch November 23, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant