Repository navigation
Lower the radial power of the initial guess when no axis avoids a fold - #33
Merged
Merged
Conversation
Strongly shaped boundaries such as STELLOPT's belt pinches fold over near the edge for every axis when each mode enters the initial guess like rho^m. The new option init_low_radial_power scales modes m >= 2 like rho^2 (even) or rho^3 (odd) instead, and pygvec run tries it, with a matching guessed axis, after the guessed axis alone has failed.
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.
Strongly shaped boundaries, such as STELLOPT's belt-pinch and
m45.OHseriesdecks, fold over near the edge in GVEC's initial guess whatever the axis. The cause is that each boundary mode enters the guess like rho^m, so at the edge the radial derivative is dominated by the high-m modes. For these decks #31's axis guess is not enough.init_low_radial_power(defaultFalse, so existing runs are unchanged): modes with m >= 2 enter the initial guess like rho^2 (even m) or rho^3 (odd m). The parity keeps them regular at the axis.gvec.util.guess_axisuses the same power when the option is set.pygvec runtries the option, with a matching guessed axis, after the guessed axis alone has failed. That makes the sequence: given axis, guessed axis, guessed axis with the lower power.Checks:
guess_axisevaluated per plane.test_run_lowers_radial_power_after_bad_jacobian(the belt20 boundary) fails without the change and passes with it.test_init_average_axis.pypasses 14/14.Chris&AI