Skip to content

Adding multipole magnet utilities#138

Open
Nathan-Majernik wants to merge 2 commits intoChristopherMayes:masterfrom
Nathan-Majernik:nathan/multipole_utils
Open

Adding multipole magnet utilities#138
Nathan-Majernik wants to merge 2 commits intoChristopherMayes:masterfrom
Nathan-Majernik:nathan/multipole_utils

Conversation

@Nathan-Majernik
Copy link
Copy Markdown

Adds functions for synthesizing and analyzing transverse magnetic fields from multipole expansions.

New module: beamphysics.fields.multipole

  • synthesize_field — compute B_x, B_y at arbitrary points from a list of normal and skew multipole coefficients
  • decompose_field — recover multipole coefficients from azimuthal B_phi measurements on a circle via least-squares fit
  • scalar_error — compute normalized RMS field error between two field distributions on a reference circle

Documentation

  • Example notebook: docs/examples/fields/multipole_utils.ipynb
  • API reference added to docs/api/fields.md

Supersedes #137 (rebased onto current master with updated module path pmd_beamphysicsbeamphysics).

@Nathan-Majernik
Copy link
Copy Markdown
Author

#137 (comment)

Done @ken-lauer

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.

1 participant