Purpose: An automated algorithm for generating realizable MR gradient and shim coil layouts based on the boundary element method is presented here. The overall goal is to reduce postprocessing effort and thus enable for rapid prototyping of new coil designs. For a given surface mesh and target field, the algorithm generates a connected, non-overlapping wire path. Methods: The proposed algorithm consists of several steps: Stream function optimization, two-dimensional surface projection, potential discretization, topological contour sorting, opening and interconnecting contours, and finally adding non-overlapping return paths. Several technical parameters such as current strength, inductance and field accuracy are assessed for quality control.
Results:The proposed method is successfully demonstrated in four different examples. All exemplary results demonstrate high accuracy with regard to reaching the respective target field. The optimal discretization for a given stream function is found by generating multiple layouts while varying the input parameter values.
Conclusion:The presented algorithm allows for a rapid generation of interconnected coil layouts with high flexibility and low discretization error. This enables to reduce the overall post-processing effort. The source code of this work is publicly available (https://github.com/Philipp-MR/CoilGen).