desc.coils.MixedCoilSet.to_FourierXY
- MixedCoilSet.to_FourierXY(N=10, grid=None, s=None, basis='xyz', name='', check_intersection=True)Source
Convert all coils to FourierXYCoil.
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 FourierXYCoil representation.
grid (Grid, int or None) – Grid used to evaluate curve coordinates on to fit with FourierXYCoil. If an integer, uses that many equally spaced points.
s (ndarray or "arclength") – Arbitrary curve parameter to use for the fitting. Should be monotonic, 1D array of same length as coords. if None, defaults linearly spaced in [0,2pi) Alternative, can pass “arclength” to use normalized distance between points.
basis ({'xyz', 'rpz'}) – Coordinate system for center and normal vectors. Default = ‘xyz’.
name (str) – Name for this coilset.
check_intersection (bool) – Whether or not to check the coils in the new coilset for intersections.
- Returns:
coilset (CoilSet) – New representation of the coilset parameterized by Fourier series for the X & Y coordinates in a plane specified by a center position and normal vector.