1 Introduction

Terahertz radiation sources with high field strength remained relatively unexplored by researchers for a long time, but the field is currently undergoing significant advancements due to a diverse range of potential applications and improvements in driving laser technology. The advantage of the THz pulse-based particle manipulator devices compared to radio frequency is that their smaller size enables simplicity and greater compactness, while their picosecond range pulse length enables interaction with the entire electron bunch and can ensure proper synchronization. However, the required energy level of the THz pulses to achieve efficient electron acceleration has been unavailable during the last decades and the electron manipulation techniques and devices powered by THz pulses were also in their infancy. Nowadays, thanks to technological development [1] and new ideas [2], several THz sources with up to a few 100 kV/cm [3], or even MV/cm field strength have been experimentally demonstrated [4, 5]. Such newly proposed sources have already made possible the realization of both electron acceleration [6, 7] and electron characterization [8] arrangements based on THz pulses.

Multiphoton ionization with intense ultrashort laser pulses in Krypton gas has also been investigated numerically [9] and experimentally [10]. In contrast to the electron source generated by the well-proven photoemission technique, in our previous work we assumed electrons created by ionization from optical lasers in Krypton gas jet as the electron source [11, 12] without considering the details of this source. The gas jet allows the relatively easy manipulation of the size and charge of the electron bunch, it also enables more technical elements to be easily implemented in the experimental setup, such as applying more accelerator pulses compared to an electron gun. In this paper, we further investigate our earlier proposed setup [11], wherein counter-propagating THz-pulses were used to directly accelerate electrons from a gas jet, while the ionization was carried out by intense and ultrashort optical laser pulse. Now we show that during the ionization processes the continuously generated particles perceive different accelerating fields in time and space, so the arising time and the distribution of the electrons in space and time have a decisive influence on the acceleration efficiency. Using EPOCH particle-in-cell (PIC) [13] code we simulated and optimized the main parameters of the ionization process, such as the beam waist and the initial charge densities to achieve the highest kinetic energy and the smallest energy spread after the acceleration.

2 Details of the calculation

The spatiotemporal modelling of direct acceleration with high-field terahertz pulses has been provided via simulations in our previous work [14], whereby two identical mostly counter-propagating single-cycle THz pulses produce a standing wave and accelerate an electron, which is assumed to be at the zero-crossing point of the electric field of the THz pulses. The model has three relevant features: (i) besides the transversal field it includes the modelling of the longitudinal field, which is necessary due to the tight focusing; (ii) it calculates with the Poisson spectral amplitude shape, which was a result of the duration of the pulse being reduced to a single cycle; and (iii) describing the propagation of the accelerator pulse, its chromatic nature was taken into account that was also significant because of the single-cycle duration [15,16,17].

The model utilizes a constant number of macroparticles, which is consistent with 10 fC initial bunch charge in the case of 1:1 macroparticle-electron ratio. The charge of the bunches was modified by changing the number of the electrons per macroparticle. The field of a tightly focused electromagnetic wave, which is responsible for the acceleration of the particles and linearly polarized in the z’ direction at frequency ω, is the following:

$$\vec{E}\left( {x^{\prime},z^{\prime},\omega } \right) = E_{0} \frac{{w_{0} }}{{w\left( {x^{\prime}} \right)}}e^{{ - \frac{{z^{{\prime}{2}} }}{{w\left( {x^{\prime}} \right)^{2} }}}} e^{i\psi } \times \left[ {\widehat{{z^{\prime}}} - \frac{{2iz^{\prime}}}{k}\left( {\frac{1}{{w\left( {x^{\prime}} \right)^{2} }} + \frac{k}{{2iR\left( {x^{\prime}} \right)}}} \right)\widehat{{x^{\prime}}}} \right]$$
(1)
$$\psi \left( {x^{\prime}} \right) = kx^{\prime} - \omega t + \frac{{kz^{^{\prime}2} }}{{2R\left( {x^{\prime}} \right)}} - \eta \left( {x^{\prime}} \right) + \phi_{0} ,$$
(2)

where \({x}^{\prime}=x{\text{cos}}\alpha\) and \({z}^{\prime}=z{\text{cos}}\alpha\) are the propagation and polarization direction of the THz pulses after the tilting at an angle α, respectively. The \(w\left({x}^{\prime}\right)={w}_{0}\sqrt{1+\left(\frac{{x}^{\prime}}{{z}_{R}}\right)}\) is the evolving beam radius, \(R\left({x}^{\prime}\right)={x}^{\prime}[1+{\left(\frac{{x}^{\prime}}{{z}_{R}}\right)}^{2}]\) is the radius of the curvature, \(\eta \left({x}^{\prime}\right)={\text{arctan}}\left(\frac{{x}^{\prime}}{{z}_{R}}\right)\) is the Gouy phase along the propagation direction \(\left({x}^{\prime}\right)\), and \({\phi }_{0}\) is the carrier-envelope-phase (CEP). The beam waist is \({w}_{0}\) with the Rayleigh range \({z}_{R}=\frac{\omega {w}_{0}^{2}}{2c}\) and \(k=\frac{\omega }{c}\).

