![Page 1: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/1.jpg)
AstraA Space Charge Tracking Algorithm
Klaus Flöttmann
DESY
Zeuthen 18.08.03
![Page 2: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/2.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/3.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/4.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/5.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/6.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/7.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/8.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/9.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/10.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/11.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/12.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/13.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/14.jpg)
Example: development of time steps.
L-band rf gun
5000 macro-particles,
10x10 grid cells
![Page 15: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/15.jpg)
Emission of particles from the cathode
![Page 16: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/16.jpg)
Emission of particles from the cathode
Random distribution with clusters and voids.
![Page 17: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/17.jpg)
Emission of particles from the cathode
Regular distribution with mis-matched grid.
![Page 18: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/18.jpg)
Emission of particles from the cathode
Quasi random distribution based on a Hammersley sequence.
![Page 19: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/19.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/20.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/21.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/22.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/23.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/24.jpg)
Example: Charge vs. phase of an rf gun.
1 nC, 40 MV/m
![Page 25: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/25.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/26.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/27.jpg)
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 Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/28.jpg)
Some menu pages of graphic programs
![Page 29: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/29.jpg)
Slice emittance plot
![Page 30: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/30.jpg)
Core emittance plot
![Page 31: Astra A Space Charge Tracking Algorithm Klaus Flöttmann DESY Zeuthen 18.08.03](https://reader036.vdocuments.net/reader036/viewer/2022081721/56649ee45503460f94bf3b0d/html5/thumbnails/31.jpg)
Acknowledgement
Thanks to all colleagues who contributed to the program development, especially: Christoph Stolzenburg, Phillipe Piot, Bagrat Grigorian and Sven Reiche.