Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aircore Corrector Modeling #72

Conversation

ColwynGulliford
Copy link
Contributor

@ColwynGulliford ColwynGulliford commented Sep 24, 2024

This PR brings code to model aircore corrector magnets using thin wires. Two types of corrector are currently handled: saddle shaped and rectangular. Details can be found in docs/examples/fields/corrector_modeling.ipynb

Screenshot 2024-09-23 at 11 25 48 PM Screenshot 2024-09-23 at 11 26 01 PM Screenshot 2024-09-23 at 11 26 21 PM Screenshot 2024-09-23 at 11 27 27 PM

@ColwynGulliford
Copy link
Contributor Author

@ChristopherMayes I've updated the functions to have more user friendly arguments: min, max, n in each coordinate direction. I also added basic 1D and 2D plotting via interpolation:

Screenshot 2024-10-04 at 1 38 06 PM Screenshot 2024-10-04 at 1 38 36 PM

@ColwynGulliford
Copy link
Contributor Author

@ChristopherMayes performed ruff check on Python files and corresponding Jupyter Notebook.

Copy link
Owner

@ChristopherMayes ChristopherMayes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@ChristopherMayes ChristopherMayes merged commit dc0e574 into ChristopherMayes:master Oct 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants