MCFlowMace / CRESana

Analytic CRES signal modeling
2 stars 1 forks source link

Feature/cylinder symmetric analytic trap #7

Closed renereimann closed 8 months ago

renereimann commented 8 months ago

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.