Skip to content

Take bu0 at its own half-grid surface in the asymmetric current harmonics - #26

Open
CharlesCNorton wants to merge 1 commit into
jonathanschilling:masterfrom
CharlesCNorton:fix/compute-currents-shalf
Open

Take bu0 at its own half-grid surface in the asymmetric current harmonics#26
CharlesCNorton wants to merge 1 commit into
jonathanschilling:masterfrom
CharlesCNorton:fix/compute-currents-shalf

Conversation

@CharlesCNorton

@CharlesCNorton CharlesCNorton commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #23.

bu0 is the covariant B_theta harmonic at surface js, so it divides by shalf(js). bv0 on the next line and bu0 in the stellarator-symmetric branch above already do; only the asymmetric bu0 used shalf(js+1). ORNL-Fusion/LIBSTELL read_wout_mod.f90 carries shalf(js) here.

Checked with input.cth_like_fixed_bdy_asym (VMEC++ test data) built with and without this one index: currvmns in the wout changes by 0.72 of its maximum, and every other variable in the file is unchanged bit for bit. bu0 enters t2, which enters only currvmns, so nothing else can move. A stellarator-symmetric run does not reach this branch.

VMEC++ takes the inner surface here too, at output_quantities.cc:5498.

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.

Compute_Currents divides bu0 by shalf(js+1) in the asymmetric branch

1 participant