Do not scale or clip Pereverzev-Corrigan stabilization coefficients in ADAPTIVE_TRANSPORT mode. - #2496
Open
copybara-service[bot] wants to merge 1 commit into
Open
Do not scale or clip Pereverzev-Corrigan stabilization coefficients in ADAPTIVE_TRANSPORT mode.#2496copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…n ADAPTIVE_TRANSPORT mode. In `PedestalModelOutput.modify_core_transport`, `_scale_coeffs` clips and scales down the 4 standard diffusive/convective channels (`chi_face_ion`, `chi_face_el`, `d_face_el`, `v_face_el`) while leaving the Pereverzev inward counter-pinch heat convection channels (`full_v_heat_face_ion`, `full_v_heat_face_el`) untouched. Applying `_scale_coeffs` to `core_transport.pereverzev` breaks the exact zero-net-flux cancellation of the Pereverzev-Corrigan preconditioner inside the H-mode pedestal, injecting an unphysical inward heat pinch in `initial_guess_mode="linear"` and predictor-corrector steps. Remove `modified_pereverzev = _scale_coeffs(core_transport.pereverzev)` and pass `core_transport.pereverzev` directly in `PedestalModelOutput.modify_core_transport`. This preserves exact Pereverzev flux cancellation across the entire plasma and reduces `test_iterhybrid_lh_transition` solver steps from 631 to 86 (outer solver iterations from 1,226 to 120; inner solver iterations from 7,458 to 959) while producing identical converged profiles (mean relative difference 0.019% on T_i, 0.013% on T_e, 0.016% on W_thermal_total). PiperOrigin-RevId: 985373534
copybara-service
Bot
force-pushed
the
test_985373534
branch
from
September 24, 2026 21:31
0cdb671 to
074c222
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Do not scale or clip Pereverzev-Corrigan stabilization coefficients in ADAPTIVE_TRANSPORT mode.
In
PedestalModelOutput.modify_core_transport,_scale_coeffsclips and scales down the 4 standard diffusive/convective channels (chi_face_ion,chi_face_el,d_face_el,v_face_el) while leaving the Pereverzev inward counter-pinch heat convection channels (full_v_heat_face_ion,full_v_heat_face_el) untouched. Applying_scale_coeffstocore_transport.pereverzevbreaks the exact zero-net-flux cancellation of the Pereverzev-Corrigan preconditioner inside the H-mode pedestal, injecting an unphysical inward heat pinch ininitial_guess_mode="linear"and predictor-corrector steps.Remove
modified_pereverzev = _scale_coeffs(core_transport.pereverzev)and passcore_transport.pereverzevdirectly inPedestalModelOutput.modify_core_transport. This preserves exact Pereverzev flux cancellation across the entire plasma and reducestest_iterhybrid_lh_transitionsolver steps from 631 to 86 (outer solver iterations from 1,226 to 120; inner solver iterations from 7,458 to 959) while producing identical converged profiles (mean relative difference 0.019% on T_i, 0.013% on T_e, 0.016% on W_thermal_total).