next up previous contents
Next: Beam Displacement Up: Other commands Previous: Saving the coordinates of   Contents

Generating a distribution of particles

The positions of particles can be generated with the random generator with: 7 G(ENERATE) P(ARTICLES) <type of phasespace:P,E or S> <number of particles> <number of coordinates> <number of masses> <number of number of energies> ; [example: G   P   P   1000   6   3   0 ;]

The number of masses and energies have a meaning only when the number of coordinates is bigger than 5 or 6. A mass or energy number of 0 means a continous distribution. The particles will be traced through the following elements. The coordinates of the particles will be inside the region defined by the PX,PY and DP commands.

KPII
1999-10-20