Reentrant cavities

In a reentrant cell the outer wall overhangs the iris, so the cell’s cross-section folds back on itself. Such cells reach higher accelerating gradients than rounded ones, but the folded wall is also where multipacting electrons can be trapped. A reentrant cell is an EllipticalCavity whose equator ellipse is wider than it is tall, so everything in the tutorials applies. Wakefield runs need ABCI (see Installation).

The cell here is the most reentrant of the TESLA-type cells in V. Shemelin, H. Padamsee and R. L. Geng, Optimal cells for TESLA accelerating structure, Nucl. Instrum. Methods A 496 (2003) 1-7 (Table 2, \(\delta_e\) = +50 %, aperture 35 mm), with a half-cell length of a quarter wavelength at 1.3 GHz.

Build the cell

mirror=True draws the full cross-section, which shows the overhang.

import numpy as np
from scipy.constants import c

from cavsim2d import EllipticalCavity

L = c / 1.3e9 / 4 * 1e3                                 # a quarter wavelength, in mm
cell = [56.56, 37.12, 6.50, 7.34, 35.0, L, 97.76]       # A, B, a, b, Ri, L, Req  [mm]
reentrant = EllipticalCavity(1, cell, beampipe='both', name='reentrant')
reentrant.plot('geometry', mirror=True);
../../_images/1b75d675d739f2dd076127e3f4b94c5a385215750f07ca28cefb5c3ce2bbf584.png

Eigenmodes

reentrant.eigenmode.run({'mesh_config': {'h': 8, 'p': 3}})
q = reentrant.eigenmode.qois
for key in ['freq [MHz]', 'R/Q [Ohm]', 'G [Ohm]', 'Epk/Eacc []', 'Bpk/Eacc [mT/MV/m]']:
    print(f'{key:20s} {q[key]:8.3f}')
freq [MHz]           1278.569
R/Q [Ohm]             127.345
G [Ohm]               286.046
Epk/Eacc []             2.580
Bpk/Eacc [mT/MV/m]      3.642

The reentrant cell resonates at 1278.569 MHz, with an R/Q of 127.345 Ohm and a geometry factor of 286.046 Ohm. Its peak magnetic field is 3.642 mT per MV/m of gradient, below the 4.171 of the TESLA cell in Tutorial 2: a lower peak magnetic field, and so a higher reachable gradient, is what the reentrant shape is for. Its peak electric field is 2.580 times the gradient.

Wakefield, and the field lines

save_fields=True also saves snapshots of the electric field lines as the bunch passes, and animate_fields() plays them.

reentrant.wakefield.run({'MROT': 2, 'wakelength': 20, 'bunch_length': 25,
                         'save_fields': True})
for key, value in reentrant.wakefield.qois.items():
    print(f'{key:20s} {value:.4g}')
reentrant.wakefield.plot_impedance('longitudinal');
|k_loss| [V/pC]      0.2244
k_FM [V/pC]          0.1627
k_loss_HOM [V/pC]    0.06174
|k_kick| [V/pC/m]    6.827
../../_images/45ca81e55e9fc4af160ad388b3a150a9c599954051f55ce5a46ffe1022c150cf.png

A 25 mm bunch loses 0.2244 V/pC to the cell: 0.1627 V/pC into the fundamental mode and 0.06174 V/pC into the higher-order modes. The impedance peaks at the fundamental mode, near 1280 MHz, and again near 2030 and 3190 MHz, the next monopole modes.

reentrant.wakefield.animate_fields();

Multipacting at the folded wall

Launch the electrons across the overhanging part of the wall, between \(z\) = -62 and 62 mm (given in metres).

mp = reentrant.multipacting
mp.set_mesh_parameters(h=8, p=3, pec_maxh=1)
mp.set_emission_points([-0.062, 0.062], n_points=60)
mp.show_emission_points();
../../_images/7a5692b3b500fd34b3f628a31eb2ce150ebb11ec836105ddbf07cf806bd0287b.png
mp.run({'epks': np.linspace(5e6, 70e6, 24), 'phis': np.linspace(0, 2 * np.pi, 36)})
mp.plot_counter();
mp.plot_enhanced_counter();
../../_images/fb6477c80f52e50f787462ca7810beabd39a0fdef6bd507099cad3b1ff1f0aad.png ../../_images/82bb6e086a928d6da2038bbacab623c73ae23fedbec60eea87cc8eb1b19161e3.png

Almost no electron survives 20 impacts up to 45 MV/m. From 47 MV/m up a few do, a share that grows with the field to 4.6 % at 70 MV/m. The enhanced counter stays at 0.0003 throughout: the surviving electrons strike the wall too gently to free others, so their number does not grow, and the cell does not multipact up to 70 MV/m with this wall material.

animate_trajectories() plays the surviving electrons at one field level; with zoom='follow' the view follows the electrons as they settle into their path.

mp.animate_trajectories(epk_i=int(np.argmax(mp.counter)), zoom='follow');

See also