Dataset for "A novel scheme for error field correction in permanent magnet stellarators" A. Rutkowski, et al. This directory contains the datasets used to generate plots in the attached paper, as follows: Figure_01 - Magnet Cubes around vacuum vessel, with TF coils. --------- Files containing the coordinates for the magnet arrangement as well as the plasma surface, vacuum vessel, and toroidal field coils. The matlab script Figure1_Final.m is run to plot the figure. The files magpie_trial99c_halfPeriod_corners.csv and magpie_trial99c_ec_halfPeriod_corners.csv contain the coordinates for vertices of the main and error correcting magnets pictured in Figure 1, respectively. Note that the file qhex.m contains documentation for these input file types, and can be used as a reference for the following figures as well. Figure_03 - Visualization of example Displacements --------- As this figure is for visualization purposes only, and the specific images shown are not used in the runs of figure 04, the data for their generation is omitted here. Figure_04 --------- This plot is generated from several hundred MAGPIE runs, the outputs of which are contained in the attached zipped folders. The file all_h5_initial.zip contains the files read to obtain a baseline error value after perturbations are applied to the magnets. The file mc_corr_all_h5.zip contains the files read to obtain the error values after correction with all available error correction magnets. The file single_layer_h5.zip contains the files read to obtain error values after the single layer correction array is applied. The plot shown can be generated by running the attached Jupyter python notebook read_h5_files_Figure04.ipynb. Note that the python library coilpy (https://pypi.org/project/coilpy/) is needed to run this script. Figure_05 - Sensitivity of resonant errors to displacements of magnets in radial direction --------- The .focus file data contains coordinates for the magnets depicted. The .csv files contain values for the sensitivity of the resonant error to the displacement of each magnet in the major radial direction for the (3,5), (3,6), and (3,7) cases in units of T^2/A. Further documentation of the other items listed in the .focus file can be found in: https://princetonuniversity.github.io/FOCUS/famus.html. Outputs are from code in reference [17]. Figure_06 - Example array correcting a specified amount of resonant error --------- The foreground magnets are selected based on the sensitivities measured, and the file correction_ec_l1o0_corners_trim_1pct_3_5.csv contains the coordinates for the magnets indicated. These magnets are then plotted using the script Figure_06.m. The file labeled magpie_trial99c_halfp_3mm_pos_phi_corners.csv includes the coordinates for magnet cubes in the main magnet array. Figure_07 --------- The ratios of the sensitivities of different magnets are provided in ratio_3_6.csv and ratio_3_7.csv, ordered to align with the coordinates provided in the .focus file for the main magnet arrangement, halfp_main_ec_l1o0_main.focus. The plot can be produced using the file Figure_07.m. code_for_renderings --------- This directory contains files containing coordinates for the last closed flux surface of the plasma Equilibrium, as well as the vacuum vessel and TF coils. This is used in several of the Matlab plotting scripts included in the other directories. qhex.m --------- This Matlab script is used to plot the magnet arrangements in the subdirectories for each image. For additional information please contact ar49@princeton.edu.