desc.coils.MixedCoilSet.to_FourierPlanar

MixedCoilSet.to_FourierPlanar(N=10, grid=None, basis='xyz', name='', check_intersection=True)Source

Convert all coils to FourierPlanarCoil representation.

Note that some types of coils may not be representable in this basis. In this case, a least-squares fit will be done to find the planar coil that best represents the coil.

Parameters:
  • N (int) – Fourier resolution of the new FourierPlanarCoil representation.

  • grid (Grid, int or None) – Grid used to evaluate curve coordinates on to fit with FourierPlanarCoil. If an integer, uses that many equally spaced points.

  • basis ({'xyz', 'rpz'}) – Coordinate system for center and normal vectors. Default = ‘xyz’.

  • name (str) – Name for the new MixedCoilSet.

  • check_intersection (bool) – Whether or not to check the coils in the new coilset for intersections.

Returns:

coilset (MixedCoilSet) – New representation of the coilset parameterized by a Fourier series for minor radius r in a plane specified by a center position and normal vector.