rcoll gives no change in trajectories for a finite length

Moderators: cyao, michael_borland

Post Reply
Max
Posts: 50
Joined: 31 Jul 2008, 12:16

rcoll gives no change in trajectories for a finite length

Post by Max » 15 Dec 2008, 09:57

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

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: rcoll gives no change in trajectories for a finite length

Post by michael_borland » 15 Dec 2008, 10:27

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

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: rcoll gives no change in trajectories for a finite length

Post by michael_borland » 16 Dec 2008, 09:23

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

Post Reply