Skip to content

DCON - BUG FIX - Use the safety factor at the retained boundary - #372

Draft
krystophny wants to merge 1 commit into
PrincetonUniversity:developfrom
itpplasma:fix/dcon-boundary-safety-factor
Draft

krystophny wants to merge 1 commit into
PrincetonUniversity:developfrom
itpplasma:fix/dcon-boundary-safety-factor

Conversation

@krystophny

Copy link
Copy Markdown
Collaborator

When the profile maximum exceeds the safety factor at the requested outer flux, DCON can pair that flux with the maximum. GPEC then uses different safety factors to convert normal field to displacement and back at one surface. Boundary selection

Use the safety factor at the outer flux when retaining the boundary. With rational-surface truncation disabled, a qhigh value at or above the edge safety factor leaves that boundary in place. Change

The Fortran regression fails for the unpatched reversed-shear profile. It passes with default qhigh, with qhigh between the edge and the maximum, and with an explicit truncation on a linear profile. The circular fixed-boundary test recovers the prescribed normal harmonic, from 33.3203 to 100.0000 μT.

Last radial normal-field harmonic at the circular boundary, with a 100 μT input

Fixes #371. The rational-surface truncation search in #363 is independent of this regression.

Chris&AI

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DCON writes the peak safety factor at an untruncated boundary

1 participant