Open egstern opened 5 years ago
At the bottom of cell [20], there are these lines:
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.
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.