1 Introduction

Magnetic reconnection is thought to play an important role in releasing energy stored in magnetic fields in multiple environments, including solar flares (e.g. Zharkova et al., 2011) and substorms in Earth’s magnetotail (e.g. Birn et al., 2012). In situ observations (e.g. Imada et al., 2007; Fu et al., 2013) and numerical simulations (e.g. Sitnov and Swisdak, 2011) also suggest that jets with abrupt fronts characterised by large increases in magnetic field strength may be caused by magnetic reconnection. Interaction of the jet with stronger fields causes the jet to slow down and stop (e.g. Khotyaintsev et al., 2011). This effect is called jet braking and has been shown to accelerate particles (Artemyev, 2014).

A major open question in the physics of solar flares lies in describing the mechanisms responsible for accelerating particles (for an overview of this topic see reviews by Miller et al., 1997; Zharkova et al., 2011; Cargill et al., 2012). A variety of mechanisms have been proposed, including acceleration by parallel electric field in the reconnection region (e.g. Litvinenko, 1996; Wood and Neukirch, 2005; Gordovskyy, Browning, and Vekstein, 2010a,b), acceleration at shocks (e.g. Cargill, 1991; Tsuneta and Naito, 1998; Miteva and Mann, 2007; Mann, Warmuth, and Aurass, 2009; Chen et al., 2015), and stochastic acceleration (e.g. Miller et al., 1997).

It has also been shown that particle acceleration and trapping may be obtained in what is known as a collapsing magnetic trap (CMT) (e.g. Somov and Kosugi, 1997; Bogachev and Somov, 2001, 2005, 2007, 2009; Somov and Bogachev, 2003; Karlický and Kosugi, 2004; Karlický and Bárta, 2006; Grady and Neukirch, 2009; Minoshima, Masuda, and Miyoshi, 2010; Minoshima et al., 2011; Grady, Neukirch, and Giuliani, 2012; Eradat Oskoui, Neukirch, and Grady, 2014). Generally speaking, this involves a stretched magnetic field prior to the onset of reconnection relaxing to a lower-energy configuration. Particles gain energy in this scenario due to betatron and Fermi acceleration.

We propose a model to combine a braking jet with a CMT and investigate trapping and acceleration mechanisms generated by such a trap configuration in the context of solar flares. In this model a plasma jet produced at the reconnection region in the standard model of solar flares (see Shibata and Magara, 2011) propagates sunward and forms a braking jet as it enters regions of higher magnetic field closer to the solar surface. This is accompanied by a relaxation of the field lines analogous to a CMT. In contrast to other models of CMTs, our proposed model incorporates a front associated with the braking jet at which there is a pileup of magnetic flux.

Due to the propagation of the front and the high magnetic field strength associated with it, a patch of relatively strong perpendicular electric field (in comparison with a normal CMT) is produced in the region of the front. This is consistent with magnetohydrodynamic (MHD) simulations by, for example, Birn and Hesse (1996) in the context of the Earth’s magnetotail, as well as for solar flares by Karlický and Bárta (2006). In addition to the front propagation, we add an indentation into the front caused by the interaction of the braking plasma jet with the low-lying magnetic field loops. This structure is also seen in the MHD simulations in Birn and Hesse (1996) and Karlický and Bárta (2006). Finally, Artemyev (2014) suggests that as the front propagates it may get steeper (in the sense that there is more pileup of magnetic field lines). This steepening of the front is incorporated into our model at the beginning of the simulation when the jet is propagating through regions of lower magnetic field strength. As the jet encounters regions of strong field and slows down sufficiently we reduce the pileup of magnetic field lines.

The aim of this work is to study charged particle dynamics in such a model. To that end our paper is organised as follows: in Section 2 we incorporate a braking jet into the CMT model of Giuliani, Neukirch, and Wood (2005). To do this, we modify the analytical expressions for the electromagnetic fields describing a CMT to include a front and a braking jet. We initialise test particle orbits with a wide range of initial conditions in these analytical fields and solve the relativistic guiding centre equations for the particle orbits numerically. In this paper we only examine the orbits of electrons. In Section 3 we present several cases of typical particle orbits seen in this model. Section 4 discusses the key factors underpinning the different behaviour observed. Finally in Section 5 we discuss the relative abundance of different types of particle orbit behaviour for various model parameters, and any resulting effects on test particle energisation.

2 Analytical Model of Electromagnetic Fields

To define the electromagnetic fields analytically we follow the transformation method of Giuliani, Neukirch, and Wood (2005). This approach assumes that the evolution of the CMT occurs in a region of the corona where ideal MHD holds. Ideal MHD implies that the magnetic field is frozen to the plasma flow, which means that the fields may be calculated from a specified flow. Integration of the plasma flow velocity leads to an expression for the position of a fluid element at the final time (at the end of the simulation) as being a function of the position of the fluid element at an earlier time, that is, \(\boldsymbol{x}_{\infty}= \boldsymbol{G}(\boldsymbol{x},t)\). We choose our model to be two-dimensional, so we can write

$$ \boldsymbol{B} = \nabla A (x,y,t) \times\boldsymbol{e}_{z} + B_{z} \boldsymbol{e}_{z} . $$
(1)

