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

Add a thin dipole element #472

Merged
merged 14 commits into from
Nov 22, 2023
Merged

Conversation

cemitch99
Copy link
Member

@cemitch99 cemitch99 commented Nov 21, 2023

Added a thin-kick dipole element, based on Section 3.1 of:

G. Ripken and F. Schmidt, "A Symplectic Six-Dimensional Thin-Lens Formalism for Tracking," CERN/SL/95-12 (AP), 1995.

It is intended to replicate the thin-lens dipole model in MAD-X.

  • Add thin dipole element.
  • Add Python equivalent.
  • Add benchmark example.
  • Add documentation.

cemitch99 and others added 7 commits November 20, 2023 16:50
- Modified the initial beam size in the IOTA lens benchmark example.
- Added 2 benchmarks of 3D space charge for initial testing.
- Add documentation for 2 benchmarks with space charge.
- Add a benchmark example with space charge and periodic s-dependent focusing.
- Added an s-dependent example using a Kurth beam without space charge.
- Modified tolerance for IOTA lens benchmark example.
  Reduced tolerance to account for smaller initial beam size and
  improved preservation of invariants of motion.
- Modified tolerances of space charge examples to allow CI tests to
  pass when space charge is not active.

- Modified tolerance for space charge examples.
  These should fail unless space charge is turned on.
Selected numerical values for amr.n_cell, lattice.nslice, and geometry.prob_relative.
@cemitch99 cemitch99 requested a review from ax3l November 21, 2023 18:58
@ax3l ax3l added the component: elements Elements/external fields label Nov 21, 2023
@ax3l ax3l self-assigned this Nov 21, 2023
@cemitch99 cemitch99 requested a review from qianglbl November 22, 2023 17:44
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

This looks excellent, thank you!

examples/thin_dipole/README.rst Outdated Show resolved Hide resolved
examples/thin_dipole/README.rst Outdated Show resolved Hide resolved
@ax3l ax3l enabled auto-merge (squash) November 22, 2023 19:18
@ax3l ax3l merged commit 07063de into ECP-WarpX:development Nov 22, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: elements Elements/external fields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants