hiddenSymmetries / simsopt

Simons Stellarator Optimizer Code
https://simsopt.readthedocs.io
MIT License
83 stars 43 forks source link

Spec refactoring/improvement (PR 1 of 3 for single-stage) #416

Closed smiet closed 1 month ago

smiet commented 1 month ago

Updates to Spec and NormalField and a few helper functions .

Spec class has been updated with the following features:

The NormalField class has been augmented to:

The Surface base class has two methods: fourier_transform_field and inverse_fourier_transform_field to efficiently calculate fourier transforms in the VMEC convention (-ntor to ntor toroidal components, 0:mpol poloidal). Allows for different Fourier normalization conventions through the 'normalization' parameter.

This is PR 1 of 3, the following two: