desc.coils.FourierRZCoil.from_values

classmethod FourierRZCoil.from_values(current, coords, N=10, NFP=1, basis='rpz', sym=False, name='')Source

Fit coordinates to FourierRZCoil representation.

Parameters:
  • current (float) – Current through the coil, in Amperes.

  • coords (ndarray, shape (num_coords,3)) – coordinates to fit a FourierRZCurve object with each column corresponding to xyz or rpz depending on the basis argument.

  • N (int) – Fourier resolution of the new R,Z representation.

  • NFP (int) – Number of field periods, the curve will have a discrete toroidal symmetry according to NFP.

  • basis ({"rpz", "xyz"}) – basis for input coordinates. Defaults to “rpz”

  • sym (bool) – Whether to enforce stellarator symmetry.

  • name (str) – Name for this coil.

Returns:

coil (FourierRZCoil) – New representation of the coil parameterized by Fourier series for R,Z.