-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dommaschk Potential Miscellaneous Fixes and Improvements (#961)
- Adds `NFP` to fitting function, so that only dommaschk potential modes with the corresponding discrete symmetry are included in the fit -Changes `0**0` derivative trick to use double where, as it seems that the prior fix was causing some issues with the evaluation at Z=0 <img width="459" alt="image" src="https://github.com/PlasmaControl/DESC/assets/37969854/ac3ab268-2403-4ada-b7a0-cb34e0c28f3f"> Fitted toroidal B from an elliptical vacuum equilibrium at rho=0.5 along a curve of constant theta (Z=0 at the first point) The first point B is way off for some reason when the check and replace for `0**0` was present, but when removed this error vanishes (really am unsure of why this fix works but the proof is in the result) <img width="459" alt="image" src="https://github.com/PlasmaControl/DESC/assets/37969854/dc17a687-64c7-45a2-91d0-47a54f1e4b4f"> same plot but after removing those lines where we check for 0**0 and replace the exponent with 1. Resolves #960 Resolves #946
- Loading branch information
Showing
2 changed files
with
21 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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