pyecloud development: accurate space charge module +
DESCRIPTION
PyECLOUD development: accurate space charge module + Preliminary results on buildup in SPS quadrupoles. G. Iadarola , G. Rumolo. Many thanks to: H. Bartosik , K.Li , G. Miano , A. Romano. Electron cloud meeting – 27/06/2014. Introduction. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/1.jpg)
PyECLOUD development: accurate space charge module+
Preliminary results on buildup in SPS quadrupoles
G. Iadarola, G. Rumolo
Electron cloud meeting – 27/06/2014
Many thanks to:H. Bartosik, K.Li, G. Miano, A. Romano
![Page 2: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/2.jpg)
Introduction
128 mm
52 mme-cloud
Before launching extensive convergence scans (especially for quadrupole simulations), we addressed possible accuracy issues coming from boundary conditions in the electrons space evaluation
Example: two different models of the SPS MBB dipole
E- distribution significantly different even if geometry is very similar in the multipacting region
Can it be an artifact coming from the grid of the space charge solver?
Nominal 25 ns - 26 GeV - SEY = 1.6
![Page 3: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/3.jpg)
Electron space charge evaluation in PyECLOUD
Standard Particle In Cell (PIC) 4 stages:
1. Charge scatter from macroparticles (MPs) to grid
2. Calculation of the electrostatic potential at the nodes with Finite Difference (FD) method
3. Calculation of the electric field at the nodes (gradient evaluation)
4. Field gather from grid to MPs
Internal nodes
External nodes
Uniform square grid
![Page 4: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/4.jpg)
Electron space charge evaluation in PyECLOUD
Standard Particle In Cell (PIC) 4 stages:
1. Charge scatter from macroparticles (MPs) to grid
2. Calculation of the electrostatic potential at the nodes with Finite Difference (FD) method
3. Calculation of the electric field at the nodes (gradient evaluation)
4. Field gather from grid to MPs
![Page 5: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/5.jpg)
Electron space charge evaluation in PyECLOUD
Standard Particle In Cell (PIC) 4 stages:
1. Charge scatter from macroparticles (MPs) to grid
2. Calculation of the electrostatic potential at the nodes with Finite Difference (FD) method
3. Calculation of the electric field at the nodes (gradient evaluation)
4. Field gather from grid to MPs
Internal nodes:
External nodes:
![Page 6: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/6.jpg)
Electron space charge evaluation in PyECLOUD
Standard Particle In Cell (PIC) 4 stages:
1. Charge scatter from macroparticles (MPs) to grid
2. Calculation of the electrostatic potential at the nodes with Finite Difference (FD) method
3. Calculation of the electric field at the nodes (gradient evaluation)
4. Field gather from grid to MPs
Internal nodes:
External nodes:
Can be written in matrix form:
A is sparse and depends only on chamber geometry and grid size It can be computed and LU factorized in the initialization stage to speed up calculation
![Page 7: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/7.jpg)
Electron space charge evaluation in PyECLOUD
Standard Particle In Cell (PIC) 4 stages:
1. Charge scatter from macroparticles (MPs) to grid
2. Calculation of the electrostatic potential at the nodes with Finite Difference (FD) method
3. Calculation of the electric field at the nodes (gradient evaluation)
4. Field gather from grid to MPs
![Page 8: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/8.jpg)
Electron space charge evaluation in PyECLOUD
Standard Particle In Cell (PIC) 4 stages:
1. Charge scatter from macroparticles (MPs) to grid
2. Calculation of the electrostatic potential at the nodes with Finite Difference (FD) method
3. Calculation of the electric field at the nodes (gradient evaluation)
4. Field gather from grid to MPs
![Page 9: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/9.jpg)
Electron space charge evaluation in PyECLOUD
With this approach a curved boundary is approximated with a staircase
Can we do better?
![Page 10: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/10.jpg)
The Shortley - Weller method
Sorry for the change of notation…
Usual 5-points formula at internal nodes:
Refined approximation of Laplace operator at boundary nodes:
O(h2) truncation error is preserved (see: N. Matsunaga and T. Yamamoto, Journal of Computational and Applied Mathematics 116 – 2000, pp. 263–273)
![Page 11: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/11.jpg)
The Shortley - Weller method
Sorry for the change of notation…
Usual central difference for gradient evaluation at internal nodes:
Refined gradient evaluation at boundary nodes:
![Page 12: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/12.jpg)
Tricky implementation:
• Boundary nodes need to be identified, distances from the curved boundary need to be evaluatedo PyECLOUD impact routines have been employed (some
refinement was required since they are optimized for robustness while here we need accuracy)
• Nodes too close to the boundary can lead to ill conditioned A matrix we identify them and impose U=0
o Special treatment for gradient evaluation is needed at these nodes
• Since chamber geometry and grid size stay constant along the simulation most of the boundary treatment can be handled in the initialization stage
The Shortley - Weller method
![Page 13: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/13.jpg)
Tricky implementation:
• Boundary nodes need to be identified, distances from the curved boundary need to be evaluatedo PyECLOUD impact routines have been employed (some
refinement was required since they are optimized for robustness while here we need accuracy)
• Nodes too close to the boundary can lead to ill conditioned A matrix we identify them and impose U=0
o Special treatment for gradient evaluation is needed at these nodes
• Since chamber geometry and grid size stay constant along the simulation most of the boundary treatment can be handled in the initialization stage
• Field map extrapolated outside the chamber to simplify field gather for particle close to the chamber’s wall
The Shortley - Weller method
![Page 14: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/14.jpg)
Test: uniform charge distribution in a circular chamber
Old space charge module New space charge module
Electrostatic potential [a.u] Electrostatic potential [a.u]
![Page 15: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/15.jpg)
Test: uniform charge distribution in a circular chamber
Old space charge module New space charge module
Ex
[a.u
]
Ex
[a.u
]
![Page 16: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/16.jpg)
Tests: uniform charge distribution in a circular chamber
Old space charge module New space charge module
Ey
[a.u
]
Ey
[a.u
]
![Page 17: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/17.jpg)
Test: uniform charge distribution in a circular chamber
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 1 mm
![Page 18: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/18.jpg)
Test: uniform charge distribution in a circular chamber
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 1 mm
![Page 19: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/19.jpg)
Test: uniform charge distribution in a circular chamber
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 1 mm
![Page 20: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/20.jpg)
Test: uniform charge distribution in a circular chamber
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 1 mm
![Page 21: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/21.jpg)
Test: uniform charge distribution in a circular chamber
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 0.5 mm
![Page 22: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/22.jpg)
Tests: uniform charge distribution in a circular chamber
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 0.2 mm
![Page 23: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/23.jpg)
Test: Gaussian beam in an elliptic chamber
Ey [a.u] Ey [a.u]
Old space charge module New space charge module
![Page 24: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/24.jpg)
Test: Gaussian beam in an elliptic chamber
Ey [a.u] Ey [a.u]
Old space charge module New space charge module
![Page 25: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/25.jpg)
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 1 mm
Test: Gaussian beam in an elliptic chamber
![Page 26: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/26.jpg)
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 0.5 mm
Test: Gaussian beam in an elliptic chamber
![Page 27: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/27.jpg)
Field close to the boundary significantly more accurate
Analytic Numerical
Old space charge m
oduleN
ew space charge m
odule
Dh = 0.2 mm
Test: Gaussian beam in an elliptic chamber
![Page 28: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/28.jpg)
Test: LHC beam screen – uniform e- distribution
Old space charge module New space charge module
Electrostatic potential [a.u] Electrostatic potential [a.u]
![Page 29: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/29.jpg)
Test: LHC beam screen – uniform e- distribution
Old space charge module New space charge module
Ex
[a.u
]
Ex
[a.u
]
![Page 30: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/30.jpg)
Test: LHC beam screen – uniform e- distribution
Old space charge module New space charge module
Ey
[a.u
]
Ey
[a.u
]
![Page 31: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/31.jpg)
128 mm
52 mme-cloud
First test within buildup simulations
Two different models of the SPS MBB dipole
Nominal 25 ns - 26 GeV - SEY = 1.6Nominal 25 ns - 26 GeV - SEY = 1.6
Old space charge module New space charge module
![Page 32: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/32.jpg)
SPS quadrupoles - simulated scenarios
8 72 8 7272 8 72
25 ns beam
Intensity 1.25 x 1011ppb
26GeV:
σz=0.22 m
0.82 T/m
450GeV:
σz=0.12 m
14 T/m
Two energy values
Beam transverse size is calculated
assuming εn=2.5μm
![Page 33: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/33.jpg)
SPS quadrupoles - QF
Quite low thresholds
Distribution shrinks at higher energy
![Page 34: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/34.jpg)
SPS quadrupoles - QD
Even lower thresholds than QF
Distribution shrinks at higher energy
![Page 35: PyECLOUD development: accurate space charge module +](https://reader035.vdocuments.net/reader035/viewer/2022081416/568163a3550346895dd4a97d/html5/thumbnails/35.jpg)
Thanks for your attention!