desc.coils.FourierRZCoil.save_mgrid
- FourierRZCoil.save_mgrid(path, Rmin, Rmax, Zmin, Zmax, nR=101, nZ=101, nphi=90)Source
Save the magnetic field to an mgrid NetCDF file in “raw” format.
- Parameters:
path (str) – File path of mgrid file to write.
Rmin (float) – Minimum R coordinate (meters).
Rmax (float) – Maximum R coordinate (meters).
Zmin (float) – Minimum Z coordinate (meters).
Zmax (float) – Maximum Z coordinate (meters).
nR (int, optional) – Number of grid points in the R coordinate (default = 101).
nZ (int, optional) – Number of grid points in the Z coordinate (default = 101).
nphi (int, optional) – Number of grid points in the toroidal angle (default = 90).
- Returns:
None