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

Correction to Zeuthen chicane input #590

Merged
merged 9 commits into from
Apr 26, 2024

Conversation

cemitch99
Copy link
Member

@cemitch99 cemitch99 commented Apr 26, 2024

A correction to the bend parameters appearing in the Zeuthen chicane benchmark example, as pointed out by @zhangli28 here.

This change is small, and does not visibly affect the reduced_diagnostics output. No update to the CI analysis script is required.

cemitch99 and others added 6 commits April 25, 2024 19:14
- 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 n01r April 26, 2024 02:25
@cemitch99 cemitch99 requested a review from ax3l April 26, 2024 15:56
Copy link
Member

@n01r n01r left a comment

Choose a reason for hiding this comment

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

Thanks, @cemitch99!
I have just a little comment about a comment string. :)

P.S.: Your PR still shows 8 commits but I think it is really only one commit and the rest is already in development, right? You could rebase to development and then the commit structure will be simpler. :)

examples/chicane/run_chicane.py Outdated Show resolved Hide resolved
Update lb comment.
@ax3l ax3l added the component: tests examples, tests and benchmarks label Apr 26, 2024
Comment on lines +29 to +37
sbend1.ds = 0.500194828041958 # projected length 0.5 m, angle 2.77 deg
sbend1.rc = -10.3462283686195526

drift1.type = drift
drift1.ds = 5.0058489435 # projected length 5 m

sbend2.type = sbend
sbend2.ds = 0.50037 # projected length 0.5 m, angle 2.77 deg
sbend2.rc = 10.35
sbend2.ds = 0.500194828041958 # projected length 0.5 m, angle 2.77 deg
sbend2.rc = 10.3462283686195526
Copy link
Member

Choose a reason for hiding this comment

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

If you want, we could use user-defined constants and the parser here to make it a bit clearer how those (projected) parameters come to play.

@@ -48,17 +48,18 @@

# design the accelerator lattice
ns = 25 # number of slices per ds in the element
rc = 10.35 # bend radius (meters)
rc = 10.3462283686195526 # bend radius (meters)
Copy link
Member

Choose a reason for hiding this comment

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

We could use Python math here to make it a bit clearer how those (projected) parameters come to play.

@ax3l ax3l merged commit 875f035 into ECP-WarpX:development Apr 26, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tests examples, tests and benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants