desc.coils.FourierPlanarCoil.from_values
- classmethod FourierPlanarCoil.from_values(current, coords, N=10, basis='xyz', name='')Source
Fit coordinates to FourierPlanarCoil representation.
- Parameters:
current (float) – Current through the coil, in Amperes.
coords (ndarray, shape (num_coords,3)) – Coordinates to fit a FourierPlanarCurve object with each column corresponding to xyz or rpz depending on the basis argument.
N (int) – Fourier resolution of the new r representation.
basis ({"rpz", "xyz"}) – Basis for input coordinates. Defaults to “xyz”.
name (str) – Name for this curve.
- Returns:
curve (FourierPlanarCoil) – New representation of the coil parameterized by a Fourier series for r.