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

implement tracking through a quadrupole #5

Closed
1 of 2 tasks
dtabell opened this issue Aug 26, 2024 · 6 comments
Closed
1 of 2 tasks

implement tracking through a quadrupole #5

dtabell opened this issue Aug 26, 2024 · 6 comments

Comments

@dtabell
Copy link
Collaborator

dtabell commented Aug 26, 2024

element Quadrupole

  • without spin
  • with spin
@dtabell
Copy link
Collaborator Author

dtabell commented Oct 16, 2024

@mattsignorelli I have an initial implementation. see the branch 5-track-symplectic-quad.
It needs testing, and I have plenty of questions about both type stability and performance.
The former we should address ASAP. The latter we can address later.

In addition, I added two new functions to utils.jl: sincu and sinch.
These also need attention from an expert in type stability.

We should also discuss spin.

@dtabell
Copy link
Collaborator Author

dtabell commented Oct 23, 2024

Some possible tests:

  • zero strength quad == drift
  • low-energy beam
  • high-energy beam
  • ultra-relativistic beam
  • $e^-$, $e^+$, $p^+$, $p^-$
  • symmetry checks, e.g. $\mathcal{M}_Q(-x,0,-y,0,\delta)$
  • $+q \text{ in } QD \equiv -q \text{ in } QF$
  • very-short, very-strong quad should look like a thin lens
  • $\mathcal{M}_Q(L) \mathcal{M}_Q(L)$ should yield very nearly the same result as $\mathcal{M}_Q(2L)$
  • the previous comparison should be exact if we use two slices for the latter mapping
  • particles with $q$ some multiple of the elementary charge $e$
  • others ???

@dtabell
Copy link
Collaborator Author

dtabell commented Jan 11, 2025

The (non-spin) quad is done, and low energy beam tests are done.

@dtabell
Copy link
Collaborator Author

dtabell commented Jan 12, 2025

Have tests using electrons at energies 5 keV, 1 MeV, and 1 GeV,
and protons at 250 GeV, The electron tests all pass. Still working
on the proton tests.

@dtabell
Copy link
Collaborator Author

dtabell commented Jan 14, 2025

After I updated to use AtomicAndPhysicalConstants.jl, proton tests now pass.

@dtabell
Copy link
Collaborator Author

dtabell commented Jan 20, 2025

I think the addition of spin tracking deserves a separate issue.
So ... closing this one as complete.

@dtabell dtabell closed this as completed Jan 20, 2025
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

No branches or pull requests

1 participant