Static B field calculator for arbitrary configurations of coils
Exactly. To be honest, this started when I tried to re-use some piece of code written by a colleague of mine for the same task (ref. _c_code), and found it easier in the end to rewrite it from scratch instead than to compile it and make it work. At that point, most of the work was done and I thought is could be nice to finish this small piece of project. So here we are:
pip install --user git+https://github.com/BEC-Trento/mtcoils.git
Or simply clone the repo. Look at the examples folder for some (commented) use case.
Ref. math.pdf
- [1] Magnetic field of a coil in different coordinate systems
- Another example for the same task, within the powerful mayavi library