The peak electric field of the slightly tilted accelerator pulses with 0.3 THz central frequency was 5.21 MV/cm. We consider the electric field as a sine function. The initial value of the tilting angle of the THz pulses was set to 4°, while the relative carrier envelope phase was zero. Using Eq. (1) we further improved our numerical simulations to create more realistic model to generate and accelerate electron bunches. We simulated the generation of the electron bunches and in addition optimized the parameters of the investigated accelerator setups. Particle-in-Cell code (EPOCH) was used to simulate the ionization of the electron bunches, while the General Particle Tracer (GPT) software [18] was applied to simulate the acceleration of the previously generated particles.

We have examined three different ionization arrangements. Our proposed setups, which are shown in Fig. 1a–c, include the process of the electron bunch ionization by femtosecond laser pulse(s) and afterwards the acceleration of the generated electron bunches by mostly counterpropagating THz pulses. For the electron source we assumed a Krypton gas jet with a nozzle diameter of 100 µm. The particle number density was \(1.04 \times 10^{20} \frac{1}{{{\text{m}}^{3} }}\). The Krypton gas is supposed to be ionized by an Yb:KGW laser (wavelength = 1030 nm, FWHM = 170 fs). This laser can be the same as the pump for the generation of the (accelerator) THz pulses [19]. The propagation direction of the ionizing laser pulse(s) is perpendicular to the propagation direction of the THz pulses. In case I (Fig. 1a) the propagation direction of the ionizing laser pulse is the same as the acceleration direction of the THz field. In case II (Fig. 1b) the propagation direction of the ionizing laser pulse opposed to the acceleration direction of the THz field. In case III (Fig. 1c) two counterpropagating ionizing laser pulses generate the electrons. The schematic views of the spatial distributions of the ionized electron bunches predicted for the different ionization setups are shown in Fig. 1d–g.

Fig. 1
figure 1

The schematic view of the ionization and acceleration methods. a The propagation direction of the ionizing laser pulse is the same as the acceleration direction of the THz pulses (case I). b The propagation direction of the ionizing laser pulse opposed to the acceleration direction of the THz pulses (case II). c Two counterpropagating ionizing laser pulses generate the electrons (case III). d The spatial distributions in the direction of the acceleration of the ionized electron bunches in all cases (black line: case I and case II, red line: case III). e The spatial distributions in the transversal x-direction of the ionized electrons in all cases (black line: case I and case II, red line: case III). The electron bunches have rotation symmetry in the x–y plane. The generated initial electron bunches in 3 dimensions f with the case I and case II and g with case III setup

By modifying the beam waist of the ionizing laser pulse(s), it is possible to control the transversal size of the generated electron bunches. Furthermore, the initial bunch charge in addition to the initial number density of the gas could also be controlled by the intensity of the ionizing laser pulse(s). At constant bunch charges, by changing the initial volume of the ionized region, the charge densities of the electron beams are also different in case of the various acceleration arrangements. In case I and case II the longitudinal length of the ionized region could only be controlled by the diameter of the nozzle. Typically, it is greater than 0.1 mm [20, 21]. However, in case III the length of the generated electron bunch in the propagation direction of the ionizing laser pulses can also be controlled by the ionizing pulse duration. Using two femtosecond laser pulses with around 49 μJ energy the ionized electron bunch shape is close to a sphere with 20 µm FWHM bunch diameter and with around 10 fC bunch charge. Using one ionizing pulse the electron bunch generation with 10 µm (FWHM) transversal bunch size and with charge of 10 fC requires around 38 μJ energy. While in case of the 20 µm (FWHM) initial transversal bunch size and around 1 pC initial bunch charge the energy of the ionizing laser pulse is 204 μJ.

3 Results

We have examined the efficiency of the electron bunch acceleration with respect to the energy spectra in the case of the optimal settings for electron acceleration obtained in ref. [11]. It is assumed that the electron in the middle of the interaction area is born at the zero-crossing point of the electric field of the THz pulses. The results can be seen in Fig. 2a. This is the most optimal case (MOC) with respect to the achievable kinetic energy. Using 1 mJ energy per THz pulse we have investigated the electron bunch acceleration with two different initial bunch diameters (FWHMx,y = 10 µm, FWHMx.y = 20 µm) in the transversal directions and with many initial bunch charges on the interval of 1–6000 fC.

