Here we will run the Cyclotron flavour of OPAL (OPAL_cycl) in three distinct modes
Tune Calculation with OPAL's closed orbit finder (so far only in OPAL 2.1.x and higher)
Accelerated orbit mode
This example is for OPAL 2.0.x and 1.6.x (see compatible versions in examples).
If you do not have already access to OPAL, you can visit the download page the download page. In
case OPAL is on your cluster please check with the administrator how to use. PSI user please click here.
Needed Input Files
For this project we need input files, that you obtain by clicking on links below:
For the tune calculation we need initial conditions (ic): energy, radius and radial momenta given to us by an other program in the file ic.dat.
The Bash script cyclotron1.bash will run the tune calculation for all energies specified in ic.dat and store the
radial and vertical tune values together with reference data.
Make sure the script has execute permission (chmod u+x cyclotron1.bash).
A comparison can be plotted with gnuplot, by executing
The result is saved in cyclotron1.pdf and shown below.
Tune Calculation with OPAL's closed orbit finder (so far only in OPAL development branches)
The matched gauss distribution with parameters for the closed orbit finder
(energy steps of 0.001 GeV, average the field over 8 sectors and a maximum of 100 steps for the closed orbit finder to converge).
More information on the matched gauss distribution can be found in the Manual
Run OPAL with
and plot the result from the output file data/tunes.dat with
The result is saved in RingTunes.png and shown below.