Abstract
The ParticleInCell (PIC) method has been developed by Oscar Buneman, Charles Birdsall, Roger W. Hockney, and John Dawson in the 1950s and, with the advances of computing power, has been further developed for several fields such as astrophysical, magnetospheric as well as solar plasmas and recently also for atmospheric and laserplasma physics. Currently more than 15 semipublic PIC codes are available which we discuss in this review. Its applications have grown extensively with increasing computing power available on high performance computing facilities around the world. These systems allow the study of various topics of astrophysical plasmas, such as magnetic reconnection, pulsars and black hole magnetosphere, nonrelativistic and relativistic shocks, relativistic jets, and laserplasma physics. We review a plethora of astrophysical phenomena such as relativistic jets, instabilities, magnetic reconnection, pulsars, as well as PIC simulations of laserplasma physics (until 2021) emphasizing the physics involved in the simulations. Finally, we give an outlook of the future simulations of jets associated to neutron stars, black holes and their merging and discuss the future of PIC simulations in the light of petascale and exascale computing.
Introduction
Plasma is one of the four fundamental states of matter, and ubiquitous in the universe. Astrophysical plasmas are observed in compact objects like black holes and neutron stars. Plasma is also associated with ejection of material in astrophysical jets, which have been observed in systems like accreting black holes and merging neutron stars. It consists of a totally or partially ionized gas (of electrons, ions, or positrons) the particles of which can be, in principle, described by Lorentz’ equation and Maxwell’s equations Eqs. (1, 2, 3, 4). In order to investigate kinetic (i.e., microscopic) processes, these equations need to be solved. For a multitude of particles one way to solve them is to employ ParticleInCell (PIC) simulations.
Extensively, astrophysical plasma phenomena have been investigated by numerical magnetohydrodynamics (MHD) in both nonrelativistic and relativistic (RMHD) regimes, extensively (e.g., Martí and Müller 2015; Baumgarte and Shapiro 2010; Rezzolla and Zanotti 2013). In MHD, plasma is taken as a fluid and handles macroscopic processes. The differences between macroscopic and microscopic processes are described in Sect. 4.
Another numerical approach for the investigation of astrophysical plasma phenomena is (collisionless) PIC simulations. In these simulations, the plasma charged particles interact only with the electromagnetic fields that are produced by the particles themselves (in their motion), and the PIC method is employed to solve plasma kinetic (microscopic) processes. Recently, with the advance of supercomputer facilities and PIC algorithms, PIC simulations have become a compliment to the plasma fluid method with the addition of kinetic processes. In particular, particle acceleration has been investigated in shocks, magnetic reconnections, and other systems. Whilst fluid models calculate densities, concentrations, or generally averaged quantities, the advantage of PIC codes—sometimes combined with Monte Carlo methods—is that they trace individual particles and are therefore able to capture rare events which would not be seen in fluid simulations (Rubino and Tuffin 2009).
The usage of PIC simulations started in the 1950s by a few scientists such as Buneman, Hockney, Birdsall, and Dawson (Buneman 1993). Nowadays, the power of supercomputers increases exponentially, and although in general PIC simulations require a very large memory, many extensive 3D PIC simulations have been performed (e.g., Daughton et al. 2011; Liu et al. 2018).
There are several complimentary reviews related to astrophysical plasma and related physics are available. Sironi et al. (2015) reviewed the physics of relativistic shocks in pulsar wind nebulae (PWNe), gammaray bursts (GRBs), and active galactic nuclei (AGN) jets where nonthermal particles (i.e., they have a nonthermal or powerlaw distribution) are found to be the sources of observed radiation and, possibly, of ultrahigh energy cosmicrays. In weakly magnetized or quasiparallel shocks (i.e., where the magnetic field is nearly aligned with the flow), particle acceleration is efficient. The accelerated particles stream ahead of the shock, where they generate strong magnetic waves which in turn scatter the particles back and forth across the shock, mediating their acceleration. In contrast, in strongly magnetized quasiperpendicular shocks, the efficiencies of both particle acceleration and magnetic field generation are suppressed. Particle acceleration, when efficient, modifies the turbulence around the shock on a long time scale, and the accelerated particles have a characteristic energy spectral index of \(s_{\gamma } \simeq 2.2\) in the ultrarelativistic limit. They have unveiled the most relevant plasma instabilities that mediate injection and acceleration in relativistic shocks; and they have summarized recent results of largescale PIC simulations concerning the efficiency and rate of particle acceleration in relativistic shocks, and the longterm evolution of the selfgenerated magnetic turbulence.
Several review articles about the applications of plasma physics to astrophysical phenomena have recently been published. For example, Pohl et al. (2020) have reviewed particle acceleration in collisionless plasma systems which is commonly found in astrophysical plasma and astroparticle physics. The PIC method has been developed to study kinetic phenomena in nonlinear plasma interactions in computer experiments. By tracing individual quasiparticles that stand for many electrons or ions, one can investigate the evolution of collective electromagnetic fields and the distribution function of the particles. The spectrum of accelerated particles achieved with PIC simulations is very informative to understand of shocks and particle acceleration, but further investigations will follow.
Marcowith et al. (2020) have reviewed a general introduction to the subject of the numerical study of energetic particle acceleration and transport in turbulent astrophysical flows providing an uptodate status. The subject is also complemented by a short overview of recent progresses obtained in the domain of laserplasma experiments. They summarize the main physical processes at the heart of the production of a nonthermal distribution in both Newtonian and relativistic astrophysical flows, namely the first and second order Fermi acceleration processes. Shock drift and surfing acceleration, these two processes are important in the context of particle injection in shock acceleration. The details of the PIC approach used to describe particle kinetic processes were analyzed. The main results by PIC simulations of particle acceleration at shocks and in magnetic reconnection events are presented. In this article, the solution of Fokker–Planck problems with application to the study of particle acceleration at shocks but also in hot coronal plasmas surrounding compact objects are discussed. They also describe recent developments in MHD simulations giving a special emphasis on the way energetic particle dynamics, which can be coupled to MHD solutions either using a multifluid calculation or directly coupling kinetic and fluid calculations.
Additionally, the books “Plasma Astrophysics and Space Physics” (Büchner et al. 1999) and “Space Plasma Simulation” (Büchner et al. 2003) provide useful examples of simulations of astrophysics and space physics by various authors.
In this review, as an example for astrophysical plasmas, we especially focus on relativistic jets, mainly investigating the effect of microscopic plasma instabilities such as the Weibel instability (Weibel 1959). Jets have been investigated extensively since 2000 and there has been substantial progress within the last couple of years according to the increase of computing power. A recent article written by Nishikawa et al. (2019) has given an overview of PIC simulations, starting with the Weibel instability in slab models of jets, and then focuses on global jet evolution in helical magnetic field geometry. In particular, kinetic Kelvin–Helmholtz and mushroom instabilities were addressed.
We provides an introductory discussion of the PIC method mainly based on Buneman’s code (Buneman 1993) such that readers are able to understand how PIC method works and what kind of physical problems can be investigated with PIC simulations. Although a few textbooks and reviews on PIC methods are already available, it may be overwhelming to read such them; therefore this review may serve as an introduction into the topic and guide to those textbooks (Dawson 1983; Birdsall and Langdon 1991; Hockney and Eastwood 1988). Initially, in order to illustrate how PIC simulations work in the view of astrophysicalplasmas, we concentrate on PIC simulations of relativistic jets in a slab model and recent progresses of relativistic jets including velocityshear instabilities. Since magnetic reconnection plays an important role in particle acceleration, its development in Harris’ model is discussed. In particular, we bring the importance of PIC simulations of relativistic jets containing helical magnetic fields. In these simulations relativistic jets need to be injected into a simulation system and, therefore, a large simulation system should be used. It requires a long simulation time to investigate the jet evolution up to the full nonlinear stage of growing kinetic instabilities, including particle acceleration in turbulent magnetic fields generated kinetic instabilities and magnetic reconnection.
We outline this review as follows: Brief history and new developments of PIC simulations is described in Sect. 2. Section 3 addresses basic methods of PIC simulations. The differences between kinetic (microscopic) and macroscopic processes in plasma are described in Sect. 4. The various applications of PIC simulations are presented in Sect. 5. We summarize in Sect. 6.
Brief history and new developments of PIC simulations
In principle, classical mechanics or electrodynamics allow for solving one or twoparticle problems exactly. However, depending on the applied potentials, analytic solutions might not be possible. Similarly, problems with more than two particles cannot generally be solved analytically. Therefore there is a requirement for computational methods which becomes even more urgent when dealing with relativistic problems because of their increased level of complexity compared to classical physics. When tracing a multitude of particles, making advanced codes such as fluid codes or PIC codes is necessary for their study. PIC simulations have been developed in the 1950s by a few scientists, among whom was Oscar Buneman, the prominent scientist in the field of plasma electrodynamics.
In 1993, Buneman introduced TRISTAN (TRIdimensional STANford code), a relativistic code simulating the interaction between the solarwind and the Earth magnetosphere (Buneman 1993).
TRISTAN is available on the website www.terrapub.co.jp/elibrary/cspp/text/10.txt. We note that Oscar Buneman originally ran this code on his PC (Buneman et al. 1992). Later on, a variant code of the TRISTAN has been developed by using High Performance Fortran (HPF)(Cai et al. 2002, 2003). In the following years, several PIC codes based on TRISTAN have been parallelized using the Message Passage Interface (MPI) (Messmer 2001, 2002; Spitkovsky 2005, 2008a; Niemiec et al. 2008) and a class of these codes—generally known as TRISTANMPI—has been used extensively and further developed to investigate relativistic global jets containing helical magnetic fields (e.g., Niemiec et al. 2008; Melzani et al. 2013; Sironi and Spitkovsky 2014; Melzani et al. 2014a, b; Nishikawa et al. 2016a, 2017, 2019, 2020). Other PIC codes are available for KEMPO1.^{Footnote 1}
Until now, many PIC codes have been developed by researchers independently. At the time of writing this review, a number of 19 PIC codes are listed in Wikipedia, where many of them are publicly available. Table 1 presents an enlarged list of PIC codes that includes also the data from Wikipedia. The TRISTANMPI is not available publicly at the present time; nevertheless, the code is made available upon request.^{Footnote 2}
Each PIC code has its strength, being designed for specific uses. The main differences come from methods for solving Maxwell’s equations which are partial differential equations (PDEs) by their essence. There are three classes of methods to solve these: finite difference methods (FDMs), finite element methods (FEMs), and spectral methods.
FDMs convert partial differential equations, which may be nonlinear, into a system of linear equations that can be solved by approximating derivatives with finite differences. Both the spatial domain and time interval are discretized, or broken into a finite number of steps, and the value of the solution at these discrete points is approximated by solving algebraic equations containing finite differences and values from nearby points. For solving PDEs with FDMs, there are three methods: explicit, implicit and hybrid (implicitexplicit) methods, where the implicit one is usually the most accurate scheme for small time steps.
The FEM subdivides a large system into smaller, simpler parts that are called finite elements. The PDEs are treated as an eigenvalue problem and initially a trial solution is calculated using basis functions which are localized in each element. The final solution is then obtained by optimization until the required accuracy is reached. Various types of finite element methods are developed such as the Applied Element Method, extended finite element methods (XFEM), etc.
Also spectral methods, such as the fast Fourier transform (FFT), transform the PDEs into an eigenvalue problem, but this time the basis functions are of high order and defined globally over the whole domain. The domain itself is not discretized in this case, but rather remains continuous. Again, a trial solution is found by inserting the basis functions into the eigenvalue equation and subsequently optimized to determine the best values of the initial trial parameters. Recently, new numerical methods and additional physical processes such as radiation, ionization, gravitation, pair creation and others have been implemented in these PIC codes (e.g., Cerutti et al. 2013; Cerutti and Philippov 2017a).
Two examples of variations of PIC codes are the hybridVlasov model, which is briefly discussed in Sect. 4, and General Relativistic PIC codes whose basics are introduced in Sect. 5.7.
EPOCH (Extendable PIC Open Collaboration) is a mature laserplasma MPI PIC simulation code. PIC moves MonteCarlo sampled particles through a fixed grid on which field variables are updated. Thus the core scheme is dominated by particle pushes and interpolations of particletofield and fieldtoparticle. In EPOCH new refinements have been developed (Arber et al. 2015). Modern PIC codes tend to add to highorder shape functions for particles Poisson preserving field updates, collisions, ionization, a hybrid scheme for solid density, and highfield quantum electrodynamics (QED) effects. In addition to these physics packages, the increase in computing power now allows simulations with real mass ratios, full 3D dynamics, and multispeckle interaction. They present a review of the core algorithms used in current laserplasma specific PIC codes. They also report estimates of selfheating rates, convergence of collisional routines, and the test of ionization models which are not readily available elsewhere. They review the status of PIC algorithms and present a summary of recent applications of such codes in laserplasma physics, concentrating on stimulated Raman scattering (SRS), shortpulse lasersolid interactions, fastelectron transport, and QED effects.
VPIC (Vector ParticleInCell) is a general purpose PIC simulation code for modeling kinetic plasmas (Bowers et al. 2008). It employs a secondorder, explicit, leapfrog algorithm to update charged particle positions and velocities in order to solve the relativistic kinetic equation for each species in the plasma, along with a full Maxwell description for the electric and magnetic fields evolved via a secondorder finitedifferencetimedomain (FDTD) method. The VPIC code is optimized for modern computing architectures and uses MPI calls for multinode application as well as data parallelism using threads (e.g., Bird et al. 2021). VPIC employs a variety of shortvector, singleinstructionmultipledata (SIMD) intrinsics for high performance computing and has been designed such that the data structures align with cache boundaries. The current feature set for VPIC includes a flexible input deck format capable of treating a wide variety of problems. These include: the ability to treat electromagnetic materials (scalar and tensor dielectric, conductivity, and diamagnetic material properties); multiple emission models, including userconfigurable models; arbitrary, userconfigurable boundary conditions for particles and fields; userdefinable simulation units; a suite of “standard” diagnostics, as well as userconfigurable diagnostics; a MonteCarlo treatment of collisional processes capable of treating binary and unary collisions and secondary particle generation; and, flexible checkpointrestart semantics enabling VPIC checkpoint files to be read as input for subsequent simulations. VPIC has a native I/O format that interfaces with the highperformance visualization software Ensight and Paraview. While the common use cases for VPIC employ loworder particles on rectilinear meshes, a framework exists to treat higherorder particles and curvilinear meshes, as well as more advanced field solvers. VPIC has been used for simulations of reconnections (Guo et al. 2020; Zhang et al. 2020).
Zeltron is a code that has been developed by Cerutti and Werner and has extensively been used for various investigations (e.g., Cerutti et al. 2014; Cerutti and Philippov 2017b). Zeltron is an explicit 3D relativistic electromagnetic PIC code, ideally suited for modeling the particle acceleration in astrophysical plasmas (Cerutti et al. 2013). The code is efficiently parallelized with the MPI, and can be run on a laptop computer or on multiple cores on current supercomputers. The radiation reaction force includes synchrotron and inverse Compton backreaction force (in the Thomson regime only). The Abraham–Lorentz–Dirac equation is solved using a modified Boris push (Tamburini et al. 2010). Since the numerical scheme does not strictly conserve electric charge, the electric field is corrected by solving the Poisson’s equation using an iterative Gauss–Seidel method.
PICCANTE is another open source, massively parallel, fully relativistic PIC code which is primarily developed to study laserplasma interaction (Sgattoni et al. 2015a, b). The diagnostic tool Scalasca is used to identify suboptimal routines. Different output strategies are discussed. The detailed strong and weak scaling behaviour of the improved code are presented in comparison with the original version of the code. While the final goal of the PICCANTE project is to provide a general tool for kinetic simulations of plasma physics, in the near term the code is mainly used to simulate the interaction of plasmas with superintense laser pulses in various regimes and for different applications.
PIConGPU: The innovative methods on the implementation of the PIC algorithm on graphic processing units (GPUs) can directly be adapted to any manycore parallelization of the particlemesh method. With these methods the developers see a peak performance of 7.176 PFLOP/s (doubleprecision) plus 1.449 PFLOP/s (singleprecision), an efficiency of 96% when weakly scaling from 1 to 18432 nodes, an efficiency of 68.92%, and a speed up of 794 (ideal: 1152) when strongly scaling from 16 to 18432 nodes (factor 1152). Bussmann et al. (2013) present a PIC simulation of the relativistic Kelvin–Helmholtz Instability (KHI) that for the first time delivers angularly resolved radiation spectra of the particle dynamics during the formation of the KHI. This enables studying the formation of the KHI with unprecedented spatial, angular, and spectral resolution. Their results are of great importance for understanding astrophysical jet formation and comparable plasma phenomena by relating the particle motion observed in the KHI to its radiation signature.
FBPIC is a spectral PIC algorithm that is based on the combination of a Hankel transform and a Fourier transform. For physical problems that have closetocylindrical symmetry, this algorithm can be much faster than full 3D PIC algorithms. In addition, unlike standard finitedifference PIC codes, in vacuum the proposed algorithm is free of spurious numerical dispersion. This algorithm is benchmarked in several situations that are of interest for laserplasma interactions. These benchmarks show that FBPIC avoids a number of numerical artifacts, that would otherwise affect the physics in a standard PIC algorithm—including the zeroorder numerical Cherenkov effect (Lehe et al. 2016).
iPIC3D is the implicit PIC method for the computer simulation of plasmas, and its implementation in a threedimensional parallel code. The implicit integration in time of the Vlasov–Maxwell system, removes the numerical stability constraints and enables kinetic plasma simulations at magnetohydrodynamic time scales. Simulations of magnetic reconnection in plasma are presented to show the effectiveness of the algorithm (Markidis et al. 2010).
As described previously, some PIC codes such as VPIC, EPOCH, and others are developed for exascale computing using CPU/GPU. Hence, because of the large amount of output data, the visualization of such data is very difficult and requires a special way to handle. One of the more recent developments for exascale computation is Kokkos Core which implements a programming model in C++ for writing performance portable applications targeting all major HPC platforms. For that purpose it provides abstractions for both the parallel execution of code and data management. Kokkos is designed to target complex node architectures with Nlevel memory hierarchies and multiple types of execution resources (e.g., Bird et al. 2021). It currently can use CUDA, HPX, OpenMP and Pthreads as backend programming models with several other backends under development.
Today, PIC simulations are used in a variety of fields, such as, but not limited to astrophysical phenomena, atmospheric electricity, cloud physics or space weather (e.g., Lapenta 2012; Köhn et al. 2017, 2018, 2020).
Basic methods of PIC simulations
In this section, we present the methodology of PIC simulations based on the original code developed by Buneman, which is described in the text of the International School of Space Simulations (Buneman 1993). However, the description is condensed so much that understanding the content is quite difficult. Henceforth, a plethora of literature has become available, providing detailed descriptions of PIC implementation using High Performance Fortran (HPF) (Cai et al. 2001, 2002, 2003). Here, we describe the original TRISTAN code based on Buneman’s philosophy with additional explanations by Dawson (1983); Hockney and Eastwood (1988); Birdsall and Langdon (1991) making the PIC approach to plasma microphysics, as well as its recent developments, more accessible to readers. We also include configurations from TRISTANMPI (Niemiec et al. 2008), e.g., for the shape functions representing a (macro) particle, boundary conditions, etc.
The basic computational cycle of a TRISTANbased code is presented in Fig. 1. Details on the sequences of the cycle are provided in the following sections. In short, the electric and magnetic fields, which are continuous quantities, are discretized on a simulation (computational) grid, which is divided into a finite number of cubic cells (in 3D), such that the fields are stored in the grid point arrays (using a Yee lattice). Charged particles like electrons and ions are modeled by macroparticles. A macroparticle that represents an ensemble of many identical particles is represented in the code through a distribution (or shape) function. (Throughout this review, when referring to PIC calculations the term particle denotes a macroparticle, unless noticed.) During each time step, four main operations are repeated in the same order until the end of the simulation: scatter, solve, gather, and push. The algorithm consist of the following steps:

Initialization: particle data and field (or grid, as the fields are discretized on the grid) data are initialized

Start the main loop:

Scatter: calculate particle contributions (using charges or currents as source terms) to the grid via interpolation

Solve: calculate the fields

Gather: update forces on particle positions via interpolations

Push: move particles to new positions and collect currents


End the main loop