Fig. 2
figure 2

The energy spectra of the electron bunches after the acceleration a in case of the time synchronization with the MOC and b in case of the realistic time synchronization, which was optimized to get the narrowest energy spectra and the greatest number of the efficiently accelerated electrons

In the numerical simulations of the particle acceleration, we have also investigated two different cases with regards to the generation time of the particles. The first is the “prompt” case, when the shape of the initial electron bunches was determined by simulating the ionizing processes with the PIC code, but the birth time of all the electrons corresponds with the MOC electron generation time. The second case is the “realistic” case, when along with the other properties of the particles such as coordinates and velocities, the birth time of the electrons was also determined by the PIC simulations depending on the ionizing laser parameters, while the central electron was still born at the MOC time. The calculated energy of a single electron, which is around 27 keV, is shown by the magenta dash-dotted line. We used it as a reference value. Thereafter, we have compared the results of the acceleration of different initial bunches generated by case I-III ionizing setups with 10 µm (FWHM) transversal size. In these simulations, the charge of the macroparticle bunches was set to 1 fC, in order that the space charge be negligible. So, the differences between the obtained energy spectra after the acceleration are caused by the effects of the different ionizing methods. By examining the particles generated during the previously described ionization and acceleration processes I-II it could be seen that using the simulation parameters of the MOC after the particle-electric field interactions the electron bunches could be accelerated up to the reference 27 keV kinetic energy. In the case III ionization and acceleration process only the prompt scenario gives around 27 keV average kinetic energy, while using the realistic setup the mean energy of the bunch is only around 24.5 keV. The deviation from the reference energy in the prompt cases, since all electrons are born at the time used for the MOC, is therefore due to their initial spatial positions. In the realistic case, the deviations are due to their initial space and time values. For the realistic case III, the much larger deviation is due to the relatively major difference between the generation time of the electrons compared to the MOC. In conclusion, the role of the realistic (time dependent) electron generation using different ionization procedure is essential in the numerical simulations.

Adjusting the electron bunch generation and the THz pulse synchronization we further optimized the acceleration ensuring that the energy spectrum was as narrow as possible, and the number of the efficiently accelerated electrons was the greatest. Figure 2b shows these results.

It can be stated that in the case of the acceleration of the electron bunches generated by different ionizing setups, a good starting point can be the time synchronization determined by the MOC electron acceleration. However, to increase the acceleration efficiency and narrow the energy spectrum, a new time synchronization is required in each case. Our results show that in each case the electron bunches could be accelerated to around 27 keV average kinetic energy once optimized. It can also be seen that by assuming the case I prompt setup the number of the efficiently accelerated electrons is higher by a factor of 4 compared to the other cases. Our results also show that the energy spectra of the accelerated electron bunches strongly depend on the ionizing setups.

Applying the optimized temporal synchronizations, we extended our realistic (time-dependent) calculations to the case of electron bunches with different initial charges. We have investigated the bunches produced by different ionization processes after the acceleration at the time of 100 ps (it means ~ 10 mm propagation distance from the gas jet). Figure 3 shows the energy spectra of the electron bunches with different bunch charges and with a-d 10 µm and e–h 20 µm transversal bunch sizes (FWHM), respectively. The initial charge of the macroparticle bunches was changed in the range of 10–1000 fC. The initial charges are fixed values, so the charge densities of the bunches generated by case I and case II are the same, while the initial densities generated by the case III are greater in each case. The numerical simulations show that by applying the case I–III ionization and accelerator setups there is a considerable difference between the energy spectra of the accelerated electron bunches.

Fig. 3
figure 3

The energy spectra of the accelerated electron bunches with the initial charge of 10, 100, 500, and 1000 fC, which were generated by case I-III ionizing methods with a–d 10 µm and e–h 20 µm initial transversal bunch sizes (FWHM), respectively. The achievable kinetic energies and thereby the range of the x axes are different in case of a smaller (≤ 100 fC) and higher (≥ 500 fC) bunch charges

Based on the results it can be said that, in the case of the 10 fC initial electron bunch charge in case I and case II setups the smaller initial size (FWHM = 10 µm) is more advantageous, as more electrons could be accelerated to higher energies, than in the 20 µm (FWHM) case. In case I by increasing the initial bunch charge to a few hundreds of femtocoulomb, the advantage of the smaller initial bunch size remains. The width of the spectra is around the same in case of the electron bunches with 10 and 20 µm initial bunch diameters, but the difference between the number of the electrons with average kinetic energy is around 30% in favour of the case 10 µm (FWHM) initial transversal size. In case II by increasing the initial bunch charge the advantage of the smaller size gradually disappears with respect to the number of the efficiently accelerated electrons. The case III setup is barely sensitive to the initial bunch size in the investigated charge range. Moreover, by making allowance for the number of the efficiently accelerated electrons on the swept charge interval (10–1000 fC) the greater initial bunch size has an advantage.

