PyECLOUD development: accurate space charge module +

35
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

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 Presentation

Transcript of PyECLOUD development: accurate space charge module +

Page 1: PyECLOUD development: accurate space charge module +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

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 +

SPS quadrupoles - QF

Quite low thresholds

Distribution shrinks at higher energy

Page 34: PyECLOUD development: accurate space charge module +

SPS quadrupoles - QD

Even lower thresholds than QF

Distribution shrinks at higher energy

Page 35: PyECLOUD development: accurate space charge module +

Thanks for your attention!