Skip to content

Preserve asymmetric magnetic axes in Boozer chartmaps - #543

Merged
krystophny merged 1 commit into
mainfrom
fix/boozer-asymmetric-axis
Nov 24, 2026
Merged

krystophny merged 1 commit into
mainfrom
fix/boozer-asymmetric-axis

Conversation

@krystophny

Copy link
Copy Markdown
Member

Boozer chartmap export drops the sine terms of the magnetic-axis major radius and the cosine terms of its height. Previous exporter

Use all four VMEC axis series. For field-period count $N$, VMEC toroidal angle $\phi$ and harmonic index $n$, let $u_n=-nN\phi$. The stored cosine and sine coefficients are $R_n^c,R_n^s,Z_n^c,Z_n^s$. Axis evaluator

$$ R=\sum_n(R_n^c\cos u_n+R_n^s\sin u_n),\qquad Z=\sum_n(Z_n^c\cos u_n+Z_n^s\sin u_n). $$

Maximum axis discrepancy against the VMEC interior limit before and after the correction

The maximum sum of the absolute errors in radius and height against the VMEC interior limit drops from 78.4 to 0.146 mm on the public asymmetric tokamak fixture. The saved axis height agrees with the VMEC file within $10^{-9}$ cm. All six focused native tests pass.

Chris&AI

@krystophny
krystophny enabled auto-merge November 24, 2026 07:25
@krystophny
krystophny added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 6bbfc4a Nov 24, 2026
8 checks passed
@krystophny
krystophny deleted the fix/boozer-asymmetric-axis branch November 24, 2026 08: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