desc.coils.FourierXYZCoil.from_values
- classmethod FourierXYZCoil.from_values(current, coords, N=10, s=None, basis='xyz', name='')Source
Fit coordinates to FourierXYZCoil representation.
- Parameters:
current (float) – Current through the coil, in Amps.
coords (ndarray) – Coordinates to fit a FourierXYZCoil object with.
N (int) – Fourier resolution of the new X,Y,Z representation. default is 10
s (ndarray) – arbitrary curve parameter to use for the fitting. Should be monotonic, 1D array of same length as coords if None, defaults to normalized arclength
basis ({"rpz", "xyz"}) – basis for input coordinates. Defaults to “xyz”
- Returns:
coil (FourierXYZCoil) – New representation of the coil parameterized by Fourier series for X,Y,Z.