We specify the flux function, \(A\), (and hence the electromagnetic fields) at \((\boldsymbol{x}, t)\) by choosing a final flux function, \(A_{0}(\boldsymbol{x})\) and a coordinate transformation \(\boldsymbol{x}_{\infty}(\boldsymbol{x}, t)\) so that \(A(\boldsymbol{x},t) = A_{0} [\boldsymbol{x}_{\infty}(\boldsymbol{x},t) ]\). In the present investigation we set \(B_{z} = 0\).

Following Giuliani, Neukirch, and Wood (2005), we choose a bipolar configuration for the final flux function of the form

$$ A_{0}(\boldsymbol{x}) = c_{1} \biggl[\arctan \biggl( \frac{y + 1}{x + 0.5} \biggr)+ \arctan \biggl(\frac{y + 1}{x - 0.5} \biggr) \biggr], $$
(2)

where \(x\) is the spatial coordinate parallel to the solar surface, \(y\) is the coordinate normal to the solar surface, and \(c_{1}\) determines the strength of the bipole. As in Giuliani, Neukirch, and Wood (2005), we choose the normalising length scale to be \(\hat{L} = 10^{7}~\mbox{m}\). We choose a coordinate transformation given by

$$\begin{gathered} y_{\infty}= \biggl[s\log \biggl(1 + \frac{y}{s} \biggr) \bigl(1 - F(y)G(x) \bigr)+ y F(y) G(x) + y\frac{1 + \tanh\phi}{2} \biggr]f(t) + y g(t), \end{gathered}$$
(3)
$$\begin{gathered} x_{\infty}= x, \end{gathered}$$
(4)

where

$$ \begin{aligned} f(t) ={}& \frac{1 - \tanh(t - t_{0})}{2},\qquad g(t) = 1 - f(t), \\ F(y) ={}& \frac{1 - \tanh(y - y')}{2}, \qquad G(x) = \frac{\tanh(x + x') - \tanh(x - x')}{2}, \\ \phi={}& \alpha \biggl(1 + \biggl(\chi\sin \biggl(\frac{\pi y}{y_{0}} \biggr)- 1 \biggr)\frac{1 - \tanh(\zeta(t - t'))}{2} \biggr) \\ {}& \cdot \bigl( (y + 1 ) \bigl(s_{o} x^{2} + 1 \bigr) \bigr)^{\beta}\biggl(y - v_{\phi}\sigma\tanh \biggl( \frac{t}{\sigma} \biggr)- y_{0} + J \biggr)+ T, \end{aligned} $$
(5)

and

