radiasoft / rssynergia

Tools for Synergia
Other
2 stars 4 forks source link

Mistake in rssynergia-linear-8-2-IOTA-SC.ipynb example #5

Open egstern opened 5 years ago

egstern commented 5 years ago

At the bottom of cell [20], there are these lines:

generated longitudinal coordinate is z position (betacdt) but Synergia uses

cdt. Divide by beta to get cdt.

local_particles = myBunch.get_local_particles() local_particles[:,4] /= opts.beta

which is incorrect. The coordinate that is stored is c*dt. Also, by dividing like that, the actual bunch particles which had been matched have been modified to be unmatched.