next up previous
Next: Beam matrix tracing Up: Use and description of Previous: Use and description of

Adiabatic variation

This operation enables to vary parameters of elements during particle tracking operations.At the present stage this operation destroys the original value of the parameters varied and so cannot be used in fitting or repeatedly in the in the same job.Three options are available : linear, sinusoidal and piecewize linear variation.

Input format:  

ADIAbatic variations of some parameters(up to 80 char)
name pkeyw nopt $p_{1}$,$p_{2}$,$ val_{1}$,$val_{2}$,$val_{3}$,$val_{4}$
........
name pkeyw nopt $p_{1}$,$p_{2}$,$ val_{1}$,$val_{2}$,$val_{3}$,$val_{4}$
99,
if nopt=3 then after nopt enter the following :
npts $n_{i}$,$val_{i}$ for i=1 to npts

Parameter definitions : 

name name of element having a parameter to be varied
pkeyw keyword of parameter to be varied (i.e. k1 for a quad strength)
nopt option number
$\textstyle \parbox{10cm}{ 1 means variation will be linear according to the fol...
...pts}$\ when $val_{npts}$\ is set and maintained until the end of the tracking.}$
Examples

The following are two examples extracted from demo 13. The first varies the frequency of the cavities named cav and cav1 from turn 100 to turn 200 in a linear fashion between the harmonic number 336 and 336.01. The second varies the voltage of cavity cav. Refer to demo 13 to see what is done with this set up.

adiabatic variation of RF frequency
cav freq 1 100 200 336 336.01
cav2 freq 1 100 200 336 336.01
99,


adiabatic variation of RF voltage
cav volt 1 10 50 25 70
99,

next up previous
Next: Beam matrix tracing Up: Use and description of Previous: Use and description of
Dobrin Kaltchev 2004-10-20