You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logic when creating the basis modes for fitting a Dommaschk potential to a given magnetic field is cumbersome, especially when the field is stellarator symmetric, involving nested for loops and conditionals. It would be better to re-arrange things and refactor to use numpy where statements instead.
Further, it might be that if the field periodicity is known, that only ms which are multiples of NFP are needed, which should also be enforced in the fitting. Currently the fitting includes every l,m up to the specified max l and m.
The text was updated successfully, but these errors were encountered:
dpanici
changed the title
Improve logic for Dommaschk potential fitting when it is known the field is stellarator symmetric
Improve logic for Dommaschk potential fitting
Mar 6, 2024
dpanici
added
P2
Medium Priority, not urgent but should be on the near-term agend
and removed
low priority
Nice to have, but not needed right away
labels
Nov 11, 2024
The logic when creating the basis modes for fitting a Dommaschk potential to a given magnetic field is cumbersome, especially when the field is stellarator symmetric, involving nested for loops and conditionals. It would be better to re-arrange things and refactor to use numpy where statements instead.
Further, it might be that if the field periodicity is known, that only
ms
which are multiples ofNFP
are needed, which should also be enforced in the fitting. Currently the fitting includes every l,m up to the specified max l and m.The text was updated successfully, but these errors were encountered: