62
Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014

Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Embed Size (px)

Citation preview

Page 1: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Symplectic Tracking RoutineMalte Titze, Helmholtz-Zentrum Berlin, 10.05.2014

Page 2: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

1. Introduction

2. Main Idea

3. Advantages

4. Theory

5. Summary

0. Overview

Page 3: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Z

X

Y

Given: (Ax, A

y, A

z, φ) as a Fourier-decomposition with respect to the

(longitudinal) Z-axis.

1. Introduction

Page 4: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Z

Y

Given: (Ax, A

y, A

z, φ) as a Fourier-decomposition with respect to the

(longitudinal) Z-axis.

X

1. Introduction

Page 5: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Z

X

Y

z0

zf

How to effectively track particles symplectic from z0 to z

f?

1. Introduction

Page 6: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Z

X

Y

z0

zf

Find the dependency of the cartesian coordinates to the cyclic ones at the final position z

f (time-independent case).

2. Main Idea

Page 7: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Z

X

Y

z0

zf

Find the dependency of the cartesian coordinates to the cyclic ones at the final position z

f (time-independent case).

Functions of (x0, y

0, p

x0, p

y0), z

0 and z

f

2. Main Idea

Page 8: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

3. Advantages

Page 9: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

3. Advantages

Page 10: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

2. The values of the field at the initial coordinates (Fourier-coefficients),

3. Advantages

Page 11: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

2. The values of the field at the initial coordinates (Fourier-coefficients),

3. The final position zf.

3. Advantages

Page 12: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

2. The values of the field at the initial coordinates (Fourier-coefficients),

3. The final position zf.

→ (xf, y

f, p

xf, p

yf) can be computed to arbitrary precision without the need

of a PDE-solver!

3. Advantages

Page 13: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

2. The values of the field at the initial coordinates (Fourier-coefficients),

3. The final position zf.

→ (xf, y

f, p

xf, p

yf) can be computed to arbitrary precision without the need

of a PDE-solver!

→ The coordinate transformation is symplectic.

3. Advantages

Page 14: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

2. The values of the field at the initial coordinates (Fourier-coefficients),

3. The final position zf.

→ (xf, y

f, p

xf, p

yf) can be computed to arbitrary precision without the need

of a PDE-solver!

→ The coordinate transformation is symplectic.

→ Fringe fields are included.

3. Advantages

Page 15: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Based on the following data:

1. The initial coordinates (x0, y

0, p

x0, p

y0) and z

0,

2. The values of the field at the initial coordinates (Fourier-coefficients),

3. The final position zf.

→ (xf, y

f, p

xf, p

yf) can be computed to arbitrary precision without the need

of a PDE-solver!

→ The coordinate transformation is symplectic.

→ Fringe fields are included.

→ There are analytic formulas of the fields in the case of multipoles.

3. Advantages

Page 16: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

The Hamiltonian of particle with charge e, mass m and energy E in an electromagnetic field (A

x, A

y, A

z, φ) can be written as

4. Theory

Page 17: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

The Hamiltonian of particle with charge e, mass m and energy E in an electromagnetic field (A

x, A

y, A

z, φ) can be written as

4. Theory

Page 18: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

The Hamiltonian of particle with charge e, mass m and energy E in an electromagnetic field (A

x, A

y, A

z, φ) can be written as

with

4. Theory

Page 19: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

The Hamiltonian of particle with charge e, mass m and energy E in an electromagnetic field (A

x, A

y, A

z, φ) can be written as

with

Note that in this description, the Z-component will play the role as the 'time' and (t, -E) is a new pair of conjugate variables.

4. Theory

Page 20: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This means, the equations of motion have the form:

4. Theory

Page 21: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This means, the equations of motion have the form:

4. Theory

Page 22: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This means, the equations of motion have the form:

It follows especially:

for the kicks in X- and Y-direction.

4. Theory

Page 23: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the following we assume that

1. all fields are time-independent.

4. Theory

Page 24: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the following we assume that

1. all fields are time-independent.

2. no electric fields.

4. Theory

Page 25: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the following we assume that

1. all fields are time-independent.

2. no electric fields.

3. the kicks are small enough, so that products of order two and higher can be neglected.

4. Theory

Page 26: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the following we assume that

1. all fields are time-independent.

2. no electric fields.

3. the kicks are small enough, so that products of order two and higher can be neglected.

Assumption 3 is not necessary in order to make the method work, it merely simplifies the Hamiltonian. Higher orders can be included.

4. Theory

Page 27: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the following we assume that

1. all fields are time-independent.

2. no electric fields.

3. the kicks are small enough, so that products of order two and higher can be neglected.

Assumption 3 is not necessary in order to make the method work, it merely simplifies the Hamiltonian. Higher orders can be included.

Dropping assumptions 1 and/or 2 will have a deeper impact on the theory.

4. Theory

Page 28: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Exclude in the radicand of the Hamiltonian

4. Theory

Page 29: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Exclude in the radicand of the Hamiltonian

and develop the square root, using the small angular approximation:

4. Theory

Page 30: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Exclude in the radicand of the Hamiltonian

and develop the square root, using the small angular approximation:

where we introduced the normalized quantities

4. Theory

Page 31: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Note: By introducing this new Hamiltonian , the equations of motions for the X- and Y-coordinates will not change in these approximations:

4. Theory

Page 32: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Note: By introducing this new Hamiltonian , the equations of motions for the X- and Y-coordinates will not change in these approximations:

4. Theory

Page 33: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Note: By introducing this new Hamiltonian , the equations of motions for the X- and Y-coordinates will not change in these approximations:

In the following we will drop all tilde symbols again.

4. Theory

Page 34: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

A canonical transformation to the cyclic coordinates can be obtained by a generating function F of the variables (x, y, v

x, v

y, z) satisfying

4. Theory

Page 35: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

A canonical transformation to the cyclic coordinates can be obtained by a generating function F of the variables (x, y, v

x, v

y, z) satisfying

4. Theory

Page 36: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

A canonical transformation to the cyclic coordinates can be obtained by a generating function F of the variables (x, y, v

x, v

y, z) satisfying

and

4. Theory

Page 37: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

A canonical transformation to the cyclic coordinates can be obtained by a generating function F of the variables (x, y, v

x, v

y, z) satisfying

and

inserting px and p

y into this last equation gives the partial differential

equation for F we are going to solve.

4. Theory

Page 38: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Hence, the partial differential equation for F has the form:

4. Theory

Page 39: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Hence, the partial differential equation for F has the form:

where we redefined the magnetic potentials by a parameter epsilon to provide a measure of the field strength.

4. Theory

Page 40: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Hence, the partial differential equation for F has the form:

where we redefined the magnetic potentials by a parameter epsilon to provide a measure of the field strength.

In the absence of any fields, this differential equation can be solved directly:

in which is a constant.

4. Theory

Page 41: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This leads to

4. Theory

Page 42: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This leads to

and from the last equation we get

Similar equations hold for the Y-component. This corresponds to a free drift.

4. Theory

Page 43: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This leads to

and from the last equation we get

Similar equations hold for the Y-component. This corresponds to a free drift.

The canonical momenta px and p

y can be converted to the kinetic

momenta using the vector potentials and the normalization factor introduced earlier.

4. Theory

Page 44: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the general case, we make the following perturbative ansatz:

4. Theory

Page 45: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the general case, we make the following perturbative ansatz:

where fijk are functions of x, y and z.

4. Theory

Page 46: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

In the general case, we make the following perturbative ansatz:

where fijk are functions of x, y and z.

We enter the general differential equation with this ansatz and compare coefficients, using its special nature:

4. Theory

Page 47: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This yields the following system of equations for the fijk's:

4. Theory

Page 48: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This yields the following system of equations for the fijk's:

with

The semicolon indicates a partial derivative with respect to the corresponding coordinate.

4. Theory

Page 49: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

This yields the following system of equations for the fijk's:

with

The semicolon indicates a partial derivative with respect to the corresponding coordinate.

Note that the left-hand side of the above equation is determined by functions of lower total order i + j + k and the potentials up to a function h

ijk

of x and y, the 'integration constant'.

4. Theory

Page 50: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

The equations of the smallest total orders have the form

4. Theory

Page 51: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Let us see the implication of this ansatz for the momenta:

4. Theory

Page 52: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Let us see the implication of this ansatz for the momenta:

4. Theory

Page 53: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Let us see the implication of this ansatz for the momenta:

and similar for the Y-component:

4. Theory

Page 54: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Let us see the implication of this ansatz for the momenta:

and similar for the Y-component:

This means: If we fix the functions hijk(x, y) by the condition f

ijk(x, y, z

f) ≡ 0,

then we get

and we can invert the above system of equations (for px and p

y) at ε = 1

by a Newton-iteration to get pxf and p

yf.

4. Theory

Page 55: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Once we have computed the values pxf and p

yf, we can determine the

offset xf by

4. Theory

Page 56: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Once we have computed the values pxf and p

yf, we can determine the

offset xf by

4. Theory

Page 57: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Once we have computed the values pxf and p

yf, we can determine the

offset xf by

and similarly for the Y-component. Again we have set ε = 1.

4. Theory

Page 58: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

Once we have computed the values pxf and p

yf, we can determine the

offset xf by

and similarly for the Y-component. Again we have set ε = 1.

The kicks at the final position are computed by

4. Theory

Page 59: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

We have shown how to construct a symplectic mapping routine through time-independent magnetic fields in the approximation of small kicks.

5. Summary

Page 60: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

We have shown how to construct a symplectic mapping routine through time-independent magnetic fields in the approximation of small kicks.

Generalizations to higher orders in the kicks are possible without changing the theory, if we develop everything up - and including - to even order.

5. Summary

Page 61: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

We have shown how to construct a symplectic mapping routine through time-independent magnetic fields in the approximation of small kicks.

Generalizations to higher orders in the kicks are possible without changing the theory, if we develop everything up - and including - to even order.

The time-dependent case and the inclusion of electric fields will however alter the differential equation. It is an open question of how to implement a perturbative generating function in these cases.

5. Summary

Page 62: Symplectic Tracking Routine Malte Titze, Helmholtz-Zentrum Berlin, 10.05.2014 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this

We have shown how to construct a symplectic mapping routine through time-independent magnetic fields in the approximation of small kicks.

Generalizations to higher orders in the kicks are possible without changing the theory, if we develop everything up - and including - to even order.

The time-dependent case and the inclusion of electric fields will however alter the differential equation. It is an open question of how to implement a perturbative generating function in these cases.

Another interesting subject are the generalization of the method to density distributions.

Thank you for your attention!

5. Summary