$$\begin{gathered} J = d \mathrm{e}^{-x^{2} y /w}, \end{gathered}$$
(6)
$$\begin{gathered} T = k \biggl(1 + \biggl(\chi\sin \biggl(\frac{\pi y}{y_{0}} \biggr)- 1 \biggr)\frac{1 - \tanh(\zeta(t - t'))}{2} \biggr)\tan \biggl(\frac{\pi}{2} \frac{x^{2}}{w_{2}} \biggr)\tanh(y). \end{gathered}$$
(7)

Appendix A contains a more detailed discussion of how the transformation in Equations (3)–(7) is obtained.

The properties of the CMT are determined by the parameters in the transformation in Equations (3)–(7). The parameters \(d,w,\beta,w_{2},k,x',y',s\) and \(s_{o}\) are chosen so that the shape of the field lines resembles that found in MHD simulations, for example by Karlický and Bárta (2006). The steepness of the front is controlled by \(\alpha, \chi, \zeta\) and \(t'\). These parameters are chosen so that the gradient of the magnetic field at the jet braking region is initially increasing (when magnetic flux is piling up), and later decreasing (when the jet is being slowed by the stronger magnetic field in the lower loops). Of the remaining parameters, the initial speed of the front is determined by \(v_{\phi}\), the initial position of the front by \(y_{0}\), \(\sigma\) controls the distance to which the front propagates, and the time at which the front dissipates is given by \(t_{0}\).

The value of \(\alpha\) is set by balancing the deceleration of the jet with deceleration forces due to both curvature of the field lines at the centre of the braking jet region and magnetic pressure. In the frame of reference of the jet the acceleration is \(\partial v/ \partial t\). By assuming a normalising timescale of \(\hat{T} = 10~\mbox{s}\), the acceleration in the frame of reference of the jet is approximately \(\hat{L}/\hat{T} ^{2} = 10^{5}~\mbox{m}\,\mbox{s}^{-2}\). This can also be related to the forces acting on the plasma in the jet as follows:

$$ \frac{\partial v}{\partial t} \approx\frac{1}{\rho} \biggl( \frac {B^{2}}{\mu_{0} R_{c}} - \nabla\frac{B^{2}}{2\mu_{0}} \biggr). $$
(8)

The two terms on the right hand side of Equation (8) are the magnetic tension and pressure terms, respectively. Assuming a mass density of \(\rho= 10^{-10}~\mbox{kg}\,\mbox{m}^{-3}\), a magnetic field of order \(\hat{B} = 10^{-2}~\mbox{T}\) in the CMT, a radius of field line curvature \(R_{c} \approx10^{7}~\mbox{m}\) in the jet braking region, and approximating the magnetic permeability as \(\mu_{0} \approx10^{-6}~\mbox{H}\,\mbox{m}^{-1}\), requires a magnetic field gradient \(\nabla (B^{2} ) \approx10^{-11}~\mbox{T}^{2}\,\mbox{m}^{-1}\).

One set of non-dimensional parameters reproducing the properties of the CMT model we require is given in Table 1. In this paper we refer to this set of parameters as the basic parameters. The magnetic field lines and out-of-plane electric field given by our CMT model using the basic parameters at various times are shown in Figure 1. The desired features, in particular, the pileup of magnetic flux, the indentation due to the braking jet deforming field lines, and the slowing and dissipation of the jet front, are clearly evident in Figure 1. Extraneous patches of strong electric field for large values of horizontal distance from the centre of the trap (\(|x| \gtrsim15~\mbox{Mm}\)) and early times (\(t < 1~\mbox{s}\)) are undesirable, however, they do not affect particle orbits because test particles are initialised on field lines that do not cross this region.

Figure 1
figure 1

Panels (a)–(i) outline the temporal evolution of a collapsing magnetic trap which incorporates jet braking and flux pileup. The evolution of the electric field is seen in colour and overlaid with magnetic field lines (black) to illustrate the evolution of the magnetic field.

Table 1 Basic non-dimensional parameters used in the CMT model (Equations (3)–(7)) which control the shape of the trap, the steepness of the front, and the propagation of the front. Appendix A details how these parameters affect the CMT model.

3 Sample Test Particle Orbits

The particle trajectories are solved for by integrating the relativistic guiding centre equations as given in Northrop (1963, p. 32) (for similar numerical implementations of these equations see Gordovskyy, Browning, and Vekstein, 2010b; Eradat Oskoui and Neukirch, 2014; Threlfall et al., 2015a). The equations are

$$ \dot{\boldsymbol{R}}_{\perp} = \frac{\boldsymbol{b}}{B} \times \biggl[-\boldsymbol{E} + \frac{\mu}{\gamma e} \nabla B + \frac{mU}{e} \frac{d\boldsymbol{b}}{\mathrm{d}t} + \frac {m\gamma}{e}\frac{d\boldsymbol{u}_{E}}{\mathrm{d}t} + \frac{U}{\gamma }E_{\parallel}\boldsymbol{u}_{E} + \frac{\mu}{\gamma e} \boldsymbol{u}_{E} \frac{\partial B}{\partial t} \biggr], $$
(9)

and

$$ m\frac{\mathrm{d}U}{\mathrm{d}t} = m\gamma\boldsymbol{u}_{E} \cdot\frac {d\boldsymbol{b}}{\mathrm{d}t} + \mathrm{e}E_{\parallel} - \frac{\mu}{\gamma } \frac{\partial B}{\partial s}, $$
(10)

where \(\gamma\) is given by

$$ \gamma= \sqrt{1 + \frac{U^{2} + u_{E}^{2}}{c^{2}} + \frac{2\mu B}{mc^{2}}}. $$
(11)

Here \(\boldsymbol{u}_{E} = \boldsymbol{E} \times \boldsymbol{B}/B^{2}\) is the \(E\) cross \(B\) drift velocity of the guiding centre, and \(U = \gamma v_{\parallel}\), where \(v_{\parallel}= \boldsymbol{v} \cdot\boldsymbol{b}\) and \(\boldsymbol{b}\) is the unit vector in the direction of the magnetic field. \(\boldsymbol{R}\) refers to the position of the guiding centre, so \(\dot {\boldsymbol{R}}_{\perp}\) is the guiding centre drift velocity perpendicular to the magnetic field. Lastly, \(\mu= p_{\perp}^{2}/2mB\) is the relativistic magnetic moment, where \(p_{\perp}= \gamma m v_{\perp}\) is the perpendicular momentum of the particle, \(m\) is the electron mass, \(e\) is the electron charge and \(c\) is the speed of light. The guiding centre equations given in Northrop (1963) contain factors of \((1 - E^{2}/B^{2} )\) which are set to unity in Equations (9)–(10) due to our assumption that the plasma flow is non-relativistic.

Equations (9)–(11) are normalised (subject to the values of \(\hat{L}, \hat{T} \) and \(\hat{B}\) given in Section 2) and solved numerically using an adaptive timestep Runge–Kutta scheme (specifically the Cash–Karp method; see Cash and Karp, 1990, for details). This method adjusts the timestep of the code so that the difference between fourth and fifth order Runge–Kutta solutions is below a chosen tolerance. Since Equation (11) defines \(\gamma\), it does not need to be integrated; however, it is used to update the value of \(\gamma\) at the beginning of each timestep. Test particle orbits are initialised in the CMT with a specified position, kinetic energy and pitch angle, \(\theta\equiv \arctan (v_{\perp}/v_{\parallel})\). In this paper we refer to pitch angles near \(\theta= 90^{\circ}\) as high pitch angles, and pitch angles near \(\theta= 0^{\circ}\) or \(\theta= 180 ^{\circ}\) as low pitch angles. We illustrate the most common particle trajectories in Sections 3.13.3. Section 3.1 describes particle orbits which are dominated by trapping in the jet braking region near the centre of the CMT (these orbits we will define as type 1 orbits), particle orbits dominated by trapping in the sides of the CMT are described in Section 3.2 (we define these as type 2 orbits, and introduce three subcategories of these in Section 5), while orbits which escape the CMT are described in Section 3.3 (we define these orbits as type 3).

3.1 Trapping in Jet Braking Region (Type 1)

Test particle orbits starting in the centre of the trap with a high pitch angle are trapped near the centre in the jet braking region. To demonstrate this effect, four orbits are initialised at different vertical positions in the middle of the trap with a starting pitch angle of \(\theta= 75^{\circ}\). These initial conditions ensure that the orbits are trapped by the braking jet. The particle orbit trajectories and kinetic energies are shown in Figure 2. Test particle orbits with a lower initial vertical position experience more acceleration and propagate further down in the magnetic trap. Towards the end of the simulation time, as the jet front weakens, the test particles exit the braking jet and become trapped in a wider region. Although by definition type 1 orbits are dominated by trapping in the jet braking region, more complicated behaviour is also possible. One example of this is shown by the particle orbit started at \(55~\mbox{Mm}\), which is briefly trapped in the curved field lines beside the jet braking region before the front dissipates. For this test particle orbit, trapping in this region produces a small energy gain of approximately \(3~\mbox{keV}\) starting at \(t \approx30~\mbox{s}\). Test particle orbits with higher initial vertical positions do not exhibit this behaviour and hence do not gain any energy from trapping in the loop sides.

Figure 2
figure 2

Test particle trajectories (a) and kinetic energies (b) in cases where orbits become trapped in the jet braking region of a CMT (type 1 orbits). The initial conditions for these orbits are \(x = 0~\mbox{Mm}, \theta= 75^{\circ}, E_{k0} = 5.5~\mbox{keV}\). Initial vertical positions given in the legend.

3.2 Trapping in Loop Legs (Type 2)

Test particle orbits with a lower initial pitch angle will not be trapped in the braking jet. For a low initial pitch angle and with initial horizontal position \(x = 0~\mbox{Mm}\), orbits initialised high in the trap, inside the front, escape the trap after few or no bounces. These orbits are discussed in Section 3.3. In this section we focus on orbits that are initialised below the jet braking region. As the front passes, these orbits become trapped between a mirror point near to the footpoint of the loop and the braking jet. We refer to these orbits as trapped at the sides of the loop, or type 2 orbits.

To demonstrate typical type 2 behaviour we again initialise four test particle orbits with varying initial vertical position at the centre of the CMT (\(x = 0~\mbox{Mm}\)), and an initial pitch angle of \(\theta= 40^{\circ}\). The resulting particle orbits and kinetic energies are presented in Figure 3. Test particles are initialised on a field line which has only one bend in it prior to the passage of the jet front. Test particles on such a field line travel between two mirror points on either side of \(x = 0~\mbox{Mm}\). As the jet front approaches, the field lines start to curve and compress. This compression increases the magnetic field strength at the braking jet leading to particle orbits becoming confined away from the jet centre. As the trap collapses particle orbits gain energy. Towards the end of the simulation, the field lines straighten again and the test particles no longer mirror at the jet centre, but instead have access to a larger portion of the lower loop.

Figure 3
figure 3

Test particle trajectories (a) and kinetic energies (b) in cases where orbits become trapped in the loop legs of a CMT (type 2 orbits). The initial conditions for these orbits are \(x = 0~\mbox{Mm}, \theta= 40^{\circ}, E_{k0} = 5.5~\mbox{keV}\). Initial vertical positions are given in the legend.

The energy gains of type 2 orbits do not follow the simple pattern of type 1 orbits. Very little energy is gained before the jet front passes the field line along which the test particle is orbiting. Once the jet reaches the test particle orbit location, the test particle experiences significant acceleration while trapped in the side of the loop. Furthermore we see that there are slightly different locations where orbits are trapped at the side of the loop. For instance, the orbit started at \(49.5~\mbox{Mm}\) gets trapped lower in the loop leg and as a result gains energy without interruption (in comparison to the orbit started at \(44.2~\mbox{Mm}\) which changes locations where it is trapped more often).

Of the categories of orbits found in this CMT, type 2 motion shows the largest energy gains. By varying the trap parameters it is possible to obtain energies of \({\approx}\,100\mbox{ keV}\) for electrons (see Section 5 for effects of trap parameters on particle motion). An example of an orbit achieving such energies is shown in Figure 4, which is achieved by setting \(v_{\phi}= -3\), \(\sigma= 3\), and \(y_{0} = 10\), resulting in a faster initial jet flow speed (see Appendix A for an explanation of how these parameters affect the location and speed of the front).

Figure 4
figure 4

Test particle orbit (a) and kinetic energy (b) for an orbit achieving kinetic energies higher than \(100~\mbox{keV}\). The trap parameters used in this simulation are the same as given in Table 1 with the following parameters modified: \(v_{\phi}= -3\), \(\sigma= 3\), and \(y_{0} = 10\). The initial conditions of the test particle orbit are \(y = 73.3~\mbox{Mm}, x = 0~\mbox{Mm}, \theta= 85^{\circ}, E_{k0} = 5.5~\mbox{keV}\).

3.3 Early Escape (Type 3)

As discussed in Section 3.2, test particle orbits initialised with a low pitch angle near the jet front are unlikely to be trapped for more than a few bounces; as a result these orbits escape much earlier and do not gain as much energy as type 2 orbits or some type 1 orbits. We refer to these as type 3 orbits. To demonstrate the dependence of the type of orbit on the initial conditions, we present four orbits starting at the same position in the CMT, with varying initial pitch angle in Figure 5. Test particles with initial pitch angle \(\theta= 15^{\circ}\,\mbox{--}\, 20^{\circ}\) develop type 3 orbits and all escape the CMT after about 20 seconds. By increasing the initial pitch angle, test particle orbits execute increasing numbers of bounces, until at \(\theta= 30^{\circ}\) they no longer exit the CMT within the simulation time. This is reminiscent of the findings of Eradat Oskoui, Neukirch, and Grady (2014), albeit in the context of a different CMT model. Further increases in initial pitch angle for the same initial position yield type 2 orbits and, for sufficiently high pitch angles, type 1 orbits. Among type 3 orbits, particles that are trapped longer are able to gain more energy.

Figure 5
figure 5

Test particle trajectories (a) and kinetic energies (b) in cases where orbits exit the CMT within the simulation time (type 3 orbits), with the exception of the orbit shown in black, which is a type 2 orbit, shown for comparison. The initial conditions of the test particle orbit are \(y = 50~\mbox{Mm}, x = 0~\mbox{Mm}, E_{k0} = 5.5~\mbox{keV}\). The initial pitch angles are given in the legend.

In Figure 5, the particle orbit with initial pitch angle \(\theta= 30^{\circ}\) is more readily classified as a type 2 orbit because it remains trapped throughout the simulation time and for a portion of the orbit is confined to the loop leg. Test particles with a lower initial pitch angle have type 3 orbits. This shows that small changes in initial conditions can cause an orbit to entirely change classification.

4 Discussion of Test Particle Motion and Acceleration Mechanisms

4.1 Trapping Locations

The behaviour of particle orbits outlined in Section 3 may be explained by considering the positions of possible mirror points within the CMT. Mirroring of a particle occurs due to terms on the right hand side of Equation (10). In our model mirror points can occur due to field line curvature (first term on the right hand side of Equation (10)) and strengthening of the magnetic field (third term on the right hand side of Equation (10)Footnote 1). For a given test particle orbit, mirror points may be located on either side of the indentation caused by the braking jet (regions labelled a in Figure 6), further up the loop legs just below the front (regions labelled b in Figure 6) as well as near the footpoints of the loops (regions labelled c in Figure 6).

Figure 6
figure 6

Approximate locations of possible mirror points for particles trapped in our CMT model are circled. The test particle orbit initial conditions determine in which region the particle is mirrored. Black lines are magnetic field lines. Regions a and b may contain mirror points because of the higher magnetic field strength associated with the braking jet. Mirror points located in the region c occur due to the stronger magnetic field at the solar surface.

Type 1 orbits are trapped between two mirror points located on either side of the indentation around the region of the braking jet (labelled a in Figure 6). Type 2 motion is caused by mirroring between points in regions c and b, c and a, or b and a. For example, trapping between mirror points in regions b and c occurs for the orbit started at \(49.5~\mbox{Mm}\) in Figure 3, whereas the test particle orbit initialised at \(44.2~\mbox{Mm}\) in Figure 3 mirrors between points in regions a and b. As the jet progresses downward, the magnetic field strength increases, causing some particle orbits to be trapped outside of the jet braking region, resulting in type 2 motion. In order to see an appreciable front in this CMT model the magnetic field strength in the front needs to be comparable to the magnetic field near the footpoints. As a result, test particle orbits with a sufficiently small initial pitch angle to escape the jet braking region gain enough energy within a few bounces to escape the trap.

4.2 Acceleration Mechanisms

To ascertain the location of most efficient acceleration for a particular orbit we consider Figure 7, which shows how the energy of two test particles (of type 1 and 2) changes throughout their respective orbits. The type 1 orbit (Figure 7a) corresponds to the orbit started at 55 Mm in Figure 2. This orbit demonstrates the typical motion of type 1 particles when trapped in the braking jet, in addition to showing some trapping in the loop sides lower in the orbit. Type 1 orbits experience an initial increase, followed by a decrease of energy when trapped in the braking jet. This is caused in part by initially increasing magnetic field strength while the jet is propagating through regions of low background field, followed by decreasing magnetic field strength when the front encounters regions of stronger field in the lower loops causing the front to dissipate. If the particle orbit exits the braking jet before the jet dissipates then the particle orbit can gain energy in the loop sides, as shown in Figure 7a.

Figure 7
figure 7

Particle orbit energy, indicated in colour, with respect to position for type 1 and 2 orbits. The type 1 and 2 orbits correspond to orbits started at 55 Mm in Figure 2 and at 44.2 Mm in Figure 3, respectively. The type 1 orbit shows an initial increase in energy, followed by a decrease while trapped in the braking jet. When the orbit escapes the jet and becomes trapped in the side of the loop there is an associated increase in energy. The type 2 orbit shows sharp increases in energy for \(40~\mbox{Mm} \ge y \ge30~\mbox{Mm}\) and for \(15~\mbox{Mm} \ge y \ge9~\mbox{Mm}\).

The type 2 orbit (Figure 7b) corresponds to the orbit started at 44.2 Mm in Figure 3. In this case most of the energy is gained in two regions of the particle orbit. The first region occurs when the particle is confined to the side of the loop for \(40~\mbox{Mm} \ge y \ge30~\mbox{Mm}\), while the second occurs when it is trapped lower down for \(15~\mbox{Mm} \ge y \ge9~\mbox{Mm}\) (although less dramatic increases are also present at other times when trapped in the loop sides). Similar to the type 1 orbit, the energy gains are partially caused by increases of the magnetic field; however, there is no substantial decrease in magnetic field strength when the front dissipates due to the particle being trapped outside of the braking jet.

Despite the importance of the magnetic field strength in determining the energy of the test particle orbit, Fermi acceleration can also play a role. In Figure 8 the distance travelled by the particle orbit along a field line between mirror points is compared to the energy for type 1 and 2 particle orbits. The bounce distance of the type 1 orbit decreases for \(t < 10~\mbox{s}\) during which time the orbit energy increases, indicating possible Fermi acceleration. The same is true for the type 2 orbit for \(t < 25~\mbox{s}\), indicating Fermi acceleration may be important in this case also. Increases in the distance between mirror points for \(t > 40~\mbox{s}\) for both orbits may contribute to the energy loss in these time periods.

Figure 8
figure 8

Distance between bounces (black) and kinetic energy (red) with respect to time for type 1 and 2 particle orbits. The type 1 and 2 orbits correspond to orbits started at 55 Mm in Figure 2 and at 44.2 Mm in Figure 3, respectively. We see that the distance between bounces decreases in the early stages of the type 1 orbit (for \(t < 10~\mbox{s}\)) and for a significant portion of the type 2 orbit (\(t < 25~\mbox{s}\)), which may be indicative of Fermi acceleration affecting the energy in addition to the betatron effect.

As a result of the complicated nature of our model, it may be difficult to directly attribute energy gains or losses to a single mechanism. Significant changes in distance between mirror points (indicative of Fermi acceleration) may be accompanied by changing magnetic field strength due to the orbit entering a different region of the CMT. This results in energy changes that are difficult to attribute to either Fermi acceleration or the betatron effect alone.

5 Effect of Varying Parameters on Particle Orbits

To analyse the effect of changing parameters in the CMT model on the types of particle orbits, in this section we investigate the connections between the orbit classification and the average position of the test particle orbit. The average position is determined by the integral

$$ \overline{\boldsymbol{x}} = \frac{1}{t_{\mathrm{final}}} \int _{0}^{t_{\mathrm{final}}} \,\boldsymbol{x}\, \mathrm{d}t, $$
(12)

where \(t_{\mathrm{final}}\) is the time of the test particle’s escape from the trap, or the simulation time (if the orbit remains trapped). In this section \(\overline{x}\) and \(\overline{y}\) refer to the average position in the \(x\) and \(y\) directions, respectively, while \(\overline {\boldsymbol{x}} = (\overline{x}, \overline{y})\). Type 1 orbits are symmetric about \(x = 0~\mbox{Mm}\) for most of their duration, which restricts the average \(x\)-position to \(\overline{x} \approx 0\) Mm. This is not the case for type 2 orbits, which spend significant amounts of time in the loop legs, slightly displaced from the centre of the trap resulting in \(|\overline{x}| > 0~\mbox{Mm}\). Type 3 orbits (particularly those which exit the trap after few or no bounces) have \(|\overline{\boldsymbol{x}}| \gg0~\mbox{Mm}\). These orbits are also identifiable by their small maximum energies. It is important to note that \(\overline{\boldsymbol{x}}\) is a proxy for determining the general behaviour of particle orbits and does not correspond to the location that the orbits spend most of their time at.

The initial conditions used in the investigation are presented in Table 2. These values are chosen to represent a meaningful part of the parameter space for the initial conditions, and to also return behaviour of interest. These values are not intended to be an accurate description of the distribution of particles in the coronal plasma during a solar flare, but are meant to illustrate how changes in trap parameters influence orbit behaviour. The results are shown in Figure 9. In Figure 9a, type 1 orbits are clearly identifiable as the peak near \(x = 0~\mbox{Mm}\). The two peaks on either side of \(x = 0~\mbox{Mm}\) correspond to type 2 orbits.

Figure 9
figure 9

Histogram of average \(x\) position (a) and the average coordinate \(\overline{\boldsymbol{x}} = (\overline{x}, \overline{y})\) (b) for 600 particle orbits computed with the initial conditions IC1 given in Table 2 for the trap parameters given in Table 1. The distinction between type 1 and type 2 orbits is clearly visible in panel a, with type 2 orbits having an \(|\overline{x} |\) between 1 and 5 Mm, while type 1 orbits have an \(|\overline{x} |\) less than 1 Mm. Panel b shows the regions different orbit classifications occupy when their average coordinates are computed.

Table 2 Initial conditions used in different runs for investigating the effects of varying trap parameters on particle orbit behaviour. In each case \(x\) takes on two values, \(y\) takes on 15 evenly spaced values in the indicated range, and \(\theta\) takes on 20 evenly spaced values in the indicated range. Initial conditions IC1 are used in conjunction with the run using basic trap parameters (see Table 1) and the run with a steeper front. Conditions IC2 are used in the case of a faster initial jet, while IC3 are used with a larger braking jet.

Figure 9b shows that type 2 motion can be divided into two different categories whose average positions are fairly distinct. We label these subcategories 2a and 2b for decreasing \(\overline{y}\), respectively. For certain choices of trap parameters these subcategories may disappear (see Figure 10c) or another category may appear (see Figure 10b), which we will call 2c. Type 2c particles have average positions satisfying \(\overline{y} < 20~\mbox{Mm}\) and \(|\overline{x}| > 13~\mbox{Mm}\). For parameters and initial conditions for each of the following runs see Table 3.

Figure 10
figure 10

Average position and energy of 600 particle orbits for various trap parameters. Trap parameters and test particle orbit initial conditions are given in Table 3.

Table 3 Trap parameters and test particle orbit initial conditions used to examine the effect of changes in trap parameters on particle orbits. The basic parameters are given in Table 1.

The results of our test runs are shown in Figures 10 and 11, as well as in Tables 4 and 5. Figure 10 illustrates how the results shown in Figure 9b change when parameters are varied according to the categories in Table 3. Figure 11 shows histograms of the number of particle orbits per given energy. Table 4 counts the number of times at which each type of orbit is observed in each test run. Table 5 shows the maximum energy obtained by any orbit for each orbit classification in each test run, as well as the average of the maximum energy values.

Figure 11
figure 11

Particle orbit energy frequency for trap parameters given in Table 3. The maximum kinetic energy of each particle orbit is counted.

Table 4 Particle orbit frequencies for different test runs.
Table 5 Maximum and average kinetic energies (in keV) obtained for each type of particle orbit for parameter values and initial conditions shown in Table 3. Average energies are calculated by averaging the maximum energies achieved by each particle orbit for each orbit type.

Figure 10a shows the average test particle orbit positions from Figure 9b, where the maximum energy of each orbit defines the colour of each point. The highest energies are achieved by particle orbits of type 2a, followed by type 2b and type 1. Type 2b orbits show higher average maximum energies than type 1, although the most energetic orbit in both categories achieves a kinetic energy of approximately 50 keV. This indicates that type 1 orbits are not as efficient at energising particles as type 2 orbits are. Type 2a orbits are similar to that shown in Figure 4 (in that they are trapped between mirror points in regions a and b in Figure 6). In contrast, type 2b orbits are similar to those started at \(52.6~\mbox{Mm}\) and \(49.5~\mbox{Mm}\) from Figure 3, and they are trapped further down the loop leg.

Increasing the initial flow velocity of the braking jet from its value in the basic parameters (see Table 3) accelerates test particle orbits to higher energies, as can be seen in Figure 10b, and from the red curve in Figure 11. Table 5 shows increases in the maximum and average kinetic energy obtained by the orbits, with the most energetic particles reaching up to \(95.2~\mbox{keV}\) in comparison to \(65.4~\mbox{keV}\) obtained with the basic trap parameters. Figure 10b shows a new subset of type 2 particles with \(|\overline{x}| > 10~\mbox{Mm}\) and \(\overline{y} < 20~\mbox{Mm}\), which we refer to as type 2c (labelled in Figure 10b). Type 2c orbits correspond to particles trapped very low in the loop legs and also show high energy gains. These orbits remain confined in the loop leg at the end of the simulation (between mirror points b and c in Figure 6, albeit with mirror point b being located very close to the location of mirror point c), after the jet front has dissipated, rather than having access to a large portion of the loop. This is due to the increased compression of the lower loops caused by the faster jet front. A rebounding of the lower loops after the dissipation of the front would make these particle orbits much more similar to those of type 2b, as they would no longer be confined to a small region in one of the loop legs. In addition to a new subcategory of particle orbits, an increase in initial flow velocity results in the particle orbit categories being more spread out in terms of average position. This indicates particle orbit categories are more distinct, with less overlap between categories. There is a general increase in \(\overline{y}\) for particle orbits of type 3 (seen in Figure 10b). This is due to the orbits and the braking jet being initialised at a higher position so that the jet front would have more time to come to a stop. For orbits which remain trapped throughout the simulation \(\overline{y}\) does not change as much because \(\sigma\) is adjusted so that the front stops at a similar height as in the basic parameter case. Table 4 shows that a faster front is more efficient at trapping particles, particularly in type 2 orbits, in comparison to a slower front.

Increasing the size of the jet braking region results in less distinction between orbits of type 2a and 2b (see Figure 10c). The maximum energy achieved by type 1 particles is also reduced by a larger jet braking region; the energy gains made by all other orbits remain relatively unchanged from those seen in the case with basic trap parameters (as can be found in Table 5).

Finally, increasing the steepness of the front caused by the braking jet results in a stronger magnetic field in the jet braking region. The stronger magnetic field in the braking jet region causes trapping of particle orbits in this region to become much less frequent (see Table 4), which results in type 2 orbits becoming more frequent. In particular, all type 2 orbits obtained are of type 2b. We also see a modest rise in maximal energy of type 2 orbits compared to the case with basic trap parameters. The maximum energy achieved by a type 1 orbit is lower, only \(38.6~\mbox{keV}\), in comparison to \(50.9~\mbox{keV}\) for the basic parameter case. The average of the maximum energies of type 1 orbits is slightly higher (\(22~\mbox{keV}\) compared to \(18.1~\mbox{keV}\) for the basic parameters). Type 3 orbits show small increases in energy (both maximum and average over all type 3 orbits) in comparison with the basic parameter case.

In each of the cases outlined above the populations of particle orbits generated depend both on the magnetic field structure of the CMT and also on the initial conditions of the test particle orbits. The structure and evolution of the magnetic field is of great importance for the possibility of different populations of particle orbits occurring. For instance, the presence of different subcategories of type 2 orbits depends on the velocity and shape of the front. For slower jet fronts it is not possible to obtain populations of particle orbits of type 2c. Conversely, increasing the steepness of the front causes the type 2a orbits to disappear, leaving type 2b orbits the dominant behaviour in this test run. The initial conditions of the test particles also strongly influences particle orbit behaviour. For an individual particle orbit, small changes in initial conditions (such as its initial position with respect to the front) can result in significantly different behaviour. For example, for a given pitch angle, horizontal displacement of the initial position can change the field line orbited by the particle, together with the location of possible mirror points. This may cause particles to change trapping behaviour. These findings suggest that it may be very difficult to predict the behaviour of a given particle orbit based on initial conditions alone, particularly when trying to differentiate between different subcategories of type 2 orbits.

The effect of different parameter regimes on test particle orbit energies is shown in a histogram of maximum orbit energies for each of the runs discussed previously (see Figure 11). In comparison to the basic parameters, Figure 11 shows that increasing the speed of propagation of the jet front causes an increase in the number of high-energy orbits. A larger jet braking region causes more trapping and accelerates more particle orbits to modest energies in the range of \(10~\mbox{keV}\) to \(20~\mbox{keV}\); however, fewer orbits gain energies beyond \(35~\mbox{keV}\). Finally a steeper front produces a dramatic increase in test particle orbits with energies in the range of 15 to \(50~\mbox{keV}\). Few orbits are left that have energies less than \(15~\mbox{keV}\).

Our results may be explained as follows. A faster jet results in more pileup of magnetic flux at the jet front, producing more energy gain and altering the trapping characteristics to favour type 2 motion more than with a slower jet. A larger braking jet region results in more trapping, however with no increase in magnetic field strength, the orbits do not gain as much energy as in the case of the faster jet or the steeper front, yielding many orbits with small energy gains. An increase in the steepness of the front results in a significantly greater magnetic field strength, which produces much less trapping in the jet braking region. This is because the magnetic field strength is more uniform between the centre of the trap and region “a” in Figure 6. In this scenario test particle orbits are more efficiently trapped in the loop legs, resulting in type 2 orbits.

6 Conclusions

We have identified new types of trapping in CMTs with the addition of a braking jet, which (crucially) cannot be obtained using earlier models. The braking jet allows trapping of test particle orbits in the central jet region, in the loop legs and a combination of the two. The regions accessible to orbits are determined by the initial conditions (such as initial position with respect to the front, initial pitch angle and the trap parameters). Particle orbit energy gains also depend on the region which traps them, with orbits which are trapped in the loop legs able to gain more energy than those trapped in either the jet braking region, or those which escape the trap within the simulation time.

We have also shown that variations in trap parameters can greatly impact particle orbits and energy gain. As shown in Artemyev (2014), increasing the speed of the braking jet increases the maximum energy that particles may achieve. It is possible to obtain energies as high as \(100~\mbox{keV}\) for parameter choices reflective of conditions in the solar corona (for instance, we used an initial jet speed of \(3\times10^{6}~\mbox{m}\,\mbox{s}^{-1}\), length scale \(10^{7}~\mbox{m}\) and magnetic field strength scaling with \(0.01~\mbox{T}\), although values for the magnetic field initially within the braking jet are lower). Higher initial jet velocities yield larger differences between the different types of particle orbit and allows trapping of particles very low in the loop legs. Larger braking jets show more trapping and hence a larger fraction of test particle orbits get accelerated, but only to moderate energies. We also find that a steeper gradient in the magnetic field as the front propagates yields significantly different behaviour. Trapping of test particle orbits in the jet braking region becomes less frequent due to the higher magnetic field strength throughout the front. As a result more test particle orbits are trapped in the loop legs. The maximum energies obtained this way are higher than in the case without a steep gradient, but not as high as for the faster initial jet.

Further investigation of particle acceleration in this model is possible by varying more trap parameters. As mentioned in Section 5, one interesting extension of the investigation presented in this paper would be to model a rebounding of the loops compressed by the plasma jet, leading to a different final position of the trapped particle population.