Skip to content

index_no_sawtooth: flatten the bootstrap current with the other sources - #113

Closed
StuartBenjamin wants to merge 1 commit into
ProjectTorreyPines:masterfrom
StuartBenjamin:sawteeth_flatten_bootstrap
Closed

StuartBenjamin wants to merge 1 commit into
ProjectTorreyPines:masterfrom
StuartBenjamin:sawteeth_flatten_bootstrap

Conversation

@StuartBenjamin

Copy link
Copy Markdown

The sawteeth source flattens the non-inductive current inside the inversion radius but leaves out the sources in index_no_sawtooth, which included the bootstrap current. The bootstrap current goes to zero on axis, so the flattened non-inductive current was hollow inside the inversion radius and the ohmic current carried the difference. This drops bootstrap_current (13) from the list, so it is flattened with the other non-inductive sources. Discussed in ProjectTorreyPines/FUSE.jl#1204. This changes results of any run with the sawteeth source on.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bclyons12

Copy link
Copy Markdown
Collaborator

My vague memory is that this was intentional. Sawteeth should flatten the density and temperature, which flatten the bootstrap current, so you don't want to separately flatten this source. The other non-inductive currents do get flattened since it's meant to represent some sawtooth redistribution of the NBI, EC, etc. source.

@StuartBenjamin

StuartBenjamin commented Nov 10, 2026 •

Copy link
Copy Markdown
Author

While I agree with you in general, in FUSE postdictive mode its not always the case that the actual experimental profiles flatten at the same time as the FUSE sawteeth kick in - this can result in quite wonky ohmic current profiles, which are the mirror image of the bootstrap such that their sum is flat.
@nanshi1177 can attest i put the sawtooth flattening as optional in my original FUSE PR but was advised to make it default true, hence this change. Perhaps the simplest way to proceed is to go back to making it optional?

@nanshi1177

Copy link
Copy Markdown
Contributor

@bclyons12 Thanks Brendan for jumping in! I dug through the history: ActorSawteeth originally called both sawteeth_source! and sawteeth_profiles! (4daa626e9, Aug 2025), but the profile flattening was commented out the same day ("sawteeth_profiles! must have slightly higher q to avoid big jumps in bootstrap current", 18bc63ed8), and the commented call was removed in #1045 together with the j_non_inductive flattening in QED. So the intent was right, but today nothing flattens n and T, and the bootstrap stays hollow inside ρ0. Given that, making #1204 optional (as Stuart suggests) seems a reasonable way forward, and re-enabling profile flattening could be a separate discussion.

@StuartBenjamin

Copy link
Copy Markdown
Author

Thanks @bclyons12 and @nanshi1177. Closing in favor of the opt-in ProjectTorreyPines/FUSE.jl#1204 (reopened); flattening n and T inside the inversion radius can be a separate discussion.

@jmcclena

Copy link
Copy Markdown
Member

Okay, we can make it opt-in for now. @StuartBenjamin, can you provide a FUSE postdictive case that has wonky ohmic current profiles?

@StuartBenjamin

StuartBenjamin commented Nov 18, 2026 •

Copy link
Copy Markdown
Author

Sure, @jmcclena: DIII-D 175883, StudyPostdictive with ActorQED and the sawteeth source, without and with flatten_bootstrap. The irregularity this PR was motivated by is more apparent in the non-inductive current (center panel) than the ohmic current (rightmost panel). Without flatten_bootstrap, j_tor goes hollow on axis and QED's q0 jumps (left panel). These runs use FUSE 1.1.5 plus our open FUSE.jl PRs, so they don't rerun on master as is; happy to share the dd.
r113_175883

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.

4 participants