Skip to content

Improve performance of MultiCoilField.evaluate_B #11

@renereimann

Description

@renereimann

The evaluate_B of the MultiCoilField class as defined in here https://github.com/MCFlowMace/CRESana/blob/develop/cresana/bfield.py#L397
is implemented as a for loop over all individual coils. The coil class implements the general field solution for a single coil.
Outside of CRESana, I implemented the same evaluation but using the numpy capabilities to calculate the fields of all coils in higher dimensional arrays. This speeds up the overall calculation of evaluate_B by a big factor. This makes the Coil class basically obsolate.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions