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

Improve treatment of RFCavity endpoints #596

Merged
merged 9 commits into from
May 6, 2024

Conversation

cemitch99
Copy link
Member

@cemitch99 cemitch99 commented Apr 29, 2024

Modified the treatment of RF cavity endpoints in the quantity efieldint returned by the function RF_Efield in RFCavity.H.

This is a correction to the RF cavity field implementation that avoid spurious energy kicks associated with evaluation of the function RF_Efield at data values beyond the specified cavity endpoints. The indefinite integral of Ez should be a nonzero constant outside the field range of interest, to ensure continuity across the two endpoints.

This has a small effect on the reference particle energy, and no modification of the benchmark analysis script analysis_rfcavity.py is needed.

cemitch99 and others added 4 commits April 29, 2024 11:36
- 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 April 29, 2024 18:57
pre-commit-ci bot and others added 3 commits April 29, 2024 18:57
Correction to initialization of efieldint.
@ax3l ax3l added component: elements Elements/external fields bug Something isn't working bug: affects latest release Bug also exists in latest release version labels May 1, 2024
@ax3l ax3l requested a review from qianglbl May 1, 2024 19:03
examples/distgen/README.rst Outdated Show resolved Hide resolved
src/particles/elements/RFCavity.H Outdated Show resolved Hide resolved
@ax3l ax3l self-assigned this May 1, 2024
cemitch99 and others added 2 commits May 2, 2024 15:16
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.

👍

@ax3l ax3l merged commit 5b8c191 into ECP-WarpX:development May 6, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: affects latest release Bug also exists in latest release version bug Something isn't working component: elements Elements/external fields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants