Why does my EQDSK need lower last_surface_factor
?
#809
Replies: 1 comment 10 replies
-
Is it a diverted geometry? Are quantities like surface_FSA_Bpol_squared going down towards zero near the edge? the q_LCFS isn't just a function of current, it also depends on the edge psi_grad which goes like Ip_total / g2g3_over_rhon_face[-1], i.e. the q-profile diverges at the LCFS in diverted geometry. So if something weird is happening with q_LCFS, worth seeing how g2g3_over_rhon_face is calculated. This g2g3_over_rhon_face is formally zero in diverted geometry because part of the flux-surface-average ends up in the infinite toroidal loop where Bpol=0 . I don't recall exactly how that is reflected in EQDSK geometry, but if there is a surface_Bpol~0 somewhere, then that's "bad news" :) , and 0.99 may be too close to that. But having said all that, in your case q is dropping, not diverging. Maybe it's an issue with
? In fact, is that a correct formula? I'd naively expect Edit, the formula is fine (the Bpol in the metric dl/Bpol is cancelled out by the Bpol**2). However, it's still a place worth looking at. About a thin current layer, if that's really the case (how does that arise?) then it should be seen also in Ip_eqdsk |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm parsing STEP eqdsk files from JETTO to run comparisons in TORAX, and I'm finding that I need to reduce the
CONFIG["geometry"]["last_surface_factor"]
from its default value of 0.99 to 0.95.Without this I get strongly reversed q profiles at the edge.
The grid that the ψ profile from the eqdsk is interpolated onto is:
torax/torax/geometry/standard_geometry.py
Lines 686 to 690 in 3ea75f5
So this looks like decreasing
last_surface_factor
moves the effective LCFS further inside the true LCFS.I'd like to understand a bit more the reasons behind why this needs to be done in my case. I think it might be because STEP has a thin layer of extremely high current at its edge.
For reference, the eqdsk file that I'm reading looks something like this, from Mitchell et al 2023:

Tagging @fusionby2030 as he is an EQDSK wizard.
Beta Was this translation helpful? Give feedback.
All reactions