Two different bunches as input
Posted: 14 Feb 2017, 07:35
Hi,
I'm running simulations on accelerating a double-bunch (longitudinal) structure through a linac. I have up to this point created my own "artificial" bunches by duplicating a simulated ASTRA file and changing the longitudinal phase space to correspond to the RF at different phases, resulting in a single input file with two separate bunches in it. So far so good.
What I now want to do is to change the charge in the individual bunches, and this turns out not to be so simple, at least for me. The way to do this for me is probably to make some extra duplications in one of the bunches (to increase the relative number of particles), but this is hard to do in a good way if the charge of one bunch is not an integer multiple of the charge in the other. I need to have both bunches in the same simulation because of wakefield effects and CSR, so I can't run them separately.
Therefore, I would like to know if there already is a way of changing the charge in parts of an input file or otherwise if this could maybe be introduced in an upcoming version of elegant. The possibility of specifying two different files in sdds_beam together with some relation between the bunch charges would be great.
Best regards
Jonas
I'm running simulations on accelerating a double-bunch (longitudinal) structure through a linac. I have up to this point created my own "artificial" bunches by duplicating a simulated ASTRA file and changing the longitudinal phase space to correspond to the RF at different phases, resulting in a single input file with two separate bunches in it. So far so good.
What I now want to do is to change the charge in the individual bunches, and this turns out not to be so simple, at least for me. The way to do this for me is probably to make some extra duplications in one of the bunches (to increase the relative number of particles), but this is hard to do in a good way if the charge of one bunch is not an integer multiple of the charge in the other. I need to have both bunches in the same simulation because of wakefield effects and CSR, so I can't run them separately.
Therefore, I would like to know if there already is a way of changing the charge in parts of an input file or otherwise if this could maybe be introduced in an upcoming version of elegant. The possibility of specifying two different files in sdds_beam together with some relation between the bunch charges would be great.
Best regards
Jonas