According to the numerical simulations, the larger the initial bunch charge is, the larger the width of the energy spectra. The observable broadening is the most considerable when the initial electron bunches generated by the case II arrangement. In conclusion, if the given application requires a narrow energy spectrum (ΔE < 3% (rms)) and a relatively small bunch charge (Q < few tens of fC), then considering the conditions defined by us in this paper, the case III arrangement must be applied for the acceleration. In the case of the initial bunch charge of a few hundreds of femtocoulombs, the narrowest (3% < ΔE < 7% (rms)) spectrum is predicted by the case I arrangement. The simulation results of the case I give the narrowest energy spectra in the charge range of a few pC (1–6 pC) as well, their energy spreads are between 7 and 17% (rms).

4 Properties of the accelerated electron bunches

To be able to compare the electron bunches more precisely we quantified the main properties of the efficiently accelerated electrons. We determined the length of the accelerated electron bunches and its energy spreads in rms, respectively. The results are shown in Fig. 4 in case of the 10 µm and 20 µm initial transversal bunch sizes (and marked with solid and dashed lines), respectively. The calculations were extended to all investigated realistic ionizing and accelerating methods. Assuming smaller initial bunch charges (Q < few hundreds of fC), the distances between the solid and dashed lines, so the differences between the longitudinal length of the accelerated bunches with different initial transversal sizes are almost negligible. If the charge of a bunch is increased, the differences increase continuously. Increasing the transversal size results in larger improvement in both the bunch length and the energy spread in the case of setup III. This is expected, since in this case the charge density is the largest for a given bunch. Assuming the case III setup the investigated greater bunch size is more beneficial compared it with the smaller bunch size. Generating electron bunches with case III setup and with an initial charge of 6000 fC the difference between the length of the bunches with different transversal sizes is ~ 7%.

Fig. 4
figure 4

A The length and b the energy spread of the accelerated electron bunches, which were generated by case I-III setups in the charge interval of 10–6000 fC with 10 µm and 20 µm initial bunch sizes

In the accelerator setup of case I and case II and assuming a few pC bunch charges, the examined smaller bunch size is more advantageous. Applying case II setup and supposing charges on the entire range of the investigated interval, the length of the bunch in the longitudinal direction after the acceleration is constantly greater than in case I, the differences between the longitudinal sizes are between 330 and 150% (By increasing the charge of the bunch, the difference between the longitudinal length decreases). Moreover, based on the results, it can be stated that up to an initial charge of 1–2 pC the length of the accelerated electron bunch produced by case II setup is longer after the acceleration, as the bunch length in case III setup. On the other hand, the difference in bunch length between the two cases when the charge is further increased disappears and eventually changes sign, i.e., the length of the bunch produced with case III setup will be greater after the acceleration than in case II.

In conclusion, we have determined that below about 100 fC bunch charge, the ionization and acceleration by the case III setup is the most advantageous considering the main parameters of the electron bunch, such as the longitudinal length and the energy spread. At larger bunch charges the case I setup is optimal. For easier transparency, we have summarized the results in Table 1.

Table 1 Classification of the suggested setups by different initial bunch charges and the predicted results

5 Conclusion

We have shown that assuming different ionizing arrangements, and two roughly counter-propagating THz pulses with 1 mJ energy per pulse, by changing the parameters of the ionizing laser(s), electron bunches with different properties can be produced. We have also examined the effect of both the prompt and realistic bunch generation on the acceleration efficiency. After accelerating the electron bunches produced by different ionization techniques in the investigated fC-pC initial charge range with THz pulses, different electron beams are predicted. Our numerical simulations also show that assuming a few tens of fC initial bunch charge, the most optimal case in terms of the longitudinal size and the energy distribution of the bunch is when two counterpropagating ionizing pulses, which propagate perpendicular to the accelerator pulses, generate the electrons from the gas jet source. Increasing the charge further up to a few pC, the optimal setup is when the propagation direction of the ionizing laser pulse is the same as the acceleration direction of the accelerator (THz) pulses. We have also stated that if the shape of the initial electron bunch must be matched to different initial shapes, using two counterpropagating ionizing laser pulses and setting properly their main parameters along with the diameter of the nozzle is the best method to control that.