-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model to keep q>1 in stationary transport #785
base: master
Are you sure you want to change the base?
Conversation
@bclyons12 Do you know if eta needs to be updated in the dd to get the correct flux consumption? |
I do not. I'd just have to look at how and wear the flux consumption is calculated. I'll look this over next week. |
@jmcclena I wonder if we could extend this to time-dependent QED, using the q-profile at the previous time-slice to inform if the conductivity profile should be flattened. |
For time-dependent, I think it might be better to flatten the profiles directly like this: function flatten(prof, rad, vol, width, i_inversion)
prof_tanh = 0.5 .* tanh.(-(rad .- rad[i_inversion]) ./ width) .+ 0.5
en = IMAS.integrate(vol, prof)
en_tanh = IMAS.integrate(vol,prof_tanh)
prof_cut = deepcopy(prof)
prof_cut[1:i_inversion] .= prof_cut[i_inversion]
en_cut = IMAS.integrate(vol,prof_cut)
prof_new = prof_cut .+ (en .- en_cut) ./ en_tanh .* prof_tanh
return prof_new
end Then we can flatten the profiles based on some condition (say q0<0.9) on the Jt step, taking half steps of the temperature/density profiles to keep things in sync. |
@jmcclena @bclyons12 looking more into this, what should happen to the non-inductive current inside of the inversion radius? I wonder if that non-inductive current get redistributed inside the inversion radius, perhaps using the same |
I know that bootstrap current relaxes on the electron collision time, though I'm not sure what happens if there's large MHD that's redistributing particles anyway. Nor do I know how other noninductive sources should behave. |
This pull request implements Jardin's model for stationary sawteeth to raise q>1.
Example run