8. Multipacting

Electrons released from a cavity wall are pushed around by the RF field. At some field levels they return to the wall in step with the field, again and again, and each impact frees more electrons. This resonant avalanche, multipacting, absorbs RF power and can stop the field from rising. cavsim2d finds those field levels by tracking electrons in the cavity’s own field.

In this tutorial you will:

  1. Set up the mesh and see where the electrons are launched.

  2. Look at the wall’s secondary emission yield.

  3. Sweep the field level and track the electrons.

  4. Find the field levels where multipacting can build up.

Before you start: work through An elliptical cavity. Running the whole notebook takes a few minutes, most of it in the sweep of step 3.

1. The cavity and the mesh

One TESLA cell. The electrons that matter stay within a fraction of a millimetre of the wall, so the field there must be resolved well. set_mesh_parameters sets the mesh multipacting uses, with pec_maxh, the element size along the metal wall, in millimetres.

import numpy as np

from cavsim2d import EllipticalCavity

mid_cell = [42, 42, 12, 19, 35, 57.7, 103.353]      # A, B, a, b, Ri, L, Req  [mm]
cell = EllipticalCavity(1, mid_cell, beampipe='none', name='tesla_cell_mp')

mp = cell.multipacting
mp.set_mesh_parameters(h=25, p=3, pec_maxh=1)
mp.show_mesh();

2. The wall material

Multipacting can only grow where an electron that hits the wall frees more than one new electron: where the secondary emission yield \(\delta\) is above 1. cavsim2d comes with a yield curve for a copper-like wall. set_sey(path) reads your own, a two-column table of impact energy and yield.

mp.plot_sey();
../_images/dc38430acb7133ad08618fadf4ddb7c06036e6892690c5b28e176269f922eb8e.png

The yield is above 1 only between two impact energies, the crossover energies. An electron that hits the wall more slowly, or faster, frees fewer than one electron on average.

3. Where the electrons start

In an elliptical cell multipacting happens near the equator, so the electrons are launched from the wall there. set_emission_points takes the range of \(z\), in metres, and the spacing of the launch sites.

mp.set_emission_points([-0.01, 0.01], step=0.0005)
mp.show_emission_points();
../_images/e7955ed05ec2333d8452d566e88d47c0d127e2dc5dc12372706ccbe4176f1db5.png

4. Sweep the field level

run() solves the cavity’s field, then, for each peak surface field in epks, launches electrons from every site at every RF phase in phis and follows them. This is the slow step; cavsim2d spreads it over all your processor cores. Here: 45 field levels from 1 to 90 MV/m, and 36 launch phases.

mp.run({'epks': np.linspace(1e6, 90e6, 45),           # peak surface fields [V/m]
        'phis': np.linspace(0, 2 * np.pi, 36)});      # launch phases [rad]
print(f"sweep: {mp.results['sweep_time [s]']:.0f} s")
sweep: 402 s

The time the sweep took is printed above. It grows in proportion to the number of field levels, launch phases and launch sites, so start coarse and refine where something happens.

5. Where multipacting can build up

The counter function, \(c_{20}/c_0\), is the fraction of launched electrons that are still bouncing after 20 impacts. Where it is above zero, electrons have locked into a resonant path.

mp.plot_counter();
peak = np.argmax(mp.counter)
print(f'largest c20/c0: {mp.counter[peak]:.2f}, at {mp.epk[peak]:.0f} MV/m')
../_images/51072e0a0d9c2970f6d9dfbdffc5c94ea2f194d3966a4edf8c6290144bb69b65.png
largest c20/c0: 0.18, at 56 MV/m

Electrons survive 20 impacts between about 31 and 64 MV/m, where up to 18 % of them are still bouncing; below and above that band almost none are. Those are the field levels where resonant paths exist.

Surviving 20 impacts is not enough on its own: the impacts must also free more electrons than they absorb. The final impact energy of the survivors, against the two crossover energies of the yield curve, shows whether they do.

mp.plot_final_energy();
../_images/0144de70874aa10311a2fd6af2a8d99ae55ba68405b90af781bf64cadf0a5661.png

The survivors hit the wall with at most about 35 eV, below the lower crossover energy of about 50 eV, the lower of the two horizontal lines. Each impact therefore frees fewer than one electron on average.

The enhanced counter, \(e_{20}/c_0\), combines both: the number of electrons after 20 impacts, counting the secondary electrons each impact frees, per electron launched. Above 1, the number of electrons grows: an avalanche.

mp.plot_enhanced_counter();
../_images/bf4e8882d7bced70a1ffbea3449c8822cbac57e41a4428c3ee9d3ba391b2f84a.png

The enhanced counter stays near 0.003 at every field level, far below 1: with this wall material the resonant electrons die out instead of multiplying, and the cell does not multipact. A wall whose yield crosses 1 at a lower energy could change that; set_sey() lets you test your own yield curve.

In a notebook, mp.plot_trajectories() opens a viewer with two sliders, for the field level and the trajectory, to look at the electrons’ paths; mp.animate_trajectories() animates them.

What you learned

  • cav.multipacting tracks electrons in the cavity’s own field; set_mesh_parameters, set_emission_points and set_sey prepare the run, and the show_ and plot_ methods let you inspect each step first.

  • run() sweeps the peak surface field over epks and the launch phase over phis.

  • The counter function shows where electrons survive; the enhanced counter, above 1, where they multiply.

Next

Shape optimisation: let a search find the cell shapes with the best trade-off between figures of merit.