Skip to content

Coil activation - #31

Merged
kpentland merged 12 commits into
mainfrom
coil_activation
Aug 26, 2025
Merged

Coil activation#31
kpentland merged 12 commits into
mainfrom
coil_activation

Conversation

@nicamo

@nicamo nicamo commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

Added argument to dynamic stepper to make the resistances of the active coils time dependent.
This allows to activate/deactivate the active coils without modifying the machine geometry directly.

Chenges needed to a few core algos in nonlinear_solve, simplified_solve and linear_solve.

I've also removed the attribute .R for "resistance" in favour of .coil_resist as could be confused with radius (like for eq.R)

Tests and examples amended accordingly.

Tested on pytests and example5

@kpentland
kpentland self-requested a review August 26, 2025 14:15
@kpentland kpentland added enhancement New feature or request ready-for-final-tests Pull request is ready to run final pre-merge tests labels Aug 26, 2025
@kpentland
kpentland removed their request for review August 26, 2025 14:16
@kpentland kpentland self-assigned this Aug 26, 2025
@kpentland kpentland added ready-for-final-tests Pull request is ready to run final pre-merge tests and removed ready-for-final-tests Pull request is ready to run final pre-merge tests labels Aug 26, 2025
@kpentland kpentland added ready-for-final-tests Pull request is ready to run final pre-merge tests and removed ready-for-final-tests Pull request is ready to run final pre-merge tests labels Aug 26, 2025
@kpentland

Copy link
Copy Markdown
Collaborator

Happy with these changes, seem to work on my end - will continue testing further.

New docstrings added to nonlinear_solver.py - need to keep maintaining good docs.

@kpentland
kpentland merged commit 9a61373 into main Aug 26, 2025
2 checks passed
@georgeholt1
georgeholt1 deleted the coil_activation branch August 28, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-for-final-tests Pull request is ready to run final pre-merge tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants