astra a space charge tracking algorithm

31
Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03

Upload: joelle-kirkland

Post on 30-Dec-2015

139 views

Category:

Documents


0 download

DESCRIPTION

Astra A Space Charge Tracking Algorithm. Klaus Flöttmann DESY. Zeuthen 18.08.03. General. Program development started in ’96 based on a precursor by Ch. Stolzenburg written in Fortran 90, runs on: Windows PC LINUX PC SUN UNIX MAC OS ~ 50 -100 users. Astra design philosophy. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Astra A Space Charge Tracking Algorithm

AstraA Space Charge Tracking Algorithm

Klaus Flöttmann

DESY

Zeuthen 18.08.03

Page 2: Astra A Space Charge Tracking Algorithm

General

• Program development started in ’96 based on a precursor by Ch. Stolzenburg

• written in Fortran 90, runs on:– Windows PC

– LINUX PC

– SUN UNIX

– MAC OS

• ~ 50 -100 users

Page 3: Astra A Space Charge Tracking Algorithm

Astra design philosophy

• the program is user oriented, i.e. it is designed– to be easy to use– to be robust against user errors– to avoid ambiguous parameters

• Astra supports parameters scans.

• Astra is complemented by graphics and analysis tools.

Page 4: Astra A Space Charge Tracking Algorithm

Astra design philosophy

• in order to avoid the development of diverging versions only executables are distributed.

• to give the user insight into what is going on in the code a number of tools are provided. Examples will be shown in the following.

Page 5: Astra A Space Charge Tracking Algorithm

Space Charge Calculation

- a grid consisting of rings (transversely) and slices (longitudinally) is set up for the space charge calculation.

- the grid size matches the dimensions of the bunch, with some additional grid cells added automatically outside of the bunch.

Page 6: Astra A Space Charge Tracking Algorithm

Space Charge Calculation

- the space charge field is calculated in the average rest frame of the bunch assuming a constant charge density inside the ring elements.

- remaining non-relativistic velocity components in the average rest frame can be taken into account.

- in the center of the bunch statistical problems may arise due to the small cell volume despite the higher charge density.

Page 7: Astra A Space Charge Tracking Algorithm

Example: radial electric space charge field of a bunch as calculated by Astra, plotted with fieldplot

grid lines

uniform charge density,

1000 macro-particles,

10x10 grid cellsbunch extension

Page 8: Astra A Space Charge Tracking Algorithm

Example: radial electric space charge field of a bunch as calculated by Astra, plotted with fieldplot

uniform charge density,

1000 macro-particles,

10x10 grid cells

increased cell size in the center

Page 9: Astra A Space Charge Tracking Algorithm

Example: radial electric space charge field of a bunch as calculated by Astra, plotted with fieldplot

uniform charge density,

5000 macro-particles,

10x10 grid cells

adjusted cell size

Page 10: Astra A Space Charge Tracking Algorithm

Space Charge Calculation

The grid and the space charge field are scaled as the bunch propagates through the beam line according to varying bunch dimensions, charge and energy.

When the scaling factor exceed a user defined limit a new space charge calculation is automatically initiated.

Page 11: Astra A Space Charge Tracking Algorithm

Example: development of electric space charge field as seen by probe particles. (Calculation with Astra, plotted with

lineplot.)

L-band rf gun

5000 macro-particles,

10x10 grid cells

Page 12: Astra A Space Charge Tracking Algorithm

Example: development of electric space charge field as seen by probe particles. (Calculation with Astra, plotted with

lineplot.)

L-band rf gun

5000 macro-particles,

10x10 grid cells

Page 13: Astra A Space Charge Tracking Algorithm

Example: development of space charge scaling factors in Astra.

L-band rf gun

5000 macro-particles,

10x10 grid cells

Cavity shape

Page 14: Astra A Space Charge Tracking Algorithm

Example: development of time steps.

L-band rf gun

5000 macro-particles,

10x10 grid cells

Page 15: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

Page 16: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

Random distribution with clusters and voids.

Page 17: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

Regular distribution with mis-matched grid.

Page 18: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

Quasi random distribution based on a Hammersley sequence.

Page 19: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

the space charge field is scaled with:

Particles are sorted w. r. t. their emission time. After the emission of a single particle

When a complete time step is fulfilled a new space charge field calculation is initiated.

Some resolution below a time step.

1 QQ

Page 20: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

The grid is set up successively as the particles come out of the cathode.

Equivalently a mirror charge bunch is generated

Page 21: Astra A Space Charge Tracking Algorithm

Example: Space Charge field at the cathode during emission.

1 nC,

3.0 mm dia.

Plate capacitor:

20

16 /

QE

r

MV m

Page 22: Astra A Space Charge Tracking Algorithm

Example: Space Charge field at the cathode during emission.

space charge limited emission:

5 nC launched

2.3 nC emitted

3.0 mm dia.

Page 23: Astra A Space Charge Tracking Algorithm

Emission of particles from the cathode

In Astra it is not necessary to assign the same charge to all macro particles.

This allows to simulate the emission self-consistently, e.g. when the quantum efficiency of the cathode depends on the applied accelerating field, so-called Schottky effect.

Page 24: Astra A Space Charge Tracking Algorithm

Example: Charge vs. phase of an rf gun.

1 nC, 40 MV/m

Page 25: Astra A Space Charge Tracking Algorithm

Example: Charge vs. phase of an rf gun.

1 nC, 40 MV/m

with strong

Schottky effect

Page 26: Astra A Space Charge Tracking Algorithm

Example: Charge vs. phase of an rf gun.

1 nC, 40 MV/m

without space charge

Ekin = 0.0 eV

Ekin = 0.25 eV

Ekin = 0.5 eV

Ekin = 1.0 eV

Page 27: Astra A Space Charge Tracking Algorithm

Astra graphics tools

• for the data visualization and analyses three graphics programs are provided– fieldplot– lineplot– postpro

• the plot programs are menu controlled

Page 28: Astra A Space Charge Tracking Algorithm

Some menu pages of graphic programs

Page 29: Astra A Space Charge Tracking Algorithm

Slice emittance plot

Page 30: Astra A Space Charge Tracking Algorithm

Core emittance plot

Page 31: Astra A Space Charge Tracking Algorithm

Acknowledgement

Thanks to all colleagues who contributed to the program development, especially: Christoph Stolzenburg, Phillipe Piot, Bagrat Grigorian and Sven Reiche.