desc.geometry.FourierRZCurve.from_values
- classmethod FourierRZCurve.from_values(coords, N=10, NFP=1, sym=False, basis='rpz', name='')Source
Fit coordinates to FourierRZCurve representation.
- Parameters:
coords (ndarray, shape (num_coords,3)) – coordinates to fit a FourierRZCurve object with each column corresponding to xyz or rpz depending on the basis argument.
N (int) – Fourier resolution of the new R,Z representation.
NFP (int) – Number of field periods, the curve will have a discrete toroidal symmetry according to NFP.
sym (bool) – Whether to enforce stellarator symmetry.
basis ({"rpz", "xyz"}) – basis for input coordinates. Defaults to “rpz”
name (str) – Name for this curve.
- Returns:
curve (FourierRZCurve) – New representation of the curve parameterized by Fourier series for R,Z.