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 combined function bend element. #387

Merged
merged 14 commits into from
Jun 30, 2023
Merged

Conversation

cemitch99
Copy link
Member

@cemitch99 cemitch99 commented Jun 26, 2023

Includes the linear map for a combined-function bend, consisting of a sector bend with a nonzero quadrupole field component.

Related to #374

  • Add element particle push.
  • Add benchmark example.
  • Add Python equivalents.
  • Update documentation.
    • link in TOC tree of examples.rst

cemitch99 and others added 5 commits June 26, 2023 10:49
- 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.
This is not part of this PR.
@cemitch99 cemitch99 requested a review from qianglbl June 26, 2023 20:23
Adjust line format
@ax3l
Copy link
Member

ax3l commented Jun 27, 2023

This looks great, thank you!

I fixed the formatting a bit and pushed the changes. Do you like to add a benchmark in this PR or shall we do a follow-up? :)

@ax3l ax3l added the component: elements Elements/external fields label Jun 27, 2023
@ax3l ax3l self-requested a review June 27, 2023 11:00
@cemitch99
Copy link
Member Author

This looks great, thank you!

I fixed the formatting a bit and pushed the changes. Do you like to add a benchmark in this PR or shall we do a follow-up? :)

I added a benchmark.

@ax3l ax3l self-assigned this Jun 30, 2023
examples/cfbend/README.rst Outdated Show resolved Hide resolved
examples/cfbend/README.rst Outdated Show resolved Hide resolved
examples/cfbend/input_cfbend.in Show resolved Hide resolved
examples/cfbend/input_cfbend.in Outdated Show resolved Hide resolved
examples/cfbend/run_cfbend.py Outdated Show resolved Hide resolved
examples/cfbend/run_cfbend_madx.py Outdated Show resolved Hide resolved
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.

Looks great, thank you!

@ax3l ax3l enabled auto-merge (squash) June 30, 2023 20:51
@ax3l ax3l merged commit e013657 into ECP-WarpX:development Jun 30, 2023
11 of 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.

3 participants