Implementation of an analytic representation of magnetic fields in current free space.
The implementation is based on spherical harmonic / legende polynomial series.
To implement the new field, the MultiCoilField was separated into an Field base class and the MultiCoilField class with behaviour unchanged. The AnalyticField class is a new class implementing the new method.
Analytic Field gets a np.poly1d() instance that is the field along the z-axis (symmetry axis).
Tested and works properly for me.
Implementation of an analytic representation of magnetic fields in current free space. The implementation is based on spherical harmonic / legende polynomial series. To implement the new field, the MultiCoilField was separated into an Field base class and the MultiCoilField class with behaviour unchanged. The AnalyticField class is a new class implementing the new method. Analytic Field gets a np.poly1d() instance that is the field along the z-axis (symmetry axis). Tested and works properly for me.