The program computes the energy gained of an initially stationary electron due to the passage of a positively charged bunch, as a function of radius of the electron in the beam pipe. It makes several approximations:
The program also computes the average energy gained per particle assuming that the particles are uniformly distributed in the vacuum chamber.
A tarred and gzipped file of the code can be downloaded by clicking here. Simply unpack the archive with
gunzip -c egain.tar.gz | tar -xvf -This will create a directory
egain. Go into the directory,
edit the Makefile to set the C compiler and compiler flags.
Then type ``make.'' This will create the program sim00.
sim00 is run by giving it 6 command line arguments:
Please send me email at <Scott.Berg@cern.ch> if you have any questions, problems, suggestions, or would like to be notified of future improvements (which there will be!).
There is at least one known bug in the program which causes the average energy gain for a longitudinally rectangular bunch to converge rather slowly as you increase the radial time step. It has no effect on the other bunch shapes or the energy gain as a function of radius (except for the point near the beam pipe wall).