desc.coils.FourierRZCoil.from_input_file

classmethod FourierRZCoil.from_input_file(path, **kwargs)Source

Create a axis curve from Fourier coefficients in a DESC or VMEC input file.

Parameters:
  • path (Path-like or str) – Path to DESC or VMEC input file.

  • **kwargs (dict, optional) – keyword arguments to pass to the constructor of the FourierRZCurve being created.

Returns:

curve (FourierRZToroidalCurve) – Axis with given Fourier coefficients.