- 1. OPAL-map
- 1.1. Introduction
- 1.2. Variables in OPAL-map
- 1.3. Principle of Map Tracking
- 1.3.1. Creation of map
- 1.3.2. Implementation of map tracking
- 1.4. Additional Parameter in OPAL-map
- 1.4.1. Limitations
- 1.5. Example
- 1.6. Output
- 1.6.1. <input_file_name >.stat
- 1.6.2. data/<input_file_name >.dispersion
- 1.6.3. data/<input_file_name >.map
- 1.7. References
{link_home}
1. OPAL-map
1.1. Introduction
OPAL-map is a map tracking beam optics code. This type computes maps for each beam line element to describe the action of the system.
The map creation is done by applying the Lie Operator on the element Hamiltonian and calculated in the Truncated Power Series Algebra (TPSA)[1]. The TPSA is a Differential Algebra (DA), which uses the Taylor expansion as the equivalent function. In OPAL-map the TPSA gets provided from the own OPAL DA package.
In contrast to time
The main advantage in map tracking codes lies in the ''map'' itself. These do not only contain valuable information about the beam line, but also can be accumulated to reduce the computational effort in the particle tracking.
1.2. Variables in OPAL-map
For in and outputs, the units as in Variables in OPAL-t
are used.
OPAL-map uses an Frenet-Serret coordinate system, referring on a reference particle. This particle has the ideal properties, ergo follows the design path. The following canonical variables to describe the motion of particles. The physical units are listed in square brackets.
- X
-
Horizontal position
xof a particle relative to the reference particle [m]. - PX
-
\frac{p_x}{P_0}Normalized horizontal canonical momentum [1]. (Wherep_xis the momentum of the particle andP_0is the momentum of the reference particle)
- Y
-
Vertical position
yof a particle relative to the reference particle [m]. - PY
-
\frac{p_y}{P_0}Normalized Vertical canonical momentum [1].
- Z
-
Longitudinal position
zof a particle relative to the reference particle [m]. - DELTA
-
\frac{E}{P_0 c}-\frac{1}{\beta_0}Energy derivation [1]. (WhereEis the total energy of the particle and\beta_0 = \frac{u}{c}the speed relative to the speed of lightcof the reference particle)
The independent variable is position of the reference particle s [m].
1.3. Principle of Map Tracking
The particle motion gets calculated by applying the map on the particle parameter.
Where
1.3.1. Creation of map
The creation of the element map is based on the Hamiltonian Mechanic, more specifically on the Lie Operator.
Here
Introducing the Lie operator, which acts similar to a "waiting" Poisson Bracket:
If a function
The integral over the independent variable
Where
1.3.2. Implementation of map tracking
For the derivative of the Hamiltonian, a Differential Algebra (DA) was used, in particular the Truncated Power Series Algebra (TPSA). This algebra uses the Taylor expansion as the equivalent function, which also is responsible for its name by creating truncated power series. Just form the definition of the Taylor expansion, it can be seen that a finite, to the order
In OPAL-map the Hamiltonian gets Taylor expanded and its map derived (Creation of Map
) in the TPSA using the OPAL DA package. The truncation length gets defined in TRACK
setting the MAP_ORDER
attribute.
TRACK, LINE= QUADTEST, BEAM=BEAM1, MAXSTEPS=10000, DT=1.0e-10, ZSTOP=4.0, MAP_ORDER=2;
1.4. Additional Parameter in OPAL-map
Attribute Name | set in | Default Value | Units | Description |
---|---|---|---|---|
|
|
|
[ ] |
defines the map order ( = order TPSA - 1). |
|
beam line element |
|
[ ] |
defines the number of steps inside the element. |
1.4.1. Limitations
OPAL-map is the new flavour of OPAL and currently just contains the fundamental beam line elements:
-
Drift (
Drift
), -
Dipole (
Sbend
), -
Quadrupole (
Quadrupole
)
1.5. Example
FODO lattice: MAP-FODO.in
Input distribution (to be put in directory data
): FODO_DIST.dat
To RUN
OPAL-map, the METHOD
attribute gets set to THICK
.
RUN, METHOD = "THICK", BEAM=BEAM1, FIELDSOLVER=FS1, DISTRIBUTION=DIST1;
The maximal order of the beam line maps get defined with the MAP_ORDER
attribute.
TRACK, LINE= QUADTEST, BEAM=BEAM1, MAXSTEPS=10000, DT=1.0e-10, ZSTOP=4.0, MAP_ORDER=2;
As an optional parameter for the beam line elements NSlices=<x>
provides the opportunity to split one element in <x>
smaller steps. Otherwise, the default value is defined with 1
.
D1: DRIFT, L=1., ELEMEDGE=0.000, NSLICES=10; QP1: QUADRUPOLE, L=0.3, K1= 8.64195, ELEMEDGE=1.000, NSLICES=15;
1.6. Output
In addition to the progress report that OPAL-map writes to the standard output (stdout) it also writes different files for various purposes.
1.6.1. <input_file_name >.stat
The file structure is analogous to OPAL-t .stat file.
1.6.2. data/<input_file_name >.dispersion
OPAL-map computes the dispersion of the beam line according to:
where
Column Nr. | Name | Units | Meaning |
---|---|---|---|
1 |
position |
m |
Longitudinal position |
2 |
\eta_x |
m |
Spatial dispersion in x |
3 |
\eta_{px} |
1 |
Momentum dispersion in x |
4 |
\eta_y |
m |
Spatial dispersion in x |
5 |
\eta_{py} |
1 |
Momentum dispersion in y positions |
1.6.3. data/<input_file_name >.map
Here the transfer map of the whole beamline gets printed.
Its format is analogous to a DA- FVPs
(src/Classic/FixedAlgebra), where the polynomials (DA- FTPs
) get represented in a 6 dimensional vector.
The first number describes the coefficient and the following 6 the variables of the monomial.
Column Nr. | Name | Units | Meaning |
---|---|---|---|
1 |
coefficient |
1 |
coefficient of monomial |
2 |
x |
1 |
x in monomial |
3 |
p_x |
1 |
p_x in monomial |
4 |
y |
1 |
y in monomial |
5 |
p_y |
1 |
p_y in monomial |
6 |
z |
1 |
z in monomial |
7 |
\delta |
1 |
\delta in monomial |
1.7. References
[1] Martin Berz. Modern map methods in particle beam physics. eng. ISBN: 978-0-12-014750-2. San Diego: Academic Press, 1999.