DYNAP can be called instead of RUN inside a TRACK command:
DYNAP,TURNS=real, FASTUNE=logical,LYAPUNOV=real,MAXAPER:={..,..,..,..,..,..},ORBIT=logical;
For each previously entered start command,
DYNAP tracks two close-by particles over a selected
number of turns, from which it obtains the
betatron tunes with error, the action smear,
and an estimate of the lyapunov exponent.
Many such companion particle-pairs
can be tracked at the same time, which
speeds up the calculation.
The smear is defined as
2.0 (wxymax - wxymin) / (wxymax + wxy
min), where the wxymin,max refer to the
miminum and maximum values of the sum of the transverse betatron invariants
wx+wy during the tracking. The tunes are computed by
using an FFT and either formula (18) or formula
(25) of CERN SL/95-84 (AP),
depending on whether the number of turns is less-equal or
larger than 64.
The arguments have the following meaning:
Example:
BEAM,PARTICLE=ELECTRON,ENERGY=50,EX=1.E-6,EY=1.E-8,ET=0.002,SIGT=1.E-2; ... USE,PERIOD=FODO; ... TRACK; START,X=0.0010,Y=0.0017,PT=0.0003; DYNAP,FASTUNE,TURNS=1024,LYAPUNOV=1.e-7; ENDTRACK; ...The first command defines the beam parameters. It is essential that the longitudinal emittance ET is set. The command use selects the beam line or sequence. The track activates the tracking module, start enters the starting coordinates (more than one particle can be defined), dynap finally tracks two nearby particles with an initial distance lyapunov for each start definition over turns revolutions, and endtrack terminates the execution of the tracking module.
The results are stored in the DYNAP and DUNAPTUNE tables, and can be obtained by the commands
value,table(dynap,smear);resp.
value,(dynaptune,tunx),(dynaptune,tuny),(dynaptune,dtune);
More generally, all results can be printed to a file, using the commands
write,table=dynap,file; write,table=dynaptune,file;
The output file 'lyapunov.data' lists the turn number and phase distance between the two Lyapunov partners, respectively, allowing for visual inspection of chaoticity.
frankz 20.03.2006