Update Ip in core_profiles before controller#1038
Conversation
|
@orso82 It looks like the flapping is related to how the sources get defined between a "transport step" and a "current diffusion" step. I see in the DIII-D case that you just plot every other step, which eliminates that visually. @jmcclena seems to recall you "fixing" this flapping issue in the past. Any insight? Separately, I'm working on the flux-matching issue. |
|
The flapping and the flux matching were both predominantly caused by the fusion power bug in IMAS (ProjectTorreyPines/IMAS.jl#289). The run was correct, but the fusion power was deleted from the With these IMAS fix and the changes in this PR, plus using |
|
These changes were included in #1045 |

A user pointed out that the time_dependent_iter.ipynb fails. After a few time steps, the plasma current was going negative leading to an equilibrium solve failure. I was able to bisect the offending commit to 749eb09. Claude thinks the issues is that
cp1d.j_totalis not being set inside the time loop, so the controller never sees the plasma current updating, which makes sense to me. This is meant to fix that. I also found, for speed, I need to use :broyden or :simple_dfsane for the FluxMatcher. That said, there are still issues:I'll have to look into this more, but any insight or recommendations @orso82 ?