desc.vmec.VMECIO.save
- classmethod VMECIO.save(eq, path, surfs=128, *, M_nyq=None, N_nyq=None, M_grid=None, N_grid=None, verbose=1)Source
Save an Equilibrium as a netCDF file in the VMEC format.
- Parameters:
eq (Equilibrium) – Equilibrium to save.
path (str) – File path of output data.
surfs (int) – Number of flux surfaces to interpolate at (Default = 128).
M_nyq (int) – The max poloidal and toroidal mode numbers to use in the Nyquist spectrum that the derived quantities are Fourier fit with. Defaults to M+4 and N+2.
N_nyq (int) – The max poloidal and toroidal mode numbers to use in the Nyquist spectrum that the derived quantities are Fourier fit with. Defaults to M+4 and N+2.
M_grid (int) – The max poloidal and toroidal resolution of the grid to evaluate quantities in real space. Related to the VMEC inputs NTHETA and NZETA. Defaults to eq.M_grid and eq.N_grid.
N_grid (int) – The max poloidal and toroidal resolution of the grid to evaluate quantities in real space. Related to the VMEC inputs NTHETA and NZETA. Defaults to eq.M_grid and eq.N_grid.
verbose (int) – Level of output (Default = 1). * 0: no output * 1: status of quantities computed * 2: as above plus timing information
- Returns:
None