Results: diagnostics
Note that the interpolations in scatter (particletofield) and gather (fieldtoparticle) operations should be symmetric; i.e., the same numerical schemes should be used, otherwise the momentum conservation is lost. TRISTAN uses timecentered and spacecentered finite difference schemes to advance the equations in time via the Lorentz force equation and to calculate spatial derivatives. Therefore, the algorithm is second order accurate in space and time.
Basic equations
The basic equations to describe plasmas are Maxwell equations:
where \(\mathbf {H} = \mathbf {B}/{\mu _0}\), \(\mathbf {D} = \epsilon _{0}\mathbf {E}\) and
as well as the Newton–Lorentz force
where i and e corresponds to ion (+ charge) and electron (− charge), respectively.
These equations are the only ones that are implemented into TRISTAN. Generally, the plasma should also obey the Poisson’s equation. However, instead of solving Poisson’s equation which is solved numerically in almost all particle simulation codes, TRISTAN solves only two curls, i.e., Ampere’s and Faraday’s equations (1) and (2). A rigorous charge conservation method for the current \(\mathbf {J}\) is described in more detail in Villasenor and Buneman (1992); Umeda et al. (2003). Particles that are initialized as unmagnetized Maxwell distribution are updated by the leapfrog method using the magnetic and electric fields as an input. In order to get the correct field values, linear interpolation is employed throughout the code. In the TRISTANMPI (Niemiec et al. 2008; Toggweiler et al. 2014; Winkel et al. 2015) higherorder interpolation schemes are employed for solving the Maxwell and NewtonLorentz equations.
Charge distributions of macroparticle
In PIC simulations, to represent a myriad of individual particles, a macro particle is used with some shapes of charge particle such as rectangle, triangle, and Gaussian. Shape functions of cloudincell determine aliasing noise in the corresponding functions in Fourier space (e.g., Dawson 1983; Birdsall and Langdon 1991). Figure 2 shows how finitesize macroparticle is used to distribute charge on a 1dimensional (1D) grid. The shape function is schematically presented.
In TRISTANMPI, the triangle shape is used which is shown in Fig. 2.
On 1D grid with uniform spacing, \(\Delta x\), the electric charge q of a particle with triangle shape at location \(x_{\mathrm{p}}\) makes contributions to three nearest grid points
Here, the weight function is applied 0.25, 0.75, and 0.25 on grids \(i1\), i and \(i+1\), respectively.
For 3D simulations, the same charge deposition scheme is used for two other dimensions. Therefore, 27 weighting factors are also used for calculating current density.
An important requirement for PIC simulations is that the same interpolation scheme is used to calculate force acting on particle as is applied for charge deposition to the grid.
Field update and particle update
TRISTAN uses \(\epsilon _{0} = 1\) such that \(\mu _{0}= 1/c^{2}\) and \(\mathbf {E} = \mathbf {D}=(e_x,e_y,e_z)\). Instead of recording the components of \(\mathbf {B}\) or \(\mathbf {H}\), TRISTAN records three components \((b_x, b_y, b_z)\) of \(c\mathbf {B}=\mathbf {H}/c\). This ensures the symmetry for electric field and magnetic field (\(\mathbf {E} \longleftrightarrow \mathbf {B}\)) in Maxwell equations except for the current \(\mathbf {J}\), see below. Throughout the code, TRISTAN uses a cubic grid with \(\delta x = \delta y = \delta z = 1\) and time discretization with \(\delta t = 1\) (in TRISTANMPI we use \(\delta t = 0.1\) or less to ensure the numerical stability). Before and after moving (or pushing) the particles, \(\mathbf {B}\) is updated in two half steps, such that it is available at the same time as \(\mathbf {E}\) for the particle update. As already mentioned, in TRISTAN, only two curls of Maxwell equations are solved. Subsequently, the current density or charge flux \(\mathbf {J}\) is calculated and subtracted after the particles are moved later in the program employing a rigorous charge conservation method for the current density (Villasenor and Buneman 1992; Esirkepov 2001; Umeda et al. 2003).
Magnetic field update
In TRISTAN, the electric and magnetic fields are stored at different locations in the grid cell by using a staggered grid. The staggered mesh system, known in the computational electromagnetic community as Yeelattice (Yee 1966), is shown in Fig. 3. This configuration ensures that the temporal change of \(\mathbf {B}\) through a cell surface equals the negative circulation of \(\mathbf {E}\) around that surface and likewise that the change of \(\mathbf {E}\) equals the circulation of \(\mathbf {B}\) around the surface of the cell containing \(\mathbf {E}\) minus the current through it. Here, \(\mathbf {B}\) and \(\mathbf {E}\) are symmetric except for subtracting the current density \(\mathbf {J}\) in the Ampere equation which is updated and subtracted after all particles have been moved at later positions in the program.
On the Yeelattice, \(e_{\mathrm{x}}, e_{\mathrm{y}}, e_{\mathrm{z}}, b_{\mathrm{x}}, b_{\mathrm{y}}\), and \(b_{\mathrm{z}}\) are staggered and shifted as shown in Fig. 3 on 0.5 from (i, j, k) and located at the positions as follows
and
In TRISTANMPI, integer grids are used. In both Eqs. (6) and (7), i, j, k in the righthand sides correspond to Fortran array indices notations and i, j, k in the left hand sides correspond to the real positions in the simulation domains as shown in Fig. 3. If the value “0.5” is added to either i, j, k in the array indices, then the array indices correspond to the real positions in the simulation domains.
Thus, magnetic fields are updated as follows. The time change of the magnetic flux \(\mathbf {B}\) is expressed through
allowing to update the magnetic field components \(b_{\mathrm{x}},b_\mathrm{y},b_{\mathrm{z}}\). The xcomponent of Eq. (8), \(\partial b_x / \partial t = c(\partial e_y / \partial z  \partial e_z / \partial y)\), is translated into
with \(\delta t = \delta z = \delta y = \delta x = 1\), similarly for \(b_{\mathrm{y}}\) and \(b_{\mathrm{z}}\). It should be noted that in many TRISTANbased codes, including TRISTANMPI, twohalf step calculations are performed as described in Cai et al. (2003).
Electric field update
Similar to the temporal evolution of \(\mathbf {B}\), the temporal change of \(\mathbf {E}\) through a cell surface equals the circulation of \(\mathbf {B}\) around that surface, initially without the current \(\mathbf {J}\). First, the electric field is updated by
Thus the electric field components \(e_{\mathrm{x}}, e_{\mathrm{y}}, e_{\mathrm{z}}\) are updated by the magnetic field components on the Yeelattice surface using Eq. (11). For example, the x component of the electric fields becomes
with \(\delta t = \delta z = \delta y = \delta x = 1\), similarly for \(e_{\mathrm{y}}\) and \(e_{\mathrm{z}}\).
After updating the electric field through (13), followed by the update of the position and velocity of particles, the current density \(\mathbf {J}\) is calculated and subtracted from \(\partial \mathbf {E}/\partial t\). See 3.6 Current deposit for details.
Particle update
The timecentered finite difference version of the NewtonLorentz particle update is given as
illustrating that the position must be leapfrogged over velocities. A good physical interpretation of the steps in this explicit procedure is provided by Hartree and Boris (e.g., Toggweiler et al. 2014; Winkel et al. 2015). Besides Hartree and Boris method, at least two different methods have been developed (e.g., Vay 2008; Higuera and Cary 2017). Many other particle pusher methods exist, each methods with pros & cons, therefore choice depends on physics to be studied (e.g., Ripperda et al. 2018).
TRISTAN was originally developed for relativistic plasma computations, and, therefore, the code solves the relativistic form of the equation of motion
where \(m = \gamma m_{0}\), with the rest mass \(m_{0}\) and the Lorentz factor
We define \(\mathbf {u} = \gamma \mathbf {v}\), or
which is equivalent to
where \(\gamma _{\mathrm{u}}=\sqrt{1+\mathbf {u}^{2}/c^{2}}\). Inserting (19) into (16) gives
Defining the modified magnetic field
finally leads to
which leads to the finite difference forms (14)
with \(\mathbf {u}^{\mathrm{new}}=\mathbf {u}^{t+\delta t/2}\) and \(\mathbf {u}^\mathrm{old}= \mathbf {u}^{t\delta t/2}\).
Based on the Boris method, the particle update is calculated in several steps, as follows
Step 1 calculate \(\mathbf {u}^{\mathrm{old}}\) from \(\mathbf {v}^\mathrm{old}\)
Step 2 update of \(\mathbf {u}\) through half electric acceleration
Step 3 calculate \(\mathbf {B}_{\mathrm{u}}\)
Step 4 cross with \(\mathbf {B}_{\mathrm{u}}\)
The geometrical derivation of Eq. (27) is described in Fig. 3.1 in Buneman (1993).
Step 5 another half electric acceleration
Equation (27) which determines \(\mathbf {u}_{1}\) from \(\mathbf {u}_{0}\) is still implicit, but its explicit form follows from (1) the inner product of Eq. (27) with \((\mathbf {u}_{1} +\mathbf {u}_{0})\) to check that the magnetic field does not increase the particle energy and that the magnitudes of \(\mathbf {u}_{1}\) and \(\mathbf {u}_{0}\) are the same, (2) the inner product with \(\mathbf {B}_{\mathrm{u}}\) to check that components along \(\mathbf {B}_{\mathrm{u}}\) are the same, (3) the cross product with \(\mathbf {b}_{0}=\frac{q\delta t}{2m_{0}}\mathbf {B}_{\mathrm{u}}\), and (4) substituting back, provides the explicit form of \(\mathbf {u}_1\)
Finally, the velocity \(\mathbf {v}\) and the new particle position are obtained through
A simple form of the Boris solver in PIC simulations is proposed by Zenitani and Umeda (2018). It employs an exact solution of the Lorentzforce equation, being equivalent to the Boris solver with a gyrophase correction. As a favorable property for stable schemes, this form preserves a volume in the phase space. Numerical tests of Boris solvers are conducted by testparticle and PIC simulations. The proposed form provides better accuracy than the previous, popular forms (e.g., Buneman 1993), while it requires only insignificantly more computational time.
Recently, Zenitani and Kato (2020) developed a more high performance, multiple Boris solver which combines the 2step Boris procedure arbitrary n times in the Lorentzforce part. Figure 4 shows two schematic diagrams that illustrate the procedures performed for the classical Boris solver (a) and for the double Boris solver (b).
It should be noted that the 2step Boris procedure as shown in Fig. 4a is used by Buneman (1993). Using Chebyshev polynomials, a onestep form of the new solvers is provided. The solvers by Zenitani and Kato (2020) give \(n^{2}\) times smaller errors, allow larger time steps, and have a longterm stability as shown in Fig. 4b. They presented numerical tests of the new solvers, in comparison with other particle integrator (Ripperda et al. 2018). We propose to implement these new methods if PIC simulations require more accurate particle trajectories.
Force interpolations
In Eq. (23), \(\mathbf {E}\) and \(\mathbf {B}\) are interpolated from the grid points, i.e., the edge or center of a grid cell, to the particle positions on the Yeelattice. Therefore, linear interpolation is employed to obtain a subgrid resolution which means that there is no stringent lower limit to the sizes of such quantities as the gyroradius or the Debye length. For quantities recorded on the integer mesh \(x = i, y = j, z = k\), this means interpolating the eight nearest entries by applying weights, the socalled “volume” weights (Buneman 1993).
For example, the “volume” weight is \((1  \delta x)(1  \delta y)(1  \delta z) = c_{\mathrm{x}} \cdot c_{\mathrm{y}} \cdot c_{\mathrm{z}}\) defining \(c_{x,y,z}\) for (i, j, k) and \(\delta x \cdot \delta y \cdot \delta z\) (used as dx, dy, dz in TRISTAN) for \((i + 1, j + 1, k + 1)\). On the Yeelattice as shown in Fig. 5, the interpolated force at (x, j, k) exerted by the electric field components \(e_{\mathrm{x}}\) is interpolated as
with
Note that on the Yeelattice, the electric (and magnetic) field is staggered, as sketched in Fig. 5. Therefore, the value of the electric field on the grid needs to be averaged as Eqs. (33). Thus, the interpolated force is
The interpolated forces exerted by \(e_{\mathrm{x}}\) at \((x, j +1, k), (x, j, k+1)\), and \((x, j + 1, k + 1)\) are
and
respectively. Hence, the interpolated forces exerted by \(e_{\mathrm{x}}\) at (x, y, k), \((x, y, k +1)\), and (x, y, z), are
and
respectively. In the same way we can obtain the the interpolated components \(\mathbf {F}^{(x,y,z)}_{e_{\mathrm{y}}}\), \(\mathbf {F}^{(x,y,z)}_{e_{\mathrm{z}}}\), \(\mathbf {F}^{(x,y,z)}_{b_{\mathrm{x}}}\), \(\mathbf {F}^{(x,y,z)}_{b_{\mathrm{y}}}\), and \(\mathbf {F}^{(x,y,z)}_{b_{\mathrm{z}}}\) exerted by the electric field components \(e_{\mathrm{y}}, e_{\mathrm{z}}\) and the magnetic field components \(b_{\mathrm{x}}, b_{\mathrm{y}}\), and \(b_\mathrm{z}\), respectively.
Note that the first step of calculating \(\mathbf {F}^{(x,y,z)}_{b_\mathrm{x}}\) is as follows: On the Yeelattice, shown in Fig. 5, the interpolated force at (x, j, k) exerted by the magnetic field components \(b_{\mathrm{x}}\) is interpolated through
where
Subsequently, the staggering yields
and analogously for \(\mathbf {F}^{(x,y,z)}_{b_{\mathrm{x}}}\), \(\mathbf {F}^{(x,y,z)}_{b_{\mathrm{y}}}\), and \(\mathbf {F}^{(x,y,z)}_{b_\mathrm{z}}\).
Current deposit
As we discussed in Sect. 3.3.2, the update of \(\mathbf {E}\) through a cell surface (offset grid) is calculated in two steps: First, the curl of \(\mathbf {B}\) around that surface is updated before the charge fluxes are subsequently subtracted from \(\nabla \times \mathbf {B}\). Thus, only charge fluxes, i.e., the amount of charge flowing through the surfaces of Yeelattice, are needed and, hence, TRISTAN does not employ a charge density array. From the Maxwell equations, it follows that the Poisson equation will always be valid if the charge conservation condition
is satisfied. Hence, if rigorous charge conservation is enforced numerically (see Villasenor and Buneman (1992); Umeda et al. (2003) for conservation methods), the electromagnetic field can be updated from the two curl equations (1) and (2) only. In the scheme described in detail by Villasenor and Buneman (1992) and Umeda et al. (2003), the current flux through every cell surface within a time step \(\delta t\) is determined by counting the amount of charge carried through the Yeelattice cell surfaces by particles as they move from \(\mathbf {r}^{\mathrm{n}}\) to \(\mathbf {r}^{\mathrm{n+1}}\) as shown in Fig. 6.
On Yeelattice cell surfaces, the charge fluxes are subtracted from each component of \(\mathbf {E}\) field as follows
and
with the \(c_{x,y,z}\) as defined in Sect. 3.4.
In these equations each coordinate of \(\mathbf {J}\) is proportionally distributed depending on the position of the particle and of the electric field components. For example, for the electric field \(e_{\mathrm{x}}(i+0.5,j,k)\) the area \(cy\cdot cz\) in the \(yz\) plane is factored with \(J_{\mathrm{x}}\), which is the far side from the grid coordinates \((i+0.5,j,k)\).
During the calculation of the current density, a particle which does not leave its cell during the update will transport the charge through twelve surfaces, four surfaces for each orientation (treating a particle as a uniform cube). Assuming the particle move straight, we calculate how much charge is changed (e.g., Villasenor and Buneman 1992; Umeda et al. 2003). Within the code TRISTAN, the current density is subtracted from the \(\mathbf {E}\)components in the “DEPOSIT ” subroutine. If a particle moves into a neighbouring cell, one splits the move into two parts, one for each cells, and deposits the charge fluxes separately into each cells. This splitting is done in the three nested “SPLIT ” subroutines before the “DEPOSIT ” is entered.
Sorting and localization
TRISTAN does not keep the particles sorted (Buneman 1993). On some highly parallel computing facilities, it is, however, desirable to keep particles and fields in memory locations sorted by their physical locations. In order to perform simulations for large systems, TRISTAN needs to be parallelized using MPI (e.g., Niemiec et al. 2008; Spitkovsky 2008a). In this case the SPLIT routine can be modified to reindex each particle that has left its cell. Note that with such ordering all data traffic in TRISTAN is strictly local: only nearest neighbor information is needed to update all quantities. Eliminating the Poisson solver was the most important step towards such localization: the solution of Poisson’s equation anywhere depends on the charges everywhere.
Smoothing
By distributing each particle onto a cubic grid, rather than treating it as a discrete delta function as Eq. (3), we already eliminate much of the unnatural noise created by coarse graining the (physically very finegrained) population of particles. Further smoothing is achieved by TRISTAN using a primitive form of filtering, which averages the particles over adjacent neighboring cells in all three dimensions (as it was explained in Sect. 3.2). The charge density \(\mathbf {J}\) added in the DEPOSIT subroutine as a source term in Maxwell’s equations is divided into four contributions of which only two are kept in the cell, whilst the other two are deposited in the cells to each side. This is equivalent to “convolving” the flux array with the sequence 0.25, 0.5, and 0.25 and is performed individually in each of the three dimensions.
Translated into Fourier space, this would mean to apply a lowpass filter which eliminates the unsatisfactorily aliased harmonics (the \(\pi \)modes). In three dimensions each charge flux is in fact spread over \(3\times 3\times 3\) neighboring cells whose weights are recorded once and for all in the smoothing array sm(27) while ms(27) contains the corresponding index displacements accounting for the loop at the end of DEPOSIT.
In each time step, the DEPOSIT subroutine takes most of the computer time since each particle references at least \(12 \times 27 = 324\) field array data. The deposit procedure cannot be vectorized in the particles (unless the particles are carefully sorted or some extra storage arrays are used). Fortunately, the smoothing loop (of length 27) can be vectorized on CRAY machines which offer the “gatherscatter” instruction. Contrarily, the loop over the particles in the mover can be vectorized (without persuasion) by the CRAY compiler. Also note that in the TRISTANMPI code developed by Niemiec et al. (2008), these issues are modernized.
Whilst TRISTAN does not keep a record of the charge density, \(\mathrm {div}\,\mathbf {D}\) and \(\mathrm {div}\,\mathbf {E}\) can always be calculated as the outflow of \(\mathbf {D}\) or \(\mathbf {E}\) from each unit cube through
However, when postprocessing simulations performed by TRISTAN, one is usually interested in the densities of ions and electrons separately. To obtain these densities, one has to go through the ion or electron array and deposit charge according to the volume weighting rule shown above. For this purpose, we append a DENSITY subroutine (Buneman 1993) which will create each separate density array and apply the smoothing algorithm in conformity with TRISTAN ’s smoothing of all sources of fields. In TRISTANMPI (Niemiec et al. 2008), the subroutine Vol_Weighting is used in order to obtain 3D data of physical quantities such as the densities, fluid velocities, kinetic energies, thermal velocities, drift velocities, and averaged electromagnetic energy.
Particle injection
For the injection of relativistic jet particles, sophisticated numerical algorithms to load relativistic Maxwell distributions in PIC and MonteCarlo simulations are required. One distinguishes between stationary and relativistically shifted Maxwellian distributions.
The stationary relativistic Maxwell distributions known as the Jüttner–Synge distribution (Synge 1957; Jüttner 1911) is defined in the following form
where \(\mathbf {u}=\gamma \mathbf {v}\) is spatial component of the 4velocity, \(\mathbf {v}\) is the the velocity, \(\gamma =[1(\mathbf {v}/c)^2]^{1/2}\) is the Lorentz factor, m is the rest mass, c is the speed of light, T is the temperature, and \(K_{2}\) is the modified Bessel function of the second kind (Zenitani 2015). For such a stationary relativistic Maxwellian, using spherical symmetry the absolute value \(u=\mathbf {u}\) is determined by the inverse transform method or the Sobol algorithm (Pozdnyakov et al. 1977, 1983; Zenitani and Kato 2018); subsequently the three components \((u_{\mathrm{x}}, u_{\mathrm{y}}, u_{\mathrm{z}})\) are calculated through
with two uniform random numbers \(X_{1,2}\in [0,1)\).
In order to inject particles with relativistic drift velocities (the relativistically shiftedMaxwellian distribution) the Lorentz transformation of the stationary Maxwellian distribution is used. The general properties of this Lorentz transformation for particle distributions are described between two frames, S and \(S^{\prime }\) assuming that particles are stationary in the reference frame S, and that, without loss of generality, \(S^{\prime }\) is the reference frame shifted with the 4velocity \((\mathrm{\varGamma },\mathrm{\varGamma }\beta , 0, 0)\) such that particle velocities in \(S^{\prime }\) are boosted by \((\mathrm{\varGamma },+\mathrm{\varGamma }\beta , 0, 0)\). According to the previous nomenclature, in the following all quantities with a prime (\(^{\prime }\)) denote the quantities in \(S^{\prime }\).
As the total particle number is conserved, the distribution function does not transform
where \(d^{3}x =dx\ dy\ dz\) is the spatial volume element. Using the time element dt in the same frame, we consider the 4dimensional volume element of dt and \(d^{3}x\) that is moving at the 4vector of \(\mathbf {u}\).
After some calculation, one finds the explicit expression
for a relativistic shiftedMaxwellian (Zenitani 2015) where \(\epsilon '=\gamma 'mc^{2}\) is the particle energy, \(\mathrm{\varGamma }\) and \(\beta =v_{\mathrm{jt}}/c\) are bulk Lorentz factor and drift velocity. In PIC simulations of relativistic jets the thermal velocity of relativistic jets is small (\(\mathrm{\varGamma }=T/mc^{2}\ll 1\)).
Zenitani (2015) describes various numerical algorithms for loading relativistic Maxwellians in particle simulations. The inverse transform method and the Sobol method are useful to load the stationary Maxwellian as long as \(T\gg 1\); if \(T\ll 1\), one can switch to the Box–Muller method.
For the relativistic shiftedMaxwellian, Zenitani (2015) describes how to adjust the particle number by a rejection method where a particle is accepted if the following condition is met:
with a uniform random number \(X_{\mathrm{S}}\in [0,1)\). If the condition is not met, then the particle momentum is reinitialized.
Another method used for the particle injection is the flipping method (which is to be distinguished from the rejection method). If the following condition is met for a uniform random variable \(X_{f}\),
then \(u_{\mathrm{x}}\) is changed to \( u_{\mathrm{x}}\), before computing \(u'_{\mathrm{x}}\). Here, the two conditions of \(\beta v_{\mathrm{x}} < 0\) and \(\beta v_{\mathrm{x}} >X_{f}\) are combined. Whilst the rejection method has an acceptance efficiency of 50%, the flipping method has an efficiency of 100%.
These rejection and the flipping methods are simple and physically transparent. They can be combined with arbitrary base algorithms which are useful in relativistic kinetic simulations in highenergy astrophysics.
TRISTANMPI uses a similar method for the jet frame, as outlined in Pozdnyakov et al. (1977, 1983); Zenitani (2015), but jet particles, initialized from relativistic Maxwellian distributions, are additionally transformed into the simulation frame.
Postprocessing and other subjects
When running TRISTAN one observes that space allocation is more problematic than time allocation where “space” here refers to both CPU (memory) space and disk space, not physical space. As with physical observations, data acquisition is only the first stage: data storage, data analysis, graphical display and interpretation remain as postsimulation tasks (Buneman 1993; Niemiec et al. 2008; Nishikawa et al. 2009, 2016a, 2020). This becomes an even more serious problem with recent largescale simulations on the large high performance computing facilities such as Pleiades in the NASA Advanced Supercomputing facility at the NASA Ames Research Center^{Footnote 3} and Blue Waters in the National Center for Supercomputing Applications at the University of Illinois at UrbanaChampaign.^{Footnote 4} As a gradual development, some data is analyzed while main jobs are running, which lowers the burden of storing huge data.
It was found expedient to keep control of the output data space while running TRISTANMPI by specifying the time step for the next full data dump and by restarting the run from each of these dumps. This offers the opportunity of taking at least a superficial look at the output before continuing. However, choosing each time step for outputting is quite impractical since this would take too much disc space and would slow down the simulations because of the huge time impact of output operations. If one knows beforehand what information one would like to obtain of a simulation a run—typically orbits of some particular particles—the outputting could be performed at fixed intervals. However, first runs are often full of surprises and rerunning with a new choice of output frequency and output material is then the most economical method. Recently, it has become convenient to create movies (slide shows) from the outputted data for presentations or supplementary material which requires to output data more often for smoother movies.
Threedimensional data of fluid quantities such as particle densities are generated by the DENSITY subroutine or by post processes. Then twodimensional plots are made in a few chosen slices as well as the projections of the magnetic field vectors in the middle of those slices have been found useful and reassures the credibility of the simulation. However, TRISTANMPI output is extremely diverse for a variety of advanced graphics methods, especially because of the threedimensionality of the output material. Recently, more and more 3D visualization tools such as VisIt,^{Footnote 5}ParaView,^{Footnote 6} and others, have become available. These visualization tools assist in understanding complex 3D structures and their evolution allowing also for slicing 3D output in order to view inside the 3D structures. Several threedimensional plots are shown in this review.
Our physics education has taught us to think in terms of waves, particles and their interaction. We are familiar with dispersion, growth and decay, reflection and absorption which are features of linear wave systems. We try to describe nonlinear phenomena by wavewave interaction, i.e., as small perturbations of linear behaviour. However, the wave analysis of data is expensive. TRISTANMPI does not use transformations since they are nonlocal and costly. Transforming in time is only possible as a postprocessing operation and it requires a record for each time step which has been previously implemented into TRISTAN and TRISTANMPI.
If one acquires to investigate waves in the output of a simulation run, one first needs to decide what variable(s) to subject for the wave analysis. One must allocate core space for performing the spatial transforms of the desired variable(s) at each time step and output the necessary spatial harmonics after each time step. Subsequently, it is possible to post process the data by transforming each spatial harmonics in time allowing to study the amplitudes and phases of waves for the quantities one is interested in. The necessary additions to TRISTANMPI are possible; a more detailed overview of the extensive wave analysis for one of best educational PIC codes is given in (Omura 2007).
When a simulation code reproduces observed phenomena (such as the formation of our magnetosphere and magnetotail by the solar wind impinging on Earth’s dipole) one could carefully conclude that there is no longer any mystery in what we see, but whether we have “explained” or “understood” the observed phenomena (completely) remains arguable (e.g., Buneman et al. 1992). The purpose of a simulation is not to “explain”, rather but to offer a facility for controlling input parameters and making predictions, rather than having to wait for variations to occur naturally. Moreover, simulations offer the opportunity of going over the same data with a variety of different diagnostics, or, if needed, repeating a run with the same input, but recording different variables as continuous output. One example on how extensively a simulation code can be applied for one and the same topic is the very initial PIC simulations of solar windmagnetosphere interaction (e.g., Nishikawa 1997).
Code test and performances of TRISTANMPI
The original version of TRISTAN (e.g., Nishikawa et al. 2006b) has been parallelized with MPI, optimized for speed, and improved to more efficiently handle smallscale numerical noise. This version, called TRISTANMPI, is designed to be flexible and to perform well on different computational platforms including user control over a number of optimization features. One example is the splitting of large loops into segments, for which the relevant variable can be simultaneously held in the processor cache, thus avoiding memory access over the system bus. Another example is the periodic resorting of particles improving the speed of memory IO.
TRISTANMPI (see e.g., Niemiec et al. 2008) has been performed on several large high performance computing facilities such as Mercury, Abe, Kraken, Ranger, Ember which are located at the Computer Centers of the National Science Foundation (NSF) (Nishikawa et al. 2009), and on the Pleiades and Columbia systems of NASA Advanced Supercomputing (NAS). Validation tests performed on these platforms show that computation time scales linearly with the number of particles per cell and with the number of cells (volume) per singleprocessor domain. The code also has an excellent scalability, provided the memory load per core is kept above \(\sim \)100 MB. Other tests have verified that the efficiency of the computational execution is indeed limited by the memory load per core, rather than by the number of cores. Therefore, running small simulations on a large number of cores is impractical, whilst large simulations can be efficiently executed on many cores, hence on an increasing number of cores with fixed domain size. Very large simulations of astrophysical jets have been performed using 556 nodes with 10,000 cores on Pleiades at NAS and reported in Nishikawa et al. (2016a) confirming that the code is well optimized up to 10,000 cores.
Weak scaling law on Bridges and Frontera
The following scaling check is performed to show that using a large number of cores keeps the simulation time similar for the same number of time steps even when performing simulations for very large systems. The scaling on Bridges at the Pittsburgh Supercomputer Center has been checked by running simulations of relativistic cylindrical jets with different system sizes, one case with 324 and one with 2916 cores (processors). The conclusion is that TRISTANMPI is well optimized using a large number of cores in order to satisfy the physical parameters in size of jet radius and other parameters starting with simulations for smaller system and finishing with simulations using the maximum capability of Bridges.
In all the following comparisons, jet particles are traced for 5000 time steps differences in these simulations are the size of jet radius and width. The system sizes are

run1: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 257 \times 257 \varDelta ^{3}\) \(\varDelta \): grid size) with jet radius \(40 \varDelta \) on 324 cores

run2: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 761 \times 761 \varDelta ^{3}\)) with jet radius \(120 \varDelta \) on 2916 cores

run5: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 869 \times 869 \varDelta ^{3}\)) with jet radius \(40 \varDelta \) on 2916 cores on Frontera
such that simulation run2 contains 9 time more jet and ambient particles than run1 as shown by two “\(*\)” in Fig. 7. The run time of both simulations is monitored by running with a different number of cores:
Although the particle number is increased by a factor of 9, the run time is only increase by a factor of 1.75. Considering some overall processes such as input and output, this shows that TRISTANMPI is very well optimized. It should be noted that run5 which is indicated by “\(\sharp \)” uses the same number of jet particles runs in almost same time as shown by rushed blue line in Fig. 7. This means that even more ambient particles in run5 than ran1, the run time does not increase.
Strong scaling law on Frontera
Strong scaling law test was performed on Frontera at the Texas Advanced Computing Center (TACC) for a more reasonable setting. The same jet radius \(r_{\mathrm{jt}} =80\varDelta \) used for the all calculations with 324, 1296 and 2304 cores as shown in Fig. 7.

run3: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 293 \times 293 \varDelta ^{3}\)) with 324 cores

run6: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 293 \times 293 \varDelta ^{3}\)) with 1296 cores

run4: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 581 \times 581 \varDelta ^{3}\)) with 1296 cores

