{'fraction_non_alphanumeric': 0.018898931799506986, 'fraction_numerical': 0.004108463434675432, 'mean_word_length': 5.310880829015544, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
MAGFOR: a magnetics code to calculate field and forces in twisted helical coils of constant cross section

The machine-independent computer program MAGFOR calculates electromagnetic fields and forces in coil systems of arbitrary geometry. The coils may be modeled by using 20-node isoparametric hexahedrons; 8-node rectangular cross-sectional straight segments; rectangular cross-sectional circular arcs; and/or filamenting circular loops. A combination of analytical and numerical integration of the Biot-Savart law for a volume distribution of current is used for calculating magnetic fields. Volumetric body forces are calculated for the 20-node isoparametric brick by numerically integrating the vector product J x B over its volume, where the magnetic field at each Gauss point is obtained by interpolating the magnetic field at the node points by using shape functions. The force is distributed to the node points of the element, again using the shape functions in a consistent manner that maintains inter-element torsion. Body forces obtained from MAGFOR are compared with body forces from the computer code EFFI for several coil configurations considered in the design of the Advanced Toroidal Facility (ATF).