Skip to content

rescale vacuum b0 and prevent b drift in coupled simulations - #2865

Open
mikesndrs wants to merge 3 commits into
google-deepmind:mainfrom
mikesndrs:bugfix/rescale_vacuum_b0
Open

mikesndrs wants to merge 3 commits into
google-deepmind:mainfrom
mikesndrs:bugfix/rescale_vacuum_b0

Conversation

@mikesndrs

Copy link
Copy Markdown
Contributor

The IMAS output wrote vacuum_toroidal_field.r0 = R_major and b0 at each slice's R_major. When R_major changes over time, this gives an inconsistent multi-slice IDS (r0 comes from the first slice only), and coupled codes that keep a fixed r0 slowly lose the vacuum field. Geometry now keeps the input reference radius as an optional r0_vacuum, filled by the IMAS loader, and both the equilibrium and core_profiles outputs write b0 at that r0, or at the first slice's R_major if none was given, with r0·b0 unchanged.

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