BgB vs QLKNN #446
Replies: 5 comments 3 replies
-
There is indeed a bit more QLKNN jitter with the predictor-corrector. You can try the following to smooth things: (i) add some Gaussian smoothing to the transport coefficients, e.g. add Furthermore, you can consider:
Regarding your point (1), I indeed wouldn't be concerned about the bootstrap current differences around rho~0.2. It's very sensitive to the exact temperature and density gradients, and this zone is where the transport model is transitioning to from QLKNN/BgB predicitons to the "inner_patch" region. QLKNN tends to predict no/low transport inside rho<0.3 or so, leading to the Ti sharp gradient in the narrow zone until the inner_patch is reached, which I think is mostly responsible for the j_bs bump. Finally, about point (2). Yes, TORAX V is just convection, so negative V is inward convection ("pinch") and positive V is outward convection. So if in JETTO you have a "pinch term" which is defined positive but actually leads to inward transport, then in TORAX this just needs to be a negative V. |
Beta Was this translation helpful? Give feedback.
-
I've rerun with a bunch of your suggestions (transport model smoothing, nonlinear solver, longer timescales) and plotted with the new plot tools (very nice!). q-profile for QLKNN is a bit dodgy in the core this time around, but that's probably still due to the inner patch. The |
Beta Was this translation helpful? Give feedback.
-
Yeah a current hole is developing in the QLKNN simulation. Probably exasperated by the much higher bootstrap current which is I think also due to the density peaking difference. You can try reducing somewhat fext (external current fraction). That should help with the current hole. Definitely worth checking on the magnitude of BgB pinch term. Note that the pure transport-induced density peaking factor in BgB is not configurable. e.g., in a source-free system R/Lne ~ -RV/D , and the V/D ratio is fixed in the BgB model. So, while it's worth checking the magnitude of V, if we are confident on the ultimate value of V, then what you get for the peaking is what you get. In the end these are very different transport models and even with some tuning there will be a gap. |
Beta Was this translation helpful? Give feedback.
-
I have the following comparison:
Looking at the JETTO code, I'm fairly certain that there aren't any extra conversion factors we're missing, and that the description in Tholerus is correct. |
Beta Was this translation helpful? Give feedback.
-
Would be good to compare say -RV/D with BgB for a couple of different machines, JETTO vs TORAX. I also don't see any issue with the formula. I think we just leave it for now but this really does motivate more stringent benchmarks between JETTO and TORAX, e.g. for the STEP case. |
Beta Was this translation helpful? Give feedback.
-
I'm running the
iterhybrid_predictor_corrector
scenario intorax/examples
, trying to sense-check the Bohm-gyroBohm model against QLKNN. This is one of the first times I've actually run BgB in TORAX in a 'realistic' scenario.This is the comparison so far, after manual twiddling of the BgB parameters (QLKNN in dashed):
It generally looks pretty good, although I'm never sure what behaviour of QLKNN is signal vs noise so don't have 100% trust in my twiddled BgB params. If I was doing this properly I suppose I could try and dig out an ITER BgB simulation...
The only glaring defects are:
rho=0.2
in the BgB model.I'll let someone with more physics knowledge than me tackle (1), as to my knowledge it's not a direct consequence of the BgB vs QLKNN model per se, but may be instead to do with the particular shapes (esp. gradients) in the profiles.
(2) is the question I really want to answer at the moment, because the particle diffusivity and convectivity are properties of the transport model.
Looking at my plot, the density in the core is too low compared to QLKNN, which suggests that my coefficients are too low (the source is off axis, so low coeffs = slower diffusion into the core).
Looking at the QLKNN run vs my run, the
d_face_el
terms are both at their clipped values, but thev_face_el
are noticeably different.In QLKNN, it's negative:
In BgB, it's positive:
My suspicion is that this is a simple sign error. As I was using JETTO as my template for the BgB implementation, I think that the convectivity I implemented is a pinch velocity - am I right in thinking that this means it is inwards? Does TORAX treat
v_face_el
as a pinch term, or is it a general convectivity (ie could be inwards or outwards)?Beta Was this translation helpful? Give feedback.
All reactions