desc.vmec.VMECIO
- class desc.vmec.VMECIOSource
Performs input from VMEC netCDF files to DESC Equilibrium and vice-versa.
Methods
compute_coord_surfaces(equil, vmec_data[, ...])Compute points on surfaces of constant rho, vartheta for both DESC and VMEC.
compute_theta_coords(lmns, xm, xn, s, ...[, ...])Find θ (theta_DESC) for given PEST straight field line ϑ (theta_star).
load(path[, L, M, N, spectral_indexing, profile])Load a VMEC netCDF file as an Equilibrium by fitting with Fourier-Zernike.
plot_vmec_comparison(equil, vmec_data[, Nr, Nt])Plot a comparison to VMEC flux surfaces.
read_vmec_output(fname)Read VMEC data from wout NetCDF file.
save(eq, path[, surfs, M_nyq, N_nyq, ...])Save an Equilibrium as a netCDF file in the VMEC format.
vmec_interpolate(Cmn, Smn, xm, xn, theta, phi)Interpolate VMEC data on a flux surface.
write_vmec_input(eq, fname[, header])Write a VMEC input file for an equivalent DESC equilibrium.