run7: (\(L_{x} \times L_{y} \times L_{z} = 645 \times 581 \times 581 \varDelta ^{3}\)) with 2304 cores
Run6 (indicated by “\(\circ \)”) uses 4 times more cores than run3 for the same simulation size. Theoretically, it would run in 19 min. On Frontera it runs in 22 min and \(76/22=3.45\) faster than run3. It is 16% slower than the theoretical prediction. Run4 runs in 78 min and run7 (indicated by “\(+\)”) runs 46 min, as shown by green line, run7 runs uses 1.8 times more cores, therefore run7 should run in 43.9 min. Therefore, run7 runs in 4.8% slower than the theoretical prediction. The Frontera is slightly faster than the Bridges. This test shows that TRISTANMPI is very well optimized on the Frontera.
Numerical Cherenkov radiation
For onedimensional electromagnetic particle simulation codes, linear dispersion relations are analyzed in order to determine numerical stability properties. It is found that fast particles may resonate with light waves of matching phase velocity to produce a severe numerical instability. A Courant condition for this instability is derived, and its restrictiveness amongst the various difference schemes is compared. At least two algorithms permitting reasonably large time steps for relativistic simulations are available (Godfrey 1974).
Na et al. (2020) analyze numerical Cherenkov radiation (NCR) effects produced by finiteelementbased EMPIC simulations involving relativistic plasma beams on different types of mesh. NCR is caused by spurious coupling between electromagneticfield modes and multiple beam resonances. This coupling may result from the slow down of poorlyresolved waves due to numerical (grid) dispersion and from aliasing mechanisms. Complete dispersion diagrams over the first Brillouin zone were derived for periodic meshes with different element shapes and layouts. Analytical NCR predictions were compared against EMPIC simulation results. Considering a relativistic plasma beam simulation, it is observed that the mesh element shape and mesh layout have a marked influence on the ensuing NCR properties. In particular, it is also observed that EMPIC simulations on an unstructured mesh (with irregular triangular elements) does not support spatially coherent NCR modes due to the aperiodic nature of the mesh layout. In this case, a diffusivelike behavior is observed for the NCR in the spatial domain. Importantly, it is observed that the spurious energy produced by NCR on the unstructured mesh reaches saturation levels that are considerably lower than those on meshes based on periodic layout of (rectangular or triangular) elements. For simplicity, the analysis is carried out in 2D but it is expected that similar conclusions should apply to 3D as well. Results based on first order Whitney basis functions and without the use of highorder shape functions unveils the baseline NCR effect for a fair comparative analysis to be made across different meshes. It is expected that the use of highorder shape functions should mitigate NCR effects. For that, the development of highorder shape functions on unstructured grids is an important line of future enquiry (e.g., Greenwood et al. 2004)
Melzani et al. (2013) present the parallel PIC code AparT and, more importantly, address the fundamental question of the relation amongst PIC models, the Vlasov–Maxwell theory, and real plasmas. They presented four validation tests: spectra from simulations of thermal plasmas, linear growth rates of the relativistic tearing and the filamentation instabilities, and nonlinear filamentation merging phase. Plasmas in nature contain millions to tens of billions of particles per Debye sphere, and relevant microphysical phenomena spread over numerous Debye lengths. It is impossible to track these particles one by one. Rather, the numerical particles represent numerous real particles, and are consequently called superparticles. A superparticle represents either p real ions (having then a rest mass \(m_{\mathrm{sp}} = p \times m_{\mathrm{i}}\) and a charge \(q_{\mathrm{sp}} = p \times q_{\mathrm{i}}\)), or p real electrons (having then a rest mass \(m_{\mathrm{sp}} = p \times m_{\mathrm{e}}\) and a charge \(q_{\mathrm{sp}} = p \times q_{\mathrm{e}}\)). The ratio of ion to electron charge is always \(q_{\mathrm{i}}/q_{\mathrm{e}} = 1\), while that of their rest masses \(m_{\mathrm{i}}/m_{\mathrm{e}}\) can be freely specified. Pair plasmas can thus be simulated. In AparT the number of real particles per superparticles p is the same for all superparticles at all times. For the filamentation instability they show that the effective growth rates measured on the total energy can differ by more than 50% from the linear cold predictions and from the fastest modes of the simulation. They link these discrepancies to the superparticle number per cell and to the level of field fluctuations. A more subtle effect of coarsegraining is due to the loss of the dynamics of the p particles represented by each superparticle. They intuitively expect that it will lead to the overall loss of compressibility due to superparticle incompressibility, of the contribution to kinetic pressure of the particle velocity spreading within a superparticle, and of the multipole contribution to the electric and magnetic fields created by the distribution of particles within a superparticle. The relevance of these missing effects remains still unclear.
Melzani et al. (2013) descibe a new method for initial loading of Maxwell–Jüttner particle distributions with relativistic bulk velocity and relativistic temperature, and explain why the traditional method with individual particle boosting fails. For details see Sect. 3.9. The formulation of the relativistic Harris equilibrium is generalized to arbitrary temperature and mass ratios. Both are required for the tearing instability setup.
They turn to the key point of their paper and scrutinize the question of what description of (weakly coupled) physical plasmas is obtained by PIC models. These models rely on two building blocks: coarsegraining, i.e., grouping of the order of \(p \sim 10^{10}\) real particles into a single computer superparticle, and field storage on a grid with its subsequent finite superparticle size. The size (shape) of superparticle is described in Sect. 3.2. They introduce the notion of coarsegraining dependent quantities, i.e., quantities depending on p. They derive from the PIC plasma parameter \(\varLambda ^{\mathrm{PIC}}\), which they show to behave as \(1/\varLambda ^{\mathrm{PIC}} \propto 1/p\). They explore two important implications. One is that PIC collision and fluctuationinduced thermalization times are expected to scale with the number of superparticles per grid cell, and thus to be a factor \(p \sim 10^{10}\) smaller than in real plasmas, a fact that they confirm with simulations. The other is that the level of electric field fluctuations scales as \(1/\varLambda ^{\mathrm{PIC}} \propto 1/p\). They provide a corresponding exact expression, taking into account the finite superparticle size. They confirmed both expectations with simulations.
They compare the Vlasov–Maxwell theory, often used for code benchmarking, to PIC simulations. The former describes a phasespace fluid with \(\varLambda = +\infty \) and no correlations, while the PIC plasma features a small \(\varLambda \) and a high level of correlations when compared to a real plasma. These differences have to be kept in mind when interpreting and validating PIC results against the Vlasov–Maxwell theory and when modeling real physical plasmas.
The dispersion relation of electromagnetic waves in vacuum is modified by the grid. This modification depends on the angle of propagation with respect to the grid, and waves can have a phase velocity smaller than c (Greenwood et al. 2004). If superparticles with velocity close to c are present, they can overtake light waves and emit Cerenkov radiation. This results in the production of nonphysical fields. The situation can be improved with a fourth order interpolation scheme for the fields (Greenwood et al. 2004).
Short comparison between microscopic and macroscopic processes in plasma
In this section, we discuss the advantages and disadvantages of using microscopic and macroscopic simulations, or their coupling, when investigating the physics of plasmas.
As mentioned in the previous sections, PIC simulations can investigate kinetic (microscopic) processes of plasma. Kinetic models describe the particle velocity distribution function at each point in the plasma and therefore do not need to assume a Maxwell–Boltzmann distribution. A kinetic description is often necessary for collisionless and collision dominated plasmas. The PIC technique includes the kinetic information by following the trajectories of a large number of individual particles. Such kinetic models are generally more computationally intensive than fluid models including solving the Vlasov equation or using a gyrokinetic approach. The Vlasov equation may be used to describe the dynamics of a system of charged particles interacting with an electromagnetic field. In magnetized plasmas, a gyrokinetic approach can substantially reduce the computational expense of a fully kinetic simulation.
Vlasov equations are a type of hyperbolic partial differential equations describing the evolution of the phasespace distribution function \(f_{\mathrm{s}}({\mathbf {r}},{\mathbf {v}},t)\) of various species s of charged particles. When coupled to the Maxwell equations, they can be applied to collisionless plasmas where the charged particles interact through electromagnetic fields. Let us consider test particles with charge \(q_{\mathrm{s}}\), mass \(m_{\mathrm{s}}\), and position \({\mathbf {r}}_{\mathrm{s}}\) in a plasma with stationary conditions. The particle s will then feel the electric field \({\mathbf {E}}({\mathbf {r}}_{\mathrm{s}},t)\) produced by all the other charges. The general form of the VlasovMaxwell equations describing the evolution of a single species plasma is given by
where the local fields are related only to local macroscopic quantities such as charge density and current through the Maxwell equations.
The PIC method represents, in a way, an easier to handle approach to Vlasov solvers through regraining the flow of the phasespace distribution functions via introducing macroparticles (superparticles) and providing the solution of differential equations of macroparticle motion (e.g., in 3D) instead of solving a system of hyperbolic partial differential equations in six dimensions. In PIC simulations both electrons and ions are equally treated as particles. Therefore, the particle dynamics needs to be resolved in time and space. The scales in PIC simulation are set in such a way that the cell size \(\varDelta \) is much smaller than the length scale of the shortest physically relevant phenomenon and that the time step \(\varDelta t\) is short enough to resolve the fastest plasma fluctuations. For astrophysical plasma, for example in problems where the electrons are expected to be dynamically important, the electron plasma frequency \(\omega _{\mathrm{pe}}\) and the skin depth \(\lambda _{\mathrm{e}} \equiv c/\omega _{\mathrm{pe}}\) set the time and length scales such that the electron plasma oscillations are well resolved. Instead, if the ion dynamics is also of interest, the simulation should be large enough to include their skin depth and plasma oscillation period. For protons, approx. \(\sqrt{m_\mathrm{p}/m_{\mathrm{e}}} = 43\) more cell lengths and time steps, than what is needed for electrons, should be used. This factor is even larger for heavier ions. (In laserplasma problems, the laser frequency is used instead of the electron plasma frequency.) If, however, the ion dynamics is much more important and electrons can be treated as an equalizing fluid, hybrid models can be used. In such simulations, the ions are treated as macroparticles for PIC calculations, whereas the electron behavior is simulated as a fluid. This hybrid method is reviewed in, e.g., Palmroth et al. (2018).
Astrophysical jets have extensively been investigated using hydrodynamic codes which are a particular class of fluid codes. In particular, since relativistic jets contain magnetic fields, RMHD codes need to be applied to study their propagation (see, e.g., Martí and Müller 2015). More recently, jet formations have been investigated using GRMHD codes.
PIC simulations have become more feasible for global interaction between the solar wind and Earth magnetosphere (e.g., Nishikawa 1997; Cai et al. 2015), which can be applied to study new aspects of, for example, astrophysical jet dynamics, in spite of the small size of the simulation domain. One of these aspects, which cannot be studied with the help of fluid equations, is the magnetic reconnection in the magnetotail generating burst flows of particles where electrons and ions are separated and flow in the opposite way due to the electric fields in the tail (Nishikawa 1997).
Recently, in order to avoid the weaknesses of PIC simulations for the investigation of solar windmagnetosphere interactions a Multiscale MHDKinetic PIC code has been developed (e.g., Walker et al. 2019; Lapenta et al. 2020a, b). For their multiscale approach they use a state from a global magnetohydrodynamics (MHD) model to spawn a kinetic PIC simulation with an implicit PIC approach of a large portion of the tail. They directly investigate the energy fluxes resulting from magnetic reconnection due to the substorm (Lapenta et al. 2020b). Such a coupling provides information on additional processes absent in pure MHD simulations.
It is important to understand the differences between kinetic (particle) and fluid methods. Since it is important to decide on a casetocase basis which of the two approaches is the best method, we here now summarize their advantages and disadvantages including new hybrid methods between these two methods.
Since we describe the PIC simulations of relativistic jets in Sect. 5.4, we explain here how PIC and RMHD simulations can handle relativistic jets from black holes. (Those jets are supposed to be powered by the accreted matter around the black hole and/or by the rotational energy of the black hole itself. The matter orbiting a black hole and falling onto it is referred to as the accretion disk. A black hole surrounded by an accretion disk is one of the most effective machinery in the Universe for converting energy from the gravitational (disk) energy and rotational (black hole) energy into the kinetic energy of the jet particles.) The major differences between these two different methods are the units of simulation length and time step. In GRMHD simulations the unit of length is usually set by the Schwarzschild radius of the black hole: \(r_{\mathrm{S}}=2GM/c^{2}\) (G: gravitational constant, M: black hole mass, and c: light speed) or by the gravitational radius of the black hole, \(r_{\rm g}=r_{\rm S}/2\). Accordingly, the simulation time is measured in units of \(r_\mathrm{S}/c\) or \(r_{\mathrm{g}}/c\). Therefore, for example, the most extensive GRMHD simulations with \(N_{\mathrm{r}} \times N_{\theta } \times N_{\phi } = 13440 \times 4608 \times 8092\) cells in whole simulation domain from inside the event horizon to \(r = 10^5 r_{\mathrm{g}}\) and a run time exceeding 1.2 \(\times \) \(10^6 r_{\mathrm{g}}/c\) provides a realistic size for a relativistic jet from horizon to its global evolution in large scale (Liska et al. 2019, 2020b, a). The simulation parameters in RMHD simulations are scaled with jet radius, therefore it is very easy to accommodate the realistic size (length) based on the jet radius without including any kinetic processes. The simulation data can provide only phenomenological evolution of jets. In general, in these simulations currentdriven kink instability is dominant if jet is highly magnetized. (e.g., Barniol Duran et al. 2017; Liska et al. 2019; Davis and Tchekhovskoy 2020; Dong et al. 2020).
On the contrary, as already mentioned, in PIC simulations the length is scaled by the physical parameters such as the electron Debye length: \(v_{th,e}/\omega _{\mathrm{pe}}\) and electron skin depth: \(c/\omega _{\mathrm{pe}}\). Usually, the grid size \(\varDelta \) is similar or smaller than the Debye length. If the real mass ratio (\(m_{\mathrm{proton}}/m_{\mathrm{e}}= 1836\)) is used, the ratio of these lengths between electrons and protons is \(\sqrt{1836}\approx 43\), therefore it is difficult to include a large number of proton skin depth in the simulation system. Even for an electronpositron jet it is impossible to accommodate the realistic jet radius based on the electron skin depth. Therefore, PIC simulations cannot provide any macroscopic scale phenomena as RMHD simulations can do phenomenologically. The assessment of physical parameters used in the simulation system to natural physical parameters has been done, and in the case of a jet with the radius \(40\varDelta \), the scaling implies that the jet axis of the PIC simulations (i.e., \(240\varDelta \) in length) corresponds to a physical size of \(\sim \) 150 km.
However, RMHD simulations cannot provide any kinetic processes such as acceleration of nonthermal electrons which are responsible for high energy particles and observed gammaray flares. Since onefluid RMHD cannot distinguish between electronpositron and electronion (proton) jets. While RMHD simulations capture well the large scales, they hardly capture the small scales which may be important, e.g., in turbulent cascades, anomalous resistivity, gyromotions, etc. Therefore, if the simulation size is large enough to accommodate a few modes of growing instabilities (MI, kKHI, and WI) along and transverse to jet propagating direction, we would be able to provide kinetic processes in relativistic jets described in Sect. 5. The recent PIC simulations show that two modes of MI are obtained in the jet radius (\(100\varDelta \)) in the electronpositron jets Meli et al. (2021). On the contrary for the electronproton jet only one mode of MI is excited as show in Nishikawa et al. (2020). The jet length in these simulations is large enough to accommodate a several modes of kKHI (WI) in the linear stage and at the end of simulations the nonlinear stage is established which provides an evolution of jets with kinetic processes. In order to include ion kinetic processes the reduced mass ratio \(m_{\mathrm{i}}/m_{\mathrm{e}}\) needs to be used. For example, if \(m_{\mathrm{i}}/m_{\mathrm{e}}=9\) the ion skin depth becomes 3 times of the electron skin depth, therefore a few ion skin depths with jet radius (\(300\varDelta \) or larger) with the electron skin depth (\(\lambda _\mathrm{e}= 10\varDelta \)) can be accommodated. As the evolution of kinetic instabilities depends on the mass ratio, even larger systems should be used to find out the required minimum mass ratio. Certainly, in order to minimize the weakness of the PIC simulations, it is very important to develop an exascale PIC simulation which is in progress as described in Sect. 3.12. In order to mitigate the weaknesses of PIC simulations, the following new hybrid (coupling PIC and RMHD) methods are developed.
As an example, the hybridVlasov model Vlasiator has recently been developed (e.g., Palmroth et al. 2018) which models ions as a sixdimensional (6D) spacevelocity distribution and electrons are neglected apart from their chargeneutralizing behavior. The ion distribution function is propagated in time according to Vlasov’s equation. The set of equations is then completed by Ampère’s law, Faraday’s law, and a generalized Ohm’s law such that the electric field is determined through
where \(\mathbf {V}\) is the ion bulk velocity, \(\mathbf {B}\) is the magnetic field, \(\rho _{\mathrm{q}}\) is the ion charge density, \(\mathbf {j}=\nabla \times \mathbf {B}/\mu _{0}\) is the current density, and \(\mu _{0} =4\pi \times 10^{7} \mathrm{Hm}^{1}\) is the vacuum permeability. The second term on the righthand side of the equation (55) is the Hall term. Compared to resistive MHD, where the electric field is given by
with resistivity \(\eta \), including the Hall term produces higher reconnection rates (Birn et al. 2001). In Vlasiator, there is no artificially added or enhanced resistivity and the magnetic reconnection is triggered by numerical diffusion. Any further terms of the generalized Ohm’s law, except those included in Eq. (55), are considered negligible at the current spatial resolution of Vlasiator which is approximately 300 km.
In summary, Vlasiator includes the ion kinetics through a distribution function, but not the electron kinetics. This allows for the selfconsistent global modeling of the nearEarth plasma environment, including multitemperature nonMaxwellian ion populations that cannot be described by MHD realistically. Unlike PIC approaches, modeling ions as velocity distribution functions produces solutions that are numerically noiseless, but also might prevent the study of effects in the tail of the ion distribution. Since the electron microscopic processes are not included in this method, any nonthermal distribution and radiations from electrons are not considered. For the devlopment of astrophysical systems the electron evolution is crucial, and therefore this method is not appropriate for astrophysical research.
However, as mentioned beforehand, there are certain weaknesses of fluid simulations that promote the use of PIC simulations instead. Ideally, fluid RMHD simulations cannot distinguish kinetic effects of electrons and ions and their skin depth (Debye length) is not accounted for. These kinetic physical parameters are completely diminished in RMHD simulations. Therefore, such models may miss important features. For example, in the jet evolution kinetic processes may play a more dominant role, in particular in the early linear stage. Certainly, only recently performing largescale PIC simulations has become feasible. So far RMHD simulations of jets are considered as the “gold standard” of global jet simulations. At the present time, it is hard to investigate macroscopic phenomena using PIC models as compared to RMHD simulations. However, PIC simulations act complimentary to RMHD studies as computer power increases gradually (Moore 1965; Mohseni et al. 2017).
Makwana et al. (2017) describe a method for coupling an embedded domain in a MHD simulation with a PIC method. In this twoway coupling they follow the work of Daldorff et al. (2014) in which the PIC domain receives its initial and boundary conditions from MHD variables (MHD to PIC coupling) while the MHD simulation is updated based on the PIC variables (PIC to MHD coupling). This method can be useful for simulating large scale plasma systems, where kinetic effects captured by PIC simulations are localized but affect global dynamics. They describe the numerical implementation of this coupling, its timestepping algorithm, and its parallelization strategy, emphasizing the novel aspects of it. They tested the stability and energy/momentum conservation of this method by simulating a steadystate plasma. They performed the dynamics of this coupling by propagating plasma waves through the embedded PIC domain. Coupling with MHD shows satisfactory results for the fast magnetosonic wave, but significant distortion for the circularly polarized Alfvén wave. Coupling with HallMHD shows excellent coupling for the whistler wave. They also applied this methodology to simulate a Geospace Environmental Modeling (GEM) challenge type of reconnection with the diffusion region simulated by PIC coupled to larger scales with MHD and HallMHD. In both these cases they see the expected signatures of kinetic reconnection in the PIC domain, implying that this method can be used for reconnection studies.
Collisionless plasmas, mostly present in astrophysical and space environments, often require a kinetic treatment as given by the Vlasov equation. Unfortunately, the sixdimensional Vlasov equation can only be solved on very small parts of the considered spatial domain (Lautenbach and Grauer 2018). However, in some cases, e.g. magnetic reconnection, it is sufficient to solve the Vlasov equation in a localized domain and solve the remaining domain by appropriate fluid models. They describe a hierarchical treatment of collisionless plasmas in the following way. On the finest level of description, the Vlasov equation is solved both for ions and electrons. The next courser description treats electrons with a 10moment fluid model incorporating a simplified treatment of Landau damping. At the boundary between the electron kinetic and fluid region, the central question is how the fluid moments influence the electron distribution function. On the next coarser level of description the ions are treated by an 10moment fluid model as well. It may turn out that in some spatial regions far away from the reconnection zone the temperature tensor in the 10moment description is nearly isotopic. In this case it is even possible to switch to a 5moment description. This change can be done separately for ions and electrons. To test this multiphysics approach, this full physicsadaptive simulations can be applied to the Geospace Environmental Modeling (GEM) challenge of magnetic reconnection.
Rieke et al. (2015) present a way to combine Vlasov and twofluid codes for the simulation of a collisionless plasma in large domains while keeping full information on the velocity distribution in localised areas of interest. This is made possible by solving the full Vlasov equation in one region while the remaining area is treated by a 5moment twofluid code. In such a treatment, the main challenge of coupling kinetic and fluid descriptions is the interchange of physically correct boundary conditions between the different plasma models. In contrast to other treatments, they do not rely on any specific form of the distribution function, e.g. a Maxwellian type. Instead, they combine an extrapolation of the distribution function and a correction of the moments based on the fluid data. Thus, throughout the simulation both codes provide the necessary boundary conditions for each other. A speedup factor of around 10 is achieved by using GPUs for the computationally expensive solution of the Vlasov equation. Additional major savings are obtained due to the coupling where the amount of savings roughly corresponds to the fraction of the domain where the kinetic equations are solved. The coupled codes were then tested on the propagation of whistler waves and on the GEM reconnection challenge.
Bai et al. (2015) formulate a MHDPIC method for describing the interaction between collisionless cosmic ray (CR) particles and a thermal plasma. The thermal plasma is treated as a fluid, obeying equations of ideal MHD, while CRs are treated as relativistic Lagrangian particles subject to the Lorentz force. Back reaction from CRs to the gas is included in the form of momentum and energy feedback. In addition, they include the electromagnetic feedback due to CRinduced Hall effect that becomes important when the electronion drift velocity of the background plasma induced by CRs approaches the Alfvén velocity. Their method is applicable on scales much larger than the ion inertial length, bypassing the microscopic scales that must be resolved in conventional PIC methods, while retaining the full kinetic nature of the CRs. They have implemented and tested this method in the Athena MHD code Stone et al. (2008), where the overall scheme is secondorder accurate and fully conservative. As a first application, they describe a numerical experiment to study particle acceleration in nonrelativistic shocks. Using a simplified prescription for ion injection. They reproduce the shock structure and the CR energy spectra obtained with more selfconsistent hybridPIC simulations, but at substantially reduced computational cost. They also show that the CRinduced Hall effect reduces the growth rate of the Bell instability (e.g., Reville and Bell 2013) and affects the gas dynamics in the vicinity of the shock front. As a step forward, they are able to capture the transition of particle acceleration from nonrelativistic to relativistic regimes, with momentum spectrum \(f (p) \propto p^{4}\) connecting smoothly through the transition, as expected from the theory of Fermi acceleration.
Casse et al. (2017) present simulations of magnetized astrophysical shocks taking into account the interplay between the thermal plasma of the shock and suprathermal particles using particleinmagnetohydrodynamicscells. Such interaction is depicted by combining a gridbased magnetohydrodynamics description of the thermal fluid with particleincell techniques devoted to the dynamics of suprathermal particles. This approach, which incorporates the use of adaptive mesh refinement, is potentially a key to simulate astrophysical systems on spatial scales that are beyond the reach of pure PIC simulations. They consider nonrelativistic superAlfénic shocks with various magnetic field obliquities. They recover all the features from previous studies when the magnetic field is parallel to the shock front normal (van Marle et al. 2019). In contrast to previous and hybrid simulations, they find that particle acceleration and magnetic field amplification also occur when the magnetic field is oblique to the shock front normal, but on larger timescales than in the parallel case. They show that in their oblique shock simulations the streaming of suprathermal particles induces a corrugation of the shock front. Such oscillations of both the shock front and the magnetic field then locally facilitate the particles to enter the upstream region and to initiate a nonresonant streaming instability finally inducing diffuse particle acceleration.
Recently, Drake et al. (2019) have developed a new computational model suitable for exploring the selfconsistent production of energetic electrons during the magnetic reconnection in macroscale systems. These equations are based on the recent discovery that parallel electric fields are ineffective drivers of energetic particles during magnetic reconnection such that the kinetic scales controlling the development of such fields can be ordered out of the equations. The resulting equations consist of a MHD background with the energetic component represented by macroparticles described by the guiding center equations. Crucially, the energetic component feeds back on the MHD equations, thus the total energy of the MHD fluid and of the energetic particles is conserved. These equations correctly describe the firehose instability, whose dynamics plays a key role in throttling magnetic reconnection and in controlling the spectra of energetic particles.
They describe a system with three distinct classes of particles: ions of density n and temperature \(T_{\mathrm{i}}\), cold electrons with density \(n_{\mathrm{c}}\) and temperature \(T_{\mathrm{c}}\) and energetic electrons with density \(n_{\mathrm{h}} = n  n_{\mathrm{c}}\) and temperature \(T_{\mathrm{eh}}\). The hot electrons are treated as macroparticles that evolve through the MHD grid by the guiding center equations. Since this new method is an advanced twofluid MHD simulation, some of the fundamental properties of PIC method are missing. This evidence of lacking PIC properties is found in the equation
of the parallel electric field \(E_{\Vert }\) where \(P_{ec}\) is the pressure of the cold electrons. In their model the Debye length is ordered out, hence the system must remain charge neutral. The ion density is calculated with a standard continuity equation with a velocity given by the MHD momentum equation. The energetic electron density is calculated by mapping the energetic electrons onto the MHD grid with an appropriate interpolation scheme. The cold electron density is then calculated by requiring that the sum of the cold and hot electron densities matches that of the ions. The physics leading to the charge neutrality is the strong parallel motion of the cold electrons filling in for the hot electrons motion along the ambient magnetic field.
In conclusion, phenomena such as the electron acceleration and associated radiation can be investigated with the use of PIC methods. In PIC methods, each particle is traced selfconsistently using Maxwell’s equations as described in Sect. 3. With this method one can obtain all particle information and in principle also macroscopic properties if the size of simulations is large enough. However, in this method, one needs to resolve the spatial scale of the electron and ion Debye length, electron and ion skin depth and electron cyclotron period. With the current computational constraints, it is a daunting task to simulate a reasonable physical size in a 3D system for the direct comparison with fluid model. Fortunately, due to the great advance of computing power this limitation is becoming less serious.
Kinetic physics in astrophysical systems
In this section, we describe various applications of PIC codes for astrophysical plasmas, in particular for relativistic jets.
Relativistic jets are collimated plasma outflows associated with active galactic nuclei (AGN), gammaray bursts (GRBs), and pulsars (e.g., Hawley et al. 2015; Cerutti and Philippov 2017a; Blandford et al. 2019). Amongst these astrophysical systems, blazars and GRB jets produce the most luminous phenomena in the universe (e.g., Pe’er 2014). Despite extensive observational and theoretical investigations, including simulation studies, our understanding of their formations, interaction and evolution in an ambient plasma, and consequently their observable properties, such as the timedependent flux and polarity (e.g., MacDonald and Marscher 2018), remain quite limited.
The morphology of relativistic jets is very large and the macroscopic views of jets are described well by RMHD simulations (e.g., Martí 2019). However, these simulations cannot include the dynamics of particles, thus their acceleration in jets cannot be investigated. Therefore, PIC simulations play an important role for the particle acceleration and the radiation from accelerated particles in magnetic fields.
To date, models like shockinjet have failed to explain the extremely rapid gammaray flares with a relatively harder spectrum (spectral indices <1.5) (e.g., Sari and Piran 1999). One of the key open questions in the study of relativistic jets is how they interact with the immediate plasma environment on the microscopic scale. In response to this question, Nishikawa et al. (2016b, 2019, 2020) aim at examining how relativistic jets containing helical magnetic fields evolve under the influence of kinetic and MHDlike instabilities that occur within and at the jet boundaries. They conducted their examination with regards to consequences such as flares due to magnetic reconnection besides other mechanisms such as recollimation shocks and moving internal shocks (e.g., Zamaninasab et al. 2014). Therefore, magnetic reconnection which takes place in a short time and accelerates particles, could be a viable option.
Jet outflows are commonly thought to be dynamically hot (relativistic) magnetized plasma flows that are launched, accelerated, and collimated in regions where the Poynting flux dominates over the particle (matter) flux (e.g., Blandford and Znajek 1977; Aloy et al. 2000; Porth et al. 2017). This scenario involves a helical largescale magnetic field structure in some AGN jets providing a unique signature in the form of observed asymmetries across the jet width, particularly in the polarization (e.g., Liang 1981; Aloy et al. 2000; ClausenBrown et al. 2011; Tchekhovskoy 2015).
Largescale, ordered magnetic fields have been invoked to explain the launching, acceleration, and collimation of relativistic jets from the central nuclear region of an active galaxy (e.g., Meier 2008), and coalescing and merging stars (neutron star and black hole) (e.g., Piran 2005). The magnetic field structure and particle composition of the jets are still not well constrained observationally.
The circular polarization (CP; measured as Stokes parameter V) in the radio continuum emission from AGN jets provides a powerful diagnostic for deducing magnetic structure and particle composition because, unlike linear polarization (LP), CP is expected to remain almost completely unmodified by external screens (e.g., O’Sullivan et al. 2013; MacDonald and Marscher 2018).
The differences in the global jet evolution among different particle species, as described later, may be compared with observations of jet images in order to test the jet composition. PIC studies of the jet evolution with helical magnetic fields using a large simulation system may provide morphological structures of jet evolution and some possible identification of species of jets.
In this review, we also discuss the progresses made in developing stateoftheart PIC simulations of relativistic jets used to investigate the generation of rapid flares of very high energy (in particular, in \(\gamma \) and Xray bands), the composition of jet plasma, and the polarized radiation observed in blazars and GRB jets, accounting for microscopic and macroscopic processes with helical magnetic fields. In particular, formation of jetsinjet due to magnetic reconnection may provide a possible mechanism for production of flares and their rapid variability, with timescales as short as hours or even minutes (e.g., Aharonian et al. 2006, 2007).
PIC simulations of beaminduced instabilities
PIC simulations can shed light on the microphysics within relativistic shocks. Such simulations have shown that particle acceleration occurs within downstream jets (e.g., Silva et al. 2003; Nishikawa et al. 2003; Frederiksen et al. 2004; Hededal et al. 2004; Hededal and Nishikawa 2005; Nishikawa et al. 2005; Jaroschek et al. 2005; Nishikawa et al. 2006b, a, 2008; Spitkovsky 2008a, b; Chang et al. 2008; Dieckmann et al. 2008; Nishikawa et al. 2009; Martins et al. 2009; Nishikawa et al. 2011). In general, these simulations confirm that a relativistic shock in a weakly or nonmagnetized plasma is dominated by the Weibel instability (Fried 1959; Weibel 1959; Bret 2009). The associated current filaments and magnetic fields (e.g., Medvedev and Loeb 1999) accelerate electrons (e.g., Nishikawa et al. 2006a) and cosmicrays, subsequently affecting the preshock medium (Medvedev and Zakutnyaya 2009).
Weibel instabilities with various flavours
The Weibel instability has been investigated with different flavours, such as counterstreaming (e.g., Takamoto et al. 2019; Kumar et al. 2020) and bumpintail instabilities (e.g., Ziebell et al. 2012; Thurgood and Tsiklauri 2015).
Kumar et al. (2020) have performed 2D PIC simulations of counterstreaming, unmagnetized electronpositron plasmas. They discovered that, if the electronpositron plasma is distributed homogeneously, the magnetic field, produced by a Weibel instability, amplifies exponentially in the linear regime and rapidly decays after saturation. However, for inhomogeneous electronpositron plasmas, as they might originate from supernova remnants and GRBs, the magnetic field amplifies again after saturation where such amplification depends on the degree of inhomogeneity. This reamplification is caused by the thermal anisotropy created by the inhomogeneous plasma distribution.
Similarly, Takamoto et al. (2019) performed 3D simulations of counterstreaming electron and ions beams leading to a relativistic ionelectron Weibel instability. In their simulations, they compare the growth of the Weibel instability with the evolution of a MHD kink instability. They found that the growth time of the kink instability is larger than the evolution time of the Weibel instability. Hence, the Weibel instability is capable of producing magnetic fields, possibly seeding largescale MHD dynamos.
Thurgood and Tsiklauri (2015) have performed the bumpintail instability in order to understand the generation mechanism of Type III solar burst for plasma radio emission. In first case using a more tenuous and fast beam, they found evidence consistent with all stages of the threewave based fundamental and harmonic emission mechanisms, which including the beammode to Langmuir mode coupling, the growth of a population of counterpropagating Langmuir/electrostatic waves via back scattering and decay processes, the action of fundamental emission, and the coalescence of the counterpropagating population to produce harmonic emission. Using a fully kinetic and electromagnetic PIC simulation, they confirm the role of all such stages whilst taking care to distinguish signals above the inherent noise levels associated with particle methods. Thus, first case is arguably the first unambiguous confirmation of the threewave based emission processes resulting from a single electron beam in the literature using the fully kinetic PIC approach.
For second case using a slower and denser beam, they demonstrated the sensitivity of the parameter space by considering a more dense beam with the density of beam/density of ambient plasma, \(n_\mathrm{b}/n_0\), a similar density to past works, and found that the processes are significantly suppressed due to the resulting nonLangmuir characteristics of the beam mode. Whilst a full parameter study may prove useful, but is beyond available computational resources, they hope that second case demonstrates plainly that caution must be applied when attempting to simulate astrophysical beamplasma systems using unrealistically dense beams. Whilst a larger density ratio reduces relaxation times (i.e. computer time), the results are unlikely to be physically representative of the intended system due to the sensitivity to beam parameters.
Recently, as for an astrophysical system, Vafin et al. (2018) have investigated the electrostatic instability for blazarinduced pair beams propagating through the intergalactic medium (IGM) using linear analysis and PIC simulations. To study the nonlinear beam relaxation, they performed PIC simulations that take into account a realistic wideenergy distribution of beam particles. They investigated the growth rate of the instability for arbitrary wave vectors considering, in particular, the effect of the transverse beam temperature (realistic beams have \(\mathrm {rms}(p_{\perp }) \approx m_{\mathrm{e}}c/2\)). The parameters of the simulated beam plasma system provide an adequate physical picture that can be extrapolated to realistic blazarinduced pairs. In their simulations, the beam looses only 1% of its energy, and they analytically estimate that the beam would lose its total energy over about 100 simulation times. If the beam had no angular spread, then the growth rate would reach its maximum at wave vectors perpendicular to the beam. However, for a realistic finite angular spread, the growth rate is the largest at wave vectors quasiparallel to the beam direction, and the maximum growth rate is reduced, in agreement with Miniati and Elyiv (2013), but it is still by more than a factor of 10 larger than the peak growth rate of the strictly parallel electrostatic mode studied by Schlickeiser et al. (2013). An analytical scaling is then used to extrapolate the parameters of realistic blazarinduced pair beams. They found that they can dissipate their energy slightly faster by the electrostatic instability than through inverseCompton scattering. The uncertainties arising from, e.g., details of the primary gammaray spectrum are too large to make firm statements for individual blazars, and an analysis based on their specific properties is required.
They studied the impact of the realistic distribution function of pairs resulting from the interaction of highenergy gammarays with the extragalactic background light. They have presented analytical and numerical calculations of the linear growth rate of the instability for the arbitrary orientation of wave vectors. Their results explicitly demonstrate that the finite angular spread of the beam dramatically affects the growth rate of the waves, leading to the fastest growth for wave vectors quasiparallel to the beam direction and a growth rate at oblique directions that is only a factor of 24 smaller compared to the maximum.
In all these simulations no shock has been found comparing with reflected and injected jet simulations. More advanced kinetic instabilities are found in magnetorotational instability (MRI) (e.g., Hoshino 2015; Kunz et al. 2016; Hirabayashi and Hoshino 2017; Kimura et al. 2019).
Hirabayashi and Hoshino (2017) show a series of stratifiedshearingbox simulations of collisionless accretion disks in the recently developed framework of kinetic MHD, which can handle finite nongyrotropy of a pressure tensor. Although a fully kinetic simulation predicted a more efficient angularmomentum transport in collisionless disks than in the standard MHD regime, the enhanced transport has not been observed in past kineticMHD approaches to gyrotropic pressure anisotropy. For the purpose of investigating this missing link between the fully kinetic and MHD treatments, they have explored the role of nongyrotropic pressure and makes the first attempt to incorporate certain collisionless effects into diskscale, stratified disk simulations. When the timescale of gyrotropization was longer than, or comparable to, the diskrotation frequency of the orbit, they found that the finite nongyrotropy selectively remaining in the vicinity of current sheets contributes to suppressing magnetic reconnection in the shearingbox system. This leads to increase both in the saturated amplitude of the MHD turbulence driven by MRI and in the resultant efficiency of angularmomentum transport. Their results seem to favor the fast advection of magnetic fields toward the rotation axis of a central object, which is required to launch an ultrarelativistic jet from a black hole accretion system in, for example, a magnetically arrested disk state.
The theory and modelling of the dynamo effect in turbulent fluids and plasmas have been reviewed by Rincon (2019). The primary focus is on the physical and mathematical concepts underlying different (turbulent) branches of dynamo theory, with some astrophysical, geophysical and experimental contexts disseminated throughout the document. These sections are complemented by an overview of a selection of current active research topics in the field, including the numerical modelling of the geo and solar dynamos, shear dynamos driven by turbulence with zero net helicity and MHDinstabilitydriven dynamos such as the magnetorotational dynamo. Turbulence in collisionless plasma is described in Sect. 5.4.2.
For the thinshellinstability (e.g., Dieckmann et al. 2017), we refer the reader to Sect. 5.2.1. The PIC simulations of kink instability is described separately at the end of Sect. 5.4 (e.g., Davelaar et al. 2020).
In recent work, in order to generate a shock, a relativistic plasma stream is injected from one end of the computational domain and reflected from a rigid wall at the opposite end, for instance as in a 1D simulation by Hoshino and Shimada (2002); Amano and Hoshino (2007), in 2D simulations by Amano and Hoshino (2009); Spitkovsky (2008a, 2008b); Martins et al. (2009), or in a 3D simulation by Guo et al. (2014). This method resembles the collision of two identical counterstreaming beams and reduces the number of calculations by one half, which is used to investigate the particle acceleration at termination shocks historically. This approach simulates only a forward moving shock (FS). In these settings the backward (reverse) shock is degenerated to an FS. Recently, Vanthieghem et al. (2020) reviewed physics and phenomenology of weakly magnetized, relativistic astrophysical shock waves in the reflected scheme.
In the work by Nishikawa et al. (2009) a particle jet is injected into an ambient plasma without the reflection at the opposite boundary, such that a double shock structure (forward and reverse shock) is fully captured. With this setup the jettoambient density ratio can be changed and, by assuming a density ratio greater than one, the shock formation process can be properly handled by smaller scale (temporal and spatial) simulations. In such a scenario, the deceleration of the jet flow by the ambient plasma results in a contact discontinuity (CD) being the location where the electromagnetic field and the velocity of the jet and ambient plasmas are similar and the density changes. Two shocks propagate away from the CD into the jet and ambient upstreams in the CD frame (Nishikawa et al. 2009; Choi et al. 2014; Ardaneh et al. 2015, 2016). Ardaneh et al. (2015) have illustrated that forward and reverse shocks and one CD split up the jet and ambient plasma, and the structures of these shocks depend on the density ratio of the jet and ambient densities.
Therefore, this injection scheme is more universal and used with a more advanced setting as described later in order to investigate the propagation of jets including the instabilities generated in the velocityshear regions.
Next, we present the threedimensional simulation results for an electronpositron jet injected into an electronpositron plasma using a long simulation grid (Nishikawa et al. 2009). A leading and trailing shock system develops with strong electromagnetic fields accompanying the trailing shock.
Injection scheme
To setup a slab model for PIC simulations of relativistic jets, Nishikawa et al. (2009) use TRISTANMPI, an MPIbased parallel version of the relativistic electromagnetic particle code TRISTAN (Buneman 1993; Nishikawa et al. 2003; Niemiec et al. 2008). Simulations have been performed using a grid with \((L_{\mathrm{x}},L_{\mathrm{y}},L_{\mathrm{z}}) = (4005, 131, 131)\) cells and a total of \(\sim 1\) billion particles (12 particles/cell/species for the ambient plasma) in the active grid. The electron skin depth, \(\lambda _{\mathrm{s}} = c/\omega _{\mathrm{pe}} = 10.0\varDelta \), where \(\omega _{\mathrm{pe}} = (e^{2}n_\mathrm{a}/\epsilon _{0}m_{\mathrm{e}})^{1/2}\) is the electron plasma frequency, and the electron Debye length \(\lambda _{\mathrm{D}}\) is half of the cell size \(\varDelta \), where \(\varDelta = 1\). This computational domain is six times longer than in their previous simulations (Nishikawa et al. 2006a; RamirezRuiz et al. 2007). The jetelectron number density in the simulation reference frame is 0.676\(n_{\mathrm{a}}\), where \(n_\mathrm{a}\) is the ambient electron density, and the jet Lorentz factor is \(\gamma _{\mathrm{j}} = 15\). The jetelectron/positron thermal velocity is \(v_{\mathrm{j,th}} = 0.014 c\) in the jet reference frame. The electron/positron thermal velocity in the ambient plasma is \(v_\mathrm{a,th} = 0.05 c\). Similar to the previous work done by Nishikawa et al. (2006a), the jet is injected in a plane across the computational grid located at \(x = 25\varDelta \) in order to eliminate effects associated with the boundary at \(x = x_{\min }\). Radiating boundary conditions are used on the planes at \(x = x_{\min }\) and \(x = x_{\max }\) and periodic boundary conditions on all transverse boundaries (Buneman 1993). The jet makes contact with the ambient plasma at a twodimensional interface spanning the computational domain. Here the formation and dynamics of a small portion of a much larger shock are studied in a spatial and temporal way that includes the spatial development of nonlinear saturation and the dissipation from the injection point to the jet front defined by the fastest moving jet particles.
In this simulation a relativistic jet is injected into an ambient plasma as shown in Fig. 8a, therefore the shock structures are different from those that are obtained when using numerical schemes with reflecting boundary conditions (e.g., Vanthieghem et al. 2020).
Figure 8 shows (a) the initial and (b) the final stages of plasma evolution, where a double shock structure is formed resembling what is schematically illustrated. The deceleration of the jet stream by magnetic fluctuations (excited in the beam–plasma interactions) results in a CD and two shock waves that divide the jet and ambient plasmas into four regions: (1) unshocked ambient, (2) shocked ambient, (3) shocked jet, and (4) unshocked jet. These subscripts are not used further on.
Figure 9 shows the averaged (a) jet (red), ambient (blue), and total (black) electron density and (b) the electromagnetic field energy divided by the total jet kinetic energy (\(E^{\mathrm{j}}_{\mathrm{t}} = \sum _{\mathrm{i =e,p}}m_{\mathrm{i}}c^{2}(\gamma _{\mathrm{j}}  1))\) in the \(yz\) plane after \(t = 3250\,\omega ^{1}_{pe}\) where “e” and “p” denote electrons and positrons. Positron density profiles are similar to the ones for the electron density. Ambient particles become swept up after jet electrons pass by \(x/\varDelta \sim 500\). By \(t = 3250\,\omega ^{1}_{pe}\), the density has evolved into a twostep plateau behind the jet front. The maximum density in the shocked region is about three times higher than the initial ambient density. The jetparticle density remains nearly constant up to near the jet front.
Current filaments and strong electromagnetic fields accompany the growth of the Weibel instability in the trailing shock region. The electromagnetic fields are about four times larger than that seen previously using a much shorter grid system (\(L_{\mathrm{x}} = 640\varDelta \)). At \(t = 3250\,\omega ^{1}_{pe}\), the electromagnetic fields are largest at \(x/\varDelta \sim 1700\), and decline by about one order of magnitude beyond \(x/\varDelta = 2300\) in the shocked region (Nishikawa et al. 2006a; RamirezRuiz et al. 2007).
Figure 9c shows the time evolution of the electron plotted at time intervals of \(\delta t = 250\omega ^{1}_{\mathrm{pe}}\). The jet front propagates with the initial jet speed (\(\le c\)). Sharp shock surfaces seen in RMHD simulations are not created(e.g., Mizuno et al. 2009). A leading shock region (for which the linear density increase) moves with a speed between the fastest moving jet particles \(\le c\) and a predicted contact discontinuity (CD) speed of \(\sim 0.76 c\) (Nishikawa et al. 2009). The CD region consisting of mixed ambient and jet particles moves at a speed between \(\sim 0.76 c\) and the trailing density jump speed \(\sim 0.56 c\). A trailing shock region moves with \(\sim 0.56 c\); note the modest density increase just behind the large trailing density jump.
Figure 10 shows the phasespace distribution of jet (red) and ambient (blue) electrons at \(t = 3250\,\omega ^{1}_{pe}\) and confirms the shockstructure interpretation exposed in the paragraph above. Some jet electrons injected with \(\gamma _{\mathrm{}} v_{\mathrm{x}} \sim 15\) become thermalized due to the Weibel instability induced interactions whilst some sweptup ambient electrons (blue) are strongly accelerated and heated by the interaction with jet electrons.
3D quasiperpendicular shock simulations
3D PIC simulations of a high Machnumber quasiperpendicular shock have been performed by Matsumoto et al. (2017). They found an extended electron acceleration through the investigation of the electron motion in a fully selfconsistent fashion that included all of the essential ingredients: shock drift acceleration (SDA), shock surfing acceleration (SSA), and a strong Weibel magnetic turbulence.
Coherent electrostatic Buneman waves and ionWeibel magnetic turbulence coexist in a strongshock structure whereby particles gain energy during shock surfing and subsequent stochastic drift accelerations (see Nishikawa et al. 2009). Energetic electrons that initially experienced the surfing acceleration undergo pitchangle diffusion by interacting with magnetic turbulence and continuous acceleration during the confinement in the shock transition region. The ionWeibel turbulence is the key to the efficient nonthermal electron acceleration.
Figure 11 shows a 3D shock structure in a fully developed stage after its initiation. Electronscale coherent structures were found to persist during the simulation, as can be seen from the stripes of electron density at the leading edge of the shock (\(8< x < 10\)) in Fig. 11a. The shock transition (foot) region (\(0< x < 6\)) is dominated by the ionWeibel instability because of the interaction between the upstream and reflected ions, resulting in rib structures (Fig. 11a) and strong magnetic turbulence (Fig. 11b). The ycomponent of the magnetic field is a component newly generated by the instability and is further amplified up to 20 times the upstream value by the shock compression, similar to the other x and zcomponents.
These acceleration mechanisms through SDA and SSA in strong magnetic turbulence are considered to be important in relativistic jets as will be discussed later in Sect. 5.4.1.
PIC simulations of velocityshare instabilities
With slab model setup
In addition to producing shocks, outflow interactions with an ambient medium include velocity shears. In particular, the Kelvin–Helmholtz instability (KHI) has been investigated on the macroscopic scale as a mean to generate magnetic fields in the presence of strong relativistic velocity shears in AGNs and GRB jets (e.g., D’Angelo 1965; Gruzinov 2008; Mizuno et al. 2007; Perucho and Lobanov 2008; Zhang et al. 2009). Recently, PIC simulations have been employed to study the magnetic field generation and the particle acceleration in velocity shears at the microscopic scale using counterstreaming setups. Here, the shear interactions are associated with the kinetic Kelvin–Helmholtz instability (kKHI), also referred to as the electronscale Kelvin–Helmholtz instability (ESKHI; e.g., Alves et al. 2012; Nishikawa et al. 2013b; Liang et al. 2013a; Grismayer et al. 2013, 2013b; Liang et al. 2013b; Alves et al. 2015a; Liang et al. 2017, 2018).
Alves et al. (2012) found that alternating current, hereafter AC, and magnetic field modulations seen in the nonrelativistic regime are less noticeable in the relativistic regime because they are masked by a strong and relatively steady direct current, hereafter DC, and an associated magnetic field. As the amplitude of the kKHI modulations grows, the electrons from one flow cross the shear surface and enter the counterstreaming flow. In their simulations, the heavier protons remain unperturbed and DC sheets pointing in the direction of the proton velocity form around the shear surface. These DC sheets induce a DC component in the magnetic field which is dominant in the relativistic scenario because a higher direct current is set up by the deceleration of electrons relative to the protons and also because the growth rate of the AC dynamics is lowered by \(\gamma ^{3/2}_{0}\) compared to the nonrelativistic case. It is important to note here, that the DC magnetic field is not captured in MHD simulations (e.g., Zhang et al. 2009) or in fluid theories because it results from intrinsically kinetic phenomena whilst such currents are not seen in single fluid MHD.
To date, kKHI and mushroom instability (MI) simulations have been performed in slab (Alves et al. 2012; Nishikawa et al. 2013b; Alves et al. 2015a; Nishikawa et al. 2014b; Alves et al. 2015b; Liang et al. 2013a, b) and in cylindrical geometries (Alves 2010; Nishikawa et al. 2014a), but on periodic grids with no shock system. Full scale shock simulations have not incorporated velocity shear interaction with the ambient plasma (interstellar medium) (e.g., Nishikawa et al. 2009; Choi et al. 2014; Ardaneh et al. 2015, 2016), and to date only global simulations using a very small simulation system have been performed (Nishikawa et al. 2003, 2006a, 2014a; Ng and Noble 2006). Simulations by Ng and Noble (2006) pointed to the growth of kKHI, but a much larger simulation system is required to study properly both shocks and velocity shear instabilities (kKHI and MI) (e.g., Nishikawa et al. 2016a).
Alves et al. (2015a) have extended the theoretical analysis and the simulations of the ESKHI to electronion plasmas with various density ratios with a velocity shear gradient across the shear surface, and to warm as well as cold shear flows. For counterstreaming flows, they found that unequal densities lead to “drift when the density symmetry is broken”, the most rapid growth occurs for equal densities, that a velocity shear gradient slows the growth rate. Grismayer et al. (2013, 2013b) found a persistent equipartition of DC saturation magnetic field that “persists longer than the proton timescale.” A saturation electric field with \(E_{\mathrm{sat}} \sim \sqrt{\gamma _{0}}cm_{c}\omega _{\mathrm{pe}}/e\) (where \(\omega _{\mathrm{pe}} \equiv \sqrt{n_{\mathrm{e}}e^{2}/\epsilon _{0}m_\mathrm{e}}\)) results in a maximum electron energy gain of \(\varDelta E_{\max } \sim E_{\mathrm{sat}}/(k_{\max }\varDelta v) \propto \gamma _{0}^{4} m_\mathrm{e}c^{2}\), where \(\varDelta v = v_{\mathrm{e}}  v_{0}\) is the difference between the accelerated electron speed and the flow speed and \(1/k_{\max } = \sqrt{8/3}\gamma ^{3/2}_{0}c/\omega _{\mathrm{pe}}\). In the next section, we will discuss 3D PIC simulations that were performed to investigate the cold kKHI using a relativistic jet core.
With coresheath jet setup
In the simulation study of Nishikawa et al. (2014b) a coresheath plasma jet structure was employed instead of the counterstreaming plasma setup used in previous simulations (Alves et al. 2012, 2015a; Grismayer et al. 2013, 2013b; Liang et al. 2013a, b). The basic setup and illustrative results are shown in Fig. 12. In the setup, a jet core with velocity \(\gamma _\mathrm{core}\) in the positive x direction resides in the middle of the computational box. The upper and lower quarters of the numerical grid contain a sheath plasma that can be stationary or moving with velocity \((v_{\rm{sheath}})\) in the positive x direction (Nishikawa et al. 2013b, 2014b). This model is similar to the setup used in the work by Mizuno et al. (2007) for RMHD simulations with a cylindrical jet core.
However, Nishikawa et al. (2014b) represented the jet core and sheath as plasma slabs, where the system is initially charged and the current is neutral (jets). The simulations have been performed using a numerical grid with \((L_{\mathrm{x}},L_{\mathrm{y}},L_{\mathrm{z}}) = (1005\varDelta , 205\varDelta , 205\varDelta )\) (simulation cell size: \(\varDelta = 1\)) and periodic boundary conditions in all dimensions. The jet and sheath (electron) plasma number densities measured in the simulation frame are \(n_{\mathrm{jt}} = n_{\mathrm{am}} = 8\). The electron skin depth, \(\lambda _{\mathrm{s}} = c/\omega _{\mathrm{pe}} = 12.2\varDelta \), where \(\omega _{\mathrm{pe}} = (e^{2}n_{\mathrm{am}}/\epsilon _{0}m_{\mathrm{e}})^{1/2}\) is the electron plasma frequency and the electron Debye length for the ambient electrons \(\lambda _{\mathrm{D}}\) is 1.2\(\varDelta \). The jetelectron thermal velocity is \(v_{\mathrm{jt,th,e}} = 0.014c\) in the jet reference frame, where c is the speed of light. The electron thermal velocity in the ambient plasma is \(v_{\mathrm{am,th,e}} = 0.03c\), and ion thermal velocities is scaled down by a factor \((m_{\mathrm{i}}/m_\mathrm{e})^{1/2}\). Simulations were performed using an electronpositron (\(e^{\pm }\)) plasma or an electronproton \(e^{}  p^{+}\) plasma for jet Lorentz factors of 1.5, 5.0, and 15.0 with the sheath plasma at rest (\(v_{\mathrm{sheath}} = 0\)).
Figure 12b, c show an illustration of the development of the velocity shear surfaces for \(e^{}  p^{+}\) and \(e^{\pm }\) plasmas with \(v_{\mathrm{core}} = 0.9978 c\) (\(\gamma _{\mathrm{core}} = 15\)) at \(y=100\varDelta \) after \(t=300 \omega _{pe}^{1}\). For the \(e^{}  p^{+}\) case, a nearly DC magnetic field is generated at the shear surfaces perpendicular to the jets which shows the growing MI. The \(B_{\mathrm{y}}\) magnetic field component is generated with negative values (blue) at \(z = 150\varDelta \) and positive values (red) at \(z = 50\varDelta \). Additionally, a \(B_{\mathrm{z}}\) (and \(B_{\mathrm{x}}\)) magnetic field component, shown by the small arrows in Fig. 12b, c, is generated at the shear surfaces by current filaments. Additionally, for the \(e^{\pm }\) case, a relatively long wavelength (\(\sim 100\varDelta \)) AC magnetic field is generated at the shear surfaces. Note the alternating \(B_{\mathrm{y}} > 0\) (red) and \(B_{\mathrm{y}} < 0\) (blue) in Fig. 12c along the flow direction. Similar results have been obtained by Liang et al. (2013a, 2013b), though the evolution of plasma shows some different patterns as their simulations model with counterstreaming flows in 2D.
The dominantly growing modes depend on the composition of the plasma and the jet Lorentz factor. In the \(e^{}  p^{+}\) setup a DC magnetic field is generated in the shear plane, perpendicular to the relative velocity (\(B_{\mathrm{y}}\) with \(E_{\mathrm{z}}\)), which show the MI is a dominant growing mode. On the contrary, the \(e^{\pm }\) cases generate AC electric and magnetic fields which shows that the kKHI is growing. In the \(e^{\pm }\) cases, current filaments are generated similar to those found associated with the filamentation (Weibellike) instability. In the simulations, the initial growth appears in the \(E_{\mathrm{z}}\) electric field component perpendicular to the velocity shear surface. This growth is followed by the growth of the magnetic field component \(B_{\mathrm{y}}\) in the velocity shear plane transverse to the flow direction in the \(e^{}  p^{+}\) case. For the \(e^{\pm }\) case, the growth is seen in both the magnetic field components \(B_{\mathrm{y}}\) and \(B_{\mathrm{z}}\) as current filaments dominate the structure near the velocity shear surface. In all cases, fluctuation structures along the jet are much longer than transverse fluctuation structures. In the \(e^{}  p^{+}\) plasma setup, interactions and magnetic fields do not extend far from the initial velocity shear surface whilst interactions and magnetic fields extend farther from the initial velocity shear surface for \(e^{\pm }\) jets, although they extend mostly into the jet side for higher jet Lorentz factor.
Figure 13 shows the structure of the \(B_{\mathrm{y}}\) component of the magnetic field in the \(yz\) plane (jet flows out of the page) at the midpoint of the simulation box, \(x = 500\varDelta \), and 1D cuts along the z axis showing the magnitude and direction of all three magnetic field components at the midpoint of the simulation box, \(x = 500\varDelta \) and \(y = 100\varDelta \) for the \(e^{}  p^{+}\) case (upper row) and the \(e^{\pm }\) case (lower row) at simulation time \(t = 300 \omega _{\mathrm{pe}}^{1}\) with \(\gamma _\mathrm{jt}=15\) in both cases. The comparison of the transverse structures in the y direction at the velocity shear surfaces (a, d) with the parallel structures in the x direction (Fig. 12b, c) shows that the fluctuations transverse to the jet in the y direction are much more rapid than fluctuations along the jet in the x direction.
In the \(e^{}  p^{+}\) case, magnetic fields appear relatively uniform at the velocity shear surfaces along the transverse y direction just as we have seen at the velocity shear surfaces along the parallel x direction, with almost no transverse fluctuations visible in the magnetic field (small fluctuations in the y direction over distances on the order of \(\sim 10\varDelta \) are visible in the currents, whereas small longitudinal mode fluctuations in the x direction occur over distances \(\sim 100\varDelta \)). It should be noted that if the mass ratio is small, for example, \(m_\mathrm{i}/m_{\mathrm{e}} =100\), the wavy structure of MI would be seen in Fig. 13a.
For the \(e^{\pm }\) case, the magnetic field alternates in both the y and z directions and these transverse fluctuations occur over distances on the order of \(\sim 10\varDelta \), whereas longitudinal mode fluctuations in the x direction occur over distances \(\sim 100\varDelta \). This shows that the MI is also growing with a shorter wave length that that of the MI. The 1D cuts (b, e) show that the \(B_\mathrm {y}\) field component dominates in the \(e^{}  p^{+}\) case whilst in the \(e^{\pm }\) case, it is about an order of magnitude smaller than that in the \(e^{}  p^{+}\) case and the \(B_{\mathrm{z}}\) component is more significant. Panels (b) and (e) also show that there is a magnetic field sign reversal on either side of the maximum that is relatively small for the \(e^{}  p^{+}\) case, but rather significant for the \(e^{\pm }\) case, which is also apparent in Fig. 13d. More details are revealed by the enlargement of the region indicated by the squares in the left panels. On the one hand, for the \(e^{}  p^{+}\) case, the generated relatively uniform DC magnetic field is symmetric about the velocity shear surface, e.g., note that \(B_{\mathrm{y}} > 0\) immediately around the shear surface and \(B_{\mathrm{y}} < 0\) in the jet and ambient plasmas at larger distances from the shear surface. On the other hand, for the \(e^{\pm }\) jet, the generated AC magnetic field resides largely on the jet side of the velocity shear surface.
In veryhighresolution radio images, the appearance of a jet is dependent on the structure of the magnetic field, where the latter is determined by the type of the jet plasma. In a cylindrical jet consisting of \(e^{}  p^{+}\) plasma, the magnetic fields would be predominantly generated in the toroidal direction at the velocity shear surface and, as a consequence, the magnetic field would be quasiparallel to the line of sight at the limbs of the jet for typical aspect jet angles \(\theta \approx \gamma ^{1}\). In contrast, a \(e^{\pm }\) plasma jet would generate sizable radial field components that are only about a factor of two weaker than the toroidal field.
The strong electric and magnetic fields in the velocity shear zone would also facilitate the particle acceleration. The PIC simulations presented above are, however, too short for definitive statements on the efficiency of electromagnetic fields on the particle acceleration and the resulting spectra. The interpretation of the emission spectra will be complicated by the organization of the field in compact regions. A spatially resolved treatment of particle acceleration and transport would be mandatory for a realistic assessment. Relativistic electrons, for example, will suffer little synchrotron energy loss outside of the thin layer of strong magnetic fields. Thus, the synchrotron emissivity will be dominated by the shear layer and in general, the emissivity will depend on how efficiently electrons can flow in and out of the shear layer and be accelerated in the regions of strong magnetic fields. An immediate consequence for radiation modeling is that the energy loss time of electrons cannot be calculated with the same mean magnetic field that is used to compute emission spectra because the former includes the volume filling factor of the strongfield regions.
These structures of electric and magnetic fields can be useful to determine the polarity in jets. However, since such structures are generated in the slab model, they cannot be applied to cylindrical jets yet.
With other setups
As a variation of kKHI instability, Dieckmann et al. (2017) have examined the collision of two clouds of electrons and protons at a speed that exceeded the ion acoustic speed by a factor of 3.5. Their initial contact boundary was sinusoidally displaced along the collision direction. The displacement of the contact boundary is formed by the interpenetrating plasma clouds and this corrugation seeds the nonlinear thinshell instability (NTSI). They have confirmed that a wavelength of the seed perturbation, which exceeded that used in the previous simulation study (Dieckmann et al. 2014) by a factor of 4, is unstable. A wide range of wavenumbers of the seed perturbation is thus subjected to the NTSI.
They have identified the proton–proton beam instability as the process that limits the lifetime of the thin shell. This instability is known to destroy planar double layers and electrostatic shocks (Karimabadi et al. 1991; Kato and Takabe 2010; Dieckmann et al. 2015) and it also affects the nonplanar ones.
The amplitude of the shell’s spatial oscillation grew because the NTSI introduces a spatially varying velocity of the thin shell in the reference frame that moves with the mean speed of the shell. The modulus of the velocity peaked at the extrema of the shell’s oscillation and the velocity at these positions reached 70% of the ion acoustic speed. The amplitude of the thin shell’s spatial displacement grew during the simulation to almost three times its initial value before the shell was destroyed by the proton–proton beam instability.
Before the shell is destroyed, Fig. 14 shows the phasespace density distribution of the protons of cloud 1 averaged over the yinterval, which is delimited by the thin region (vertical lines in Fig. 3). The thin shell is located at \(x \approx 4.7\). The protons that enter the thin shell reach their lowest mean speed \(v_{\mathrm{x}} \approx 0.75v_{1}\) at \(x \approx x_{4}\) in Fig. 14a and their mean speed along the ydirection reaches \(v_{\mathrm{y}} \approx 0.1v_{1}\) in Fig. 14b. Figure 14a shows that the protons are reaccelerated by the double layer at \(x \approx 4.9\) when they leave the thin shell and move into the upstream region at \(x \approx 5\). Some of the protons are reflected by the electrostatic shock at \(x \approx 4.5\) and they form the beam at \(x \approx 4\) and \(v_{\mathrm{x}} \approx 0.2\). These protons fall behind the thin shell, which moves at the mean speed \(v_{1}/2\) and they thus constitute a shockreflected proton beam. The proton beam in Fig. 14a in the interval \(x > 5\) is not spatially uniform. The density is lower for \(5< x < 5.8\) than for \(x > 5.8\). The growth in time of the thin shell’s potential relative to the upstream results in an increasing proton compression within the shell, which reduces temporally the number of protons that exit the thin shell via the double layer.
Their simulation data hint at a possible coupling of the NTSI with ion acoustic oscillations along the thin shell. They have explained the change of the NTSI’s growth rate at late times in terms of these oscillations, which would make the collisionless NTSI overstable. It should be noted that Vishniac (1983) has shown that thin shells are linearly stable, but nonlinearly unstable in the hydrodynamical regime.
The ambipolar electric field at the boundaries of the thin shell deflected the inflowing upstream electrons and protons into different directions. The relative drift of the electrons and the protons resulted in a net current and, thus, in the growth of magnetic fields.
Global PIC simulations of cylindrical jets
Unmagnetized jets
In order to investigate the possible structures of electromagnetic fields in jets including instabilities which are generated due to the velocityshear, simulations with cylindrical jets need to be performed because relativistic jets and internal filamentary structures are more suitably modeled as intrinsically cylindrical shape (Nishikawa et al. 2014a, 2016a).
Nishikawa et al. (2016a) have performed 3D PIC simulations involving a cylindrical jet injection into an ambient plasma without a magnetic field in order to investigate shocks (Weibel instability) and velocity shear instabilities (kKHI and MI) simultaneously. Previously, these two processes (Weibel instability and velocity shear instabilities) have been studied separately. For example, kKHI and MI have been examined for sharp velocity shear slab and cylindrical geometries extending across the computational grid (e.g., Nishikawa et al. 2014b, a) and the injection across the entire inlet grid plane has been used for the study of collisionless shock (Weibel) instabilities (e.g., Nishikawa et al. 2009).
Isocontour images of the x component \(J_{\mathrm{x}}\) of the current density along the magnetic field lines generated by the velocityshear instabilities are shown in Fig. 15. These images indicate that in the \(e^{}  p^{+}\) jet currents are generated in sheet like layers and the magnetic fields are wrapped around the jet, which is generated by MI. On the contrary, for \(e^{\pm }\) jet plasmas, many distinct current filaments are generated near the velocity shear and the individual current filaments are wrapped by the magnetic field. The clear difference in the magnetic field structure between these two cases may make it possible to distinguish different jet compositions via differences in circular and linear polarization.
Figure 16 shows 2D slices of \(B_{\mathrm{y}}\) at the middle plane for the \(e^{}  p^{+}\) (upper) and \(e^{\pm }\) (lower) jet plasma after \(t = 1700 \omega _{\mathrm{pe}}^{1}\). In the \(e^{}  p^{+}\) jet, strong toroidal magnetic fields collimating the jet are generated by the mushroom instability. This strong toroidal magnetic field is produced by the strong current \(J_{\mathrm{x}}\) by collimated jet (ambient) electrons as shown in Fig. 16a. At the nonlinear stage the collimation relaxes around \(x/\varDelta \simeq 1150\), the polarity of the toroidal magnetic fields switches from clockwise in the rightmost panels to counterclockwise in the leftmost panels as viewed from the jet front. The counterclockwise magnetic fields are created by the current layer (\(+J_{\mathrm{x}}\)) at the jet boundary. Owing to the perpendicularly accelerated jet electrons in the collimated region, the electrons are expelled from the collimated region and are slowed down. Consequently, the MI is saturated and the strong toroidal magnetic field disappears and releases the collimation. At the same time, the concentrated electron current near the center of the jet decelerates and jet electrons expand outward. Heavy jet protons maintain the original jet border line, and as a result of the decrease of electrons near the jet boundary, the current \(+J_{\mathrm{x}}\) is produced, which generates the counterclockwise magnetic field. Furthermore, the patterns of strong toroidal magnetic fields are seen near the jet boundary indicating the excitation of MI. Comparing with simulations including helical magnetic fields, see Fig. 26a, there are two differences: the MI is a dominate growing instability and at the nonlinear stage at the edge of the jet the polarity of the toroidal magnetic field is reversed. However, including helical magnetic fields, the kKHI also grows; hence at the nonlinear stage a few clusters of magnetic field islands are generated near the edge of the jet as shown in Fig. 29b, c.
For the \(e^{\pm }\) plasmas, filaments of alternating \(B_{\mathrm{y}}\) are initially generated along the jet by the current filaments, and at the nonlinear stage they move out of the jet as shown in Fig. 16b.
For both cases at the jet front the strong striped \(B_\mathrm {y}\) components are created by the current filaments, which have been observed in previous simulations of the Weibel instability (Nishikawa et al. 2009; Ardaneh et al. 2015; Nishikawa et al. 2020).
Magnetized jets
Motivated by understanding how (mildly) relativistic jets are formed in the vicinity of Xray binaries, Dieckmann et al. (2019) used the PIC code EPOCH to study the interface layer of an electronpositron cloud, formed by photons in the ambient corona of this binary, in the ambient electronion plasma. In this setup the initial magnetic field is aligned with the mean initial velocity of the electronpositron cloud. They consider a twodimensional simulation domain \(L_{\mathrm{x}}\times L_{\mathrm{y}}=24.6\times 12.3\) with 14000 and 7000 grid cells in \(x\) and \(y\)direction respectively. In their setup, the initial energy of the ambient plasma is \(T_\mathrm{0}=\) 2 keV, of the electronpositron cloud is 400 keV, the initial ambient plasma density of each species is \(n_0=14\) particles per cell and the initial density of the cloud electrons and positrons is \(n_{\mathrm{pc}}(x,y) = 5  (45x^{2} + 5y^{2})W^{2}_{\mathrm{jet}}\) if \(n_\mathrm{pc}(x, y) \ge 0\) and zero otherwise. The halfwidth of the jet is \(W_{\mathrm{jet}} = 1.7\).
Figure 17a, b show the distributions of the cloud electrons and positrons. The electrons and protons of the ambient plasma are shown in panels (c) and (d) at \(t_{\mathrm{sim}} = 34 \omega _{\mathrm{pp}}^{1}\) where \(\omega _\mathrm{pp}=\sqrt{(n_0 e_0^2/(m_{\mathrm{p}} \epsilon _0)}\) is the plasma frequency of protons. It shows that the cloud leptons tend to move outwards into the ambient electronproton plasma expelling the ambient electrons outwards leading to a (collisionless) contact discontinuity. Such discontinuity also appears for the protons; however, there are still residual protons in the cloud region through a filamentation instability between the ambient plasma and the fastmoving pair cloud from earlier time steps. This electromagnetic piston separates the jet plasma from the ambient plasma and its role is that of the contact discontinuity in hydrodynamic jets. The important point is that this structure is coherent on scales which are much larger than particle inertial scales and may be thus a small step to better understand the transition from the microscale to the macroscale processes.
The motion and distribution of charged particles lead to the modulation of the magnetic and electric fields depicted in Fig. 17e, f at the same time. Whilst the motion of ambient electrons is blocked by the magnetic field, it creates an electrostatic field strong enough to accelerate the protons to high nonrelativistic velocities which subsequently drive a shock in the ambient material forming the border of the jet’s outer cocoon. Finally, the interaction of the pair cloud with the strong magnetic field at the border might contribute to the radio emission of Xray binaries.
Magnetized jets with a helical magnetic field structure
Large scale magnetic fields have been invoked to explain the launch, acceleration, and collimation of relativistic jets from the central nuclear region of AGNs (e.g., Meier 2008), and from coalescing and merging compact objects (neutron stars and black holes) (e.g., Piran 2005; Rezzolla et al. 2011; Ruiz et al. 2020c). The magnetic field structure and particle composition of such jets have not been well constrained observationally yet. It is natural to inject jets with helical magnetic fields (e.g., Meier et al. 2001).
Helical magnetic field structure Since in PIC simulations helical magnetic fields are not generated with jets powered by a selfconsistent rotating black hole, a forcefree helical magnetic field is implemented at the jet orifice. For initial simulations, Nishikawa et al. (2016b, 2017) used the forcefree helical magnetic field whose poloidal (\(B_x\)) and toroidal (\(B_{\phi }\)) coordinates in the laboratory frame are (Mizuno et al. 2014)
where r is the radial position in cylindrical coordinates, \(B_0\) is the magnetic field (the toroidal field component is a maximum at a for constant magnetic pitch), and \(\alpha \) is a pitch profile parameter.
PIC simulations are performed in Cartesian coordinates. Since \(\alpha =1\), Eqs. (58 and 59) reduce to:
The toroidal magnetic field is created by a current \(+J_{x}(y, z)\) in the positive xdirection, such that the y and zcoordinate of the magnetic field in Cartesian coordinates become:
Here, a is the characteristic lengthscale of the helical magnetic field, \((y_{\mathrm{jc}},\, z_{\mathrm{jc}})\) is the center of the jet, and \(r = \sqrt{(yy_{\mathrm{jc}})^2+(zz_{\mathrm{jc}})^2}\). The chosen helicity is defined through Eq. (61), which has a lefthanded polarity with positive \(B_{0}\). At the jet orifice, the helical magnetic field is implemented without the motional electric fields. This corresponds to a toroidal magnetic field generated selfconsistently by jet particles moving along the \(+x\)direction.
It should be noted that the scheme for injecting jet particles with helical magnetic fields was adjusted. For such simulations, we found for \(a=4\) that the narrow current generating the toroidal magnetic field excites a kinetic currentdriven instability before the growth of MI and kKHI. Therefore, this kinetic currentdriven instability is included into the evolution of jets with MI and kKHI (e.g., Nishikawa et al. 2020). However, by using small a MI and kKHI grow faster than the currentdriven instability. Therefore, we have revisited and modified our injection scheme; new simulations with \(a= 2.0\) with a better injection scheme will be reported in (Meli et al. 2021).
The jet particles are injected at \(x=100\varDelta \) and jet particles propagate as shown by the cylindrical shape in Fig. 18a. Figure 18b presents the poloidal (\(B_x\): black) and toroidal (\(B_{\phi }\): red) components of helical magnetic fields with different pitch profiles. The toroidal magnetic fields become zero at the center of the jet as seen in the red lines. They have checked the structure of the helical magnetic field around constant pitch (\(\alpha =1\)) (solid lines). If the pitch profile parameter \(0.5< \alpha < 1\), the magnetic pitch increases with radius. If \(\alpha > 1\), the magnetic pitch decreases. For comparison, Fig. 18b shows the pitch profile \(\alpha =0.7\) (increasing: dashed) and \(\alpha =2.0\) (decreasing: dotted). PIC simulations have been performed with a constant pitch (\(\alpha = 1\)) and with \(b=200\varDelta \) (damping factor outside the jet boundary: multiply by \(\exp (r/b)\) for \(r > r_{\mathrm{jt}}\)) using \(r_{\mathrm{jt}}=20, 40, 80,\) and \(120\varDelta \) (Nishikawa et al. 2016b, 2017).
The structure of the jet formation region is more complicated than what they have implemented in their PIC simulations at the present time (e.g., Broderick and Loeb 2009; Mościbrodzka et al. 2017).
The initial profile of helical magnetic fields, jet densities and velocities can be refined based on GRMHD simulations (e.g., Porth et al. 2017).
Initial global jet simulations with helical magnetic fields show the effects of helical magnetic fields on kKHI, MI, and the Weibel instabilities (Nishikawa et al. 2016b, 2017), which will be further described in the next section.
Helical magnetic fields in relativistic jets with larger jet radius As an initial step, Nishikawa et al. (2017) examined how the helical magnetic field modifies the jet evolution using a small simulation domain before performing largerscale simulations; for this first step a similar simulation setup and particle injection is used as in their previous work (Nishikawa et al. 2016b). In these small system simulations, a numerical grid with \((L_{x}, L_{y}, L_{z}) = (645\varDelta , 131\varDelta , 131\varDelta )\) (simulation cell size: \(\varDelta = 1\)) and periodic boundary conditions in transverse directions is used, where the jet radius is \(r_{\mathrm{jt}} = 20\varDelta \). The jet and ambient (electron) plasma number density measured in the simulation frame is \(n_{\mathrm{jt}}= 8\) and \(n_{\mathrm{am}} = 12\), respectively. This set of density of jet and ambient plasmas is used in previous simulations (Nishikawa et al. 2016a, b; Duţan et al. 2016)
In these simulations, the electron skin depth is \(\lambda _{\mathrm{s}} = c/\omega _{\mathrm{pe}} = 10.0\varDelta \) and the electron Debye length for the ambient electrons is \(\lambda _{\mathrm{D}}=0.5\varDelta \) where c is the speed of light and \(\omega _{\mathrm{pe}} = (e^{2}n_\mathrm{am}/\epsilon _0 m_{\mathrm{e}})^{1/2}\) is the electron plasma frequency. The jetelectron thermal velocity is \(v_{\mathrm{jt,th,e}} = 0.014c\) in the jet reference frame whereas the electron thermal velocity in the ambient plasma is \(v_{\mathrm{am,th,e}} = 0.03c\), and the ion thermal velocities are smaller by a factor of \((m_{\mathrm{i}}/m_{\mathrm{e}})^{1/2}\). Simulations were performed using an \(e^{\pm }\) plasma or an \(e^{}p^{+}\) and with the ambient plasma at rest (\(v_{\mathrm{am}}= 0\)).
Other plasma parameters used in the simulation are: the initial magnetic field amplitude parameter \(B_{0}=0.1c\), (\(c=1\)), the magnetization parameter (\(\sigma = B^2/n_{\mathrm{e}}m_\mathrm{e}\gamma _{\mathrm{jt}}c^{2}=2.8\times 10^{3}\) ), and the characteristic radius \(a = 0.25r_{\mathrm{jt}}\). The helical field structure inside the jet is defined by Eq. (61). For the external magnetic fields, a damping function \(\exp {[(rr_\mathrm{jt})^{2}/b]}\) \((r \ge r_{\mathrm{jt}})\) is used that multiplies Eq. (61) with the tapering parameter \(b=200\). The final profiles of the helical magnetic field components are similar to that in the case where jet radius \(r_{\mathrm{jt}} = 20\varDelta \), the only difference is \(a= 0.25*r_{\mathrm{jt}}\) (Nishikawa et al. 2016a).
All simulation parameters are maintained as described above except the jet radius and the simulation size, the latter being adjusted based on the jet radius. (Nishikawa et al. 2017) performed simulations with larger jet radii \(r_{\mathrm{jt}} =40\varDelta ,\, 80\varDelta ,\, \mathrm{and}\, 120\varDelta \). The cylindrical jet with jet radius \(r_{\mathrm{jt}} = 120\varDelta \) is injected in the middle of the \(yz\) plane (\((y_\mathrm{jc}, z_{\mathrm{jc}}) = (381\varDelta , 381\varDelta )\)) into the system with \((L_{\mathrm{x}}, L_{\mathrm{y}}, L_{\mathrm{z}})=(645\varDelta , 761\varDelta , 761\varDelta )\)) at \(x= 100\varDelta \). The largest value of the jet radius with \(r_{\mathrm{jt}} =120\varDelta \) is larger than that used previously in Nishikawa et al. (2016a) (\(r_{\mathrm{jt}} =100\varDelta \)), but the simulation length is much shorter with \(x = 2005\varDelta \).
Figure 19 shows the y component of the magnetic field (\(B_{\mathrm{y}}\)) in the jet radius with \(r_{\mathrm{jt}}=20\varDelta \, \mathrm{and}\, 80\varDelta \). The initial helical magnetic field (lefthanded; clockwise viewed from the jet front) is enhanced and disrupted due to the instabilities for both cases.
Even though the simulation system is short, the growing instabilities are affected by the helical magnetic fields. These complicated patterns of \(B_{\mathrm{y}}\) are produced by the currents which are generated by instabilities in jets. The larger jet radius contributes more modes of instabilities to grow in the jets, which make the jet structures more complicated. The simple recollimation shock generated in the small jet radius is shown in Fig. 19a, b. Longer simulations are needed for the investigation of full development of instabilities and jets with helical magnetic fields.
Furthermore, the 3D structures of averaged jet electron current (\(J_{\mathrm{x}}\)) are investigated in the front (\(420 \le x/\varDelta \le 620\), \(152 \le y,z/\varDelta \le 352\)).
Figure 20 presents the current (\(J_{\mathrm{x}}\)) of \(e^{}\) –\(p^{+}\) (a) and \(e^{\pm }\) (b) jet. The cross sections at \(x/\varDelta = 520, y/\varDelta =252\) and surfaces of jets show complicated patterns, which are generated by instabilities with the magnetic field lines.
In order to determine particle acceleration the Lorentz factor of jet electrons in the cases with \(r_{\mathrm{jt}}=120\varDelta \) is also calculated, as shown in Fig. 21. These patterns of Lorentz factor coincide with the changing directions of local magnetic fields that are generated by instabilities. The directions of magnetic fields are indicated by the arrows (black spots), which can be seen with magnification. The directions of magnetic fields are determined by the generated instabilities. The structures at the edge of jets are produced by the kKHI. The plots of Lorentz factor in the \(yz\) plane show the MI in the circular edge of the jets.
The 3D structures of the averaged jet electron Lorentz factor is also investigated by plotting isosurfaces of this factor in a quadrant of the jet front (\(320 \le x/\varDelta \le 620\), \(381 \le y,z/\varDelta \le 531\)), for \(e^{}\) –\(p^{+}\) (a) and \(e^{\pm }\) (b) jet (Fig. 22). The cross sections and surfaces of jets show complicated patterns that are formed by instabilities with the magnetic field lines.
In both plasma type cases where the jet radii is larger than \(r_\mathrm{jt}=80\varDelta \), kKHI and MI are generated at the jet surfaces, whereas inside the jets the Weibel instability is created with kinklike instability, in particular in the \(e^{}p^{+}\) jet. However, further investigations using different plasma parameters (the magnetization factor), including the characteristic radius a, which determines the structure of helical magnetic fields in Eq. (61).
One of the key questions is how the helical magnetic fields affect the growth of the kKHI, MI, and WI, and how and where in the jet structure particles are accelerated in the nonlinear stage. In the latter respect, of special interest is the role of magnetic reconnection, and its ability to aid in the rapid merging and breaking of the helical magnetic fields carried by relativistic jets. RMHD simulations demonstrate that jets with helical fields develop kink instabilities (KI) (e.g., Mizuno et al. 2014; Singh et al. 2016; Barniol Duran et al. 2017), and similar structures were found in PIC simulations (see, e.g., Nishikawa et al. 2019). PIC simulations of a single flux rope modeling the jet that undergoes internal KI showed signatures of secondary magnetic reconnection (Markidis et al. 2014). Recently, it has also been demonstrated that the development of the KI in relativistic strongly magnetized jets with helical magnetic fields lead to the formation of highly tangled magnetic fields and a largescale inductive electric field promoting the rapid energization of particles (Alves et al. 2018, 2019; Davelaar et al. 2020).
In particular, Davelaar et al. (2020) has studied the KI in nonrotating forcefree jets using PIC simulations. The magnetic field profile consists of a strong vertical field, \(B_{\mathrm{z}}\), dominated core surrounded by a region dominated by a toroidal field component, \(B_{\phi }\). The relative strength of the two components is set by the value of the magnetic pitch, \(P = rB_\mathrm{z}/B_{\phi }\), on the axis. The radial profile of the pitch is important for the global evolution of the instability. In the case where the pitch is increasing with the cylindrical radius (IP), resonant surfaces confine the instability to the kink unstable core, while in the case of a decreasing pitch profile (DP) the instability becomes disruptive. They also consider a forcefree setup, which has a nonmonotonic pitch profile and a strong confining vertical magnetic field outside of the kink unstable core. They termed this profile as embedded pitch (EP). In what follows, the initial cylindrical radius of the jet’s core is defined as \(r_{\mathrm{core}}\).
They have performed simulations in the frame comoving with the jet with three different magnetic field profiles (IP, DP and EP), thus the plasma is initially at rest. This means that no bulk flow in the simulations. Figure 23 shows magnetic field lines, subsampled distribution of energetic particles, distribution functions (DFs), and time evolution of accelerated particles.
They obtained similar overall evolution of the instability as found in MHD simulations (Mizuno et al. 2009). Magnetic reconnection and turbulence in collisionless plasma were studied so far in idealized periodic boxes. Their study shows how KI can be selfconsistently excited and energize particles in the growth of KI in highly magnetized jets. They found that the acceleration in current sheets dominates for low particle energies and occurs due to strong nonideal electric fields present at the magnetic reconnection sites. It leads to the formation of steep powerlaws in the distribution function. While they observed plasmoid formation, their limited scale separation did not allow the formation of a full plasmoid chain, and to study the Fermilike process of particle acceleration in plasmoids. Later evolution shows heating of the plasma which is driven by weak turbulence induced by the KI. These two processes energize particles due to a combination of ideal and nonideal electric fields.
However, as an initial condition these simulations assumed helical magnetic fields supported by symmetrically streaming electrons and positrons (ions), corresponding to zero bulk flow of the pair plasma, across the simulation domain, therefore, the development of shocks at the head of jet and their propagation have not been simultaneously investigated. Furthermore, since no bulk flow is set as an initial setup in their simulation, no velocityshear instability such as kKHI and MI will be excited in their simulations. Therefore, only KI is excited in their simulations with periodic conditions.
PIC simulations of magnetic reconnection
Magnetic reconnection is ubiquitous in solar and magnetosphere plasmas (e.g., Lazarian et al. 2020; Marcowith et al. 2020). It is proposed that it provides an important additional particle acceleration mechanism for AGN and GRB jets (e.g., Giannios et al. 2009; Komissarov et al. 2009; Giannios 2010; Zhang and Yan 2010; Uzdensky 2011; Granot et al. 2011; Granot 2012; McKinney and Uzdensky 2012; Komissarov 2012; Sironi and Giannios 2014; Sironi et al. 2015, 2016; Barniol Duran et al. 2016; Petropoulou et al. 2016; Werner et al. 2018; Giannios and Uzdensky 2019)
In order to study the importance of magnetic reconnection, researchers have performed different types of simulations including i) PIC simulations in the slab model (e.g., Zenitani and Hoshino 2001, 2005, 2007, 2008; Oka et al. 2008; Daughton et al. 2011; Sironi and Spitkovsky 2011; Kagan et al. 2013; Sironi and Giannios 2014; Karimabadi et al. 2014; Guo et al. 2015, 2016, 2019), ii) resistive RMHD simulations (e.g., Komissarov 2007; Zenitani et al. 2010; Takahashi et al. 2011; Mizuno 2013; Baty et al. 2013), and iii) twofluid RMHD simulations (e.g., Zenitani et al. 2009b, a).
Twofluid RMHD simulations are considered two fluid components, electron fluid and ion fluid and interaction between them. Zenitani et al. (2009b, 2009a) have used twofluid RMHD codes with generalized Ohm’s law in order to avoid the limit of electron Debye length and skin depth which generally encounter the limitation in PIC simulations. (Arnold et al. 2019) have developed a new computational model, kglobal, to explore energetic electron production via magnetic reconnection in macroscale systems. To convert this initial setup to a PIC simulation, they had to make sure that the smallest length scale in kglobal was much larger than the Debye length since this spatial scale is not resolved in kglobal. Thus they equated the transition width between the two regions of hot and cold electrons to 30 times the Debye length.
Investigations of magnetic reconnection have also been summarized in books (e.g., Birn and Priest 2007) and reviews (e.g., Lazarian et al. 2012; Kagan et al. 2015).
An important point is that in spite of the extensive research on magnetic reconnection, most of all PIC simulations have been performed with the Harris sheet (Harris 1962), where the unperturbed magnetic fields \(\mathbf{B}\) are antiparallel (\(\mathbf{B} = \tanh (x)\mathbf{e}_{\mathrm{y}}\)) and are generated by a current sheet. For example, in the 3D slab model, Guo et al. (2015) have demonstrated that relativistic magnetic reconnection is highly efficient at accelerating particles through a firstorder Fermi process accomplished by the curvature drift of particles along the electric field induced by the relativistic flows. They initiate a plasma of electrons and positrons in a current layer with \(\mathbf {B} \sim \tanh (z)\mathbf {e}_x + \text {sech}(z)\mathbf {e}_y\) and perform PIC simulations of the acceleration of these leptons during magnetic reconnection in different domain sizes and with different electron densities, i.e. plasma frequencies.
As an example, Fig. 24 gives an overview of the current layer evolution where \(\sigma = 100\) and domain size \(L_\mathrm{x}\times L_{\mathrm{z}}= 300d_{\mathrm{i}}\times 194d_{\mathrm{i}}\) for 2D and \(L_{\mathrm{x}}\times L_{\mathrm{z}}= 300d_{\mathrm{i}}\times 300d_{\mathrm{i}}\) for 3D simulations. For 2D, panel (a) shows the colorcoded current density, and for 3D, panel (b) shows a 2D slice of the current density and a 3D isosurface of plasma density colored by the current density at \(\omega _{\mathrm{pe}}t = 175\) and \(\omega _{\mathrm{pe}}t = 375\), respectively. Starting from an initial perturbation, the current sheet becomes smaller as the current density is concentrated in the middle of the domain. In 2D, due to subsequent tearing instabilities, the extended thin current sheet breaks into a number of fast moving plasmoids (\(\omega _{\mathrm{pe}}t \approx 225\)) which finally merge into a single island at the edge of the simulation domain. However, in 3D, the KI develops and interacts with the tearing mode (Daughton 1999), such that a turbulent evolution is initiated (Yin et al. 2008). However, although strong 3D effects modify the current layer, smallscale structures develop as a result of secondary tearing instabilities. Therefore, the energization of particles in 2D and 3D simulations moving during magnetic reconnection is very similar and sufficiently strong to create sources of nonthermal energetic particles.
The importance of magnetic reconnection in jets has been proposed (e.g., Giannios et al. 2009).
Based on the jetsinjet scenario (see Fig. 25), further investigations have been done (e.g., Barniol Duran et al. 2016). Such reconnection and plasmoid models based on 2D PIC simulations have been used calculate the \(\gamma \)ray radiation in relativistic jets (e.g., Giannios 2013; Sironi et al. 2015; Petropoulou et al. 2016; Petropoulou and Sironi 2018; Christie et al. 2019). These investigations encourage them to simulate relativistic jets with helical magnetic fields, which may excite (kinetic) KI and, consequently, magnetic reconnection occurs.
It should be noted that in jets the magnetic reconnection does not start in the Harris model in the slab geometry. Therefore the embedded figure is somehow misleading. One need to investigate how the magnetic reconnection occurs in helical magnetic fields (not simple antiparallel magnetic fields in the slab model).
Reconnection in jets as a possible mechanism for high energy flares
Since the particle acceleration in shocks generated by the Weibel instability and other kinetic instabilities such as kKHI and MI is not enough to accelerate particles to very high energies (e.g., Nishikawa et al. 2009, 2016a), the importance of reconnection in jets has been proposed (e.g., Giannios et al. 2009). Extensive simulation studies have been performed in a slab model with the Harris configuration (Harris 1962). Since the Poyntingflux is stored in helical magnetic fields with currents parallel to the jet direction, the particle acceleration performed in the Harris configuration with sheet currents cannot be applied to the particle acceleration in global jets. Furthermore, no kinetic simulations of global jets with helical magnetic fields have been performed previously except for their own simulations (Nishikawa et al. 2016b, 2017).
The simulated jet has a radius \(r_{\mathrm{jt}}\) and is assumed to propagate in an initially unmagnetized ambient medium. For the magnetic fields external to the jet they use a damping function, \(\exp {[(rr_{\mathrm{jt}})^2/b]} \, (r\ge r_{\mathrm{jt}})\), that multiplies the expressions in Equation (61) with the tapering parameter \(b=200\varDelta \), where \(\varDelta \) is the grid scale. They further assume a characteristic radius \(a = 0.25*r_{\mathrm{jt}}\). The profiles of the resulting helical magnetic field components are shown in Figure 6b in Nishikawa et al. (2019). The toroidal magnetic field vanishes at the center of the jet (red line in Fig. 6b of Nishikawa et al. 2019). Note, that the simulation setup adopted in this work has been used in their preliminary studies of helical jets (Nishikawa et al. 2016b, 2017, 2019) with the modifications \(B_0 = 0.1\) and \(r_{\mathrm{jt}} =100\).
The jet head assumed here has a flatdensity tophat shape which is a strong simplification of the true structure of the jetformation region (e.g., Broderick and Loeb 2009; Mościbrodzka et al. 2017). A more realistic jet structure such as a Gaussian shape will be implemented in future studies.
Nishikawa et al. (2020) have performed new PIC simulations with larger a numerical grid of size \((L_{x}, L_{y}, L_{z}) = (1285\varDelta , 789\varDelta , 789\varDelta )\) in Cartesian coordinates. They use open boundaries at the \(x/\varDelta =0\) and \(x/\varDelta =1285\) and impose periodic boundary conditions in the transverse directions. Since the jet is located at the center of the numerical box far from the boundaries and the simulation time is still shorter than the propagation time to tangential direction of jet, there are no visible effect of the periodic boundary conditions on the system.
The jet has a radius with \(r_{\mathrm{jt}} = 100\varDelta \) and is injected at \(x = 100\varDelta \) in the center of the \(yz\) plane. The large computational box allows to follow the jet evolution long enough to permit the investigation of the strongly nonlinear stage. The longitudinal box size, \(L_{x}\), and the simulation time, \(t_\mathrm{max}=1000\omega _{\mathrm{pe}}^{1}\), are a factor of two larger than in their previous studies (Nishikawa et al. 2016b, 2017, 2019), in which jets with radii \(r_{\mathrm{jt}} = 20, 40, 80, 120\varDelta \) were investigated.
Jets of different plasma composition exhibit distinct dynamical behavior that manifests itself in the morphology of the jet and its emission characteristics (Nishikawa et al. 2016a, b, 2017, 2019). However, Nishikawa et al. (2020) have performed only electronproton plasma in both the jet and the ambient medium. The initial particle number per cell is \(n_{\mathrm{jt}}= 8\) and \(n_{\mathrm{am}} = 12\), respectively, for the jet and ambient plasma. The electron skin depth is \(\lambda _{\mathrm{se}} = c/\omega _{\mathrm{pe}} = 10.0\varDelta \), \(\omega _{\mathrm{pe}} = (e^{2}n_{\mathrm{am}}/\epsilon _0 m_{\mathrm{e}})^{1/2}\) is the electron plasma frequency; the electron Debye length of ambient electrons is \(\lambda _{\mathrm{D}}=0.5\varDelta \). The thermal speed of jet electrons is \(v_{\mathrm{jt,th,e}} = 0.014c\) in the jet reference frame; in the ambient plasma it is \(v_{\mathrm{am,th,e}} = 0.03c\). Temperature equilibrium is assumed, thus the thermal speed of ions is smaller than that of electrons by the factor \((m_{\mathrm{p}}/m_{\mathrm{e}})^{1/2}\). In the simulation, the realistic protontoelectron mass ratio is used \(m_{\mathrm{p}}/m_{\mathrm{e}}=1836\). At the initial state, The jet plasma is weakly magnetized, and the magnetic field amplitude parameter assumed, \(B_{0}=0.1c\), corresponds to plasma magnetization \(\sigma = B^2/n_{\mathrm{e}}m_{\mathrm{e}}\gamma _{\mathrm{jt}}c^{2} =2.8\times 10^{3}\). The jet Lorentz factor is \(\gamma _\mathrm{jt}=15\).
Since simulation domain in PIC simulations is large enough to capture macroscopic instabilities, a kinklike instability was found in the pair and \(e^{}  p^{+}\) jet cases with jet radius \(r_\mathrm{jt} =120 \varDelta \) (e.g., Nishikawa et al. 2017, 2019).
Figure 26 shows crosssections through the center of the jet at time \(t =1000\, \omega _{\mathrm{pe}}^{1}\) with (a) the ycomponent of the magnetic field, \(B_{\mathrm{y}}\), with the xz electric field as arrows, and (b), the xcomponent of the electron current density, \(J_{\mathrm{x}}\), with the xz magnetic field depicted as arrows. The jet propagates from the left to right. Very strong helical magnetic field in the jet is evident at \(400\lesssim x/\varDelta \lesssim 830\). The amplitude is with \(B/B_0\approx 40\) (Fig. 26a) much larger than that of the initial field. As in the unmagnetized case (Nishikawa et al. 2016a), this field results from MI and kKHI. However, in the presence of the initial helical magnetic field the growth rate of the transverse MI mode is reduced, and the field structure is strongly modulated by longitudinal kKHI wave modes as shown by the bunched \(B_{\mathrm{y}}\) field (Fig. 26a). This causes multiple collimation along the jet by pinching of the jet electrons toward the center of the jet, as visible in the electron current density (Fig. 26b). It should be noted that in Fig 26b the color scale for \(J_{\mathrm{x}}\) does not extend beyond \(J_{\mathrm{x}} = 50\), as they intend to show the weak positive (return) current. The collimation becomes weaker further along the jet and eventually disappear at \(x/\varDelta \gtrsim 830\). At this point \(B_{\mathrm{y}}\) is weak. This demonstrates that the nonlinear saturation of the MI leads to the dissipation of the helical magnetic field.
They selected possible magnetic reconnection sites in Fig. 26a, b, indicated by the two red lines at \(x/\varDelta =700\) and \(x/\varDelta =835\), and show the magneticfield structure in the \(yz\) plane in Fig. 26c, d, respectively. At \(x/\varDelta =700\) clockwisecircular magnetic field is split near the jet into a number of magnetic structures, which demonstrate the growth of MI. They are surrounded by field of opposite polarity that is produced by the proton current framing the jet boundary (see Nishikawa et al. 2016a). The magnetic field at \(x=835\varDelta \) is strongly turbulent; its helical structure is distorted and reorganised into multiple magnetic islands, which reflect the nonlinear stage of MI and kKHI. The magnetic islands interact with each other, providing conditions for magnetic reconnection. In their 3D geometry, magnetic reconnection does not occur at a simple Xpoint as in 2D slab geometry. Instead, reconnection sites can be identified with regions of weak magnetic field surrounded by oppositely directed magnetic field lines. An example of a possible location of magnetic reconnection can be found at \((y/\varDelta , z/\varDelta )=(380, 340)\), where the total magnetic field becomes minimal (the null point, Fig. 26d. The evolution of the magnetic field at different locations in the jet (\(600< x/\varDelta < 1100\)) is shown in the supplemental movie. Note that the filamentary structure at the jet head (Fig. 26a, b) is formed by the electron WI. One can see in the movie that nonlinear evolution of the filaments also leads to the appearance of the magnetic structures that are prone to magnetic reconnection. The complex structures of 3D reconnections have been investigated in (e.g., Lalescu et al. 2015; Lazarian et al. 2020; Borissov et al. 2020). In order to determine the reconnection locations analytically, we would need to investigate the eigenvalues of Jacobian matrix, which is beyond the scope of this work, for more details, see (e.g., Cai et al. 2007).
Recently Dong et al. (2020) show complimentary RHMD simulations of jets compared with PIC simulations. Relativistic jets are launched with a significant amount of magnetic energy, which can be dissipated to accelerate nonthermal particles and give rise to electromagnetic radiation at larger scales. KI can be an efficient mechanism to trigger dissipation of jet magnetic energy.
In Dong et al. (2020), the simplified central engine is assumed to be a perfectly conducting sphere of radius \(r_0 = l_0\), where \(l_0\) is the code length unit, threaded by radial magnetic field lines. The jet is highly magnetized at its base, where the initial magnetization factor \(\sigma \), which is the magnetic energy density over enthalpy, is \(\sigma _0 = 25\). The sphere is rotating at a constant angular frequency of \(\varOmega =0.8c/r_0\). This is mimicking a supermassive black hole and its accretion disk rotation. The rotation then coils up the radial magnetic field lines into helical structure and launch two oppositely directed magnetized jets into the surrounding medium. Initially, the surrounding medium is cold and static. In the neighborhood of the central engine, the surrounding medium is expected to be dominated by winds from the accretion disk, resulting in a steep density profile, but at larger distances the interaction between jet/wind and the interstellar medium can become important resulting in a possibly flatter density profile. This motivates their assumed broken powerlaw density profile for the gas, where the break point is at radius \(r_{\mathrm{B}} = 100l_0\), so that
They aimed to selfconsistently study radiation and polarization signatures from KI in relativistic jets. They combine RMHD simulations with polarized radiation transfer of a magnetized jet, which emerges from the central engine and propagates through the surrounding medium. They observed that a localized region at the central spine of the jet exhibits the strongest KI, which identified as the jet emission region as shown in Fig. 27. Very interestingly, quasiperiodic oscillation (QPO) signatures are seen in the light curve from the emission region. Additionally, the polarization degree appears to be anticorrelated to ares in the light curves. Their analyses show that these QPO signatures are intrinsically driven by KI, where the period of the QPOs is associated to the kink growth time scale. The latter corresponds to weeks to months QPOs in blazars. The polarization signatures offer unique diagnostics for QPOs driven by KI.
It should be noted that in RMHD simulations kinetic instabilities are not included, therefore the development of the KI in relativistic strongly magnetized jets with helical magnetic field leads to the formation of highly tangled magnetic field as shown in Fig. 27. Since kinetic KHI and MI grow faster than currentdriven kink instabilities due to strong velocity shear and moderate magnetization. PIC simulations of relativistic jets do not show a kinklike instability as seen in the simulations of Dong et al. (2020). In PIC simulation the particles are accelerated by the turbulent magnetic reconnection that is initiated by the growth of kinetic instabilities such as kKHI and MI (Nishikawa et al. 2020).
In Fig. 28 3D isosurfaces of the xcomponent of the electron current density at the jet head are shown together with magnetic field lines plotted in yellow obtained by 3D PIC simulations of propagating jet with helical magnetic field (Nishikawa et al. 2020). Two rectangles indicate the visible area in the jet. Near the jet head, the current filaments generated by the WI are evident. This result is similar to that obtained by Ardaneh et al. (2016) (their Fig. 3), who investigate the structure of the head of an electronion jet in slab geometry with \(m_\mathrm{i}/m_{\mathrm{e}}=16\). They demonstrated the acceleration of jet electrons in the linear stage of the instability. Figure 28 shows the merging of current components (the front of the nonlinear region) behind the current filaments, where some jet electrons are slightly accelerated. More complicated structures are seen near the jet boundary, that they shall investigate in more detail below.
The 3D morphology of the jet’s magnetic field is presented in Fig. 29 where they plot magneticfield vectors at \(t =900\, \omega _{\mathrm{pe}}^{1}\) (Fig. 29a) and \(t=1000\, \omega _{\mathrm{pe}}^{1} \) (Fig. 29a, b). The regions displayed (\(820< x/\varDelta< 1120; 231< y/\varDelta , z/\varDelta < 531\)) are indicated by the red dashed rectangle in Fig. 26b. The plot is clipped at the center of the jet at \(y/\varDelta =381\). One can see that the edge of the helical magnetic field in the jet moves from \(x/\varDelta =780\) at \(t =900\, \omega _{\mathrm{pe}}^{1}\) to \(x/\varDelta = 830\) at \(t =1000\,\omega _\mathrm{pe}^{1}\), which is much slower than the jet speed (if moving with the jet velocity, the front at \(t =1000\, \omega _{\mathrm{pe}}^{1}\) should be located at \(x/\varDelta \simeq 880\)). This seems to indicate that the front edge of the helical magnetic field is peeled off as the jet propagates. This may indicate that the helical magnetic field is braided by kinetic instabilities and subsequently becomes untangled as discussed in Blandford et al. (2017). The untangling of helical magnetic field results from magneticreconnectionlike phenomena, that push the helical magnetic field away from the center of the jet at the forward position. Two smaller magnetic islands can be identified in the jet seen in Fig. 29 (half of the jet is shown). The supplemental movie^{Footnote 7} shows how the helical magnetic field is untangled and magnetic islands evolve along the jet at \(t =1000, \omega _\mathrm{pe}^{1}\). For example at \(x/\varDelta =950\) the centers of magnetic islands are located around \((y/\varDelta , z/\varDelta )=\)(435, 420) (upper), (440, 318) (lower) (visible in Fig. 29b), (320,350), and (280, 400) (not visible).
Particle acceleration in forced magnetic field turbulence
In order to simulate the energies of electrons and ions in turbulent plasmas, Zhdankin et al. (2019) have used a PIC simulation. In their simulations, ultrarelativistic electrons and subrelativistic ions are initiated as they might occur in a variety of astrophysical systems (Shapiro et al. 1976; Quataert and Gruzinov 1999; Ryan et al. 2018). In a collisionless plasma the turbulence leads to a more significant growth of the ion energy compared to the electron energy. They found that the ratio of the energy growth \(\varDelta E_{e}\) and \(\varDelta E_{i}\) can be approximated through \(\varDelta E_{e}/\varDelta E_{i}\sim \left( \varrho _{e}/\varrho _{i}\right) ^{2/3}\) where \(\varrho _{e,i}\) are the gyro radii of electrons and ions.
Comisso and Sironi (2019) have investigated the interplay between turbulence and magnetic reconnection in generating nonthermal particles in magneticallydominated pair plasmas. They found that the turbulence evolution leads to the generation of a nonthermal particle distribution with a powerlaw tail. The slope is harder for larger magnetizations and stronger turbulence fluctuations, and it can be as hard as \(p \lesssim 2\). The further particle injection is controlled by plasmoidmediated reconnection as a selfconsistent phenomenon in the turbulent plasma. Figure 30 shows an example of reconnecting current sheets for \(\sigma _{0} = 10\), \(\delta B_{\mathrm{rms0}}/B_{0}= 1\), and \(L=d_{e0} = 820\) where the magnetic field is parallel to the zdirection. It illustrates that these current sheets randomly host regions with current densities smaller than zero (red contour lines) and larger than zero (blue contour lines). The closeup regions shows the emergence of four 3D plasmoids parallel to the magnetic field. It is the typical signature of fast plasmoidmediated reconnection which controls the further particle injection.
Once particles are injected, they are further accelerated by the stochastic scattering off turbulent fluctuations. The electric fields in the reconnection layers contribute in two different ways: Whilst the parallel electric fields contribute the initial energy increase of the system, the perpendicular electric fields of turbulent fluctuations dominate the energization of highenergy particles.
Their simulations suggest that hard radio spectrum of the Crab Nebula (Lyutikov et al. 2019) can be explained by large plasma magnetizations and strong turbulent fluctuations and that, in general, magnetically dominated plasma turbulence lead to particle acceleration which might be relevant for extreme astrophysical systems (Takahashi et al. 2009).
It should be noted that electrons can be further accelerated to higher Lorentz factors on account of turbulent acceleration, as in kinetic simulations of driven magnetized turbulence (e.g., Comisso and Sironi 2019; Zhdankin et al. 2019). In these simulations turbulent magnetic fluctuations are externally forced in the simulation system, and so the energy source for turbulence is not selfconsistent. In contrast to the driven turbulence, in our simulations turbulent magnetic field (multiple magnetic field islands) as shown in Fig. 29 are selfconsistently generated in the relativistic jet through the untangling of the helical magnetic field (Nishikawa et al. 2020). Particles can be directly accelerated in the magnetic reconnection regions and also through interactions with the magnetic islands that are visible in e.g. Fig. 26.
Radiation spectra in PIC simulations of relativistic jets
To determine a synthetic radiation spectrum from PIC simulations is quite challenging because of computer memory constraints. Nevertheless, using different approaches on the numerical calculation of the radiation a good approximation to the observational spectra can be reached.
There two key methods for calculating the synthetic spectra:

directly by integrating the expression of the radiated power, derived from the Liénard–Wiechart potentials for a large number of representative particles in the PIC representation of the plasma, e.g., using a testlike particle approach (Hededal 2005), selfconsistently in injected jets into an ambient medium (Nishikawa et al. 2008, 2009, 2011, 2012, 2013a), in reflecting wall generated shocks with testparticles (Sironi and Spitkovsky 2009), and selfconsistently in counterstreaming flows (Frederiksen et al. 2010)

postprocessing the large output data of the PIC simulations that list the position and velocity of the simulation particles and the values of the electromagnetic fields at each time step (e.g., Reville and Kirk 2010; Kagan et al. 2016),
where both methods have their advantages and disadvantages.
One disadvantage of calculating the synthetic spectra directly from the PIC simulations using the Liénard–Wiechart potentials (e.g., Jackson 1999) is the fact that the method is very expensive in terms of computing resources.
Selfconsistent calculations of synthetic spectra
A selfconsistent (or in situ) synthesis of spectra from 3D PIC simulations was developed by Nishikawa et al. (2008, 2009) for both \(e^{\pm }\) and \(e^{}p^{+}\) plasma jets. Here, a brief summary of the main points of their procedure is included.
Let a particle be at position \(\mathrm{r}_{0}(t)\) at time t. At the same time, the electric field is observed from the particle at position r. However, because of the finite velocity of light, the particle at an earlier position \(\mathrm{r}_{0}(t^{'})\) is observed where it was at the retarded time \(t^{'} = t \delta t^{'} =t \mathbf{R} (t^{'} )/c\). Here \(\mathbf{R} (t^{'}) = \mathbf{r} \mathbf{r}_{0} (t^{'})\) is the distance from the charge (at the retarded time \(t^{'}\)) to the observer. After some calculation and simplifying assumptions, the total energy W radiated per unit solid angle per unit frequency from a charged particle moving with instantaneous velocity \(\beta \) under acceleration \({\dot{\beta }}\) can be expressed as:
Here, \(\mathbf{n}\equiv \mathbf{R}(t^{'})/\mathbf{R}(t^{'})\) is a unit vector that points from the retarded position of the particle towards the observer and q is the unit charge.
Since extremelylarge computing resources would be needed to compute the spectra of the radiation emitted by electrons over the whole simulation grid, a moment of time t is selected that corresponds to a region where the particles show increased acceleration (which can be determined, for example, from running a diagnostic on the phasespace distribution of the jet electrons). Thus, to obtain the radiation spectrum, the particles are traced over a time interval around t, with a higher temporal resolution than that used for the whole PIC simulation (Fig. 31). Once the positions, the velocities, and the accelerations of the particles are sampled, the radiation spectra can be calculated by integration in Eq. (62).
The method described above was further developed by Nishikawa et al. (2012), being applied to uniform relativistic jets using a slab model, where the jet electrons are accelerated by the Weibel instability. In the simulations performed by Nishikawa et al. (2012) for an \(e^{\pm }\) plasma jet, the grid size is \((L_x,L_y,L_z)=(645\varDelta ,131\varDelta ,131\varDelta \)) (with \(\varDelta =1\): grid size) and the total number of particles is \(\sim \) half of a billion (or 12 particles/cell/species for the ambient plasma). The jet front is located at about \(x=480\varDelta \). By randomly selecting 16,200 electrons near the jet front, they calculated the emission during the sampling time \(t_s=t_2t_1=75\omega _{\mathrm{pe}}^{1}\), with the Nyquist frequency \(\omega _{\mathrm{N}}=1/2\varDelta t=200\omega _\mathrm{pe}\), the simulation time step \(\varDelta t=0.005\omega _{\mathrm{pe}}^{1}\), and the frequency resolution \(\varDelta \omega =1/t_s=0.0133\omega _\mathrm{pe}^{1}\). The mass ratio is \(m_{\mathrm{e}}/m_{\mathrm{p}}=1\).
Nishikawa et al. (2012) have also compared the shape of the calculated spectra with that of the spectra obtained from the observation taken by Abdo et al. (2009). Figure 32 shows how the synthetic spectrum matches with spectra obtained from Fermi observations. Figure 32a presents the observed spectra in \(\nu F(\nu )\) as modeled by Abdo et al. (2009) at five different times. The red lines in Fig. 32a, b indicate a slope of one, and except for the Fermi spectrum at time “a” the low frequency slopes are all approximately one. As seen in Fig. 32a, prompt emission spectra of GRB 080916C exhibit a remarkably constant shape (lowenergy and highenergy slopes are different but do not evolve significantly). On the other hand the peaks of the SED vary significantly with time. Based on the PIC simulations, this behavior can be interpreted in terms of declining bulk Lorentz factor.
Behind the reverse shock electrons are accelerated and strong magnetic fields are generated (e.g., Nishikawa et al. 2009). Therefore, this region would seem more likely to produce the emission that is observed. In the future we will examine PIC computed spectral changes over time varying plasma conditions such as plasma composition and ambient magnetic fields along with jet Lorentz factors and jet thermal temperatures.
Many results on synthesizing spectra from PIC simulations are presented in the literature (e.g., Hededal 2005; Sironi and Spitkovsky 2009; Medvedev et al. 2011), however their physical setups are entirely different. The resulted spectra are tested against different mechanism of producing radiation (e.g., synchrotron, jitter, Bremsstrahlung, or undulator radiation), and their properties are studied based on the simulation setups.
Unlike synthetic spectra which are calculated selfconsistently (i.e., they are collected in situ), several works (e.g., Hededal 2005; Sironi and Spitkovsky 2009; Medvedev et al. 2011) employ a static (or frozen) electric field, although this field was selfconsistently obtained in the PIC simulations. Thus, the particles are traced around a chosen time step while the electric field is kept frozen. Therefore, the particles can be seen as test particles. The calculations of the radiation power were performed based on the Liénard–Wiechart potentials (similar to Eq. (62)).
As a final remark, it should be noted that a selfconsistent calculation of radiation spectra directly from PIC simulations by tracing particles using Eq. (62), without making assumptions about the magnetic field, particle orbit, and so forth, plays an important role when interpreting astrophysical observed spectra. Including realistic physical description of the plasma, including plasma jets that contain helical magnetic fields is crucial. Extension of calculating the spectra with radiative particle cooling, synchrotron selfabsorption, and inverse Compton radiation is also desirable. This effort may also be accompanied by transcription of the codes for running on graphical processing units to reduce the computing resources needed.
PIC simulations of pulsars
A pulsar is a highly magnetized rotating neutron star that emits beams of electromagnetic radiation from its magnetosphere (e.g., Cerutti and Beloborodov 2017).
On November 28, 1967 Jocelyn Bell Burnell and Antony Hewish observed the first pulsar. The discovery of the Crab pulsar using Arecibo Observatory confirmed the rotating neutron star model of pulsars. In 1974, Antony Hewish and Martin Ryle developed revolutionary radio telescopes, and became the first astronomers to be awarded the Nobel Prize in Physics, with the Royal Swedish Academy of Sciences noting that Hewish played a “decisive role in the discovery of pulsars”.
In 1974, Joseph Hooton Taylor, Jr. and Russell Hulse discovered for the first time a pulsar in a binary system, PSR B1913+16. Observations of the pulsar confirmed the orbital energy due to the gravitational radiation predicted by Einstein’s theory of general relativity. In 1993, the Nobel Prize in Physics was awarded to Taylor and Hulse for the discovery of this pulsar.
Neutron stars are very dense, and have short, regular rotational periods. Pulsars contain pair plasmas including pair production and due to the rotation and pair discharge the dynamics of pulsars is very active. Furthermore, relativistic magnetic reconnection occurs at the equatorial current sheet, which is supposed to be one of the candidates for the source of ultrahighenergy cosmic rays. Based on these fundamental phenomena with pulsars, PIC simulations have been playing an essential role in investigation of pulsars.
Sironi and Cerutti (2017) have used the PIC approach to study the origin of particle emission in the Crab Nebulae, as a prototype of Pulsar Wind Nebulae (PWNe). They assume that the termination shock of the pulsar wind is responsible for the particle acceleration from PWNe. However, in such a scenario, the individual particle properties cannot be retrieved from MHD simulations which leads to the necessity of PIC simulations. Indeed, they found that in addition to the Fermi process, magnetic reconnection in PWNe powers the particle acceleration.
Global PIC simulations of pulsar magnetosphere have been performed by Philippov and Spitkovsky (2018), including pair production, ion extraction from the surface, framedragging corrections, and highenergy photon emission and propagation. In the case of oblique rotators, the effects of general relativity increase the fraction of the open field lines that support active pair discharge. They found that the plasma density and particle energy flux in the pulsar wind are highly nonuniform with latitude. A significant fraction of the outgoing particle energy flux is carried by energetic ions, which are extracted from the stellar surface. Their energies may extend up to a large fraction of the open field line voltage, making them interesting candidates for ultrahighenergy cosmic rays. They have shown that pulsar gammaray radiation is dominated by synchrotron emission, produced by particles that are energized by relativistic magnetic reconnection close to the \(\gamma \)point and in the equatorial current sheet. In most cases, the calculated light curves contain two strong peaks, which is in general agreement with Fermi observations. The radiative efficiency decreases with increasing pulsar inclination and increasing efficiency of pair production in the current sheet, which explains the observed scatter in \(L_{\gamma }\) versus \({\dot{E}}\). The highfrequency cutoff in the spectra is regulated by the pairloading of the current sheet. Their findings lay the foundation for quantitative interpretation of Fermi observations of gammaray pulsars.
More recently, Philippov et al. (2019) simulated the magnetic reconnection in the magnetospheric current sheet beyond the light cylinder (LC) of different pulsars. Their simulations have shown that the magnetic reconnection leads to an efficient plasmoiddominated regime. Simulations quickly settle to a solution with closed and open field lines, and a current sheet beyond the LC, separating regions of oppositely directed magnetic field. The typical structure of the plasma density is shown in Fig. 33.
Figure 33 shows the typical structure of the plasma density in the simulations by Philippov and Spitkovsky (2018); here, for a simulation of \(\kappa = 100\) and \(\kappa / R_{\mathrm{LC}} \approx 0.0028\), it shows that a vigorous plasmoid chain develops whose plasma density is partly shown in Fig. 33a. Furthermore, Fig. 33b, c show the toroidal magnetic field component, the light curves of two radio pulses, and the associated gammaray profile. They found that the number of plasmoids within \(2\,R_{\mathrm{LC}}\) scales approximately as \(R_\mathrm{LC}/\delta \) where \(\delta \) is the current sheath width. The merging plasmoids are in turn producing fast plasma waves which become apparent in the toroidal magnetic field component. Such plasmoids subsequently collide with each other and emit electromagnetic waves which become apparent as radio emissions from pulsars (panel c) where they have observed common features such as the coincidence with highenergy emissions, nanosecond duration and the extreme instantaneous brightness of individual pulses concluding that pulsar activities are associated to the magnetic reconnection in the magnetospheric current sheath.
Recently, Cerutti et al. (2020) performed large 3D PIC simulations of pulsar winds with a focus on magnetic dissipation and particle acceleration within the striped region.
Shortly after the onset of the simulations, the plasma blown from the star establishes a forcefree splitmonopolelike configuration as it propagates out as shown in Fig. 34. It is characterized by a toroidaldominated magnetic structure whose polarity reverses across the current sheet. The shape of this sheet is consistent with the prediction of (Bogovalov 1999): it is a 3D spherical Archimedean spiral of wavelength \(2\pi R_{\mathrm{LC}}\) defined within the spherical wedge \(\pi /2  \chi<\theta < \pi /2 + \chi \) (Fig. 34). This region, which includes both the sheet and the plasma in between, is the striped wind (Michel 1971; Coroniti 1990; Kirk et al. 2009).
The global structure of the striped wind is consistent with the splitmonopole prediction (Michel 1973; Bogovalov 1999). The current sheet is prone to the plasmoid instability shortly after its launching at the light cylinder. This instability leads to an efficient fragmentation of the sheet into a network of interconnected flux ropes separated by secondary thin current layers where the field reconnects, a structure reminiscent of 3D planeparallel reconnection studies. This chain is highly dynamical and flux ropes form and merge to form bigger structures, which may result in bright, short bursts of radio emission (Philippov et al. 2019; Lyubarsky 2019) aligned with the incoherent gammaraypulsed emission from the sheet (Cerutti et al. 2016). The sheet is also kink unstable, which leads to a significant widening of the striped wind region at low magnetic obliquity. Reconnection in this environment proceeds in a highly asymmetric way, in a qualitatively similar manner as the day side of the Earth’s magnetopause. More efforts are needed to better understand asymmetric reconnection in the relativistic regime using local studies.
Since PIC simulations of pulsars provide essential processes which cannot be investigated by RMHD simulations, in the future further simulations with additional physical processes will be performed in order to interpret observations such as fast radio bursts.
General relativistic PIC simulations of black hole and neutron star
An algorithm is presented that incorporates the Kerr–Schild metric of rotating black holes in PIC codes (Watson and Nishikawa 2010). The algorithm and implementation for the simulation of charged particles are described in the region of a spinning black hole. They have tested the overall model by using a ‘toy’ black hole and accretion disk system in a uniform magnetic field which has shown the production of bipolar jets.
Parfrey et al. (2019) have shown that black holes drive powerful plasma jets to relativistic velocities. This plasma should be collisionless, and selfconsistently supplied by pair creation near the horizon. They present generalrelativistic collisionless plasma simulations of Kerr black hole magnetosphere which begin from vacuum, inject \(e^{\pm }\) pairs based on local unscreened electric fields, and reach steady states with electromagnetically powered Blandford–Znajek jets and persistent current sheets. Particles with negative energy at infinity are a general feature, and can contribute significantly to blackhole rotationalenergy extraction in a variant of the Penrose process. The generated plasma distribution depends on the paircreation environment, and Fig. 35 shows two distinct realizations of the forcefree electrodynamic solution. This sensitivity suggests that plasma kinetics will be useful in interpreting future horizonresolving submillimeter and infrared observations (e.g., Event Horizon Telescope Collaboration 2019; Gravity Collaboration 2017).
Recently, Crinquand et al. (2020) have shown that black holes can launch powerful relativistic jets and emit highly variable \(\gamma \)ray radiation though GRPIC simulations. How these jets are loaded with plasma remains poorly understood. Spark gaps are thought to drive particle acceleration and pair creation in the blackhole magnetosphere. They have performed 2D axisymmetric GRPIC simulations of a monopole blackhole magnetosphere with a realistic treatment of inverse Compton scattering and pair production. They found that the magnetosphere can selfconsistently fill itself with plasma and activate the Blandford–Znajek mechanism.
A highly timedependent spark gap opens near the inner light surface which injects pair plasma into the magnetosphere as shown in Fig. 36. These results may account for the highenergy activity observed in AGNs and explain the origin of plasma at the base of the jet.
Recently, Hirotani et al. (2021) have investigated the temporal evolution of an axisymmetric magnetosphere around a rapidly rotating stellarmass black hole by using a 2D PIC simulation. Adopting homogeneous pair production and assuming that the mass accretion rate is much less than the Eddington limit, they find that the black hole’s rotational energy is preferentially extracted from the middle latitudes and that this outward energy flux exhibits an enhancement lasting approximately 160 dynamical timescales. It is demonstrated that the MHD approximation cannot be justified in such a magnetically dominated magnetosphere because Ohm’s law completely breaks down and the chargeseparated electronpositron plasma is highly nonneutral.
Figure 37 shows the current distribution with the direction and strength of the poloidal currents as red arrows. The current density is averaged over the area in which the authors compute the direction and length of each arrow. These averaged currents mostly flow in the middle and lower latitudes; thus, the lowdensity regions in the polar funnels do not essentially affect the entire structure of the magnetosphere. This figure also plots the charge density, \((n_{+}  n_{})/n_{\mathrm{GJ}}\) (colorcoded) where \(n_{+}\) and \(n_{}\) refer to the number densities of positrons and electrons and \(n_{\mathrm{GJ}}\) denote the rotationally induced Goldreich–Julian number density. To plot the values, they take the decadic logarithm of the absolute value of a quantity, then put the same sign as the quantity (\(F = \mathrm{sign}\{\lg [\max (f, 1)], f\}\)). It follows that the real charge density becomes even greater than the GJ value, which indicates that the electronpositron plasmas become highly nonneutral near the BH.
It is noteworthy that equatorward return currents appear inside the ergosphere in the lowermiddle latitudes. They enable the magnetosphere to electromagnetically extract the BH’s rotational energy via the Blandford–Znajek (BZ) process (Blandford and Znajek 1977). Henceforth, the problem with the BZ process in relation to the causality and the plasma’s inertia (Punsly 1996), which assumed a stationary and axisymmetric magnetosphere, can be overcome by the formation of these strong (but finite) meridional return currents near (but outside) the event horizon, when a magneticallydominated BH magnetosphere becomes highly timedependent due to plasma oscillations (see Fig. 4 of Hirotani et al. 2021).
In the future as the full GRMHD simulations with the Einstein equations full GRPIC simulation codes will be developed. These GRPIC codes will provide kinetic processes to compliment to GRMHD simulations.
Mergers of neutron stars and black holes and associated jets
The mergers of BNS, BBH, and NSBH have been extensively investigated using GRMHD simulations (e.g., Etienne et al. 2017; Baiotti and Rezzolla 2017; Ruiz et al. 2016; Ruiz and Shapiro 2017; Ruiz et al. 2018; Kelly et al. 2017) and provide a prime source for current and future interferometric gravitational wave observatories and promising candidates for coincident electromagnetic counterparts (e.g., Ruiz and Shapiro 2017; Kelly et al. 2017; Sun et al. 2017). These systems are thought to be progenitors of strong electromagnetic emissions, including short gammaray bursts (sGRBs) in the case of NSNS and NSBH mergers.
Ruiz et al. (2016) have performed GRMHD simulations of quasicircular, equalmass, merging binary neutron stars. They explored two types of magneticfield geometries where each star was endowed with a dipole magnetic field extending from the interior to the exterior. The outcome of this merging was a hypermassive neutron star that, with a small delay, further collapsed into a black hole (spin parameter \(a/M_{\mathrm{BH}} \sim 0.74\)) immersed in a magnetized accretion disk. About \(4000M \sim 60(M_{\mathrm{NS}}/1.625\,M_{\odot }\)) ms following this merging, the region above the black hole poles became strongly magnetized, and a collimated, mildly relativistic outflow—an incipient jet—was launched as shown in Fig. 38a. The lifetime of this accretion disk, which likely equals the lifetime of the jet, is in the order of \(\varDelta t \sim 0.1 (M_\mathrm{NS}/1.625\,M_{\odot }\)) s. In contrast to BHNS mergers, they found that incipient jets are launched even when the initial magnetic field is confined to the interior of the stars.
Recently, full GRMHD simulations of BNS mergers have been performed undergoing a prompt collapse to explore the possibility of jet formation from black holelight accretion disk remnants (Ruiz et al. 2018). These simulations show that after \(t  t_{\mathrm{BH}} \sim 26(M_{\mathrm{NS}}/1.8M_{\odot }\)) ms (with the ADM mass \(M_\mathrm{NS}\)) following the prompt black hole formation, there is no evidence of mass outflow or magnetic field collimation. The rapid formation of the black hole following the merging prevents the magnetic energy from approaching forcefree values above the magnetic poles, which is required to launch a jet by the usual Blandford–Znajek mechanism (Blandford and Znajek 1977). The detection of gravitational waves in coincidence with sGRBs, may provide constraints on the nuclear equation of state (EOS): the fate of a BNS merger with a delayed or prompt collapse to a black hole, and hence the appearance or nonappearance of an sGRB, depends on the critical value of the total mass of the binary which is sensitive to the EOS.
The relativistic jet formation is also observed in the merger of supermassive BBH (e.g., Palenzuela et al. 2010; Giacomazzo et al. 2012; d’Ascoli et al. 2018), black holeneutron star (BHNS) mergers (e.g., Ruiz et al. 2020c), and magnetar (e.g., Mösta et al. 2020) which makes it interesting to study the possible formation of a gammaray emission under such circumstances (e.g., Nakar 2020; Biscoveanu et al. 2020).
Massive BBH mergers may often take place in plasmarich environments, leading to the exciting possibility of a concurrent electromagnetic signal observable by traditional astronomical facilities. Kelly et al. (2017) explored mechanisms that may drive electromagnetic counterparts with MHD simulations treating a range of scenarios involving equalmass blackhole binaries immersed in an initially homogeneous fluid with uniform, orbitally aligned magnetic fields. They found that the time development of the Poynting luminosity, which may drive jetlike emissions, is relatively insensitive to aspects of the initial configuration.
Figure 38b shows magnetic field streamlines in the polar region of a BBH merger around 1100M (Kelly et al. 2017). The field lines are twisted into a helical pattern, concentrated at the origin. This helical structure propagates outward at the ambient Alfvén speed \(v_{\mathrm{Alf}} = 0.07433c\) (\(c=1\)), replacing the initially vertical magnetic fields (still visible at large z).
Since these GRMHD simulations of merging BNS and BBH systems provide conditions to generate jets, they intended to perform PIC simulations based on these jet conditions. Up to date, global jet simulations with helical magnetic fields based on forcefree magnetic fields (Mizuno et al. 2015) with tophat density structure have been performed (e.g., Nishikawa et al. 2020). In the future, these GRMHD simulations will provide initial conditions for PIC simulations studying jet structures with more realistic magnetic fields in order to investigate multifrequency generation associated with GW observations.
In the future, new models and more computational power will allow merge simulations with GRPIC codes with the Einstein equations (fully dynamic metrics) similar to GRMHD simulations.
Future PIC simulations of electromagnetic radiation from relativistic jets generated by binary mergers
The first direct observation of gravitational waves was made on 14 September 2015 and was announced by the LIGO and Virgo collaborations on 11 February 2016 (e.g., Abbott et al. 2016a, b). The waveform, detected by both LIGO observatories, matched the predictions of general relativity for a gravitational wave emanating from the inward spiral and merge of a pair of black holes of around 36 and 29 solar masses and the subsequent “ringdown” of the single resulting black hole. This was the first observation of a binary black hole merger, demonstrating both the existence of binary stellarmass black hole systems and the fact that such mergers could occur within the current age of the universe.
One year later, a gravitational wave (GW170817) signal was observed by the LIGO and Virgo detectors on August, 17th 2017 which was produced during the last minutes of two neutron stars spiralling closer to each other and finally merging, and is the first GW observation which has been confirmed by the accompanying EM waves (e.g., Abbott et al. 2017c, b). Unlike the five GW detections prior to this event, which were caused by merging black holes not expected to produce a detectable electromagnetic signal, the signal of this merger was also seen by 70 observatories on several continents and in space, across the electromagnetic spectrum, marking a significant breakthrough for multimessenger astronomy (e.g., Abbott et al. 2017c, b, a). Recently, Abbott et al. (2020) present the current best estimate of the plausible observing scenarios for the Advanced LIGO, Advanced Virgo and KAGRA gravitationalwave detectors over the next several years, with the intention of providing information to facilitate planning for multimessenger astronomy with gravitational waves.
Figure 39a shows the schematic illustration of a possible scenario by which the accretion onto the magnetar remnant of a binary neutron star merger could power an ultrarelativistic short GRB jet (Nagakura et al. 2014; Metzger 2017b, a; Shapiro 2017; Ciolfi et al. 2017). Strong magnetic fields in the polar region confine the hot atmosphere of the protoNS (Thompson 2003), preventing the formation of a steady neutrinodriven wind in this region. Open magnetic field lines, which thread the accretion disk or shear boundary layer, carry the Poynting flux powering the GRB jet (e.g., Rezzolla et al. 2011). These field lines are relatively devoid of baryonic matter due to the large centrifugal barrier, enabling the outflow to accelerate which attains high asymptotic Lorentz factors. At larger radii within the disk, outflows will be more heavily massloaded and form a potential collimating agent for the jet. Recently, Ruiz et al. (2020a, b, c, 2021) have shown that black holeneutron star (BHNS) and neutron starneutron star (NSs) mergers are thought to be sources of gravitational waves (GWs) with coincident electromagnetic (EM) counterparts. To further probe whether these systems are viable progenitors of short gammaray bursts (sGRBs) and kilonovae, and how one may use (the lack of) EM counterparts associated with LIGO/Virgo candidate BHNS GW events to sharpen parameter estimation, they study the impact of neutron star spins in BHNS mergers.
The observed short GRB 170817A (Abbott et al. 2017c, b, a; Goldstein et al. 2017; Savchenko et al. 2017; Granot et al. 2018; Shibata et al. 2017; Lazzati et al. 2018) constrains the properties of a jet associated with GW170817 (Ioka and Nakamura 2018). The emission from the jet is beamed into a narrow (half)angle \(\sim 1/\mathrm{\varGamma }\) where \(\mathrm{\varGamma }\) is the Lorentz factor of the jet, while the debeamed offaxis emission is also inevitable outside \(\sim 1/\mathrm{\varGamma }\) as a consequence of relativistic effects (see Fig. 39b). Abbott et al. (2017a) proposed three potential jet viewing geometries and jet profiles that could explain the observed properties of GRB 170817A. To begin with, they have considered the most simple uniform tophat jet with uniform brightness and a sharp edge. It would be very important to simulate structured jets with jet densities and velocities as described in Fig. 5 of Abbott et al. (2017a). The third potential jet viewing geometry is a uniform jet and cocoon. In the future, these potential viewing geometries will be examined with PIC simulations of global jets in a similar way as performed by Nishikawa et al. (2016b, 2017, 2019, 2020).
Abdalla et al. (2017) provided the time line of observations following the detection of GW170817 with a focus on the highenergy, nonthermal domain. A complete picture of the multiwavelength and multimessenger campaign is given by Abbott et al. (2017c). Future PIC simulations of global jets and associated radiation will provide a possible insight of the timeline of multimessenger observations.
Further investigation needs to be performed on the short gammaray bursts generated by merging binary neutron stars (BNS) (Ruiz et al. 2018; East et al. 2016; Kawamura et al. 2016), by binary black holes (BBH) (Kelly et al. 2017), or a neutron star and black hole (Paschalidis 2017; Paschalidis and Stergioulas 2017). GRMHD simulations of mergers will provide GRB jet conditions as seen in Fig. 39a. Figure 39b shows detailed structures of the jet, the ejecta and their interactions, generating various sequential radiation as described by Abbott et al. (2017c) and Abdalla et al. (2017). The investigation of the kinetic jet effects subsequently requires PIC simulations based on the prior results generated by GRMHD simulations of mergers.
In a future research project, GRMHD codes will be used to simulate the generation of gravitational waves (GW) and jets; afterwards the radiation with multifrequency observed in short GRB jets will be addressed through PIC simulations. This approach accounts for both microscopic and macroscopic processes with helical magnetic fields and their complicated structures in the interaction zone between jets and ejecta generated with mergers as shown in Fig. 39b. In particular, jetsinjet due to magnetic reconnection may provide a possible mechanism for rapid flares and rapid variability.
PIC simulations of laserplasmas physics
In addition to studying astrophysical plasmas, the recent development of computational power allows the PIC simulation study of the interaction of plasmas and laser beams, such as the highspeed acceleration of electrons through the laser wakefield acceleration (LWFA) where an intense laser pulse is fired into a plasma creating a density wake whose electric field pushes charged particles like electrons (e.g., Esarey et al. 2009; Palastro et al. 2020). Furthermore, these new PIC simulations of laserplasma Physics will be applied to studies of astrophysics.
Esarey et al. (2009) reviewed laserdriven plasmabased accelerators, which are capable of supporting fields in excess of 100 GV/m, including the laser wakefield accelerator, the plasma beat wave accelerator, the selfmodulated laser wakefield accelerator, plasma waves driven by multiple laser pulses, and highly nonlinear regimes. They have discussed the properties of linear and nonlinear plasma waves as well as the electron acceleration in plasma waves. Additionally, they have summarized methods for injecting and trapping plasma electrons in plasma waves as well as limits to the electron energy, including laser pulse diffraction, electron dephasing, laser pulse energy depletion, and beam loading limitations. They have also described the basic physics of laser pulse evolution in underdense plasmas including the propagation, selffocusing, and guiding of laser pulses in uniform plasmas and with preformed density channels. Instabilities relevant to intense shortpulse laserplasma interactions, such as Raman, selfmodulation, and hose instabilities, have been discussed. Experiments demonstrating key physics, such as the production of highquality electron bunches at energies of 0.1–1 GeV, are summarized.
Esarey et al. (2009) showed the 3D PIC simulation of a nonlinear plasma wakefield accelerator (PWFA) in the bubble, blowout and cavitation regime where the focusing force in the latter two regions can be very large. For example, the radial space charge field of a long ion channel is \(E_{\mathrm{r}}=E_{0}(k_{\mathrm{p}}r/2)\). At the edge of an electron beam with radius \(\sigma _{\mathrm{r}}\), this can be written in convenient units as
This radial force will cause a relativistic electron with \(\gamma \gg 1\) to perform betatron oscillations about the axis with a betatron wavelength \(\lambda _{\beta }=(2\gamma )^{1/2}\lambda _\mathrm{p}\). Here the plasma wavelength is defined through \(\lambda _\mathrm{p}=2\pi c/\omega _{\mathrm{p}}=2\pi /k_{\mathrm{p}}\) with the plasma frequency \(\omega _{\mathrm{p}}=(4\pi n_{0}e^{2}/m_{\mathrm{e}})^{1/2}\).
One consequence of the betatron motion of a relativistic electron in the plasma focusing fields is the emission of betatron (i.e., synchrotron) radiation which has been observed in the blowout regime for both the electron beamdriven and laserdriven wakes. This radiation is characterized by the betatron strength parameter \(\alpha _{\beta }=\gamma k_{\beta } r_{\beta }\), which is analogous to the undulator strength parameter in conventional synchrotron, where \(r_{\beta }\) is the betatron orbit amplitude and \(k_{\beta }=2\pi /\lambda _{\beta }= 2\pi /\sqrt{2\gamma }\lambda \mathrm{p} =k_p/\sqrt{2\gamma }\) the betatron’s wave number. As the beam radiates, the mean energy decreases and the normalized energy spread can increase. For plasma accelerators, \(\alpha _{\beta }\) can be large and the radiation can extend into the hard xray regime.
An example of an electron beamdriven wake in the blowout regime is shown in Fig. 40, illustrating the spatial plasma density response to an electron beam with energy of 0.5 GeV, density \(n_{\mathrm{b}}=5n_{0}\), \(n_{0}=5\times 10^{17}\,\hbox {cm}^{3}\), and rms longitudinal and transverse beam sizes \(k_{\mathrm{p}} \sigma _\mathrm{x}=k_{\mathrm{p}} \sigma _{\mathrm{y}}=k_{\mathrm{p}} \sigma _{\mathrm{y}}=1/\sqrt{2}\) (in Gaussian profiles). It shows that the electron beam, propagating initially in a uniform plasma, moves towards the right.
Recently, Yano et al. (2019) have analized the propagation of short and ultraintense laser pulses in a semiinfinite space of overdense hydrogen plasma via fullyrelativistic, real geometry PIC simulations including radiation friction. The relativistic transparency and holeboring regimes are found to be sensitive to the transverse plasma field, backward light reflection, and laser pulse filamentation.
Popruzhenko et al. (2019) have shown that in the interaction of laser pulses of extreme intensity (\(>10^{23}\mathrm {\,W\,cm}^{2}\)) with highdensity and thick plasma targets, significant radiation friction losses in simulations, in contrast to thin targets for which such losses are negligible. They have presented an analytical calculation, based on classical radiation friction modeling, of the conversion efficiency of the laser energy into incoherent radiation in the case when a circularly polarized pulse interacts with a thick plasma slab of overcritical initial density. By accounting for three effects including the influence of radiation losses on the single electron trajectory, the global ‘hole boring’ motion of the laserplasma interaction region under the action of radiation pressure, and the inhomogeneity of the laser field in both longitudinal and transverse direction, they found a good agreement with the results of 3D PIC simulations. Overall, the collective effects greatly reduce radiation losses with respect to electrons driven by the same laser pulse in vacuum, which also shift the reliability of classical calculations up to higher intensities.
In the regime of interest here, an ultraintense laser pulse of frequency \(\omega \) and dimensionless field amplitude \(a_{0} = eE_{\mathrm{L}}/m_{\mathrm{e}}\omega c\) (with \(E_{\mathrm{L}}\) the electric field amplitude) interacts with a strongly overdense (electron density \(n_{\mathrm{e}} \gg n_{\mathrm{c}}=m_{\mathrm{e}}\omega ^{2}/4\pi e^{2}\), the cutoff density) plasma target which remains opaque to the laser light. The radiation pressure of the laser light is high enough to produce ‘hole boring’ (HB) in the target, i.e., the plasma surface is driven at an average velocity
where \(I_{\mathrm{L}} = cE_{\mathrm{L}}^{2}/4\pi = m_{\mathrm{e}} c^{3}n_{\mathrm{c}} a^{2}_{0}\) is the laser intensity. Equation (64) can be obtained by balancing the mass and momentum flows at the surface (Robinson et al. 2009) and is valid for total reflection of the laser light in the frame comoving with the surface, i.e., in the absence of dissipative effects. If a fraction \(\eta \) of the laser intensity is dissipated, for example due to RF losses, Eq. (64) may be modified by replacing \(I_{\mathrm{L}}\) with \(I_\mathrm{L} (1  \eta /2)\). In the case of their simulations this would lead at most to \(a \simeq 5\%\) decrease in \(v_{\mathrm{HB}}\) at the highest intensity considered (\(a_{0}=800\)).
An analysis of the 3D distribution functions of the radiation power density \({\mathcal {P}}(x, r, v_{\mathrm{x}})\) (calculated as \({\mathcal {P}} = n_{\mathrm{e}} \mathbf {v}\cdot \mathbf {F}_{\mathrm{rad}}\) for the radiation reaction (or friction) force \(\mathbf {F}_{\mathrm{rad}}\)) and of the electron and ion density \(n_{\mathrm{e, i}}(x, r, v_{\mathrm{x}})\) extracted from the PIC simulation shows that most of the emitted radiation comes from electrons having velocities \(v_{\mathrm{x}} >0\), and located close to the receding front of the ion density. This is illustrated for the \(a_{0}=500\) case in Fig. 41 where space–time plots in the (x, t) plane are shown for the radiation power and the particle densities at \(r=1\lambda \), where the former has its radial maximum.
The density fronts move in the forward direction with average velocity \(\simeq 0.41c\), in fair agreement with the value \(\nu _\mathrm{HB} = 0.47c\) given by Eq. (64). Small oscillations in the front position are visible in correspondence of the generation of plasma bunches in the forward direction. The power density plot shows that most of the emission originates close to the HB front. Emission due to returning electrons with velocity \(\simeq c\) is visible after \(t = 11T_{\mathrm{L}}\), but its contribution to the total emitted power is small, presumably because of the low density in the returning jets (as seen on the \(n_{\mathrm{e}}(x, t)\) plot).
As clearly seen from the plot of the xintegrated radiation power shown on the upper panel, spikes of radiation occur in correspondence of the generation of plasma bunches. Such spikes may be explained by the enhanced penetration of the laser field into the plasma at these time instants. Since the spikes remain close to the HB front, no strong modification of \(v_{\mathrm{x}}\) is correlated with them. Consistently with these observations, they assume that on the average the radiating electrons move with velocity \(v_{\mathrm{x}} = v_{\mathrm{HB}}\) given by Eq. (64). The account of the longitudinal motion improves the agreement.
Arber et al. (2015) have explained the conceptual design of the PIC package of the EPOCH code. EPOCH is one of the famous packages in the laserplasma research community. There are several approaches on radiation processes, however, with increasing computer power, the combination of PIC codes with a MonteCarlo method including quantum electrodynamics (QED) crosssections or probability rates becomes more and more feasible.
Modern PIC codes tend to add to highorder shape functions describing the spatial distribution of individual, real particles in a computational superparticle, Poisson preserving field updates, collisions, ionisation, a hybrid scheme for solid density and highfield QED effects. In addition to these physics packages, the increase in computing power now allows simulations with real mass ratios, full 3D dynamics and multispeckle interaction. Arber et al. (2015) have presented a review of the core algorithms used in current laserplasma specific PIC codes. They also report estimates of selfheating rates, convergence of collisional routines and test of ionisation models which are not readily available elsewhere. Having reviewed the status of PIC algorithms they have presented a summary of recent applications of such codes in laserplasma physics, concentrating on stimulated Raman scattering, shortpulse lasersolid interactions, fastelectron transport, and QED effects.
Gonsalves et al. (2019) have reviewed common extensions of PIC schemes which account for strong field phenomena in laserplasma interactions. After describing the physical processes of interest and their numerical implementation, they provided solutions for several associated methodological and algorithmic problems. They proposed a modified generator that precisely models the entire spectrum of incoherent particle emission without any lowenergy cutoff, and which imposes close to the weakest possible demands on the numerical time step. Based on this, they also developed an adaptive event generator that subdivides the time step for locally resolving QED events, allowing for efficient simulation of cascades. Further, they presented a new and unified technical interface for including the processes of interest in different PIC implementations. Two PIC codes which support this interface, PICADOR and ELMIS, are also briefly reviewed.
Gonoskov et al. (2015) have discussed the electromagnetic energy distribution in a laserplasma interaction using the function \(\omega \partial I/\partial \omega \), the integral of which (w.r.t. \(\ln \omega \)) gives the emitted energy shown in Fig. 42. It illustrates the separation of two regions of electromagnetic energy deposition, which is the basis of the dual treatment of the EMfield: the radiation that can be resolved by the numerical grid (coherent peak) for low frequency emissions and the interaction of the electromagnetic field with charged particles (incoherent peak) for highfrequency emissions. The incoherent peak is not necessarily separated for low intensities, but then it will contain a negligible part of the emitted energy only. However, if the intensity becomes sufficiently high converting a significant part of the particle energy into the incoherently emitted radiation, the incoherent peak will appear in a well which makes the separated spectral region and the dual description of the electromagnetic field possible.
Their arguments so far have been general and have not relied on any specific geometry. In order to demonstrate the validity of their arguments they have presented numerical results for a particular case. They considered the socalled giant attosecond pulse generation in the process of an overdense plasma irradiation by an ultrarelativistic laser in the relativistic electronic spring regime (Gonoskov et al. 2011). They chose this example because it is a ‘worst case’ scenario; a very wide (far beyond \(I \sim \omega ^{8/3}\)) spectrum of coherent emission is generated, which means that the two radiation regions could potentially have significant overlap, invalidating their results; they saw that this did not happen.
Despite the common origin for all energy deposition in Fig. 42, they used the word field to mean coherent, low frequency radiation which can be resolved on the simulation grid, and the word photons to refer to the incoherent, high frequency radiation given by an ensemble of photons. Using this notation in Fig. 43 they have shown, schematically, three qualitatively different forms of energy allocation and the possible channels for conversion of energy between them. Conventional PIC simulations is indicated by the darker solid line connected between Particles and Field. One of basic interests in laserplasma physics is electronpositron pair production.
Highenergy photons can interact with an arbitrary number of laser photons and produce real electronpositron pairs. This generalization of the Breit–Wheeler process is called “stimulated pair production.” It is a perturbative process in the interaction between the stimulating photon and the pair. However, the interaction between the photon and the background can have both stimulated (perturbative) and nonperturbative dependencies on field strength and kinematics as shown in Fig. 43 (e.g., Torgrimsson et al. 2018; Nousch et al. 2016). In the PIC simulations with QED effect, nonlinear Compton scattering is also implemented where the electron is excited by a laser and emits a photon. When a charged particle is accelerated by an external field, it emits radiation. In the case that the electron is excited by a laser and emits a photon, it is called “nonlinear Compton scattering”.
The dashed lines in Fig. 43 indicate, for completeness, the processes which can be neglected. This is annihilation, absorption and the negligible loss of energy in Sauter–Schwinger pair creation. They remarked that neither spin nor polarisation are included in the code.
As one of laserplasma physics applications the Inertial Confinement Fusion (ICF) has been extensively studied (e.g., Olson et al. 2020).
Contemporary lasers allow us to create shocks in the laboratory that propagate at a speed that matches that of energetic astrophysical shocks like those that ensheath supernova blast shells. The rapid growth time of the shocks and the spatiotemporal resolution, with which they can be sampled, allow us to identify the processes that are involved in their formation and evolution. Some lasergenerated unmagnetized shocks are mediated by collective electrostatic forces and effects caused by binary collisions between particles can be neglected. Hydrodynamic models, which are valid for many largescale astrophysical shocks, assume that collisions enforce a local thermodynamic equilibrium in the medium; lasergenerated shocks are thus not always representative for astrophysical shocks. Laboratory studies of shocks can improve the understanding of their astrophysical counterparts if one can identify processes that affect electrostatic shocks and hydrodynamic shocks alike.
Dieckmann et al. (2018) performed simulations that resolve a twodimensional domain with the length \(L_{\mathrm{x}}\) along x, which changes between simulations, and the fixed length \(L_{\mathrm{y}}\) along y. The initially unmagnetized plasma consists of electrons and protons with the spatially uniform number density \(n_{0}\). They use the correct protontoelectron mass ratio with \(L_{\mathrm{x}}= 55\lambda _{\mathrm{D}}= 125\varDelta \) (Debye length \(\lambda _{\mathrm{D}} = v_{\mathrm{te}}/\omega _{\mathrm{pe}}\). Figure 44 shows slices of the proton phase space density distribution along x and along y which sheds light on the cause of these density structures. The distributions of the counterstreaming clouds are symmetric in Fig. 44a and they are not symmetric in Fig. 44b. This symmetry break can be linked to the motion of the thin shell in the simulation frame. The thin shell at \(x = 13.75\) propagates from \(y \approx 2.2\) at \(t_{2}=177\) to \(y \approx 15\) at \(t_{4}=1600\), which corresponds to an average speed of \(0.56c_{\mathrm{s}}\). The motion of the thin shell’s electric potential to increasing y implies that it affects the protons, which move in the opposite direction, less than the comoving ones. The counterstreaming proton clouds are well separated along \(v_\mathrm{y}\), while this time a fully developed shock is observed. The modulation of the solitary wave by the NTSI apparently inhibits or delays the shock formation. The slice of the proton phase space density distribution along \(x=0\) in Fig. 44c shows a depletion of the beam with \(v_{\mathrm{y}} \approx 1.9c_{\mathrm{s}}\) at \(x \approx 43\) and of the oppositely propagating proton beam at \(x \approx 13.75\). The accumulation of protons at these values of x and \(y \approx 0\) seen in Fig. 44d drives ambipolar electric fields, which are tilted relative to the y axis. The protons that move to increasing y are scattered by the oblique electric fields at \(x=43\) and \(y < 0\), which explains their depletion at \(y = 0\) in Fig. 44c. The scattering of the protons will broaden this depletion with increasing \(y > 0\), which is confirmed by Fig. 44d. The proton density distribution in Fig. 44d is caused by localised tilted electric fields and the ballistic motion of protons in the fieldfree intervals.
Dieckmann et al. (2018) have illustrated with a PIC simulation how a thin shell of dense plasma forms close to a planar collision boundary between two plasma clouds, which collide head on and orthogonal to the boundary, and how a pair of electrostatic shocks grows that separates the inflowing upstream protons from those in the thin shell. The absence of binary collisions between particles allowed some of the protons to traverse the thin shell and escape from it at the other side, while being reaccelerated by a double layer. The collisionless NTSI drove bending modes and breathing modes, which is also the case for the hydrodynamic one. The breathing modes involved large electric fields if the wavelength of the seed perturbation was short and they recovered here the complex spatial plasma density distribution from Dieckmann et al. (2015). These structures could not develop in the case of the large initial seed wavelength due to the weaker electric field and a slower growth and they obtained the final proton density distribution from (Dieckmann et al. 2015; Ahmed et al. 2017).
In the future, new numerical methods developed for laser plasma will be utilized for astrophysical plasma.
Summary and future outcome
Since the 1950s, PIC simulations—initiated by a few scientists including Buneman, Hockney, Birdsall, and Dawson—have been an alternative approach for the numerical investigation of plasma phenomena which is employed to solve plasma kinetic processes. In this review, we have described thoroughly the methods and applications of PIC simulations to laboratory, space, and astrophysical plasma associated to relativistic jets and various instabilities providing useful insights into the evolution and associated phenomena such as the particle acceleration due to shocks as well as magnetic reconnection and radiation. In addition to the particle acceleration within relativistic jets, we have also discussed the physics of pulsars as well as discussed the particle acceleration in forced magnetic field turbulence. In contrast to astrophysical plasmas, contemporary PIC codes are also able to study the interaction of plasmas and laser beams. Presentday lasers are intense enough to create a density wake whose electric field accelerates charged particles making the laserplasma interaction the ideal subject for PIC codes.
Moreover, we have described future PIC simulations associated to the emission of electromagnetic radiation from binary mergers of neutron stars, which introduced the era of the multimessenger physics of binary mergers. The merge of two colliding neutron stars not only emits gravitational waves, but also a significant electromagnetic component potentially capable of accelerating particle beams to relativistic energies which can be studied with relativistic PIC codes. Generally, PIC simulations become more and more powerful forming an excellent tool of studying the formation and physics of relativistic jets in the accretion disk system of rotating black holes and neutron stars.
A future development of PIC simulations is to implement the full dynamic metrics in GRPIC codes including solving Einstein’s equations selfconsistently (Baumgarte and Shapiro 2010).
Although, microscopic plasma particle simulations are computationally heavier than macroscopic plasma fluid simulations, they allow to study the individual particle behaviour in relativistic jets and are therefore suitable to understand jets in a more fundamental manner than by fluid simulations, or to even capture events which cannot be observed with fluid simulations. Some of the key features that can be investigated with PIC, but not with fluid codes include, but are not limited to the following:

1.
PIC models allow more sophisticated models of particle beams in shear/shocksystems including Weibel, kinetic Kelvin–Helmholtz and mushroom instabilities.

2.
PIC simulations involving Weibel instabilities have shown that some jet electrons which are injected into an ambient plasma, are thermalized whilst some electrons of the ambient plasma are heated by the jet electrons.

3.
In addition to the Fermi process at shocks, magnetic reconnection provides an additional source of particle acceleration.

4.
In turbulent astrophysical plasmas, there are incidents where ions partly energize more efficiently than electrons.

5.
Turbulent magnetic field accelerations occur in the nonlinear stage.

6.
The magnetic reconnection in jets has the capability of accelerating particles up to energies of TeV which is beyond energies which can be explained by the WI, kKHI or MI.

7.
PIC simulation can be used to understand the jet formation associated to mergers of neutrons stars, black holes or systems of neutron stars and black holes.

8.
PIC codes are capable of simulating the formation and properties of relativistic jets in the accretion disk systems of black holes and neutron stars.

9.
PIC simulations have been used for laserplasmas including QED effects.

10.
GRPIC simulations will be further developed and provide new insights into the kinetic processes beyond the GRMHD simulations.
We would like to emphasize that according to Moore’s original law (Moore 1965), currently computational power doubles every 18 months such that performing relativistic PIC simulations will become a real alternative to fluid simulations in the distant future. Even though, Moore’s law might fade these days, this does not mean that the development of computational power stagnates. Even without fulfilling Moore’s law, computer chips are currently still becoming more powerful (even though more slowly) (Waldrop 2016); additionally, Neven’s law predicts that we might be on the edge to quantum supremacy (Mohseni et al. 2017; Arute and et al. 2019) which will raise computational power even more. However, even if the development of quantum computer systems might take decades before becoming realistic for PIC simulations, this year (2020) the barrier of exascale computing with \(\gtrsim 10^{18}\) FLOPs has been broken by the Folding@Home project. In the recent years, exascale models for beamplasma simulations (Vay and et al. 2018), space weather prediction (Lapenta 2012; Innocenti et al. 2016) or multiscale systems (Alowayyed et al. 2017) have been reported whilst PICplasma methods are currently being developed (Vasileska et al. 2020).
Hence, in the future, both, exascale or quantum computing, will give us the opportunity to study relativistic jets in the vicinity of black holes or neutron stars with much more precision than these days. We believe that the further progresses of numerical methods of PIC simulations with advancing computing power ought to revise the contents in this review.
Notes
Email address for requesting the TRISTANMPI: knishika27@gmail.com.
dBtotByz11MF_011.mp4: the total magnetic fields in the \(yz\)plane; \(280<y/\varDelta<480, 280<z/\varDelta <480\).
References
Abbott BP et al (2020) Prospects for observing and localizing gravitationalwave transients with Advanced LIGO, Advanced Virgo and KAGRA. Living Rev Relativ 23:3. https://doi.org/10.1007/s41114020000269
Abbott BP et al (2016a) Observation of gravitational waves from a binary black hole merger. Phys Rev Lett 116(6):061102. https://doi.org/10.1103/PhysRevLett.116.061102. arXiv:1602.03837 [grqc]
Abbott BP et al (2016b) Properties of the binary black hole merger GW150914. Phys Rev Lett 116:241102. https://doi.org/10.1103/PhysRevLett.116.241102
Abbott BP et al (2017a) Gravitational waves and gammarays from a binary neutron star merger: GW170817 and GRB 170817A. Astrophys J Lett 848(2):L13. https://doi.org/10.3847/20418213/aa920c. arXiv:1710.05834 [astroph.HE]
Abbott BP et al (2017b) GW170817: observation of gravitational waves from a binary neutron star inspiral. Phys Rev Lett 119:161101. https://doi.org/10.1103/PhysRevLett.119.161101
Abbott BP et al (2017c) Multimessenger observations of a binary neutron star merger. Astrophys J Lett 848(2):L12. https://doi.org/10.3847/20418213/aa91c9. arXiv:1710.05833 [astroph.HE]
Abdalla H et al (2017) TeV gammaray observations of the binary neutron star merger GW170817 with H.E.S.S. Astrophys J Lett 850(2):L22. https://doi.org/10.3847/20418213/aa97d2. arXiv:1710.05862 [astroph.HE]
Abdo AA et al [The Fermi LAT and Fermi GBM Collaborations] (2009) Fermi observations of highenergy gammaray emission from GRB 080916C. Science 323(5922):1688. https://doi.org/10.1126/science.1169101
Aharonian F et al (2006) Fast variability of teraelectron volt \(\gamma \) rays from the radio galaxy M87. Science 314(5804):1424–1427. https://doi.org/10.1126/science.1134408. arXiv:astroph/0612016 [astroph]
Aharonian F et al (2007) An exceptional very high energy gammaray flare of PKS 2155–304. Astrophys J Lett 664(2):L71–L74. https://doi.org/10.1086/520635. arXiv:0706.0797 [astroph]
Ahmed H, Doria D, Dieckmann ME, Sarri G, Romagnani L, Bret A, Cerchez M, Giesecke AL, Ianni E, Kar S, Notley M, Prasad R, Quinn K, Willi O, Borghesi M (2017) Experimental observation of thinshell instability in a collisionless plasma. Astrophys J Lett 834(2):L21. https://doi.org/10.3847/20418213/834/2/l21
Alowayyed S, Groen D, Coveney P, Hoekstra A (2017) Multiscale computing in the exascale era. J Comp Sci 22:15–25. https://doi.org/10.1016/j.jocs.2017.07.004
Aloy MA, Gómez JL, Ibáñez JM, Martí JM, Müller E (2000) Radio emission from threedimensional relativistic hydrodynamic jets: observational evidence of jet stratification. Astrophys J Lett 528:L85–L88. https://doi.org/10.1086/312436. arXiv:astroph/9911153
Alves EP (2010) Inductive and electrostatic acceleration in relativistic jetplasma interactions. Master’s thesis, Universidade Técnica de Lisboa
Alves EP, Grismayer T, Martins SF, Fiúza F, Fonseca RA, Silva LO (2012) Largescale magnetic field generation via the kinetic Kelvin–Helmholtz instability in unmagnetized scenarios. Astrophys J Lett 746(2):L14. https://doi.org/10.1088/20418205/746/2/L14. arXiv:1107.6037 [astroph.HE]
Alves EP, Grismayer T, Fonseca RA, Silva LO (2015) Transverse electronscale instability in relativistic shear flows. Phys Rev E 92(2):021101. https://doi.org/10.1103/PhysRevE.92.021101. arXiv:1505.06016 [physics.plasmph]
Alves EP, Grismayer T, Fonseca RA, Silva LO (2015) Transverse electronscale instability in relativistic shear flows. Phys Rev E 92(2):021101. https://doi.org/10.1103/PhysRevE.92.021101. arXiv:1505.06016 [physics.plasmph]
Alves EP, Zrake J, Fiuza F (2018) Efficient nonthermal particle acceleration by the kink instability in relativistic jets. Phys Rev Lett 121:245101. https://doi.org/10.1103/PhysRevLett.121.245101
Alves EP, Zrake J, Fiuza F (2019) Nonthermal ion acceleration by the kink instability in nonrelativistic jets. Phys Plasmas 26(7):072105. https://doi.org/10.1063/1.5098478. arXiv:1907.11693 [physics.plasmph]
Amano T, Hoshino M (2007) Electron injection at high mach number quasiperpendicular shocks: surfing and drift acceleration. Astrophys J 661(1):190–202. https://doi.org/10.1086/513599. arXiv:astroph/0612204 [astroph]
Amano T, Hoshino M (2009) Electron Shock Surfing Acceleration in Multidimensions: TwoDimensional ParticleinCell Simulation of collisionless perpendicular shock. Astrophys J 690(1):244–251. https://doi.org/10.1088/0004637X/690/1/244. arXiv:0805.1098 [astroph]
Arber TD, Bennett K, Brady CS, LawrenceDouglas A, Ramsay MG, Sircombe NJ, Gillies P, Evans RG, Schmitz H, Bell AR, Ridgers CP (2015) Contemporary particleincell approach to laserplasma modelling. Plasma Phys Control Fusion 57(11):113001. https://doi.org/10.1088/07413335/57/11/113001
Ardaneh K, Cai D, Nishikawa KI, Lembége B (2015) Collisionless Weibel shocks and electron acceleration in gammaray bursts. Astrophys J 811(1):57. https://doi.org/10.1088/0004637X/811/1/57. arXiv:1507.05374 [astroph.HE]
Ardaneh K, Cai D, Nishikawa KI (2016) Collisionless electronion shocks in relativistic unmagnetized jetambient interactions: nonthermal electron injection by double layer. Astrophys J 827(2):124. https://doi.org/10.3847/0004637X/827/2/124
Arnold H, Drake JF, Swisdak M, Dahlin J (2019) Largescale parallel electric fields and return currents in a global simulation model. Phys Plasmas 26(10):102903. https://doi.org/10.1063/1.5120373. arXiv:1907.07554 [physics.plasmph]
Arute F et al (2019) Quantum supremacy using a programmable superconducting processor. Nature 574(7779):505–510. https://doi.org/10.1038/s4158601916665. arXiv:1910.11333 [quantph]
Bai XN, Caprioli D, Sironi L, Spitkovsky A (2015) Magnetohydrodynamicparticleincell method for coupling cosmic rays with a thermal plasma: application to nonrelativistic shocks. Astrophys J 809(1):55. https://doi.org/10.1088/0004637X/809/1/55. arXiv:1412.1087 [astroph.HE]