Error when using rcollimator element
Tracking the trajectory before and after the collimator gives:
s (m) Elem.Name Cx (m) Cxp (rad)
1.926628e+002 BPM_SFEL1.3 8.510574e-007 -7.735563e-007
1.926728e+002 M81 8.433218e-007 -7.735563e-007
1.931728e+002 ECOL_SFEL1.1 8.433218e-007 -7.735563e-007
1.951628e+002 M82 -2.330915e-008 -3.057425e-007
ie the x coordinate does not change across the length of the collimator.
Max Cornacchia and Simone DiMitri
rcoll gives no change in trajectories for a finite length
Moderators: cyao, michael_borland
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: rcoll gives no change in trajectories for a finite length
Max and Simone,
I ran a test just now and it seems ok. I also looked at the code and it looks fine.
Can you send me the input files?
Thanks--Michael
I ran a test just now and it seems ok. I also looked at the code and it looks fine.
Can you send me the input files?
Thanks--Michael
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: rcoll gives no change in trajectories for a finite length
I've confirmed this problem. It occurs when the X_MAX and Y_MAX values are both zero.
As a workaround, these can be set to a large value (e.g., 1e10) when no collimation is desired.
Thanks for reporting the bug and sending your input files.
--Michael
As a workaround, these can be set to a large value (e.g., 1e10) when no collimation is desired.
Thanks for reporting the bug and sending your input files.
--Michael