spectre.converters

Module Contents

spectre.converters.vmec2spectre(vmec_obj, tfluxes=None, nvol=None, plot=False, mpol=6, ntor=5, current_mode='volume', filename='gen.toml')

Generates a SPECTRE input .toml file using VMEC ‘input.*’ or ‘wout_*’ file. Sets up pressure prof, iota/current profile, and the plasma boundary. For the current-based case, it’s possible to use either Ivolume integrated volume currents in spectre (current_mode=’volume’) or Isurf sheet currents (current_mode=’sheet’). The profiles are normalized such that the total current matches VMEC.