desc.magnetic_fields.CurrentPotentialField.from_input_file

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

Create a surface 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 FourierRZToroidalSurface being created.

Returns:

surface (FourierRZToroidalSurface) – Surface with given Fourier coefficients.