desc.coils.SplineXYZCoil.to_FourierXY
- SplineXYZCoil.to_FourierXY(N=10, grid=None, s=None, basis='xyz', name='', **kwargs)Source
Convert Coil to FourierXYCoil 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 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 coil.
- Returns:
coil (FourierXYCoil) – New representation of the coil parameterized by Fourier series for the X and Y coordinates in a plane specified by a center position and normal vector.