simsopt.configs package

simsopt.configs.get_giuliani_data(Nt_coils=16, Nt_ma=10, ppp=10, length=18, nsurfaces=5)

This example simply loads the coils after the nine stage optimization runs discussed in

  1. Giuliani, F. Wechsung, M. Landreman, G. Stadler, A. Cerfon, Direct computation of magnetic surfaces in Boozer coordinates and coil optimization for quasi-symmetry. Journal of Plasma Physics.

Parameters:
  • Nt_coils – order of the curves representing the coils.

  • Nt_ma – order of the curve representing the magnetic axis.

  • ppp – point-per-period: number of quadrature points per period

Returns: 3 element tuple containing the coils, currents, and the magnetic axis.

simsopt.configs.get_hsx_data(Nt_coils=16, Nt_ma=10, ppp=10)

Get a configuration that corresponds to the modular coils of the HSX experiment.

Parameters:
  • Nt_coils – order of the curves representing the coils.

  • Nt_ma – order of the curve representing the magnetic axis.

  • ppp – point-per-period: number of quadrature points per period

Returns: 3 element tuple containing the coils, currents, and the magnetic axis.

simsopt.configs.get_ncsx_data(Nt_coils=25, Nt_ma=10, ppp=10)

Get a configuration that corresponds to the modular coils of the NCSX experiment (circular coils are not included).

Parameters:
  • Nt_coils – order of the curves representing the coils.

  • Nt_ma – order of the curve representing the magnetic axis.

  • ppp – point-per-period: number of quadrature points per period

Returns: 3 element tuple containing the coils, currents, and the magnetic axis.

simsopt.configs.get_w7x_data(Nt_coils=48, Nt_ma=10, ppp=2)

Get the W7-X coils and magnetic axis.

Note that this function returns 7 coils: the 5 unique nonplanar modular coils, and the 2 planar (A and B) coils. The coil currents returned by this function correspond to the “Standard configuration”, in which the planar A and B coils carry no current.

The coils shapes here came from Fourier-transforming the xgrid input file coils.w7x_v001, obtained from Joachim Geiger in an email to Florian Wechsung and others on Sept 27, 2022. With 96 quadrature points, the Fourier modes here reproduce the Cartesian coordinate data from coils.w7x_v001 to ~ 1e-13 meters. Some description from Joachim:

“I have attached two coils-files which contain the filaments suitable for generating the mgrid-file for VMEC with xgrid. They contain the non-planar and the planar coils in a one-filament approximation as used here for equilibrium calculations. The two coil-sets are slightly different with respect to the planar coils (the non-planar coil geometry is the same), the w7x_v001 being the CAD-coil-set while the w7x-set has slightly older planar coils which I had used in a large number of calculations. The difference is small, but, depending on what accuracy is needed, noticeable. In case you want only one coil-set, I would suggest to use the CAD-coils, i.e. w7x_v001, although the other coil-set had been used in the PPCF-paper for citation. If there are any further questions, do not hesitate to contact me.”

Parameters:
  • Nt_coils – order of the curves representing the coils.

  • Nt_ma – order of the curve representing the magnetic axis.

  • ppp – point-per-period: number of quadrature points per period.

Returns: 3 element tuple containing the coils, currents, and the magnetic axis.