freegs.geqdsk.write

Contents

freegs.geqdsk.write#

freegs.geqdsk.write(eq, fh, label=None, oxpoints=None, fileformat=<function write>)[source]#

Write a GEQDSK equilibrium file, given a FreeGS Equilibrium object

Parameters:
  • eq – Equilibrium object

  • fh – file handle

  • label – Text label to put in the file

  • oxpoints – O- and X-points (opoint, xpoint) returned by critical.find_critical. If not given, it will be calculated using critical.find_critical