The pyCoilGen project is an open source tool for generating coil winding layouts, such as gradient field coils, within the MRI and NMR environments. pyCoilGen is based on a boundary element method and generates interconnected non-overlapping wire-tracks on 3D support structures.
This Python project is a port of the MATLAB CoilGen code developed by Philipp Amrein.
For detailed documentation, refer to the pyCoilGen Documentation.
Refer to the Installation Guide for detailed instructions on how to install and set up pyCoilGen.
The examples
directory contains several examples for how to use pyCoilGen. These examples demonstrate different scenarios and configurations for generating coil layouts.
The porting of the code from MATLAB to Python was facilitated by ChatGPT, May 24 through August 3 Version with manual corrections.
Additional cross-checking was done using MATLAB Online provided by MathWorks.
If you'd like to contribute to pyCoilGen, follow the guidelines outlined in the Contributing Guide.
See LICENSE.txt
for more information.
For inquiries and discussion, use pyCoilGen Discussions.
For issues related to this Python implementation, visit the Issues page.
Use the following publication, if you need to cite this work: