Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full optimization to refit MXH coefficients #48

Open
bclyons12 opened this issue Aug 11, 2023 · 0 comments
Open

Full optimization to refit MXH coefficients #48

bclyons12 opened this issue Aug 11, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bclyons12
Copy link
Member

bclyons12 commented Aug 11, 2023

I've often thought that rather than doing some pointwise fitting of the MXH coefficients, we should just optimize directly on the fit of the coefficients with the cost as the Ψ at the points. This has been quite slow because Ψ(R, Z) is expensive in TEQUILA and this will be high dimensional. It's possible that a good initial guess might make it worth while. A possible way to do this is to use shifted surfaces that move the old flux surfaces to be centered at the new magnetic axis, while keeping the rest of the coefficients fixed (not concentric with the boundary). To do this, you need to find where the vector between the old axis and new axis intersects the boundary, then shift the surfaces so they keep the same fractional difference to that intersecting point. This prevents any overlapping of surfaces. Then these shifted surfaces serve as your initial guess for the optimize. This might be a little slow for the first few steps, but could wind up converging very rapidly. Needs testing.

@bclyons12 bclyons12 added the enhancement New feature or request label Aug 11, 2023
@bclyons12 bclyons12 self-assigned this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant