Skip to content

Describe b0 as the on-axis R B_phi over the axis major radius at phi = 0 - #838

Open
CharlesCNorton wants to merge 1 commit into
proximafusion:mainfrom
CharlesCNorton:wout-b0-docstring
Open

Describe b0 as the on-axis R B_phi over the axis major radius at phi = 0#838
CharlesCNorton wants to merge 1 commit into
proximafusion:mainfrom
CharlesCNorton:wout-b0-docstring

Conversation

@CharlesCNorton

Copy link
Copy Markdown
Contributor

Change - the VmecWOut.b0 docstring says what the field holds: the on-axis R B_phi (rbtor0) divided by the major radius of the magnetic axis at phi = 0, which is the field strength on the axis only for a planar circular axis.

Cause - it read "Magnetic field magnitude on the magnetic axis". b0 is fpsi0 / r_00 in output_quantities.cc, with fpsi0 the half-grid bvco extrapolated to the axis and r_00 the axis R at the first grid point, as eqfor.f computes it; on a non-planar axis neither is the field there.

Evidence - pyQSC's r2 section 5.4 quasi-helical configuration (B0 = 1, nfp 4, axis R from 0.847 to 1.190) solved at ns 201: |B| on the axis is 1.0000 within 6e-4 at every toroidal angle, rbtor0 is 1.2009, which is B0 times the axis length over 2 pi (1.2009), the axis R at phi = 0 is 1.1895, and b0 is 1.0096.

Scope - docstring only.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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