next up previous contents index
Next: LORENTZ Up: Commands Previous: PUSHENDPUSH


  Drift the particles to a certain time or to a certain s coordinate. DRIFT T=tex2html_wrap_inline8536tex2html_wrap_inline7312DT=tex2html_wrap_inline8540tex2html_wrap_inline7312S=tex2html_wrap_inline8106, [RIGHT,] [LEFT,] [KIND=ktex2html_wrap_inline7312(tex2html_wrap_inline8556,tex2html_wrap_inline8558),] [EXTERNALFIELD,] ;
Drift until Time=tex2html_wrap_inline8536 (meter).
Drift over time interval tex2html_wrap_inline8540 (meter).
Drift to s coordinate tex2html_wrap_inline8574 (meter).
In any of the three cases T, DT, and S, the particles may go backwards in time depending on the parameters.
Drift right- or left-going particles only.
Drift only particles of kind k.
Take into account the external field.  

When there is only external field without beam interaction, DRIFT EXTERNAL is much better (more accurate and faster) than the PUSH command. The difference is that DRIFT EXTERNAL uses an exact solution in a constant field whereas PUSH carries out step-by-step integration, and that PUSH accepts only t as the independent variable while DRIFT also allows s (as in most accelerator program codes).

How to use DRIFT EXTERNAL may be understood by the following example. Suppose that the region tex2html_wrap_inline8584 is shined by a laser. An electron beam comes from the left and goes through the laser region to created back-scattered photons, and subsequently goes through a magnetic field region tex2html_wrap_inline8586. If the interval tex2html_wrap_inline8588 is shorter than the bunch length, the bunch head is already in the field region when the tail gets out of the laser region. If you use PUSH command, you have to track the beam till the end of the magnetic field region. Instead, you can do more elegantly,

Toshiaki Tauchi
Thu Dec 3 17:27:26 JST 1998