Issue with EMATRIX and DELTAP
Posted: 05 Nov 2015, 13:18
Hello!
I am trying to simulate off energy particle tracking through an undulator beam-line, where the undulator is implemented as a matrix (the nominal design is for a helical undulator). I need to obtain the trajectory at various momenta, so I use the centroid file and vary an initial MALIGN element to change the particle DP. As expected the output parameter Cdelta shows the change in DP I input. Everything works as expected until I interact with the EMATRIX element, whereby the parameter Cdelta reverts to 0 (presumably as C6 for that element is 0?) and then stays at 0 for the rest of the beamline. Looking in the manual, this is not the expected way this should work, since C6 is defined as a "change" in DP (and as would make sense...!).
Discussing with Peter Williams (the inimitable astec_pete), we thought it might be a fiduzialization issue, but we can't seem to get rid of this behaviour. We therefore think it might be a bug. Or, possibly, our incompetence. But we would be grateful if you could take a look either way.
I have included some example files to demonstrate the effect.
Thanks!
James Jones
ASTeC, STFC, UK
I am trying to simulate off energy particle tracking through an undulator beam-line, where the undulator is implemented as a matrix (the nominal design is for a helical undulator). I need to obtain the trajectory at various momenta, so I use the centroid file and vary an initial MALIGN element to change the particle DP. As expected the output parameter Cdelta shows the change in DP I input. Everything works as expected until I interact with the EMATRIX element, whereby the parameter Cdelta reverts to 0 (presumably as C6 for that element is 0?) and then stays at 0 for the rest of the beamline. Looking in the manual, this is not the expected way this should work, since C6 is defined as a "change" in DP (and as would make sense...!).
Discussing with Peter Williams (the inimitable astec_pete), we thought it might be a fiduzialization issue, but we can't seem to get rid of this behaviour. We therefore think it might be a bug. Or, possibly, our incompetence. But we would be grateful if you could take a look either way.
I have included some example files to demonstrate the effect.
Thanks!
James Jones
ASTeC, STFC, UK