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

Pencil is slow: speed up #63

Open
freddieknets opened this issue Mar 5, 2024 · 2 comments
Open

Pencil is slow: speed up #63

freddieknets opened this issue Mar 5, 2024 · 2 comments

Comments

@freddieknets
Copy link
Collaborator

This is due to the implementation in xpart: one twiss and two times build_particles. Can this be sped up?

@freddieknets
Copy link
Collaborator Author

Currently, generate_pencil_on_collimator calls two twiss and five build_particles in total (two jaws)...

@freddieknets
Copy link
Collaborator Author

We could generate the pencil analytically, as we know the equations of the inner and outer ellipses, given the twiss parameters

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