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

Vectorized tracking for TransverseDeflectingCavity #270

Open
Hespe opened this issue Oct 7, 2024 · 1 comment
Open

Vectorized tracking for TransverseDeflectingCavity #270

Hespe opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Hespe
Copy link
Member

Hespe commented Oct 7, 2024

The TransverseDeflectingCavity fails to track with vectorized phase or frequency. The following example code will crash in the final line.

incoming = cheetah.ParticleBeam.from_parameters(
    num_particles=100_000, energy=torch.tensor([154e6, 14e9])
)
element = cheetah.TransverseDeflectingCavity(
    length=torch.tensor(1.0),
    phase=torch.tensor([[0.6], [0.5], [0.4]]),
)
outgoing = element.track(incoming)
@Hespe Hespe added the bug Something isn't working label Oct 7, 2024
@Hespe
Copy link
Member Author

Hespe commented Oct 7, 2024

Relevant for #165

@jank324 jank324 mentioned this issue Oct 7, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant