원시데이터 수집 시스템
선정목록으로

Grid instability growth rates for explicit, electrostatic momentum- and energy-conserving particle-in-cell algorithms

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Luke C. Adams — University of Colorado Boulder 1 , Boulder, Colorado 80309,
  2. G. Werner — University of Colorado Boulder 1 , Boulder, Colorado 80309,
  3. John R. Cary — University of Colorado Boulder 1 , Boulder, Colorado 80309,|||Silvaco Inc., Boulder 2 , Colorado 80303,
DOI
10.1063/5.0271598
저널
Physics of Plasmas
발행년도
2025
발행기관
American Institute of Physics
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1063/5.0271598
토픽
Thin-Film Transistor Technologies
OpenAlex ID
W4414267303

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

When the Debye length is not resolved in a simulation using the most common particle-in-cell (PIC) algorithm, the plasma will unphysically heat until the Debye length becomes resolved via a phenomenon known as grid heating. This paper presents detailed numerical measurements of grid heating for several explicit PIC algorithms, including the first systematic (covering the Debye length resolution and drift-velocity parameter space) study of grid-heating growth rates for the most common electrostatic momentum-conserving PIC algorithm. Additionally, we derive and test a cubic-spline-based PIC algorithm that ensures that the interpolated electric field has a continuous first derivative but find that a differentiable electric field has minimal impact on grid-heating stability. We also considered energy-conserving PIC algorithms with linear and quadratic interpolation functions. In all cases, we find that unphysical heating can occur for some combinations of Debye under-resolution and plasma drift. We demonstrate analytically and numerically that grid heating cannot be eliminated by using a higher-order field solve and give an analytical expression for the cold-beam stability limits of some energy-conserving algorithms.

본문 89,052자

본문 펼치기
## Grid instability growth rates for explicit, electrostatic momentum- and energy-conserving particle-in-cell algorithms Luke C. Adams*, <sup>1</sup> Gregory R. Werner, <sup>1</sup> and John R. Cary <sup>1, 2</sup> 1) _University of Colorado Boulder_ 2) _Silvaco Inc._ (*Electronic mail: [luke.adams-1@colorado.edu)](mailto:luke.adams-1@colorado.edu) (Dated: 18 September 2025) When the Debye length is not resolved in a simulation using the most common particle-in-cell (PIC) algorithm, the plasma will unphysically heat until the Debye length becomes resolved via a phenomenon known as grid heating. This article presents detailed numerical measurements of grid heating for several explicit PIC algorithms including the first systematic (covering the Debye length resolution and drift-velocity parameter space) study of grid-heating growth rates for the most-common electrostatic momentum-conserving PIC algorithm. Additionally, we derive and test a cubicspline-based PIC algorithm that ensures that the interpolated electric field has a continuous first derivative, but find that a differentiable electric field has minimal impact on grid-heating stability. Also considered are energy-conserving PIC algorithms with linear and quadratic interpolation functions. In all cases, we find that unphysical heating can occur for some combinations of Debye under-resolution and plasma drift. We demonstrate analytically and numerically that grid heating cannot be eliminated by using a higher-order field solve, and give an analytical expression for the cold-beam stability limits of some energy-conserving algorithms. I. INTRODUCTION The particle-in-cell (PIC) method has a long and successful history of simulating plasmas. <sup>1,2</sup> In PIC methods, the particle distribution function is approximated by a sum of _macropar-_ _ticles_, each of which can occupy any location within the simulation domain. In contrast, field quantities—including charge/current density and the electromagnetic fields—are defined on a discrete grid. As a result, an interpolation function must be used to weight macroparticle charge/current to the grid and another interpolation function must be used to weight electromagnetic fields to the macroparticle locations. With a uniform grid and identical interpolation functions, this method is momentum conserving, and so we will refer to it as MC-PIC. From the outset, it was apparent that PIC methods suffered from a range of numerical instabilities, <sup>3,4</sup> but careful characterization of these instabilities has enabled practitioners to avoid the most problematic regions of instability. <sup>2,5,6</sup> For example, in relativistic electromagnetic simulations, the macroparticles can exceed the numerical speed of light (itself a consequence of the dispersion of the field advance), resulting in numerical Cherenkov radiation; modifications to the field update can suppress this instability. <sup>7</sup> Additionally, in electromagnetic PIC simulations, the finite timestep introduces inaccuracies in the interaction between the particles and fields resulting in violations of energy conservation. This violation can be mitigated with more advanced time-integration schemes that ensure consistency between the field and particle advances. <sup>8–10</sup> Care must also be taken when depositing charge and current from particles to the grid to ensure that the electromagnetic fields sourced by the particles are consistent with the particle charge density. <sup>11–13</sup> In this paper, we restrict our focus to electrostatic PIC simulations which calculate the fields self-consistently from the particle positions at each step. However, electrostatic PIC simulations still suffer from instabilities. In particular, we will focus on the grid-heating instability, which can rapidly and unphysically heat a plasma. <sup>2,4</sup> This instability occurs when the grid spacing, ∆ _x_, is more than a few times the Debye length where _kB_ is the Boltzmann constant, _T_ is the electron temperature, _n_ is the electron number density, and _q_ is the electron charge. As the plasma heats, _λD/_ ∆ _x_ = _vt_ _/ωp_ ∆ _x_ grows until it is order unity and the instability ceases. Here, _vt_ = - _kBT_ _/m_ is the electron thermal velocity ( _m_ is the electron mass) and _ωp_ is the electron plasma frequency. The requirement to resolve the Debye length renders some physically relevant simulations infeasible. For example, magnetron sputtering devices and Hall thrusters typically operate at very low plasma densities, which makes the kinetic simulation of full-device operation infeasible without approximations. <sup>14–17</sup> We note that the grid-heating instability is distinct from the stochastic heating that occurs due to unphysically large fluctuations in the electric field resulting from the discretization of the distribution function. <sup>18,19</sup> These heating mechanisms can be distinguished by their behavior in the limit of an infinite number of macroparticles: the grid-heating growth rate will tend towards some limiting value while the stochastic heating rate will vanish in inverse proportion to the number of macroparticles per cell. <sup>20,21</sup> The source of the grid-heating instability can be understood by considering the Fourier modes of the interpolated particle density and the gridded quantities. For any algorithm that relies on local interpolations between particles and the grid, subgrid modes (i.e. modes with a wavelength shorter than can be resolved by the grid) in the particle density will alias onto grid modes during the charge-deposition interpolation (see Fig. 1). _λD_ = _<u>ε</u>_ <u>0</u> _<u>kBT</u>_ _nq_ <sup>2</sup> <sup>_,_</sup> (1) 0 Δx 2Δx 3Δx 4Δx L FIG. 1. When the particle density varies with subgrid wavelength, the subgrid mode (orange) is unphysically aliased to the grid mode (blue). The grid modes will then generate unphysical forces at the subgrid wavelengths due to aliasing in the field interpolation, and so these coupled modes can feed back on themselves and grow coherently. When the Debye length is properly resolved, the subgrid modes are damped in a process analogous to Landau damping; underresolving the Debye length prevents this damping and leads to an instability and unphysical growth in the thermal energy. <sup>22</sup> In an attempt to improve this, energy-conserving PIC algorithms have been developed. <sup>2,23</sup> We consider a specific algorithm—first introduced by Lewis <sup>24</sup> and derived here in Section IV—that we will refer to as EC-PIC _i_ where _i_ + 1 is the width in cells of the charge deposition interpolation. It can be shown that this explicit algorithm conserves energy in the short timestep limit. <sup>24</sup> Energy-conserving algorithms simulating underresolved ( _λD <_ ∆ _x_ ) stationary plasmas are immune to the grid-heating instability because heating would violate energy conservation; however, if the plasma is both underresolved and has a bulk drift ( _vd̸_ = 0), then energy-conserving algorithms may unphysically convert drift kinetic energy into thermal energy until the two energies are approximately equal. <sup>24,25</sup> This class of instability is often referred to as the cold-beam instability. For the purposes of this paper, we will consider both cold-beam instability and the instability from underresolving the Debye length of a stationary plasma to be subclasses of the grid instability. One result of the energy-conserving instability behavior is that, if a thermal plasma can be simulated in its rest frame where _vd_ = 0, the simulation will experience no heating. Unfortunately, this is infeasible in cases where the plasma drift occurs within a larger system which fixes the simulation frame (e.g. thin-film sputtering devices, Hall thrusters, and vacuum electronic devices), <sup>14–17,26</sup> . Thus, the stability of these algorithms while simulating a drifting plasma remains of interest. In these types of simulations, the plasma drift may be driven by an external energy source which may minimize the effect of the numerical heating. However, such considerations are very simulation-dependent, and we will not address them in this paper. Instead, we aim to provide general stability criteria that can indicate when simulation results should be subject to additional testing and scrutiny. The exact threshold at which grid instability occurs depends on the algorithm used, and has been studied extensively in 1D. For example, Birdsall and Maron <sup>22</sup> reported that, for a sufficiently large drift speed (somewhere around _vd_ ≳ ∆ _xωp/_ 3), MC-PIC is unstable when _λD/_ ∆ _x_ _<_ 0 _._ 046. In the same paper, <sup>22</sup> Albritton and Nevins are credited with an analytical calculation showing that the threshold for stability for MC-PIC in the large-drift-velocity limit should occur around _λD/_ ∆ _x ≈_ 0 _._ 05. Empirical estimates for the stability of stationary plasmas simulated using MC-PIC cluster around _λD/_ ∆ _x_ = 1 _/π_ _≈_ 0 _._ 3. <sup>2,22,27,28</sup> We are not aware of any analytically-derived thresholds for the stability of stationary plasmas. Barnes and Chacón <sup>5</sup> have shown analytically that a hypothetical EC-PIC0 algorithm (which is not physically realizable for reasons that will be discussed later) would be stable for _vd_ _>_ ∆ _xωp/_ 2 when _vt_ = 0. They have additionally provided stability contours for 1D simulations using several energyconserving algorithms as a function of _vt_ (equivalently, Debye length resolution) and _vd_ . Recently, energy-conserving methods have been benchmarked against the MC-PIC algorithm in the simulation of a capacitively-coupled discharge in both one and two dimensions; coarse-resolution simulations with an energy-conserving algorithm showed excellent agreement with MC-PIC simulations that resolve the Debye length. <sup>6,29,30</sup> When the Debye length is underresolved, the grid instability can be suppressed by implicit methods which allow for timesteps longer than an inverse plasma frequency. <sup>5,31,32</sup> This stabilization occurs because the dispersion relation is modified to reduce the plasma frequency, which causes a corresponding reduction in the grid-instability growth rate. <sup>31</sup> However, each timestep in an implicit method is very computationally expensive, although sometimes this is balanced by the reduced number of timesteps required. It is possible to reduce the cost of implicit methods with certain approximations to the nonlinear system, but for grid-heating to be efficiently suppressed using these so-called direct implicit methods, the timestep must increase in proportion to the cell size. <sup>30</sup> Thus, direct implicit methods cannot be used to suppress gridheating in situations where temporal scale of interest is equal to or faster than the plasma frequency (e.g. long wavelength Langmuir waves). Fully-nonlinear implicit algorithms do not suffer from this restriction, but they incur even worse performance penalties relative to explicit algorithms. <sup>33</sup> We therefore consider techniques for reduction of grid-heating in cheaper and more easily implemented explicit algorithms. In this article, we systematically measure the strength of the grid instability in several different algorithms—the standard momentum-conserving PIC algorithm (MC-PIC), the original energy-conserving algorithm proposed by Lewis <sup>24</sup> (ECPIC1), a modified Lewis energy-conserving algorithm that uses wider basis functions for charge deposition and field interpolation (EC-PIC2), and a novel energy-conserving cubicinterpolating-spline based method which ensures that both the potential and its first derivative are continuous (CS-PIC). We compare the growth rate as a function of drift and thermal velocity for each algorithm. The remainder of the paper is organized as follows. In Section II, we introduce the PIC simulation cycle, and briefly discuss the MC-PIC algorithm. The reader who is already familiar with this commonly-used PIC algorithm can safely skip this section. Then in Section III, we show how the Low Lagrangian <sup>25,34</sup> can be used to derive energy-conserving algorithms. Section IV and Section V derive EC-PIC and CS-PIC, respectively, with a focus on the commonality between the algorithms. Section VI presents results of our systematic numerical study of these algorithms, while Section VII presents new analytical results about the stability of the EC-PIC algorithms. Finally, we offer some concluding remarks in Section VIII. II. THE PIC SIMULATION CYCLE A collisionless plasma with one spatial dimension and one velocity dimension is described by the Vlasov equation 0.0 −2 −1 0 1 2 x / Δx FIG. 2. The first few B-splines. Higher-order B-splines are smoother (in the sense of approaching a Gaussian) but extend further. A. Charge deposition For the MC-PIC algorithm, the charge density at each grid node is computed as 0ᵗʰ order 1.0 1ˢᵗ order 2ⁿᵈ order 0.5 3ʳᵈ order _<u>∂</u>_ _<u>f</u>_ <sup>_<u>∂</u>_</sup> _∂_ _x_ <sup>_<u>f</u>_</sup> <sup>+</sup> _m_ <sup>_<u>q</u>_</sup> _<u>∂∂tf</u>_ <sup>+</sup> <sup>_v_</sup> <sup>_<u>∂</u>_</sup> _∂_ _x_ <sup>_<u>f</u>_</sup> _m_ <sup>_<u>q</u>_</sup> <sup>_E_</sup> <sup>_<u>∂</u>_</sup> _∂_ _v_ <sup>_<u>f</u>_</sup> (2) <sup>_<u>∂</u>_</sup> _∂_ _v_ <sup>_<u>f</u>_</sup> <sup>= 0</sup> <sup>_,_</sup> _ρn_ = _q_ d _v f_ ( _x,_ _v_ ) _Sn_ ( _x_ ) (5) d _x_ _wmSn_ ( _xm_ ) _,_ (6) where _f_ ( _x,_ _v_ ) is the particle distribution function for a species with mass _m_ and charge _q_ and where the electric field, _E_, is self-consistently calculated as ## = q ∑ _m_ <u>d</u> _<u>E</u>_ <u>dd</u> _<u>Ex</u>_ <sup>=</sup> _ε_ <sup><u>1</u></sup> 0 where _Sn_ ( _x_ ) is the _shape_ _function_ used to interpolate from a particle at position _x_ to grid node _n_ . The shape function can either be associated with the grid nodes, as we have done here, or it can be equivalently implemented by giving the particles a finite width by modifying the delta function in Eq. (4). However, the derivation of more complicated PIC algorithms (e.g. variable-sized grids) requires that a shape function be associated with the grid to ensure charge conservation. In fact, it is possible for both the particles and grid nodes to be given a width, although this only serves to complicate the math. <sup>27</sup> In the forthcoming derivations, we will find it convenient to assume that the particles have infinitesimal width, and so we associate the shape functions with the grid nodes. For a macroparticle’s total charge to be conserved on the grid, we must choose _Sn_ such that _ε_ 0 d _vqf_ ( _x,_ _v_ ) _,_ (3) and _ε_ 0 is the permittivity of free space. For simplicity, we consider one mobile species; a more complete description would have one distribution function per species. In order to do simulations, the Vlasov-Poisson system defined in Eqs. (2) and (8) must be discretized. The MC-PIC method makes a series of ad hoc approximations which we now review. In PIC methods, the particle density function is approximated by the sum _Sn_ ( _x_ ) = 1 (7) _M_ ## ∑ _m_ =1 ## ∑ _n_ _f_ ( _x,_ _v_ ) _≈_ _wmδ_ ( _x_ _−_ _xm_ ) _δ_ ( _v_ _−_ _vm_ ) (4) for all _x_ in the simulation domain. Additionally, the shape function _S_ should be _local_ (spatial extent of only a few grid cells) for the algorithm to scale efficiently as the number of grid cells increases. By far the most common choices for shape functions are B-splines, the first few of which are shown in Figure 2. The use of zeroth-order B-splines for the interpolation is referred to as nearest grid point (NGP) interpolation, while the use of first-order B-splines is often called cloud-in-cell (CIC). <sup>2</sup> In this paper, MC-PIC refers to first-order interpolation. where the sum ranges over the _M_ macroparticles in the simulation each with weight _wm_ and phase-space coordinate ( _xm,_ _vm_ ), and where _δ_ is the Dirac delta function. We consider a system with length _L_, and with periodic boundary conditions. The field quantities are defined on a grid, which we choose to have _N_ equally spaced nodes. The locations of the nodes are given by _Xn_ = _n_ ∆ _x_ where ∆ _x_ = _L/N_ . B. Field solve Once the charge density on the grid has been found, the electric field must be computed. For the MC-PIC algorithm, this is done in two steps: first find the potential due to the charge by solving a discretized Poisson’s equation, and then compute the electric field at each node as a finite-difference derivative of the potential. We now consider each of these steps in detail. In one dimension, the continuous Poisson equation is given by _v_ <sup>_i_</sup> _m_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_i_</sup> _m_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> = _v_ <sup>_i_</sup> _m_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> D. Particle push Finally, the positions and velocities of the macroparticles must be updated. The simplest explicit, electrostatic time integrator with acceptable accuracy is the leapfrog integrator. In a leapfrog integrator, the positions of the macroparticles are stored at whole timesteps _i_ ∆ _t_, while the velocities of the macroparticles are stored at the half timesteps, ( _i_ + 1 _/_ 2)∆ _t_ . The velocities of the macroparticles are first updated as _<u>m</u>_ <sup><u>)</u></sup> <sup>_<u>F</u>_</sup> <sup><u>(</u></sup> <sup>_<u>xi</u>_</sup> (14) _wmm_ <sup>_i_</sup> _m_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> + ∆ _t_ <sup>_<u>F</u>_</sup> <sup><u>(</u></sup> <sup>_<u>xi</u>_</sup> _−_ <sup><u>d2</u></sup> <sup>_<u>φ</u>_</sup> d _x_ <sup>2</sup> _ε_ 0 <sup><u>d2</u></sup> <sup>_<u>φ</u>_</sup> d _x_ <sup>2</sup> <sup>=</sup> _ε_ <sup>_<u>ρ</u>_</sup> 0 Then the positions of the macroparticles are updated according to _._ (8) This equation can be discretized using the three-point differencing formula _m_ <sup>_i_</sup> <sup>+1</sup> = _x_ <sup>_i_</sup> _xm_ <sup>_i_</sup> <sup>+1</sup> _m_ <sup>_i_</sup> <sup>+</sup> <sup>∆</sup> <sup>_tv_</sup> _m_ <sup>_i_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _m_ <sup>_i_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _._ (15) _<u>−φn−</u>_ <u>1 +</u> <u>2</u> _<u>φn −</u>_ _<u>φn</u>_ <u>+1</u> <u>2</u> _<u>φn −</u>_ _<u>φn</u>_ <u>+1</u> = <sup>_<u>ρn</u>_</sup> ∆ _x_ <sup>2</sup> _ε_ 0 We note that only the most recent position and velocity of each particle must be stored. Although MC-PIC generally provides a good approximation to Eq. (2), it is not guaranteed to preserve all of the invariants present in the original equations. It can be shown that the preceding algorithm exactly conserves momentum. <sup>2,37</sup> However, MC-PIC does not strictly conserve energy, although it becomes increasingly good in the limit that _N →_ ∞, _λD/_ ∆ _x →_ ∞, and _ωp_ ∆ _t →_ 0. In the next sections, we will derive several algorithms that _do_ exactly conserve energy (for an infinitesimal timestep), although we will find that we must sacrifice momentum conservation in order to maintain good performance of the algorithms. III. DERIVATIONS OF ENERGY-CONSERVING ALGORITHMS The starting point for all of our derivations of energyconserving PIC algorithms will be the Low Lagrangian, <sup>25,34</sup> which is given by _ε_ 0 (9) where the indices of _φ_ are taken to be periodic so that _φ_ 0 = _φN_ . This is a standard problem in linear algebra, and many exact and approximate techniques exist to calculate the solution. <sup>35,36</sup> The potential is defined on the grid nodes, and in a typical PIC code, the electric field is also interpolated from the grid nodes to the particle locations. Thus, a simple finite difference to compute the electric field is a centered difference given by _En_ = _−_ <sup>_<u>φn</u>_</sup> <sup><u>+1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>φn−</u>_</sup> <sup><u>1</u></sup> _._ (10) 2∆ _x_ This centered difference is often interpreted as a two-step process. First, the electric field at the grid edges is computed as _En_ +1 _/_ 2 = _−_ <sup>_<u>φn</u>_</sup> <sup><u>+1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>φn</u>_</sup> _,_ (11) ∆ _x_ and then the edge electric fields are averaged to give a nodal electric field _En_ = <sup>_En_</sup> <sup><u>+1</u></sup> <sup>_<u>/</u>_</sup> <sup><u>2</u></sup> <sup>+</sup> <sup>_En−_</sup> <sup><u>1</u></sup> <sup>_<u>/</u>_</sup> <sup><u>2</u></sup> _._ (12) 2 For a uniform grid, these two approaches are identical. C. Field interpolation In MC-PIC, the force acting on each macroparticle is computed using the same shape function that was used for charge deposition. Thus, - _<u>∂</u>_ _<u>x</u>_ <u>(</u> _<u>t</u>_ <u>;</u> _<u>x</u>_ <u>0</u> _<u>,</u>_ _<u>v</u>_ <u>0)</u> _∂t_ �2 + <sup>_<u>ε</u>_</sup> <sup><u>0</u></sup> 2 _L_ = �� d _x_ 0 d _v_ 0 _f_ 0( _x_ 0 _,_ _v_ 0) _−_ _qφ_ ( _x_ ( _t_ ; _x_ 0 _,_ _v_ 0) _,t_ ) _<u>m</u>_ 2 �2 _._ (16) - _<u>∂φ</u>_ <u>(</u> _<u>ξ</u>_ _<u>,t</u>_ <u>)</u> _∂ξ_ d _ξ_ ## F ( xm ) = qwm ∑ _n_ _EnSn_ ( _xm_ ) _._ (13) Given some initial phase-space density _f_ 0( _x_ 0 _,_ _v_ 0), the function _x_ ( _t_ ; _x_ 0 _,_ _v_ 0) gives the trajectory of the initial phase-space coordinate ( _x_ 0 _,_ _v_ 0). The first term of the Lagrangian describes the particle kinetic energy, the second term encodes the particlefield coupling and the last term is the electric field energy. We use the variable _ξ_ to distinguish the integration variable from the phase-space coordinate _x_ . The degrees of freedom of the Lagrangian are the fields _x_ ( _x_ 0 _,_ _v_ 0) and _φ_ ( _x_ ). The Euler-Lagrange equations for _x_ can be calculated as <sup>25</sup> This choice ensures momentum conservation provided that the chosen field solve is symmetric. Again, _Sn_ is local, and so the evaluation of this sum for all macroparticles can be done in _O_ ( _M_ ) time (i.e. the scaling does not depend on _N_ ). _δLx_ <sup>=</sup> _∂_ <sup>_<u>∂</u>_</sup> _t_ _∂t_ _<u>δ</u>_ _<u>L</u>_ _<u>δ</u>_ _<u>L</u>_ <u>�</u> _δ_ _∂x_ 0 _x_ _<u>δ</u>_ _<u>L</u>_ <u>�</u> _δ_ _∂x_ 0 <u>�</u> + <sup>_<u>∂</u>_</sup> _∂_ _v_ 0 _<u>δ</u>_ _<u>L</u>_ <u>�</u> _δ_ _∂v_ 0 _x_ _δδ_ ( _∂Lt_ _x_ ) <sup>+</sup> _∂_ <sup>_<u>∂</u>_</sup> _x_ 0 (17) <u>�</u> which yields _−q_ <sup>_<u>∂φ</u>_</sup> _∂_ _x_ <sup>=</sup> <sup>_mx_</sup> <sup>¨</sup> <sup>+</sup> <sup>0</sup> <sup>+</sup> <sup>0</sup> <sup>_._</sup> (18) where _n_ and _ℓ_ independently vary over the grid nodes, and the prime indicates a derivative with respect to the argument. The equations of motion for _xm_ and _φn_ are _φnSn_ <sup>_′_</sup> <sup>(</sup> <sup>_xm_</sup> <sup>)</sup> (24) The equations of motion for _φ_ are calculated as _<u>δ</u>_ _<u>L</u>_ _<u>δ</u>_ _<u>L</u>_ <u>�</u> _δ_ _∂x_ 0 _φ_ _<u>δ</u>_ _<u>L</u>_ <u>�</u> _δ_ _∂x_ 0 <u>�</u> + <sup>_<u>∂</u>_</sup> _∂_ _v_ 0 ## wmmx ¨ m = −wmq ∑ _n_ _m_ _<u>δδφL</u>_ <sup>=</sup> _∂_ <sup>_<u>∂</u>_</sup> _t_ _<u>δ</u>_ _<u>L</u>_ <u>�</u> _δ_ _∂v_ 0 _φ_ _−_ [∇ <sup>2</sup> ] _nℓφn_ = <sup><u>1</u></sup> _ε_ ## ε 0 ∑ m _,_ (25) _∂t_ _δδ_ ( _∂Lt_ _φ_ ) <sup>+</sup> _∂_ <sup>_<u>∂</u>_</sup> _x_ 0 (19) <u>�</u> _wmqSn_ ( _xm_ ) _≡_ <sup>_<u>ρn</u>_</sup> _ε_ 0 yielding where [∇ <sup>2</sup> ] _nℓ_ is a finite-difference approximation of the Laplacian operator which can be computed as _<u>∂</u>_ <sup>2</sup> _<u>φ</u>_ _∂_ _x_ <sup>2</sup> <sup>+</sup> <sup>0</sup> <sup>_._</sup> (20) _−q_ d _v f_ ( _x,_ _v_ ) = 0 + _ε_ 0 _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_._</sup> (26) d _xSn_ <sup>_′_</sup> _n_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_S_</sup> _ℓ_ <sup>_′_</sup> Equations (18) and (20) exactly reproduce Eqs. (2) and (3). Thus, this Lagrangian preserves the symmetries responsible for energy and momentum conservation. That is, the Lagrangian is invariant to translations in time or space. It is the discretization of the Lagrangian that breaks the symmetries, leading to violations of conservation laws. To derive a PIC-like algorithm, we substitute the macroparticle approximation into the distribution function given in Eq. (4). The resulting Lagrangian is [∇ <sup>2</sup> ] _nℓ_ = �2 _,_ (21) 2 - _<u>∂φ</u>_ _∂ξ_ _L_ = ∑ _m_ - _<u>m</u>_ 2 <sup>_x_</sup> <sup>˙</sup> _m_ <sup>2</sup> <sup>_−_</sup> <sup>_qφ_</sup> <sup>(</sup> <sup>_xm_</sup> <sup>)</sup> _wm_ - + <sup>_<u>ε</u>_</sup> <sup><u>0</u></sup> d _ξ_ where the field degree of freedom _x_ has been replaced by the _M_ degrees of freedom _{xm}_ . This new Lagrangian retains continuous space and time symmetries, and so it will conserve both energy and momentum. However, we still must choose a discretization for the potential _φ_ . For the resulting algorithm to have PIC-like scaling, the total cost of the algorithm cannot have a term that scales as _O_ ( _MN_ ). This requires each macroparticle to interact with a limited number of grid nodes, even as the number of grid cells is increased. In the next two sections, we consider two different approaches to discretizing the potential that respect this requirement. IV. ENERGY-CONSERVING PIC (EC-PIC) Following Lewis <sup>24</sup>, we discretize the potential as a sum of local basis functions _N_ ## ∑ φn Sn ( x ), (22) _n_ =1 _φ_ ( _x_ ) _≈_ _N_ ## ∑ _n_ =1 _φn S_ - _<u>x</u>_ _<u>−</u>_ _<u>Xn</u>_ _Xn −_ _Xn−_ 1 _≡_ where _S_ is a local basis function (shape function), and the coordinates _Xn_ are the locations of grid nodes. Thus, the _Sn_ ( _x_ ) functions form a set of basis functions that span the domain, each localized around _Xn_ . The resulting Lagrangian is _<u>wmm</u>_ _L_ EC = ∑ _m_ _L_ EC = ∑ _<u>m</u>_ 2 _x_ ˙ _m_ <sup>2</sup> _m_ ## − ∑ _m_ ## − ∑ _φn Sn_ ( _xm_ ) (23) ## wmq ∑ _n_ ## wmq ∑ Recall that the shape function _S_ has been chosen to be local in Eq. (23), and thus the elements of the operator will be nonzero only near the diagonal (i.e., _n ≈_ _ℓ_ ). The equations of motion (24) and (25) represent a fully spatially discretized approximation to the Vlasov-Poisson system. We now compare this energy-conserving algorithm with the MC-PIC algorithm presented in Section II. For simplicity, we specialize to the case of a uniform grid, and choose _S_ to be an _i_ th order B-spline. A. Charge deposition By defining _ρn_ as in Eq. (25), the charge deposition is the same as MC-PIC (Eq. (5)). B. Field solve The discretized Poisson’s equation is given by Eq. (25). The structure of the equation is similar to the MC-PIC field solve; however, the details of the field solve now depend on the inner products of shape functions. We note that the derivative of _S_ is required to compute the discretized Laplacian, and thus the zeroth-order B-spline is unsuitable for energyconserving PIC algorithms. If _S_ is chosen to be the first-order B-spline, then it can be shown that the discretized Laplacian becomes tridiagonal (plus the usual periodic off-diagonal elements), with diagonal elements equal to _−_ 2 _/_ ∆ _x_ <sup>2</sup>, and off-diagonal elements equal to 1 _/_ ∆ _x_ <sup>2</sup> . Thus, for EC-PIC1 (i.e., charge deposition with first-order B-splines), the field solve is identical to that of the MC-PIC scheme (Eq. (9)). Alternatively, wider shape functions can be used to reduce particle noise, but this choice also comes with some trade-offs. First, computing the charge deposition becomes more expensive as each particle must deposit charge to additional grid nodes. Additionally, the introduction of a wider stencil can slow down the speed of simulations, both by increasing the number of nonzero elements in the field linear solve, and by requiring the communication of additional guard cells when parallelizing the algorithm. Further, the application of boundary conditions becomes more challenging as more grid nodes _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> + <sup>_<u>ε</u>_</sup> <sup><u>0</u></sup> _φn_ _φℓ,_ <sup><u>0</u></sup> ## 2 ∑ n ∑ ℓ �� d _xS_ <sup>_′_</sup> _n_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_S_</sup> _ℓ_ <sup>_′_</sup> _ℓ_ interact with the edges of the grid. In this paper, we avoid this complication by utilizing periodic boundary conditions. For EC-PIC2 (second-order B-spline charge deposition), the difference equations to be solved are _<u>φn−</u>_ <u>2 +</u> <u>2</u> _<u>φn−</u>_ <u>1</u> _<u>−</u>_ <u>6</u> _<u>φn</u>_ <u>+</u> <u>2</u> _<u>φn</u>_ <u>+1 +</u> _<u>φn</u>_ <u>+2</u> <u>6</u> _<u>φn</u>_ <u>+</u> <u>2</u> _<u>φn</u>_ <u>+1 +</u> _<u>φn</u>_ <u>+2</u> = <sup>_<u>ρn</u>_</sup> 6∆ _x_ <sup>2</sup> _ε_ 0 Prior to the discretization of the potential, the Lagrangian was translationally invariant, and thus by Noether’s theorem it had a conserved quantity—momentum. Discretization breaks this symmetry, and so the momentum is no longer guaranteed to be conserved. One might hope that momentum remains a conserved quantity despite the lack of symmetry; however, it has been shown explicitly that EC-PIC lacks momentum conservation. <sup>2,25</sup> In contrast, since it is not derived from a Lagrangian, MCPIC does not have this symmetry restriction. It can be shown that MC-PIC conserves momentum even though it lacks translational invariance. <sup>2</sup> This conservation comes as a consequence of Newton’s 2nd law, and not from a symmetry of the equations of motion. V. CUBIC-SPLINE PIC (CS-PIC) We are motivated by the Particle-in-Fourier (PIF) method, <sup>25,39</sup> which has been shown to conserve both energy and momentum exactly in the short timestep limit. <sup>25</sup> In PIF, _φ_ is represented as a truncated Fourier series, with every particle depositing charge to every Fourier mode. Such an algorithm does not have PIC-like scaling, and so the simulation of largescale problems is infeasible. PIC-like scaling can be recovered by using approximate unequally-spaced fast Fourier transforms; <sup>39</sup> however, this approach does not scale to more complicated boundary conditions, and it requires sophisticated numerical algorithms that are not widely available in numerical computing packages. <sup>40</sup> Additionally, FFTs present a challenge for parallel processing, and do not generalize well to higher dimensions. Since the Fourier mode discretization exactly conserves momentum, we hypothesize that basis functions that approximate Fourier modes will provide a superior approximation to momentum conservation. To this end, we consider an alternative discretization of the potential which uses cubic interpolating splines to approximate the Fourier modes. We will see that this choice of approximation allows for PIC-like scaling of the deposition and field interpolations. A cubic interpolating spline is a piecewise-cubic function that is constructed to pass through a set of values defined on grid points. Unlike a B-spline interpolation, which is explicitly specified by the grid point values, a cubic interpolating spline generally requires solving a tridiagonal linear system for the values of the second derivative of the interpolation at each grid point. The resulting interpolation is continuous and has continuous first and second derivatives. <sup>36</sup> To fully specify the linear solve, the second derivatives at each end of the interpolation domain must be specified. For the purposes of this paper, which only considers periodic boundary conditions, the system can be closed by requiring that the derivatives at each end point match. If the electric potential is represented using a cubic interpolating spline, then the interpolated electric field will have a continuous first derivative. In the EC-PIC method, this only becomes true for third-order and higher-order B-splines, with the associated computational cost of interpolating to and from _ε_ 0 _._ (27) and so the discretized Laplacian matrix has five nonzero diagonals, with rows consisting of [1 _/_ 6 _,_ 1 _/_ 3 _,_ _−_ 1 _,_ 1 _/_ 3 _,_ 1 _/_ 6] _/_ ∆ _x_ <sup>2</sup> . We note that the _φn_ in Eq. (27) are the amplitudes of the potential elements defined in Eq. (22) and not the value of the potential at each grid node. We refer to this algorithm as ECPIC2-Lagrange. We additionally consider the EC-PIC2 algorithm with two modified field solves. The first solve, which we refer to as EC-PIC2-Standard, uses the standard three-point field solve employed by MC-PIC (Eq. (9)) and EC-PIC1, with secondorder error in _k_ ∆ _x_ . This scheme may be derived in the Lagrangian formulation by using a zeroth-order B-spline basis for the potential in Eq. (22) paired with a modified version of the distribution function discretization, Eq. (4), that gives each particle a zeroth-order B-spline spatial extent. We also consider a fourth-order-accurate, five-point field solve with rows consisting of [1 _/_ 12 _,_ _−_ 4 _/_ 3 _,_ 5 _/_ 2 _,_ _−_ 4 _/_ 3 _,_ 1 _/_ 12] _/_ ∆ _x_ <sup>2</sup> . <sup>38</sup> We refer to this algorithm as EC-PIC2-Fourth. We are not aware of a derivation of the EC-PIC2-Fourth from Eq. (16); however, the scheme can be derived using a variation of the Hamiltonian procedure in Birdsall and Langdon <sup>2</sup>, Ch. 10. Although the field solve in the EC-PIC2-Lagrange algorithm has been specifically derived to be consistent with the 2nd-order B-spline potential representation, the field solve itself is actually more inaccurate than the other two field solves for _k_ ∆ _x ∼_ _π_ . However, it has been shown that, considering the overall algorithm, using this field solve will result in every particle density mode oscillating at exactly the cold plasma frequency. <sup>2</sup> C. Field interpolation The interpolation of the field to the macroparticles is carried out in the same way as in MC-PIC (Eq. (13)), except that the shape function _Sn_ is replaced with the derivative _Sn_ <sup>_′_</sup> <sup>and</sup> <sup>the</sup> edge electric field values are used in place of the nodal electric fields. If the shape function _S_ is an _i_ th order B-spline, then this is equivalent to interpolating the edge electric fields defined in Eq. (11) with a B-spline shape interpolation of order ( _i_ _−_ 1). <sup>2</sup> D. Particle push The equations of motion, (24) and (25), have not yet been discretized in time, and thus many different energyconserving time integration schemes may be employed to advance the particle positions and momenta. In this paper, we use the same explicit leapfrog integrator described in Section II D. more cells for each particle. Thus, unlike the EC-PIC methods considered in this paper, CS-PIC ensures that small translations in the location of the grid will result in only small changes to the electric field experienced by macroparticles. Before we describe the derivation of the method, we briefly review cubic interpolating splines. Consider a periodic system of length _L_ . We impose the same _N_ node grid with nodes at _Xn_ = _nL/N_ . For some field _g_ with grid values _g_ ( _Xn_ ), the cubic interpolation, _gC_, is given by where _δk,ℓ_ is a Kronecker delta function. That is, the _ek_ ’s are orthogonal just like the Fourier modes that they approximate. The details of this calculation are shown in the Appendix. Following the derivation of PIF, <sup>25,39</sup> we discretize _φ_ as where _ek_ is an cubic interpolating cubic spline with _ek_ ( _Xn_ ) = exp( _ikXn_ ). The Lagrangian becomes _N/_ 2 ## ∑ _k_ = _−N/_ 2+1 _φ_ ( _x_ ) _≈_ _φ_ ˆ _kek_ ( _x_ ) _,_ (34) _L_ CS = ∑ _m_ _L_ CS = ∑ _m_ _gC_ ( _x_ ) = _N_ ## ∑ _n_ =0 - _g_ ( _Xn_ ) _w_ 1( _ξn_ )+ _g_ <sup>_′′_</sup> ( _Xn_ )∆ _x_ <sup>2</sup> _w_ 3( _ξn_ )� _,_ (28) _<u>wmm</u>_ _<u>m</u>_ 2 _x_ ˙ _m_ <sup>2</sup> (35) _φ_ ˆ _k ek_ ( _xm_ ) where _ξn_ = ( _Xn −_ _x_ ) _/_ ∆ _x_ is the normalized distance from grid point _n_ and weight functions are defined as ## − ∑ _m_ ## − ∑ ## wmq ∑ _k_ _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> _φ_ ˆ _k_ <sup>_∗_</sup> �� d _xe_ <sup>_′∗_</sup> _k_ <sup>_′∗_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_e_</sup> _ℓ_ <sup>_′_</sup> _φ_ ˆ _ℓ._ The Appendix shows that the inner products between derivatives of the basis functions appearing in the previous equation are also orthogonal, with values + <sup>_<u>ε</u>_</sup> <sup><u>0</u></sup> <sup><u>0</u></sup> ## 2 ∑ k ∑ ℓ _φ_ ˆ _k_ <sup>_∗_</sup> _w_ 1( _ξ_ ) = 1 _−|ξ_ _|_ _|ξ_ _| <_ 1 (29) 0 _|ξ_ _| ≥_ 1 _ℓ_ and <u>48</u> _<u>−</u>_ <u>9</u> _<u>c</u>_ _<u>−</u>_ <u>36</u> _<u>c</u>_ <sup>2</sup> _<u>−</u>_ <u>3</u> _<u>c</u>_ <sup>3</sup> _δk,ℓ_ _≡_ _k_ <sup>2</sup> _LD_ <sup>ˆ</sup> _kδk,ℓ,_ (36) 5(2 + _c_ ) <sup>2</sup> _<u>L</u>_ <sup>_′_</sup> _ℓ_ <sup>_⟩_</sup> <sup>=</sup> ∆ _x_ <sup>2</sup> _w_ 3( _ξ_ ) = - _−_ 3 <sup><u>1</u></sup> <sup>_|ξ_</sup> <sup>_|_</sup> <sup>+</sup> <sup><u>1</u></sup> 2 <sup>_|ξ_</sup> <sup>_|_</sup> <sup>2</sup> <sup>_−_</sup> <sup><u>1</u></sup> 6 <sup>_|ξ_</sup> <sup>_|_</sup> <sup>3</sup> _|ξ_ _| <_ 1 (30) 0 _|ξ_ _| ≥_ 1 _⟨e_ <sup>_′_</sup> _k_ <sup>_′_</sup> _k_ <sup>_|e′_</sup> _ℓ_ The weight functions are only nonzero on _|ξ_ _| <_ 1, and so the evaluation of _fC_ ( _x_ ) can be done in _O_ (1) time for arbitrarily large _N_ . We differentiate Eq. (28) with respect to _x_ —evaluated at _Xn_ —and require continuity to obtain <sup>36</sup> where _c_ = cos( _k_ ∆ _x_ ). In the limit of small _k_ ∆ _x_, the correction _D_ <sup>ˆ</sup> _k_ goes to one, and this reduces to the sinusoidal result: _⟨e_ <sup>_′_</sup> _k_ <sup>_|e′_</sup> _ℓ_ <sup>_⟩≈_</sup> <sup>_k_</sup> <sup>2</sup> <sup>_Lδk,ℓ_</sup> <sup>.</sup> <sup>The</sup> <sup>Euler-Lagrange</sup> <sup>equations</sup> <sup>for</sup> <sup>_xm_</sup> <sup>and</sup> ## wmmx ¨ m = −qm ∑ _k_ _φ_ ˆ _ke_ <sup>_′_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> (37) <sup>_′_</sup> _k_ <sup>_|e′_</sup> _ℓ_ _⟨e_ <sup>_′_</sup> _k_ <sup>_|e′_</sup> _ℓ_ <sup>_⟩≈_</sup> <sup>_k_</sup> <sup>2</sup> <sup>_Lδk,ℓ_</sup> <sup>.</sup> <sup>The</sup> <sup>Euler-Lagrange</sup> <sup>equations</sup> <sup>for</sup> <sup>_xm_</sup> <sup>and</sup> _φ_ ˆ _k_ are therefore _φ_ ˆ _ke_ <sup>_′_</sup> _k_ _<u>g</u>_ <sup>_′′_</sup> <u>(</u> _<u>Xn−</u>_ <u>1)</u> _<u>Xn−</u>_ <u>1)</u> + <sup><u>2</u></sup> <sup>_<u>g′′</u>_</sup> <sup><u>(</u></sup> <sup>_<u>Xn</u>_</sup> <sup><u>)</u></sup> 6 3 <sup><u>(</u></sup> <sup>_<u>Xn</u>_</sup> <sup><u>)</u></sup> + <sup>_<u>g′′</u>_</sup> <sup><u>(</u></sup> <sup>_<u>Xn</u>_</sup> <sup><u>+1)</u></sup> 3 6 = 6 _._ (38) _<u>ρ</u>_ ˆ _<u>k</u>_ _wmek_ ( _xm_ ) _≡_ _ε_ 0 _k_ <sup>2</sup> _D_ <sup>ˆ</sup> _k_ _<u>q</u>_ _φ_ ˆ _k_ = ## ε 0 k 2 LD ˆ k ∑ m _<u>g</u>_ <u>(</u> _<u>Xn−</u>_ <u>1)</u> _<u>−</u>_ <u>2</u> _<u>g</u>_ <u>(</u> _<u>Xn</u>_ <u>)+</u> _<u>g</u>_ <u>(</u> _<u>Xn</u>_ <u>+1)</u> _._ ∆ _x_ <sup>2</sup> (31) Using this relation, the values of the second derivatives _g_ <sup>_′′_</sup> ( _Xn_ ) can be found by solving the tridiagonal linear problem Eq. (31) with a source term that only depends on the function values _g_ ( _Xn_ ). We consider a cubic spline approximation to a sinusoidal mode with nodal values _ek_ ( _Xn_ ) = exp( _ikXn_ ), where _k_ is the wavenumber of a grid mode (i.e. _k_ = 2 _πn/L_ with _−N/_ 2 + 1 _<_ _n ≤_ _N/_ 2). We make the ansatz that the values of the second derivative will also vary sinusoidally with the same _k_ : that is _e_ <sup>_′′_</sup> ( _Xn_ ) = _C_ <sup>ˆ</sup> _k_ exp( _ikXn_ ). It can then be shown that A naive evaluation of Eq. (38) would require calculating _ek_ ( _xm_ ) for every _k_ and every _m_, and thus would scale as _O_ ( _MN_ ). However, we can exploit the properties of the cubic interpolating splines to evaluate the sums with _O_ ( _M_ ) work. A. Charge deposition The charge density, _ρ_ ˆ _k_, is defined in Eq. (38) and can be efficiently computed as <sup>_<u>q</u>_</sup> ## L ∑ m _m_ _ρ_ ˆ _k_ = <sup>_<u>q</u>_</sup> _L_ _wmek_ ( _xm_ ) (39) ## ∑ m ∑ n - <u>3</u> 2 + cos( _k_ ∆ _x_ ) <sup>_,_</sup> (32) = <sup>_<u>q</u>_</sup> _C_ ˆ _k_ = _−k_ <sup>2</sup> sinc <sup>2</sup> - _<u>k</u>_ <u>∆</u> _<u>x</u>_ 2 ## L ∑ m _n_ - _wm_ _e_ <sup>_ikXn_</sup> _w_ 1( _ξn,m_ )+ _C_ <sup>ˆ</sup> _ke_ <sup>_ikXn_</sup> ∆ _x_ <sup>2</sup> _w_ 3( _ξn,m_ ) (40) with sinc( _x_ ) = sin( _x_ ) _/x_ . Thus, for the special case of sinusoidal modes, the second-derivative values can be calculated without requiring a tridiagonal solve. Equation (32) reduces to the expected continuum result in the _k_ ∆ _x →_ 0 limit. Because both _ek_ ( _Xn_ ) and _e_ <sup>_′′_</sup> ( _Xn_ ) have an exp( _ikXn_ ) dependence, it can be shown that ## ρn = q ∑ _m_ ## ρn = q ∑ = <sup><u>1</u></sup> - _e_ <sup>_ikXn_</sup> _ρn_ + _C_ <sup>ˆ</sup> _ke_ <sup>_ikXn_</sup> _ρn_ <sup>_′′_</sup> - _e_ <sup>_ikXn_</sup> _ρn_ + _C_ <sup>ˆ</sup> _ke_ <sup>_ikXn_</sup> _ρn_ <sup>_′′_</sup> ## N ∑ n (41) _n_ where we have defined _two_ charge density fields _<u>wm</u>_ ∆ _x_ <sup>_w_</sup> <sup>1(</sup> <sup>_ξn,m_</sup> <sup>)</sup> (42) _wm_ ∆ _xw_ 3( _ξn,m_ ) _,_ (43) _ρn_ <sup>_′′_</sup> _⟨ek|eℓ⟩_ = - _L_ 0 <sup>d</sup> <sup>_xe_</sup> _k_ <sup>_∗_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_eℓ_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) ∝</sup> <sup>_δk,ℓ_</sup> (33) ## n ′′ = q ∑ _m_ and where _ξn,m_ = ( _Xn −_ _xm_ ) _/_ ∆ _x_ . The computations of _ρn_ and _ρn_ <sup>_′′_</sup> <sup>have PIC scaling and</sup> <sup>_ρ_</sup> <sup>ˆ</sup> <sup>_k_</sup> <sup>can be efficiently computed using</sup> FFTs. Crucially, the macroparticles are only ever involved in the local deposition to the two charge density fields, and the field solve has the same scaling in number of cells as MC-PIC and EC-PIC. B. Field solve The charge density weights _ρ_ ˆ _k_ have already been computed in the previous step. This means that potential weights _φ_ <sup>ˆ</sup> _k_ can be directly computed in Eq. (38). C. Field interpolation The field interpolation can be rewritten as _wmmx_ ¨ _m_ = <sup>_<u>qm</u>_</sup> ∆ _x_ <sup>_′_</sup> 1 <sup>(</sup> <sup>_ξn,m_</sup> <sup>)+</sup> <sup>_C_</sup> <sup>ˆ</sup> <sup>_keikXn_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>2</sup> <sup>_w_</sup> 3 <sup>_′_</sup> <sup>(</sup> <sup>_ξn,m_</sup> <sup>)</sup> ## ∆ x ∑ k _φ_ ˆ _k_ - _e_ <sup>_ikXn_</sup> _w_ <sup>_′_</sup> 1 <sup>(</sup> <sup>_ξn,m_</sup> <sup>)+</sup> <sup>_C_</sup> <sup>ˆ</sup> <sup>_keikXn_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>2</sup> <sup>_w_</sup> 3 <sup>_′_</sup> <sup>(</sup> <sup>_ξn,m_</sup> <sup>)</sup> _k_ _N_ ## ∑ _n_ =0 (44) instability growth rate additionally depends on the normalized drift velocity of the plasma, _v_ ¯ _d_ _≡_ _vd/ωp_ ∆ _x_ . In general, the growth rate may also depend on the number of particles per cell, and on the timestep used. However, analytical descriptions of grid instability typically assume continuous particle distributions and time evolution. Thus, in our numerical investigations of grid heating, we use 2 <sup>14</sup> = 16 _,_ 384 particles per cell to ensure agreement with analytical descriptions. <sup>2,22</sup> Additionally, the use of a large number of particles per cell reduces the noise-driven heating— sometimes called stochastic heating—of the plasma, enabling measurements of small instability growth rates. <sup>21</sup> The energy-conserving algorithms presented in this paper are only approximately energy-conserving for a finite timestep. Thus, to ensure that the results would be applicable to real world simulations, we chose to simulate with _ωp_ ∆ _t_ = 0 _._ 5. We have verified that the measured growth rates do not change substantially if a shorter timestep is used. To compare the grid-instability behavior of the previously described methods (MC-PIC, EC-PIC1, EC-PIC2, CS-PIC), we conducted a series of periodic-boundary simulations with one spatial dimension and one velocity dimension. The simulations were run using `ParticleInCell.jl` <sup>41</sup>, a PIC code implemented in the Julia <sup>42</sup> language and designed for testing novel PIC algorithms. All plots are produced using the `Makie.jl` package. <sup>43</sup> Each simulation consisted of 64 cells initialized with a drifting thermal electron plasma neutralized by a stationary background density representing the ions. The simulations used a quiet start to eliminate particle noise, following the procedure outlined in Birdsall and Langdon <sup>2</sup>, Chapter 16, and briefly described here. In each cell, particle velocities were assigned such that each particle represented an equal area under the Maxwellian distribution. The particle positions within each cell were generated using a bit reversed sequence, which produces a deterministic scramble of the previously ordered velocities. Thus, for a simulation with _M_ ppc particles per cell, the phase space will consist of _M_ ppc beams, each with exactly one particle per cell. With this initial particle distribution, the initial electric field is zero and all of the energy is in the particle thermal and driftkinetic energies. Additionally, the electric field should remain zero even after the particles begin to evolve. <sup>44</sup> However, eventually floating-point truncation noise will cause the beams to interact, and the electric field will become nonzero. To speed this process and ensure that the most unstable mode will be seeded with a perturbation, we perturb the particle velocities at all wavenumbers with an amplitude of 10 <sup>_−_</sup> <sup>8</sup> _ωp_ ∆ _x_ and with a random phase. Since the initial condition consists of many beams, care must be taken to ensure that a multi-beam instability does not obscure the grid-instability growth. <sup>44</sup> To guard against this possibility, we use many particles per cell, and monitor for an energy exchange from the particles to the fields, which indicates a multi-beam instability. At each timestep, the total electron thermal energy was cal = <sup>_<u>qm</u>_</sup> ∆ _x_ _N_ ## ∑ _n_ =0 <sup>_′_</sup> 1 <sup>(</sup> <sup>_ξn,m_</sup> <sup>)+</sup> <sup>_φ_</sup> _n_ <sup>_′′_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>2</sup> <sup>_w_</sup> 3 <sup>_′_</sup> - _φnw_ <sup>_′_</sup> 3 <sup>_′_</sup> <sup>(</sup> <sup>_ξn,m_</sup> <sup>)</sup> - _,_ (45) where the _two_ potential fields are calculated as _φn_ = ∑ _k_ ## φn ′′ = ∑ _k_ _φ_ ˆ _ke_ <sup>_ikXn_</sup> _,_ (46) _C_ ˆ _k_ ˆ _φke_ <sup>_ikXn_</sup> _._ (47) Once again, the field interpolation is local, and so the CS-PIC algorithm can be implemented with PIC scaling. Additionally, the use of FFTs allows for a direct computation of _φn_ <sup>_′′_</sup> field without requiring an additional linear solve, as is usually required for cubic interpolation splines. Moreover, since the potential, as a cubic-interpolating spline, has a continuous second derivative, the interpolated electric field is guaranteed to have a continuous first derivative. D. Particle push The particle push is unaffected by the choice of discretization for the potential. We once again use the leapfrog integrator described in Section II D for simplicity and consistency. We note in passing that the potential discretization in Eq. (34) has fourth-order error, and so we expect that CS-PIC will have fourth-order error in _k_ ∆ _x_ . VI. SIMULATION RESULTS The grid instability occurs when the Debye length of a plasma is underresolved. We parameterize this using a normalized thermal velocity, _v_ ¯ _t_ _≡_ _vt_ _/ωp_ ∆ _x_ = _λD/_ ∆ _x_ . The grid 10 <sup>2</sup> 10 <sup>−</sup> <sup>5</sup> 10 <sup>−</sup> <sup>10</sup> - 10 <sup>−</sup> <sup>10</sup> - 10 <sup>−</sup> <sup>5</sup> 10 <sup>2</sup> 10 <sup>−</sup> <sup>5</sup> 10 <sup>−</sup> <sup>10</sup> - 10 <sup>−</sup> <sup>10</sup> - 10 <sup>−</sup> <sup>5</sup> 0 50 100 _t_ ? _p_ /2? FIG. 3. Example growth rate measurements for an unstable (ECPIC1, _v_ ¯ _t_ = 0 _._ 01, _v_ ¯ _d_ = 0 _._ 05, top panel) and a stable (EC-PIC1, _v_ ¯ _t_ = 0 _._ 1, _v_ ¯ _d_ = 0 _._ 05, bottom panel) simulation. The normalized change in thermal energy, _E_, is shown as a function of time on a linear scale for _|E | <_ 10 <sup>_−_</sup> <sup>10</sup> and a symmetric log scale otherwise. The portion of the time series up to and including the last negative value is discarded for the fitting procedure. Additionally, the portion of the time series that exceeds some cutoff—1% here—is discarded to isolate the region of true exponential growth in _E_ . A line is fit to this region of the time series (shown in red), and the grid heating growth rate is half the slope of this fit. If there is no remaining portion of the time series, as in the bottom panel, then the simulation is assumed to be stable. culated as We considered the stability of six algorithms over the parameter space _v_ ¯ _t_ _∈_ [0 _,_ 0 _._ 35] and _v_ ¯ _d_ _∈_ [0 _,_ 0 _._ 45]. Table I gives a summary of the properties of each algorithm. For each algorithm, the ( _v_ ¯ _d,_ ¯ _vt_ ) parameter space was scanned with results are shown in Fig. 4. Due to the method used to extract the growth rates, the plots show some noise, and thus some marginally unstable simulations on the periphery of the unstable region may be missed. To stabilize a simulation, the cell size must be decreased, which moves a simulation up and to the right on the stability plot. If the cell size is halved, the point will double in distance from the origin. Thus, decreasing the cell size will eventually push a simulation into the stable region. For the MC-PIC algorithm, it is apparent that the simulations are always unstable at low thermal velocities, regardless of the drift velocity. In agreement with Birdsall and Langdon <sup>2</sup>, we find stability for _v_ ¯ _t_ _≈_ 0 _._ 05 at large _v_ ¯ _d_ ≳ 0 _._ 3. Of particular interest is the vertical axis—corresponding to an underresolved, stationary plasma—and so we show a more detailed line out of this region in Fig. 5. In this regime, the grid instability saturates at a much lower _E_ in the transition region. Thus, we compute the fits for this figure in the region of the time series with a cutoff of _E_ _<_ 10 <sup>_−_</sup> <sup>5</sup> . These results indicate that, for the stationary plasma, grid instability is stabilized at about _v_ ¯ _t_ _≈_ 0 _._ 15. This is lower by a factor of two than the threshold reported by Birdsall and Maron <sup>22</sup> of _v_ ¯ _t_ _≈_ 0 _._ 3. This means that, for stationary plasma, it is possible to run with a cell size twice as large as reported by Birdsall and Maron <sup>22</sup> without experiencing grid instability. Returning to Fig. 4, we note that all of the energyconserving algorithms display a broadly similar trend characterized by instability when _vt_ ≲ _vd_ and _vd_ ≲ _v_ critical, where _v_ critical is an algorithm-dependent cutoff. Red ticks below each plot indicate our analytical estimates of _v_ critical for EC-PIC algorithms, which we derive in the next section. We observe that EC-PIC2 has a smaller region of instability and lower instability growth rates compared to EC-PIC1, in agreement with previous work. <sup>5</sup> Additionally, we find that the choice of field solve stencil can significantly impact the size of the instability region; however, using a more accurate field solve does not necessarily suppress the grid instability. An explanation for this behavior will be provided in the next section. The CS-PIC algorithm displays a region of instability and instability growth rates on par with EC-PIC1. We surmise that this results from cubic-spline modes that poorly replicate the intended Fourier modes, resulting in the same subgrid mode coupling that drives all grid instabilities. Thus, it is not sufficient to ensure smoothness of the interpolated electric field. Any algorithm that hopes to remove grid instability must eliminate the aliasing of subgrid modes. A crucial feature of all the energy-conserving algorithms is that they are always stable when the plasma is not drifting (i.e. _vd_ = 0). This can be understood physically by noting that the cold-beam instability acts by transforming the bulk drift energy of the plasma into thermal energy—if there is no drift velocity then there is no energy reservoir to drive the instability. This property makes energy-conserving algorithms an _E_ th( _t_ ) = ∑ _m_ <u>1</u> 2 <sup>_wmm_</sup> <sup>(</sup> <sup>_vm_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_v_</sup> <sup>¯(</sup> <sup>_t_</sup> <sup>))2</sup> (48) where _v_ ¯( _t_ ) is the average electron velocity of all electrons in the simulation at time _t_ . The normalized change in thermal energy at time _t_ is then given by _E_ ( _t_ ) _≡_ ( _E_ th( _t_ ) _−E_ th(0)) _/E_ th(0). If _E_ becomes negative with a magnitude above the noise floor during a simulation, this indicates that a multi-beam instability has occurred. Also, at early times, _E_ can become negative due to floating-point truncation noise. We therefore discard the portion of the time series before and including the last negative value of _E_ . For each simulation, a line was fit to ln( _E_ ) for the period before _E_ exceeded 10 <sup>_−_</sup> <sup>2</sup> . The cutoff ensures that only the period of active exponential growth is fit. Any fit with a correlation coefficient ( _r_ <sup>2</sup> ) of less than 0.9 was assumed to have zero slope. The instability growth rate is half of the measured thermal energy growth rate. Figure 3 shows this fitting process for examples of stable and unstable simulations. TABLE I. Properties of tested PIC algorithms Algorithm Conservation property Deposition Interpolation Poisson _E_ <sup>_′_</sup> ( _x_ ) continuous Field solve accuracy <u>width</u> <u>width</u> <u>stencil width</u> MC-PIC1 Momentum 2∆ _x_ 2∆ _x_ 3 No _O_ (∆ _x_ <sup><u>2</u></sup> ) EC-PIC1 Energy (when ∆ _t →_ 0) 2∆ _x_ 1∆ _x_ (from edges) 3 No _O_ (∆ _x_ <sup>2</sup> ) EC-PIC2-Lagrange Energy (when ∆ _t →_ 0) 3∆ _x_ 2∆ _x_ (from edges) 5 No _O_ (∆ _x_ <sup>2</sup> ) EC-PIC2-Standard Energy (when ∆ _t →_ 0) 3∆ _x_ 2∆ _x_ (from edges) 3 No _O_ (∆ _x_ <sup>2</sup> ) EC-PIC2-Fourth Energy (when ∆ _t →_ 0) 3∆ _x_ 2∆ _x_ (from edges) 5 No _O_ (∆ _x_ <sup>4</sup> ) CS-PIC Energy (when ∆ _t →_ 0) 2∆ _x_ 2∆ _x_ - Yes _O_ (∆ _x_ <sup>4</sup> ) EC-PIC1 0.1 0.2 0.3 0.4 EC-PIC2-Lagrange 0.1 0.2 0.3 0.4 _v_ ̄ _d_ EC-PIC2-Standard 0.1 0.2 0.3 0.4 CS-PIC 0.1 0.2 0.3 0.4 _v_ ̄ _d_ MC-PIC1 0.1 0.2 0.3 0.4 EC-PIC2-Fourth 0.1 0.2 0.3 0.4 _v_ ̄ _d_ 0.4 0.3 0.2 0.1 0.0 _v_ ̄ _t_ _v_ ̄ _t_ 0.3 0.2 0.1 0.3 0.2 0.1 FIG. 4. Grid-instability growth rate as a function of the normalized drift velocity, _v_ ¯ _d_, and the normalized thermal velocity, _v_ ¯ _t_ = _λD/_ ∆ _x_, for six different PIC algorithms. On the basis of the results in Fig. 5, we estimate that our method is sensitive to growth rates down to _γ/ωp_ = 10 <sup>_−_</sup> <sup>2</sup> . Areas of complete black indicate places where no growth rate was extracted. The vertical white dashed lines on the EC-PIC1 and EC-PIC2 plots indicate the predicted stability thresholds of the analytical cold-beam instability calculations presented in Section VII. excellent choice for a wide variety of simulations of stationary plasmas. VII. COLD-BEAM STABILITY LIMITS FOR EC-PIC ALGORITHMS It can be shown that the PIC dispersion relation is 0 = _D_ ( _k,_ _ω_ ) = 1 _−_ _ωp_ <sup>2</sup> _p_ occurs because the charge deposition and field interpolation couple the modes that are represented on the grid ( _p_ = 0) with subgrid modes of the particle density ( _p̸_ = 0). The _K_ <sup>2</sup> ( _k_ ) term are the eigenvalues of the Poisson solve, and the _κ_ ( _kp_ ) terms are _−i_ times the Fourier representation of the gradient operator that transforms the potential to the electric field. Note that the eigenvalues of the Poisson solve only depend on _k_ because the Poisson solve happens on the grid and so it is not influenced by the subgrid modes. For the MC-PIC algorithm, the same is true of the finite-difference derivative of the potential, and so we have _κ_ ( _kp_ ) = _κ_ ( _k_ ). In contrast, the energy-conserving algorithms derived in this paper compute the derivative of the potential exactly at all _<u>p</u>_ ## K 2 ( k ) ∑ p _p_ _<u>kpκ</u>_ <u>(</u> _<u>kp</u>_ <u>)</u> _<u>S</u>_ <sup>2</sup> <u>(</u> _<u>kp</u>_ <u>)</u> ( _ω −_ _kpv_ 0) <sup>2</sup> <sup>_,_</sup> (49) where _−π/_ ∆ _x < k ≤_ _π/_ ∆ _x_ and where _kp_ = _k_ _−_ 2 _π p/_ ∆ _x_ are the aliasing modes for a given _k_ (with integer _p_ ). <sup>2,5</sup> The sum over 0.1 0.01 0.001 0.0 0.05 0.1 0.15 0.2 _v_ ̄ _t_ = ? _D_ /Δ _x_ FIG. 5. Normalized grid-instability growth rates for MC-PIC1 simulating stationary (¯ _vd_ = 0) plasmas as a function of normalized thermal velocity, _v_ ¯ _t_ = _λD/_ ∆ _x_ . The line ends when the growth rate extraction procedure fails to find a nonzero growth rate because the change in thermal energy, _E_, is negative for values with magnitudes larger than the fitting cutoff: 10 <sup>_−_</sup> <sup>5</sup> . We estimate that the grid instability stabilizes at about _v_ ¯ _t_ _≈_ 0 _._ 15, around a factor of two lower than reported by Birdsall and Maron <sup>22</sup> . wavenumbers by analytically differentiating the shape function. Thus we have _κ_ ( _kp_ ) = _kp_, which acts as a derivative on one of the factors of _S_ . Then, for the _m_ th order EC-PIC algorithm, the dispersion relation is _D_ ( _k,_ _ω_ ) = 1 _−_ _Kω_ <sup>2</sup> ( _<u>p</u>_ <sup>2</sup> _k_ ) <sup>_×_</sup> way to do this—explored thoroughly by Barnes and Chacón <sup>5</sup> for energy-conserving PIC algorithms and by Werner, Adams, and Cary <sup>21</sup> for MC-PIC—is to scan over the range of possible _k_ ¯ values, and numerically search for values of _ω_ that satisfy _D_ ( _k_ <sup>¯</sup> _/_ ∆ _x,_ _ω_ ) = 0. Although thorough, this approach does not give much insight into the cause of the numerical instability. Instead, we make some reasonable approximations for where the dispersion relation is likely to retain complex roots as _v_ ¯ _d_ is increased. The results of these approximate calculations show excellent agreement with the simulation results presented in the previous section, while also offering some physical insight into the mechanism of instability. We begin by assuming that the instability will occur at _k_ ¯ = _±π_ . This is justified by recalling that grid instabilities result from an unphysical coupling between the grid and subgrid modes of the particle density due to aliasing during the interpolations. This coupling occurs because the wavenumber representation of _S_ expands beyond the range of grid wavenumbers and so a good choice of _S_ will fall off sharply beyond the Nyquist wavenumber (of course, an ideal interpolation would be zero for _|k_ <sup>¯</sup> _p| > π_, but such an interpolation would not be local). Thus, the coupling will be largest for modes just larger than the Nyquist wavenumber, and these subgrid modes will couple most strongly to grid modes just inside the Brillouin zone. For this reason, the coupling is typically most detrimental at the Nyquist mode, _k_ <sup>¯</sup> = _π_ (corresponding to _k_ <sup>¯</sup> _p_ = _π −_ 2 _π p_ = _πq_ where _q_ = 1 _−_ 2 _p_ is an odd integer). Substituting this into the dispersion relation, we find - <u>2</u> _π_ _D_ ( _π/_ ∆ _x,_ _ω_ ) = 1 _−_ �2 _m_ +2 <u>1</u> _K_ <u>¯</u> <sup>2</sup> ( _π_ ) <sup>_×_</sup> ## ∑ _q_ odd <u>1</u> (53) _q_ <sup>2</sup> <sup>_m_</sup> ( _ω_ ¯ _/π −_ _qv_ ¯ _d_ ) <sup>2</sup> ( _ω −kk_ <sup>2</sup> _<u>ppvd</u>_ ) <sup>2</sup> <sup>sinc(2</sup> <sup>_m_</sup> <sup>+2)</sup> _k_ <sup>2</sup> _<u>p</u>_ - _<u>kp</u>_ <u>∆</u> _<u>x</u>_ 2 _._ (50) ## ∑ _p_ ## ∑ This can be rewritten in terms of dimensionless quantities as �(2 _m_ +2) _Kω_ <sup>2</sup> ( _<u>p</u>_ <sup>2</sup> _k_ ) <sup>_×_</sup> _D_ ( _k,_ _ω_ ) = 1 _−_ - <u>2</u> ∆ _x_ (51) where we have used the fact that the sine term will become one, regardless of the value of _p_, because it is squared. The modes of the system for _k_ <sup>¯</sup> = _π_ are the solutions of _D_ ( _π/_ ∆ _x,_ _ω_ ) = 0. These solutions occur when sum of the terms (each containing a pole of order two with a negative coefficient) is equal to one. Between every pole, there will be two zeros, and for a sufficiently large drift velocity, the distance between the poles in _ω_ ¯ is much larger than the width of the poles. In this case, each pole will be associated with two real zeros of the dispersion relation, and all of the zeros will be real. To quantify the width of a pole, we consider the difference in _ω_ ¯ between the two zeros of an isolated pole (i.e. Eq. (53) with only a single term from the sum). The zeros _ω_ ¯ _q_ of the isolated pole associated with term _q_ are - _<u>kp</u>_ <u>∆</u> _<u>x</u>_ 2 ## ∑ _p_ <u>1</u> _k_ <sup>2</sup> _p_ <sup>_m_</sup> <sup>(</sup> <sup>_ω −_</sup> <sup>_kpvd_</sup> <sup>)2</sup> <sup>sin(2</sup> <sup>_m_</sup> <sup>+2)</sup> = 1 _−_ <sup><u>22</u></sup> <sup>_m_</sup> <sup>+2</sup> _K_ ¯ <sup>2</sup> ( _k_ <u>¯)</u> <sup>_×_</sup> _ω_ ¯ _q_ = _qπ_ ¯ _vd ±_ 2 - <u>2</u> _π_ - _<u>k</u>_ ¯ _<u>p</u>_ 2 _,_ (52) ## ∑ _p_ <u>1</u> _k_ <u>¯2</u> _pm_ <sup>(</sup> <sup>_ω_</sup> <sup>¯</sup> <sup>_−_</sup> <sup>_k_</sup> <sup><u>¯</u></sup> <sup>_pv_</sup> <sup>¯</sup> <sup>_d_</sup> <sup>)2</sup> <sup>sin(2</sup> <sup>_m_</sup> <sup>+2)</sup> - _m_ <u>1</u> <u>�</u> _K_ <u>¯</u> 2( _π_ ) <u>1</u> (54) _q_ <sup>_m_</sup> where _ω_ ¯ = _ω/ωp_, _k_ <sup>¯</sup> = _k_ ∆ _x_, and _K_ <sup>¯</sup> <sup>2</sup> ( _k_ <sup>¯</sup> ) = _K_ <sup>2</sup> ( _k_ <sup>¯</sup> _/_ ∆ _x_ )∆ _x_ <sup>2</sup> . The modes of the (numerical) plasma are the zeros of the dispersion relation. The goal of this section is to compute the largest value of _v_ ¯ _d_ for which the frequency of at least one mode has a positive imaginary component when _v_ ¯ _t_ = 0. One so that the width of the pole is ∆ _ω_ ¯ _q_ = 4 - <u>2</u> - _m_ <u>1</u> _π_ <u>�</u> _K_ <u>¯</u> 2( _π_ ) <u>1</u> _|q|_ <sup>_m_</sup> <sup>_._</sup> (55) <u>Field Solve</u> <u>Eigenvalues (</u> _<u>K</u>_ <sup>¯</sup> <sup>2</sup> <u>(</u> _<u>k</u>_ <sup>¯</sup> <u>)</u> <u>)</u> _<u>v</u>_ <u>critical</u> Three-point finite-difference _k_ ¯ <sup>2</sup> sinc <sup>2 �</sup> 2 <sup>_<u>k</u>_</sup> <sup><u>¯</u></sup> <u>�</u> ~~<u>�</u>~~ 301 <sup>_≈_</sup> <sup>0</sup> <sup>_._</sup> <sup>183</sup> ## ∑ _q_ odd - <u>7</u> _<u>−</u>_ <u>cos</u> _<u>k</u>_ <sup><u>¯</u></sup> Five-point finite-difference _k_ ¯ <sup>2</sup> sinc <sup>2 �</sup> 2 <sup>_<u>k</u>_</sup> <sup><u>¯</u></sup> 6 Lagrangian-derived field solve _k_ <sup>¯2</sup> sinc <sup>2 �</sup> 2 <sup>_<u>k</u>_</sup> <sup><u>¯</u></sup> - <u>2+cos 3</u> _<u>k</u>_ <sup><u>¯</u></sup> ~~�~~ 401 <sup>_≈_</sup> <sup>0</sup> <sup>_._</sup> <sup>158</sup> ~~�~~ 101 <sup>_≈_</sup> <sup>0</sup> <sup>_._</sup> <sup>316</sup> 0 _<u>D</u>_ (?/Δ _<u>x</u>_, ?) _v_ ̄ _d_ / _v_ ̄ critical = 0.9 _v_ ̄ _d_ / _v_ ̄ critical = 1.0 _v_ ̄ _d_ / _v_ ̄ critical = 1.1 −5 −3 −1 1 3 5 ?̄/? _v_ ̄ _d_ TABLE II. Critical drift velocities for the EC-PIC2 algorithm with a variety of Poisson solves. For _m_ = 1, we have <u>1</u> (60) _q_ <sup>4</sup> <sup>=</sup> <sup>_<u>π</u>_</sup> 48 <sup>4</sup> <sup>_,_</sup> and so FIG. 6. Dispersion relation for cold-beam (¯ _vt_ = 0) Nyquist mode ( _k_ <sup>¯</sup> = _π_ ) of EC-PIC1 at three values of _v_ ¯ _d/v_ ¯critical. The resonant frequencies of the Nyquist modes are the zeros the dispersion relation, which occur between the poles. When _v_ ¯ _d_ = _v_ ¯critical, the maximum of _D_ ( _±π/_ ∆ _x,_ _ω_ ¯ ) is equal to zero, and so all of the Nyquist mode frequencies are real. As _v_ ¯ _d_ decreases, the pole spacing (2 _π_ ¯ _vd_ ) decreases while the width of each pole remains constant. Eventually, this causes neighboring poles to begin to overlap significantly. When this happens, a zero of the dispersion relation can become suddenly complex as the overlap between two adjacent poles exceeds one. The poles associated with _q_ = _±_ 1 are the widest, and so the region between these poles will be the first (as _v_ ¯ _d_ is decreased) to exceed one. This is shown in Fig. 6, where the first transition from real to complex roots occurs at _ω_ ¯ = 0 when _v_ ¯ _d_ = _v_ ¯critical. We can estimate the _v_ ¯critical where this occurs by calculating where the width of the _q_ = _±_ 1 poles are equal to the pole spacing. This yields _._ (64) _D_ ( _π,_ 0) = 1 _−_ <sup><u>1</u></sup> <u>4</u> 12 _K_ <u>¯</u> <sup>2</sup> ( _π_ ) _D_ ( _π,_ 0) = 1 _−_ <sup><u>1</u></sup> <u>1</u> _v_ ¯ <sup>2</sup> _d_ _._ (61) Therefore, the EC-PIC1 algorithm will be stable for _v_ ¯ _d_ _>_ = _v_ ¯critical = - <u>1</u> 12 <sup>_≈_</sup> <sup>0</sup> <sup>_._</sup> <sup>288</sup> <sup>_._</sup> (62) This differs from the stability threshold reported in Birdsall, Maron, and Smith <sup>28</sup> which claims _v_ ¯critical _≈_ 1 _/π_, although the numerical values are remarkable similar. <sup>2,22</sup> Additionally, this critical drift velocity agrees very well with the simulation results presented in Fig. 4. The same analysis can be repeated for EC-PIC2 (i.e. _m_ = 2) which yields _D_ ( _π,_ 0) = 1 _−_ <sup><u>26</u></sup> _π_ <sup>6</sup> <u>1</u> _K_ <u>¯</u> <sup>2</sup> ( _π_ ) <u>1</u> _v_ ¯ <sup>2</sup> _d_ <u>1</u> _v_ ¯ <sup>2</sup> _d_ <u>1</u> _v_ ¯ <sup>2</sup> _d_ _<u>π</u>_ <sup>6</sup> (63) 480 <u>1</u> _v_ ¯ <sup>2</sup> _d_ = 1 _−_ <sup><u>2</u></sup> <u>1</u> 15 _K_ <u>¯</u> <sup>2</sup> ( _π_ ) <u>1</u> _v_ ¯critical _≈_ <u>�</u> _K_ <u>¯</u> 2( _π_ ) - <u>2</u> - _m_ +1 (56) _π_ For EC-PIC1, we have _m_ = 1 and the three-point Poisson solve has eigenvalues given by _K_ ¯ <sup>2</sup> ( _k_ ¯) = ¯ _k_ <sup>2</sup> sinc - _<u>k</u>_ ¯ 2 _,_ (57) so that �2 = _π_ <sup><u>22</u></sup> <sup>_≈_</sup> <sup>0</sup> <sup>_._</sup> <sup>203</sup> <sup>_._</sup> (58) _v_ ¯critical _≈_ _~~√~~_ <sup><u>1</u></sup> 4 - <u>2</u> _π_ However, we can do much better than this order of magnitude estimate by noting that the poles are symmetric about _ω_ ¯ = 0, and so the first pair of zeros to develop complex components will both be _ω_ ¯ = 0 just before they become complex. Substituting _ω_ ¯ = 0 into the dispersion relation yields <u>1</u> _v_ ¯ <sup>2</sup> _d_ ## 2 d q ∑ odd �2 _m_ +2 <u>1</u> _K_ <u>¯</u> <sup>2</sup> ( _π_ ) _q_ odd It is apparent that different field solves will have different eigenvalues and different critical velocities. For the three field solves considered in the previous section, the Nyquist eigenvalue and corresponding critical velocity are shown in Table II. Once again, these analytical predictions agree well with the growth rates computed from simulations in the previous section (see Fig. 4). VIII. CONCLUDING REMARKS If the Debye length of a plasma is not sufficiently well resolved—for example because doing so would be too computationally expensive—then the plasma will heat until the Debye length becomes resolved. This grid instability has the potential to destroy the integrity of a simulation. Although it is relatively easy to detect in these simple simulations when the Debye length is sufficiently underresolved—monitoring plasma temperature is sufficient—it can become extremely _D_ ( _π,_ 0) = 1 _−_ - <u>2</u> _π_ <u>1</u> _q_ <sup>2</sup> <sup>_m_</sup> <sup>+2</sup> <sup>_._</sup> (59) challenging to determine if heating in more complex simulations is due to physical or numerical effects. Requiring resolution of the Debye length means that simulations of many physical problems of interest are infeasible or borderline infeasible due to the scale disparity between the device geometry and the Debye length. <sup>15,45,46</sup> Thus careful characterization of grid instability is necessary to determine the minimum resolution required for stability. For the standard PIC method (MC-PIC), this paper confirms the existence of a stability threshold in Debye length resolution at large drift velocity (instability for _v_ ¯ _t_ = _λD/_ ∆ _x_ ≲ 0 _._ 05 when _v_ ¯ _d_ ≳ 0 _._ 15). <sup>2</sup> Additionally, we report new measurement of grid instability for plasmas at very low drift velocities (i.e. _v_ ¯ _d_ ≲ 0 _._ 01), which indicate that grid instability occurs at a lower threshold— _v_ ¯ _t_ _≈_ 0 _._ 15—than previously reported. There exists a now fifty-year-old algorithm (EC-PIC) that is capable of circumventing some of these restrictions. <sup>4,24</sup> Recent papers have sought to bring more attention to this method and to establish stability limits <sup>5,6,25</sup> We have confirmed the instability thresholds reported by Barnes and Chacón <sup>5</sup>, as well measured instability thresholds for two different field solves in the EC-PIC2 algorithm. All algorithms display a broadly similar instability behavior with instability when _v_ ¯ _t_ ≲ _v_ ¯ _d_ and when _v_ ¯ _d_ ≲ _v_ ¯critical. Additionally, we have derived analytical estimates for _v_ ¯critical for several of EC-PIC variants, all of which show excellent agreement with our simulation results. As a result of this analysis, we have shown that use of wider shape functions decreases _v_ ¯critical (that is, reduces the region of the ( _v_ ¯ _d,_ ¯ _vt_ ) parameter space which is unstable). We have also shown that a more accurate field solve reduces _v_ ¯critical, but the use of an accurate field solve cannot totally eliminate the grid instability. Both of these analytical results are reflected in our simulation data. We emphasize previous work which finds that energy-conserving algorithms are suitable for simulating stationary plasmas. <sup>5,6</sup> Finally, we have presented a new PIC algorithm that uses cubic interpolating splines to represent fields (CS-PIC). The splines approximate a truncated Fourier basis for the potential, which has been shown to be unconditionally stable to grid instability. <sup>25,39</sup> We have shown that the interpolations to and from the cubic-spline basis can be efficiently computed by having two charge density fields, and two electric potential fields and performing two FFTs in the field solve. This novel technique for calculating cubic splines avoids a linear solve to compute the second derivative of the splines at the nodes. The interpolated electric field in CS-PIC has a continuous first derivative. However, we find that the stability behavior of CS-PIC is only a modest improvement over EC-PIC1, which indicates that the use of a smoother electric does not significantly impact the growth of the grid instability. The CS-PIC method can be readily extended to ensure higher-order differentiability of the interpolated electric field, becoming a sort of unequally-spaced FFT as the number of deposition and interpolation fields are increased. In the limit of some extended CS-PIC exactly approximates PIF, it should conserve both energy and momentum; however we have not given detailed thought to the computational cost of this approach compared to PIF. Due to the complexity of CS-PIC relative to EC-PIC, we recommend that readers first evaluate whether EC-PIC1 or EC-PIC2 is sufficient to simulate the physical problem in question. ACKNOWLEDGMENTS This work has been supported by the Air Force Office of Scientific Research, grant number AFOSR FA9550-18-10436, and the National Science Foundation, grant numbers NSF (PHY) 2206647 and NSF (PHY) 2206904. AUTHOR DECLARATIONS The authors have no conflicts to disclose. DATA AVAILABILITY STATEMENT The code used to produce these results is available at `[https://github.com/adamslc/ECPIC-paper-code](https://github.com/adamslc/ECPIC-paper-code)`, and archived at `[https://doi.org/10.5281/](https://doi.org/10.5281/zenodo.15022285)` `[zenodo.15022285](https://doi.org/10.5281/zenodo.15022285)` . The resulting data is archived at `[https://doi.org/10.5281/zenodo.15022224](https://doi.org/10.5281/zenodo.15022224)` . Appendix: Orthogonality of cubic-interpolating-spline approximations to Fourier modes The cubic-interpolating-spline approximation to a Fourier mode can be written as _ek_ ( _x_ ) = = _N_ ## ∑ _n_ =0 _N_ ## ∑ _n_ =0 _e_ <sup>_ikXn_</sup> <sup>�</sup> _e_ <sup>_ikXn_</sup> _g_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> (A.2) _w_ 1( _ξn_ )+ _C_ <sup>ˆ</sup> _k_ ∆ _x_ <sup>2</sup> _w_ 3( _ξn_ )� (A.1) _w_ 1( _ξn_ )+ _C_ <sup>ˆ</sup> _k_ ∆ _x_ <sup>2</sup> _w_ 3( _ξn_ ) where _g_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> where _g_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>cubic</sup> <sup>interpolating</sup> <sup>polynomial</sup> <sup>for</sup> wavenumber _k_ at node _n_ . Recall that each polynomial has been constructed so that it is only nonzero on the interval ( _Xn−_ 1 _,_ _Xn_ +1), and that _g_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>) =</sup> <sup>_g_</sup> <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>_−_</sup> <sup>_n_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>).</sup> <sup>It then follows</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>) =</sup> <sup>_g_</sup> <sup>(</sup> 0 <sup>_k_</sup> <sup>)</sup> ( _Xn−_ 1 _,_ _Xn_ +1), and that _g_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>) =</sup> <sup>_g_</sup> <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>_−_</sup> <sup>_n_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>).</sup> <sup>It then follows</sup> that _n_ +1 ## ∑ _m_ = _n−_ 1 1 _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k−ℓ_</sup> <sup>)</sup> <sup>_Xn_</sup> ## ∑ _r_ = _−_ 1 - _L_ _n_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g_</sup> <sup>(</sup> _m_ <sup>_ℓ_</sup> <sup>)</sup> 0 <sup>d</sup> <sup>_xg_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _m_ <sup>_ℓ_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> (A.3) _⟨ek|eℓ⟩_ = = = = _N_ ## ∑ _n_ =0 _N_ ## ∑ _n_ =0 - 1 ## ∑ _r_ = _−_ 1 - 1 ## ∑ _r_ = _−_ 1 _e_ <sup>_ikXn_</sup> _e_ <sup>_−iℓXm_</sup> _e_ <sup>_iℓr_</sup> <sup>∆</sup> <sup>_x_</sup> - _L_ 0 <sup>d</sup> <sup>_xg_</sup> 0 <sup>(</sup> <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g_</sup> _r_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> (A.4) _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k−ℓ_</sup> <sup>)</sup> <sup>_Xn_</sup> (A.5) - _L_ - _N_ ## ∑ _n_ =0 _e_ <sup>_iℓr_</sup> <sup>∆</sup> <sup>_x_</sup> _e_ <sup>_iℓr_</sup> <sup>∆</sup> <sup>_x_</sup> 0 <sup>d</sup> <sup>_xg_</sup> 0 <sup>(</sup> <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g_</sup> _r_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> 0 <sup>d</sup> <sup>_xg_</sup> 0 <sup>(</sup> <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g_</sup> _r_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> _Nδkℓ._ (A.6) - _L_ Thus, the basis functions _{ek}_ are orthogonal. A similar argument proves the orthogonality of the _{e_ <sup>_′_</sup> _k_ <sup>_}_</sup> <sup>functions. It follows</sup> that the CS-PIC field solve will be exactly diagonal in Fourier space (i.e. nonzero only for _k_ = _ℓ_ ). For the diagonal elements, the inner products can be evaluated exactly. We first note that the integral is identical for _r_ = _±_ 1, and so - �2 _g_ <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> + 2cos( _k_ ∆ _x_ ) �2 <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> + 2cos( _k_ ∆ _x_ ) - d _xg_ <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g_</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g_</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> _⟨ek|ek⟩_ = _N_ �� d _x_ (A.7) Then it can be shown that _⟨ek|ek⟩_ = _L_ <sup><u>272</u></sup> <sup><u>+</u></sup> <sup><u>297</u></sup> <sup>_<u>c</u>_</sup> <sup><u>+</u></sup> <sup><u>60</u></sup> <sup>_<u>c</u>_</sup> <sup>2 +</sup> <sup>_<u>c</u>_</sup> <sup>3</sup> (A.8) 70(2 + _c_ ) <sup>2</sup> where _c_ = cos( _k_ ∆ _x_ ). In the long wavelength limit, _c_ = 1 and the inner product reduces to _⟨ek|ek⟩_ = _L_ as expected. A similar argument yields - �2 _g′_ <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> + 2cos( _k_ ∆ _x_ ) �2 _′_ <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> + 2cos( _k_ ∆ _x_ ) - d _xg′_ <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g′_</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> 15A. N. Ryabinkin, A. O. Serov, A. F. Pal, Y. A. Mankelevich, A. T. Rakhimov, and T. V. Rakhimova, “Structure of DC magnetron sputtering discharge at various gas pressures: A two-dimensional particle-in-cell Monte [Carlo collision study,” Plasma Sources Science and Technology](http://dx.doi.org/ 10.1088/1361-6595/abf31e) 30, 055009 [(2021).](http://dx.doi.org/ 10.1088/1361-6595/abf31e) 16M. Reza, F. Faraji, and A. Knoll, “Latest progress [on](http://dx.doi.org/10.48550/arXiv.2411.05751) the reduced-order particle-in-cell scheme: [I. refining the underlying formulation,”](http://dx.doi.org/10.48550/arXiv.2411.05751) (2024). 17M. Reza, F. Faraji, and A. Knoll, “Latest progress [on](http://dx.doi.org/10.48550/arXiv.2411.05759) the reduced-order particle-in-cell scheme: II. [Quasi-3D](http://dx.doi.org/10.48550/arXiv.2411.05759) implementation and verification,” (2024). 18R. W. Hockney, “Measurements of collision and heating times in a two[dimensional thermal computer plasma,” Journal of Computational Physics](http://dx.doi.org/10.1016/0021-9991%0x2871%0x2990032-5) 8 [, 19–44 (1971).](http://dx.doi.org/10.1016/0021-9991%0x2871%0x2990032-5) 19S. Jubin, A. T. Powis, W. Villafana, D. Sydorenko, S. Rauf, A. V. Khrabrov, S. Sarwar, and I. D. Kaganovich, “Numerical [thermalization](http://dx.doi.org/10.48550/arXiv.2401.06057) in 2D PIC simulations: [Practical estimates for low temperature plasma simulations,”](http://dx.doi.org/10.48550/arXiv.2401.06057) [(2024), arXiv:2401.06057 [physics].](http://arxiv.org/abs/2401.06057) 20M. D. Acciarri, C. Moore, and S. D. Baalrud, “Artificial correlation heating in PIC simulations,” Physics of Plasmas [31](http://dx.doi.org/10.1063/5.0210881), 093903 (2024). 21G. R. Werner, L. C. Adams, and J. R. Cary, [“Suppressing](http://dx.doi.org/10.48550/arXiv.2503.05123) grid instability and noise in [particle-in-cell](http://dx.doi.org/10.48550/arXiv.2503.05123) simulation by smoothing,” (2025), [arXiv:2503.05123 [physics].](http://arxiv.org/abs/2503.05123) 22C. K. Birdsall and N. Maron, “Plasma self-heating and saturation due to [numerical instabilities,” Journal of Computational Physics](http://dx.doi.org/10.1016/0021-9991%0x2880%0x2990171-0) 36, 1–19 (1980). 23J. U. Brackbill, “On energy and momentum conservation in particle-incell plasma simulation,” Journal of [Computational](http://dx.doi.org/10.1016/j.jcp.2016.04.050) Physics 317, 405–427 [(2016).](http://dx.doi.org/10.1016/j.jcp.2016.04.050) 24H. R. Lewis, “Energy-conserving numerical approximations for Vlasov [plasmas,” Journal of Computational Physics](http://dx.doi.org/ 10.1016/0021-9991%0x2870%0x2990012-4) 6, 136–141 (1970). 25E. G. Evstatiev and B. A. Shadwick, “Variational formulation of particle al[gorithms for kinetic plasma simulations,” Journal of Computational Physics](http://dx.doi.org/10.1016/j.jcp.2013.03.006) 245 [, 376–398 (2013).](http://dx.doi.org/10.1016/j.jcp.2013.03.006) 26J.-W. Han, D.-I. Moon, and M. Meyyappan, “Nanoscale Vacuum Channel Transistor,” Nano Letters 17 [, 2146–2151 (2017).](http://dx.doi.org/10.1021/acs.nanolett.6b04363) [27A. B. Langdon, “Effects of the spatial grid in simulation plasmas,” Journal](http://dx.doi.org/ 10.1016/0021-9991%0x2870%0x2990024-0) [of Computational Physics](http://dx.doi.org/ 10.1016/0021-9991%0x2870%0x2990024-0) 6, 247–267 (1970). 28C. K. Birdsall, N. Maron, and G. Smith, “Cold Beam Nonphysical Instabilities and Cures,” in _Proceedings of the Seventh Conference on Numerical_ _Simulation of Plasmas_ (Courant Institute, New York University, NY, 1975) pp. 178–181. 29M. M. Turner, A. Derzsi, Z. Donkó, D. Eremin, S. J. Kelly, T. Lafleur, and T. Mussenbrock, “Simulation benchmarks for low-pressure plasmas: Capacitive discharges,” Physics of Plasmas [20](http://dx.doi.org/10.1063/1.4775084), 013507 (2013). 30H. Sun, S. Banerjee, S. Sharma, A. T. Powis, A. V. Khrabrov, D. Sydorenko, J. Chen, and I. D. Kaganovich, “Direct implicit and explicit energyconserving particle-in-cell methods for modeling of capacitively coupled plasma devices,” Physics of Plasmas [30](http://dx.doi.org/10.1063/5.0160853), 103509 (2023). 31J. U. Brackbill and D. W. Forslund, “An implicit method for electromagnetic plasma simulation in two dimensions,” Journal of [Computational](http://dx.doi.org/10.1016/0021-9991%0x2882%0x2990016-X) Physics 46 [, 271–308 (1982).](http://dx.doi.org/10.1016/0021-9991%0x2882%0x2990016-X) 32Z. Li, Z. Xu, and Z. Yang, “An energy-conserving Fourier particle-in-cell method with asymptotic-preserving preconditioner for Vlasov-Ampère sys[tem with exact curl-free constraint,” Journal of Computational Physics](http://dx.doi.org/10.1016/j.jcp.2023.112529) 495, [112529 (2023).](http://dx.doi.org/10.1016/j.jcp.2023.112529) 33G. Chen, L. Chacón, and D. C. Barnes, “An energy- and charge-conserving, [implicit, electrostatic particle-in-cell algorithm,” Journal of Computational](http://dx.doi.org/10.1016/j.jcp.2011.05.031) Physics 230 [, 7018–7036 (2011).](http://dx.doi.org/10.1016/j.jcp.2011.05.031) 34F. E. Low, “A Lagrangian formulation of the Boltzmann-Vlasov equation [for plasmas,” Proceedings of the Royal Society of London. Series A. Math-](http://dx.doi.org/10.1098/rspa.1958.0244) [ematical and Physical Sciences](http://dx.doi.org/10.1098/rspa.1958.0244) 248, 282–287 (1958). 35G. H. Golub and C. F. V. Loan, _Matrix Computations_, fourth edition edition ed. (Johns Hopkins University Press, Baltimore, 2013). 36W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery, _Numer-_ _ical_ _Recipes_ _3rd_ _Edition:_ _The_ _Art_ _of_ _Scientific_ _Computing_, 3rd ed. (Cambridge University Press, Cambridge, UK ; New York, 2007). 37The important pieces required for this conservation are a symmetric field solve, and identical interpolations for the charge deposition and field interpolation. 38M. Abramowitz and I. A. Stegun, eds., _Handbook_ _of_ _Mathematical_ _Func-_ _tions: With Formulas, Graphs, and Mathematical Tables_, 0009th ed. (Dover <sup>(</sup> 0 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_g′_</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> _⟨e_ <sup>_′_</sup> _k_ <sup>_′_</sup> _k_ <sup>_⟩_</sup> <sup>=</sup> <sup>_N_</sup> <sup>_′_</sup> _k_ <sup>_|e′_</sup> _k_ �� d _x_ _<u>L</u>_ = ∆ _x_ <sup>2</sup> (A.9) <u>48</u> _<u>−</u>_ <u>9</u> _<u>c</u>_ _<u>−</u>_ <u>36</u> _<u>c</u>_ <sup>2</sup> _<u>−</u>_ <u>3</u> _<u>c</u>_ <sup>3</sup> _._ (A.10) 5(2 + _c_ ) <sup>2</sup> This inner product reduces to _⟨e_ <sup>_′_</sup> _k_ <sup>_′_</sup> _k_ <sup>_|e′_</sup> _k_ This inner product reduces to _⟨e_ <sup>_′_</sup> _k_ <sup>_|e′_</sup> _k_ <sup>_⟩_</sup> <sup>=</sup> <sup>_k_</sup> <sup>2</sup> <sup>_L_</sup> <sup>in</sup> <sup>the</sup> <sup>small</sup> <sup>_k_</sup> limit. 1R. W. Hockney, “Computer Experiment of Anomalous Diffusion,” [The](http://dx.doi.org/ 10.1063/1.1761939) Physics of Fluids [9](http://dx.doi.org/ 10.1063/1.1761939), 1826–1835 (1966). 2C. K. Birdsall and A. B. Langdon, _Plasma_ _Physics_ _via_ _Computer_ _Simula-_ _tion_, 1st ed. (CRC Press, New York u.a. Taylor & Francis, 2004). 3A. B. Langdon and C. K. Birdsall, “Theory of Plasma Simulation Using Finite-Size Particles,” The Physics of Fluids [13](http://dx.doi.org/ 10.1063/1.1693209), 2115–2122 (1970). 4A. B. Langdon, ““Energy-conserving” plasma simulation algorithms,” [Journal of Computational Physics](http://dx.doi.org/ 10.1016/S0021-9991%0x2873%0x2980014-2) 12, 247–268 (1973). 5D. C. Barnes and L. Chacón, “Finite spatial-grid effects in energyconserving particle-in-cell algorithms,” Computer [Physics](http://dx.doi.org/10.1016/j.cpc.2020.107560) Communications 258 [, 107560 (2021), arXiv:1910.10833.](http://dx.doi.org/10.1016/j.cpc.2020.107560) 6A. T. Powis and I. D. Kaganovich, “Accuracy of the Explicit EnergyConserving Particle-in-Cell [Method](http://dx.doi.org/10.48550/arXiv.2308.13092) for Under-resolved Simulations of Capacitively [Coupled](http://dx.doi.org/10.48550/arXiv.2308.13092) Plasma Discharges,” (2023), [arXiv:2308.13092](http://arxiv.org/abs/2308.13092) [[physics].](http://arxiv.org/abs/2308.13092) 7R. Nuter, M. Grech, P. Gonzalez de Alaiza Martinez, G. Bonnaud, and E. d’Humières, “Maxwell solvers for the simulations of the laser-matter [interaction,” The European Physical Journal D](http://dx.doi.org/ 10.1140/epjd/e2014-50162-y) 68, 1–9 (2014). 8S. Markidis and G. Lapenta, “The energy conserving particle-in-cell [method,” Journal of Computational Physics](http://dx.doi.org/ 10.1016/j.jcp.2011.05.033) 230, 7037–7052 (2011). 9A. V. Higuera and J. R. Cary, “Structure-preserving second-order integration of relativistic charged particle trajectories in electromagnetic fields,” Physics of Plasmas [24](http://dx.doi.org/ 10.1063/1.4979989), 052104 (2017). 10A. Gonoskov, “Explicit energy-conserving modification of relativistic PIC [method,” Journal of Computational Physics](http://dx.doi.org/10.1016/j.jcp.2024.112820) 502, 112820 (2024). 11J. Villasenor and O. Buneman, “Rigorous charge conservation for lo[cal electromagnetic field solvers,” Computer Physics Communications](http://dx.doi.org/ 10.1016/0010-4655%0x2892%0x2990169-Y) 69, [306–316 (1992).](http://dx.doi.org/ 10.1016/0010-4655%0x2892%0x2990169-Y) 12T. Zh. Esirkepov, “Exact charge conservation scheme for Particle-in-Cell [simulation with an arbitrary form-factor,” Computer Physics](http://dx.doi.org/10.1016/S0010-4655%0x2800%0x2900228-9) Communications 135 [, 144–153 (2001).](http://dx.doi.org/10.1016/S0010-4655%0x2800%0x2900228-9) 13T. Umeda, Y. Omura, T. Tominaga, and H. Matsumoto, “A new charge [conservation method in electromagnetic particle-in-cell simulations,” Com-](http://dx.doi.org/ 10.1016/S0010-4655%0x2803%0x2900437-5) [puter Physics Communications](http://dx.doi.org/ 10.1016/S0010-4655%0x2803%0x2900437-5) 156, 73–85 (2003). 14F. Taccogna and L. Garrigues, “Latest progress in Hall thrusters plasma [modelling,” Reviews of Modern Plasma Physics](http://dx.doi.org/ 10.1007/s41614-019-0033-1) 3, 12 (2019). Publications, New York, NY, 1965). 39M. S. Mitchell, M. T. Miecnikowski, G. Beylkin, and S. E. Parker, “Effi[cient Fourier Basis Particle Simulation,” Journal of Computational Physics](http://dx.doi.org/ 10.1016/j.jcp.2019.07.023) 396 [, 837–847 (2019), arXiv:1808.03742.](http://dx.doi.org/ 10.1016/j.jcp.2019.07.023) 40G. Beylkin, “On the Fast Fourier Transform of Functions with Singulari[ties,” Applied and Computational Harmonic Analysis](http://dx.doi.org/10.1006/acha.1995.1026) 2, 363–381 (1995). 41 `[https://github.com/JuliaPlasma/ParticleInCell.jl](https://github.com/JuliaPlasma/ParticleInCell.jl)` . 42J. Bezanson, A. Edelman, S. Karpinski, and V. B. Shah, “Julia: A Fresh Approach to Numerical Computing,” SIAM Review [59](http://dx.doi.org/10.1137/141000671), 65–98 (2017). 43S. Danisch and J. Krumbiegel, “Makie.jl: Flexible high-performance data [visualization for Julia,” Journal of Open Source Software](http://dx.doi.org/10.21105/joss.03349) 6, 3349 (2021). 44S. J. Gitomer and J. C. Adam, “Multibeam instability in a Maxwellian sim[ulation plasma,” The Physics of Fluids](http://dx.doi.org/ 10.1063/1.861518) 19, 719–722 (1976). 45K. J. Kanarik, “Inside the mysterious world of plasma: A process engineer’s perspective,” Journal of Vacuum Science [&](http://dx.doi.org/10.1116/1.5141863) Technology A 38, 031004 [(2020).](http://dx.doi.org/10.1116/1.5141863) 46K. J. Kanarik, W. T. Osowiecki, Y. J. Lu, D. Talukder, N. Roschewsky, S. N. Park, M. Kamon, D. M. Fried, and R. A. Gottscho, “Human–machine collaboration for improving semiconductor process development,” [Nature](http://dx.doi.org/10.1038/s41586-023-05773-7) 616 [, 707–711 (2023).](http://dx.doi.org/10.1038/s41586-023-05773-7)

섹션 본문 137문단 · 51,630자

(제목 없음)

1When the Debye length is not resolved in a simulation using the most common particle-in-cell (PIC) algorithm, the plasma will unphysically heat until the Debye length becomes resolved via a phenomenon known as grid heating.This article presents detailed numerical measurements of grid heating for several explicit PIC algorithms including the first systematic (covering the Debye length resolution and drift-velocity parameter space) study of grid-heating growth rates for the most-common electrostatic momentum-conserving PIC algorithm.Additionally, we derive and test a cubicspline-based PIC algorithm that ensures that the interpolated electric field has a continuous first derivative, but find that a differentiable electric field has minimal impact on grid-heating stability.Also considered are energy-conserving PIC algorithms with linear and quadratic interpolation functions.In all cases, we find that unphysical heating can occur for some combinations of Debye under-resolution and plasma drift.We demonstrate analytically and numerically that grid heating cannot be eliminated by using a higher-order field solve, and give an analytical expression for the cold-beam stability limits of some energy-conserving algorithms.

I. INTRODUCTION

2The particle-in-cell (PIC) method has a long and successful history of simulating plasmas. 1,2In PIC methods, the particle distribution function is approximated by a sum of macroparticles, each of which can occupy any location within the simulation domain.In contrast, field quantities-including charge/current density and the electromagnetic fields-are defined on a discrete grid.As a result, an interpolation function must be used to weight macroparticle charge/current to the grid and another interpolation function must be used to weight electromagnetic fields to the macroparticle locations.With a uniform grid and identical interpolation functions, this method is momentum conserving, and so we will refer to it as MC-PIC.

3From the outset, it was apparent that PIC methods suffered from a range of numerical instabilities, 3,4 but careful characterization of these instabilities has enabled practitioners to avoid the most problematic regions of instability. 2,5,6or example, in relativistic electromagnetic simulations, the macroparticles can exceed the numerical speed of light (itself a consequence of the dispersion of the field advance), resulting in numerical Cherenkov radiation; modifications to the field update can suppress this instability. 7Additionally, in electromagnetic PIC simulations, the finite timestep introduces inaccuracies in the interaction between the particles and fields resulting in violations of energy conservation.][13] In this paper, we restrict our focus to electrostatic PIC simulations which calculate the fields self-consistently from the particle positions at each step.However, electrostatic PIC simulations still suffer from instabilities.

4In particular, we will focus on the grid-heating instability, which can rapidly and unphysically heat a plasma. 2,4This instability occurs when the grid spacing, ∆x, is more than a few times the Debye length

5where k B is the Boltzmann constant, T is the electron temperature, n is the electron number density, and q is the electron charge.As the plasma heats, λ D /∆x = v t /ω p ∆x grows until it is order unity and the instability ceases.Here, v t = k B T /m is the electron thermal velocity (m is the electron mass) and ω p is the electron plasma frequency.The requirement to resolve the Debye length renders some physically relevant simulations infeasible.][16][17] We note that the grid-heating instability is distinct from the stochastic heating that occurs due to unphysically large fluctuations in the electric field resulting from the discretization of the distribution function. 18,19These heating mechanisms can be distinguished by their behavior in the limit of an infinite number of macroparticles: the grid-heating growth rate will tend towards some limiting value while the stochastic heating rate will vanish in inverse proportion to the number of macroparticles per cell. 20,21he source of the grid-heating instability can be understood by considering the Fourier modes of the interpolated particle density and the gridded quantities.For any algorithm that relies on local interpolations between particles and the grid, subgrid modes (i.e.modes with a wavelength shorter than can be resolved by the grid) in the particle density will alias onto grid modes during the charge-deposition interpolation (see Fig. 1).

0

6Δx 2Δx 3Δx 4Δx L FIG. 1.When the particle density varies with subgrid wavelength, the subgrid mode (orange) is unphysically aliased to the grid mode (blue).

7The grid modes will then generate unphysical forces at the subgrid wavelengths due to aliasing in the field interpolation, and so these coupled modes can feed back on themselves and grow coherently.When the Debye length is properly resolved, the subgrid modes are damped in a process analogous to Landau damping; underresolving the Debye length prevents this damping and leads to an instability and unphysical growth in the thermal energy. 22n an attempt to improve this, energy-conserving PIC algorithms have been developed. 2,23We consider a specific algorithm-first introduced by Lewis 24 and derived here in Section IV-that we will refer to as EC-PICi where i + 1 is the width in cells of the charge deposition interpolation.It can be shown that this explicit algorithm conserves energy in the short timestep limit. 24nergy-conserving algorithms simulating underresolved (λ D < ∆x) stationary plasmas are immune to the grid-heating instability because heating would violate energy conservation; however, if the plasma is both underresolved and has a bulk drift (v d ̸ = 0), then energy-conserving algorithms may unphysically convert drift kinetic energy into thermal energy until the two energies are approximately equal. 24,25This class of instability is often referred to as the cold-beam instability.For the purposes of this paper, we will consider both cold-beam instability and the instability from underresolving the Debye length of a stationary plasma to be subclasses of the grid instability.

8One result of the energy-conserving instability behavior is that, if a thermal plasma can be simulated in its rest frame where v d = 0, the simulation will experience no heating.Unfortunately, this is infeasible in cases where the plasma drift occurs within a larger system which fixes the simulation frame (e.g.thin-film sputtering devices, Hall thrusters, and vacuum electronic devices), [14][15][16][17]26 . Thu, the stability of these algorithms while simulating a drifting plasma remains of interest.In these types of simulations, the plasma drift may be driven by an external energy source which may minimize the effect of the numerical heating.However, such considerations are very simulation-dependent, and we will not address them in this paper.Instead, we aim to provide general stability criteria that can indicate when simulation results should be subject to additional testing and scrutiny.

9The exact threshold at which grid instability occurs depends on the algorithm used, and has been studied extensively in 1D.For example, Birdsall and Maron 22 reported that, for a sufficiently large drift speed (somewhere around v d ≳ ∆xω p /3), MC-PIC is unstable when λ D /∆x < 0.046.In the same paper, 22 Albritton and Nevins are credited with an analytical calculation showing that the threshold for stability for MC-PIC in the large-drift-velocity limit should occur around λ D /∆x ≈ 0.05.Empirical estimates for the stability of stationary plasmas simulated using MC-PIC cluster around λ D /∆x = 1/π ≈ 0.3. 2,22,27,28We are not aware of any analytically-derived thresholds for the stability of stationary plasmas.

10Barnes and Chacón 5 have shown analytically that a hypothetical EC-PIC0 algorithm (which is not physically realizable for reasons that will be discussed later) would be stable for v d > ∆xω p /2 when v t = 0.They have additionally provided stability contours for 1D simulations using several energyconserving algorithms as a function of v t (equivalently, Debye length resolution) and v d .Recently, energy-conserving methods have been benchmarked against the MC-PIC algorithm in the simulation of a capacitively-coupled discharge in both one and two dimensions; coarse-resolution simulations with an energy-conserving algorithm showed excellent agreement with MC-PIC simulations that resolve the Debye length. 6,29,30hen the Debye length is underresolved, the grid instability can be suppressed by implicit methods which allow for timesteps longer than an inverse plasma frequency. 5,31,32This stabilization occurs because the dispersion relation is modified to reduce the plasma frequency, which causes a corresponding reduction in the grid-instability growth rate. 31However, each timestep in an implicit method is very computationally expensive, although sometimes this is balanced by the reduced number of timesteps required.It is possible to reduce the cost of implicit methods with certain approximations to the nonlinear system, but for grid-heating to be efficiently suppressed using these so-called direct implicit methods, the timestep must increase in proportion to the cell size. 30hus, direct implicit methods cannot be used to suppress gridheating in situations where temporal scale of interest is equal to or faster than the plasma frequency (e.g.long wavelength Langmuir waves).Fully-nonlinear implicit algorithms do not suffer from this restriction, but they incur even worse performance penalties relative to explicit algorithms. 33We therefore consider techniques for reduction of grid-heating in cheaper and more easily implemented explicit algorithms.

11In this article, we systematically measure the strength of the grid instability in several different algorithms-the standard momentum-conserving PIC algorithm (MC-PIC), the original energy-conserving algorithm proposed by Lewis 24 (EC-PIC1), a modified Lewis energy-conserving algorithm that uses wider basis functions for charge deposition and field interpolation (EC-PIC2), and a novel energy-conserving cubicinterpolating-spline based method which ensures that both the potential and its first derivative are continuous (CS-PIC).We compare the growth rate as a function of drift and thermal velocity for each algorithm.

12The remainder of the paper is organized as follows.In Section II, we introduce the PIC simulation cycle, and briefly discuss the MC-PIC algorithm.The reader who is already familiar with this commonly-used PIC algorithm can safely skip this section.Then in Section III, we show how the Low Lagrangian 25,34 can be used to derive energy-conserving algorithms.Section IV and Section V derive EC-PIC and CS-PIC, respectively, with a focus on the commonality between the algorithms.Section VI presents results of our systematic numerical study of these algorithms, while Section VII presents new analytical results about the stability of the EC-PIC algorithms.Finally, we offer some concluding remarks in Section VIII.

II. THE PIC SIMULATION CYCLE

13A collisionless plasma with one spatial dimension and one velocity dimension is described by the Vlasov equation

14where f (x, v) is the particle distribution function for a species with mass m and charge q and where the electric field, E, is self-consistently calculated as

15and ε 0 is the permittivity of free space.For simplicity, we consider one mobile species; a more complete description would have one distribution function per species.

16In order to do simulations, the Vlasov-Poisson system defined in Eqs. ( 2) and ( 8) must be discretized.The MC-PIC method makes a series of ad hoc approximations which we now review.

17In PIC methods, the particle density function is approximated by the sum

18where the sum ranges over the M macroparticles in the simulation each with weight w m and phase-space coordinate (x m , v m ), and where δ is the Dirac delta function.

19We consider a system with length L, and with periodic boundary conditions.The field quantities are defined on a grid, which we choose to have N equally spaced nodes.The locations of the nodes are given by X n = n∆x where ∆x = L/N.

A. Charge deposition

20For the MC-PIC algorithm, the charge density at each grid node is computed as

21where S n (x) is the shape function used to interpolate from a particle at position x to grid node n.The shape function can either be associated with the grid nodes, as we have done here, or it can be equivalently implemented by giving the particles a finite width by modifying the delta function in Eq. (4).However, the derivation of more complicated PIC algorithms (e.g.variable-sized grids) requires that a shape function be associated with the grid to ensure charge conservation.In fact, it is possible for both the particles and grid nodes to be given a width, although this only serves to complicate the math. 27In the forthcoming derivations, we will find it convenient to assume that the particles have infinitesimal width, and so we associate the shape functions with the grid nodes.

22For a macroparticle's total charge to be conserved on the grid, we must choose S n such that ∑ n S n (x) = 1 (7) for all x in the simulation domain.Additionally, the shape function S should be local (spatial extent of only a few grid cells) for the algorithm to scale efficiently as the number of grid cells increases.By far the most common choices for shape functions are B-splines, the first few of which are shown in Figure 2. The use of zeroth-order B-splines for the interpolation is referred to as nearest grid point (NGP) interpolation, while the use of first-order B-splines is often called cloud-in-cell (CIC). 2 In this paper, MC-PIC refers to first-order interpolation.

B. Field solve

23Once the charge density on the grid has been found, the electric field must be computed.For the MC-PIC algorithm, this is done in two steps: first find the potential due to the charge by solving a discretized Poisson's equation, and then compute the electric field at each node as a finite-difference derivative of the potential.We now consider each of these steps in detail.

24In one dimension, the continuous Poisson equation is given by

25This equation can be discretized using the three-point differencing formula

26where the indices of φ are taken to be periodic so that φ 0 = φ N .This is a standard problem in linear algebra, and many exact and approximate techniques exist to calculate the solution. 35,36he potential is defined on the grid nodes, and in a typical PIC code, the electric field is also interpolated from the grid nodes to the particle locations.Thus, a simple finite difference to compute the electric field is a centered difference given by

27This centered difference is often interpreted as a two-step process.First, the electric field at the grid edges is computed as

28and then the edge electric fields are averaged to give a nodal electric field

29For a uniform grid, these two approaches are identical.

C. Field interpolation

30In MC-PIC, the force acting on each macroparticle is computed using the same shape function that was used for charge deposition.Thus,

31This choice ensures momentum conservation provided that the chosen field solve is symmetric.Again, S n is local, and so the evaluation of this sum for all macroparticles can be done in O(M) time (i.e. the scaling does not depend on N).

D. Particle push

32Finally, the positions and velocities of the macroparticles must be updated.The simplest explicit, electrostatic time integrator with acceptable accuracy is the leapfrog integrator.In a leapfrog integrator, the positions of the macroparticles are stored at whole timesteps i∆t, while the velocities of the macroparticles are stored at the half timesteps, (i + 1/2)∆t.The velocities of the macroparticles are first updated as

33Then the positions of the macroparticles are updated according to

34We note that only the most recent position and velocity of each particle must be stored.

35Although MC-PIC generally provides a good approximation to Eq. ( 2), it is not guaranteed to preserve all of the invariants present in the original equations.It can be shown that the preceding algorithm exactly conserves momentum. 2,37However, MC-PIC does not strictly conserve energy, although it becomes increasingly good in the limit that N → ∞, λ D /∆x → ∞, and ω p ∆t → 0. In the next sections, we will derive several algorithms that do exactly conserve energy (for an infinitesimal timestep), although we will find that we must sacrifice momentum conservation in order to maintain good performance of the algorithms.

III. DERIVATIONS OF ENERGY-CONSERVING ALGORITHMS

36The starting point for all of our derivations of energyconserving PIC algorithms will be the Low Lagrangian, 25,34 which is given by

37Given some initial phase-space density f 0 (x 0 , v 0 ), the function x(t; x 0 , v 0 ) gives the trajectory of the initial phase-space coordinate (x 0 , v 0 ).The first term of the Lagrangian describes the particle kinetic energy, the second term encodes the particlefield coupling and the last term is the electric field energy.We use the variable ξ to distinguish the integration variable from the phase-space coordinate x.

38The degrees of freedom of the Lagrangian are the fields x(x 0 , v 0 ) and φ (x).The Euler-Lagrange equations for x can be calculated as 25

39The equations of motion for φ are calculated as

40Equations ( 18) and ( 20) exactly reproduce Eqs. ( 2) and ( 3).Thus, this Lagrangian preserves the symmetries responsible for energy and momentum conservation.That is, the Lagrangian is invariant to translations in time or space.It is the discretization of the Lagrangian that breaks the symmetries, leading to violations of conservation laws.

41To derive a PIC-like algorithm, we substitute the macroparticle approximation into the distribution function given in Eq. ( 4).The resulting Lagrangian is

42where the field degree of freedom x has been replaced by the M degrees of freedom {x m }.This new Lagrangian retains continuous space and time symmetries, and so it will conserve both energy and momentum.However, we still must choose a discretization for the potential φ .For the resulting algorithm to have PIC-like scaling, the total cost of the algorithm cannot have a term that scales as O(MN).This requires each macroparticle to interact with a limited number of grid nodes, even as the number of grid cells is increased.In the next two sections, we consider two different approaches to discretizing the potential that respect this requirement.

IV. ENERGY-CONSERVING PIC (EC-PIC)

43Following Lewis 24 , we discretize the potential as a sum of local basis functions

44where S is a local basis function (shape function), and the coordinates X n are the locations of grid nodes.Thus, the S n (x) functions form a set of basis functions that span the domain, each localized around X n .The resulting Lagrangian is

45where n and ℓ independently vary over the grid nodes, and the prime indicates a derivative with respect to the argument.The equations of motion for x m and φ n are

46where [∇ 2 ] nℓ is a finite-difference approximation of the Laplacian operator which can be computed as

47Recall that the shape function S has been chosen to be local in Eq. ( 23), and thus the elements of the operator will be nonzero only near the diagonal (i.e., n ≈ ℓ).The equations of motion ( 24) and ( 25) represent a fully spatially discretized approximation to the Vlasov-Poisson system.We now compare this energy-conserving algorithm with the MC-PIC algorithm presented in Section II.For simplicity, we specialize to the case of a uniform grid, and choose S to be an ith order B-spline.

A. Charge deposition

48By defining ρ n as in Eq. ( 25), the charge deposition is the same as MC-PIC (Eq.( 5)).

B. Field solve

49The discretized Poisson's equation is given by Eq. (25).The structure of the equation is similar to the MC-PIC field solve; however, the details of the field solve now depend on the inner products of shape functions.We note that the derivative of S is required to compute the discretized Laplacian, and thus the zeroth-order B-spline is unsuitable for energyconserving PIC algorithms.

50If S is chosen to be the first-order B-spline, then it can be shown that the discretized Laplacian becomes tridiagonal (plus the usual periodic off-diagonal elements), with diagonal elements equal to −2/∆x 2 , and off-diagonal elements equal to 1/∆x 2 .Thus, for EC-PIC1 (i.e., charge deposition with first-order B-splines), the field solve is identical to that of the MC-PIC scheme (Eq.( 9)).

51Alternatively, wider shape functions can be used to reduce particle noise, but this choice also comes with some trade-offs.First, computing the charge deposition becomes more expensive as each particle must deposit charge to additional grid nodes.Additionally, the introduction of a wider stencil can slow down the speed of simulations, both by increasing the number of nonzero elements in the field linear solve, and by requiring the communication of additional guard cells when parallelizing the algorithm.Further, the application of boundary conditions becomes more challenging as more grid nodes interact with the edges of the grid.In this paper, we avoid this complication by utilizing periodic boundary conditions.

52For EC-PIC2 (second-order B-spline charge deposition), the difference equations to be solved are

53and so the discretized Laplacian matrix has five nonzero diagonals, with rows consisting of [1/6, 1/3, −1, 1/3, 1/6]/∆x 2 .We note that the φ n in Eq. ( 27) are the amplitudes of the potential elements defined in Eq. ( 22) and not the value of the potential at each grid node.We refer to this algorithm as EC-PIC2-Lagrange.

54We additionally consider the EC-PIC2 algorithm with two modified field solves.The first solve, which we refer to as EC-PIC2-Standard, uses the standard three-point field solve employed by MC-PIC (Eq.( 9)) and EC-PIC1, with secondorder error in k∆x.This scheme may be derived in the Lagrangian formulation by using a zeroth-order B-spline basis for the potential in Eq. ( 22) paired with a modified version of the distribution function discretization, Eq. ( 4), that gives each particle a zeroth-order B-spline spatial extent.

55We also consider a fourth-order-accurate, five-point field solve with rows consisting of [1/12, −4/3, 5/2, −4/3, 1/12]/∆x 2 . 38We refer to this algorithm as EC-PIC2-Fourth.We are not aware of a derivation of the EC-PIC2-Fourth from Eq. ( 16); however, the scheme can be derived using a variation of the Hamiltonian procedure in Birdsall and Langdon 2 , Ch. 10.

56Although the field solve in the EC-PIC2-Lagrange algorithm has been specifically derived to be consistent with the 2nd-order B-spline potential representation, the field solve itself is actually more inaccurate than the other two field solves for k∆x ∼ π.However, it has been shown that, considering the overall algorithm, using this field solve will result in every particle density mode oscillating at exactly the cold plasma frequency. 2

C. Field interpolation

57The interpolation of the field to the macroparticles is carried out in the same way as in MC-PIC (Eq.( 13)), except that the shape function S n is replaced with the derivative S ′ n and the edge electric field values are used in place of the nodal electric fields.If the shape function S is an ith order B-spline, then this is equivalent to interpolating the edge electric fields defined in Eq. ( 11) with a B-spline shape interpolation of order (i − 1). 2

D. Particle push

58The equations of motion, ( 24) and (25), have not yet been discretized in time, and thus many different energyconserving time integration schemes may be employed to advance the particle positions and momenta.In this paper, we use the same explicit leapfrog integrator described in Section II D.

59Prior to the discretization of the potential, the Lagrangian was translationally invariant, and thus by Noether's theorem it had a conserved quantity-momentum.Discretization breaks this symmetry, and so the momentum is no longer guaranteed to be conserved.One might hope that momentum remains a conserved quantity despite the lack of symmetry; however, it has been shown explicitly that EC-PIC lacks momentum conservation. 2,25n contrast, since it is not derived from a Lagrangian, MC-PIC does not have this symmetry restriction.It can be shown that MC-PIC conserves momentum even though it lacks translational invariance. 2 This conservation comes as a consequence of Newton's 2nd law, and not from a symmetry of the equations of motion.

V. CUBIC-SPLINE PIC (CS-PIC)

60We are motivated by the Particle-in-Fourier (PIF) method, 25,39 which has been shown to conserve both energy and momentum exactly in the short timestep limit. 25In PIF, φ is represented as a truncated Fourier series, with every particle depositing charge to every Fourier mode.Such an algorithm does not have PIC-like scaling, and so the simulation of largescale problems is infeasible.

61PIC-like scaling can be recovered by using approximate unequally-spaced fast Fourier transforms; 39 however, this approach does not scale to more complicated boundary conditions, and it requires sophisticated numerical algorithms that are not widely available in numerical computing packages. 40dditionally, FFTs present a challenge for parallel processing, and do not generalize well to higher dimensions.

62Since the Fourier mode discretization exactly conserves momentum, we hypothesize that basis functions that approximate Fourier modes will provide a superior approximation to momentum conservation.To this end, we consider an alternative discretization of the potential which uses cubic interpolating splines to approximate the Fourier modes.We will see that this choice of approximation allows for PIC-like scaling of the deposition and field interpolations.

63A cubic interpolating spline is a piecewise-cubic function that is constructed to pass through a set of values defined on grid points.Unlike a B-spline interpolation, which is explicitly specified by the grid point values, a cubic interpolating spline generally requires solving a tridiagonal linear system for the values of the second derivative of the interpolation at each grid point.The resulting interpolation is continuous and has continuous first and second derivatives. 36To fully specify the linear solve, the second derivatives at each end of the interpolation domain must be specified.For the purposes of this paper, which only considers periodic boundary conditions, the system can be closed by requiring that the derivatives at each end point match.

64If the electric potential is represented using a cubic interpolating spline, then the interpolated electric field will have a continuous first derivative.In the EC-PIC method, this only becomes true for third-order and higher-order B-splines, with the associated computational cost of interpolating to and from more cells for each particle.Thus, unlike the EC-PIC methods considered in this paper, CS-PIC ensures that small translations in the location of the grid will result in only small changes to the electric field experienced by macroparticles.

65Before we describe the derivation of the method, we briefly review cubic interpolating splines.Consider a periodic system of length L. We impose the same N node grid with nodes at X n = nL/N.For some field g with grid values g(X n ), the cubic interpolation, g C , is given by

66where ξ n = (X n − x)/∆x is the normalized distance from grid point n and weight functions are defined as

67and

68The weight functions are only nonzero on |ξ | < 1, and so the evaluation of f C (x) can be done in O(1) time for arbitrarily large N. We differentiate Eq. ( 28) with respect to x-evaluated at X n -and require continuity to obtain 36 g ′′ (X n−1 )

696

70Using this relation, the values of the second derivatives g ′′ (X n ) can be found by solving the tridiagonal linear problem Eq. ( 31) with a source term that only depends on the function values g(X n ).

71We consider a cubic spline approximation to a sinusoidal mode with nodal values e k (X n ) = exp(ikX n ), where k is the wavenumber of a grid mode (i.e.k = 2πn/L with −N/2 + 1 < n ≤ N/2).We make the ansatz that the values of the second derivative will also vary sinusoidally with the same k: that is e ′′ (X n ) = Ĉk exp(ikX n ).It can then be shown that

72with sinc(x) = sin(x)/x.Thus, for the special case of sinusoidal modes, the second-derivative values can be calculated without requiring a tridiagonal solve.Equation (32) reduces to the expected continuum result in the k∆x → 0 limit.

73Because both e k (X n ) and e ′′ (X n ) have an exp(ikX n ) dependence, it can be shown that

74where δ k,ℓ is a Kronecker delta function.That is, the e k 's are orthogonal just like the Fourier modes that they approximate.The details of this calculation are shown in the Appendix.Following the derivation of PIF, 25,39 we discretize φ as

75where e k is an cubic interpolating cubic spline with e k (X n ) = exp(ikX n ).The Lagrangian becomes

76The Appendix shows that the inner products between derivatives of the basis functions appearing in the previous equation are also orthogonal, with values

77where c = cos(k∆x).In the limit of small k∆x, the correction Dk goes to one, and this reduces to the sinusoidal result:

78The Euler-Lagrange equations for x m and φk are therefore

79A naive evaluation of Eq. ( 38) would require calculating e k (x m ) for every k and every m, and thus would scale as O(MN).However, we can exploit the properties of the cubic interpolating splines to evaluate the sums with O(M) work.

A. Charge deposition

80The charge density, ρk , is defined in Eq. ( 38) and can be efficiently computed as

81where we have defined two charge density fields

82and where ξ n,m = (X n − x m )/∆x.The computations of ρ n and ρ ′′ n have PIC scaling and ρk can be efficiently computed using FFTs.Crucially, the macroparticles are only ever involved in the local deposition to the two charge density fields, and the field solve has the same scaling in number of cells as MC-PIC and EC-PIC.

B. Field solve

83The charge density weights ρk have already been computed in the previous step.This means that potential weights φk can be directly computed in Eq. (38).

C. Field interpolation

84The field interpolation can be rewritten as

85where the two potential fields are calculated as

86Once again, the field interpolation is local, and so the CS-PIC algorithm can be implemented with PIC scaling.Additionally, the use of FFTs allows for a direct computation of φ ′′ n field without requiring an additional linear solve, as is usually required for cubic interpolation splines.Moreover, since the potential, as a cubic-interpolating spline, has a continuous second derivative, the interpolated electric field is guaranteed to have a continuous first derivative.

D. Particle push

87The particle push is unaffected by the choice of discretization for the potential.We once again use the leapfrog integrator described in Section II D for simplicity and consistency.

88We note in passing that the potential discretization in Eq. ( 34) has fourth-order error, and so we expect that CS-PIC will have fourth-order error in k∆x.

VI. SIMULATION RESULTS

89The grid instability occurs when the Debye length of a plasma is underresolved.We parameterize this using a normalized thermal velocity, vt ≡ v t /ω p ∆x = λ D /∆x.The grid instability growth rate additionally depends on the normalized drift velocity of the plasma, vd ≡ v d /ω p ∆x.

90In general, the growth rate may also depend on the number of particles per cell, and on the timestep used.However, analytical descriptions of grid instability typically assume continuous particle distributions and time evolution.Thus, in our numerical investigations of grid heating, we use 2 14 = 16, 384 particles per cell to ensure agreement with analytical descriptions. 2,22Additionally, the use of a large number of particles per cell reduces the noise-driven heatingsometimes called stochastic heating-of the plasma, enabling measurements of small instability growth rates. 21e energy-conserving algorithms presented in this paper are only approximately energy-conserving for a finite timestep.Thus, to ensure that the results would be applicable to real world simulations, we chose to simulate with ω p ∆t = 0.5.We have verified that the measured growth rates do not change substantially if a shorter timestep is used.

91To compare the grid-instability behavior of the previously described methods (MC-PIC, EC-PIC1, EC-PIC2, CS-PIC), we conducted a series of periodic-boundary simulations with one spatial dimension and one velocity dimension.The simulations were run using ParticleInCell.jl 41, a PIC code implemented in the Julia 42 language and designed for testing novel PIC algorithms.All plots are produced using the Makie.jlpackage. 43ch simulation consisted of 64 cells initialized with a drifting thermal electron plasma neutralized by a stationary background density representing the ions.The simulations used a quiet start to eliminate particle noise, following the procedure outlined in Birdsall and Langdon 2 , Chapter 16, and briefly described here.In each cell, particle velocities were assigned such that each particle represented an equal area under the Maxwellian distribution.The particle positions within each cell were generated using a bit reversed sequence, which produces a deterministic scramble of the previously ordered velocities.Thus, for a simulation with M ppc particles per cell, the phase space will consist of M ppc beams, each with exactly one particle per cell.

92With this initial particle distribution, the initial electric field is zero and all of the energy is in the particle thermal and driftkinetic energies.Additionally, the electric field should remain zero even after the particles begin to evolve. 44However, eventually floating-point truncation noise will cause the beams to interact, and the electric field will become nonzero.To speed this process and ensure that the most unstable mode will be seeded with a perturbation, we perturb the particle velocities at all wavenumbers with an amplitude of 10 −8 ω p ∆x and with a random phase.

93Since the initial condition consists of many beams, care must be taken to ensure that a multi-beam instability does not obscure the grid-instability growth. 44To guard against this possibility, we use many particles per cell, and monitor for an energy exchange from the particles to the fields, which indicates a multi-beam instability.

94At each timestep, the total electron thermal energy was cal- The portion of the time series up to and including the last negative value is discarded for the fitting procedure.Additionally, the portion of the time series that exceeds some cutoff-1% here-is discarded to isolate the region of true exponential growth in E .A line is fit to this region of the time series (shown in red), and the grid heating growth rate is half the slope of this fit.If there is no remaining portion of the time series, as in the bottom panel, then the simulation is assumed to be stable.

95culated as

96where v(t) is the average electron velocity of all electrons in the simulation at time t.The normalized change in thermal energy at time t is then given by E (t) ≡ (E th (t)−E th (0))/E th (0).If E becomes negative with a magnitude above the noise floor during a simulation, this indicates that a multi-beam instability has occurred.Also, at early times, E can become negative due to floating-point truncation noise.We therefore discard the portion of the time series before and including the last negative value of E .

97For each simulation, a line was fit to ln(E ) for the period before E exceeded 10 −2 .The cutoff ensures that only the period of active exponential growth is fit.

98Any fit with a correlation coefficient (r 2 ) of less than 0.9 was assumed to have zero slope.The instability growth rate is half of the measured thermal energy growth rate.Figure 3 shows this fitting process for examples of stable and unstable simulations.

99We considered the stability of six algorithms over the parameter space vt ∈ [0, 0.35] and vd ∈ [0, 0.45].Table I gives a summary of the properties of each algorithm.

100For each algorithm, the ( vd , vt ) parameter space was scanned with results are shown in Fig. 4. Due to the method used to extract the growth rates, the plots show some noise, and thus some marginally unstable simulations on the periphery of the unstable region may be missed.

101To stabilize a simulation, the cell size must be decreased, which moves a simulation up and to the right on the stability plot.If the cell size is halved, the point will double in distance from the origin.Thus, decreasing the cell size will eventually push a simulation into the stable region.

102For the MC-PIC algorithm, it is apparent that the simulations are always unstable at low thermal velocities, regardless of the drift velocity.In agreement with Birdsall and Langdon 2 , we find stability for vt ≈ 0.05 at large vd ≳ 0.3.

103Of particular interest is the vertical axis-corresponding to an underresolved, stationary plasma-and so we show a more detailed line out of this region in Fig. 5.In this regime, the grid instability saturates at a much lower E in the transition region.Thus, we compute the fits for this figure in the region of the time series with a cutoff of E < 10 −5 .

104These results indicate that, for the stationary plasma, grid instability is stabilized at about vt ≈ 0.15.This is lower by a factor of two than the threshold reported by Birdsall and Maron 22 of vt ≈ 0.3.This means that, for stationary plasma, it is possible to run with a cell size twice as large as reported by Birdsall and Maron 22 without experiencing grid instability.

105Returning to Fig. 4, we note that all of the energyconserving algorithms display a broadly similar trend characterized by instability when v t ≲ v d and v d ≲ v critical , where v critical is an algorithm-dependent cutoff.Red ticks below each plot indicate our analytical estimates of v critical for EC-PIC algorithms, which we derive in the next section.

106We observe that EC-PIC2 has a smaller region of instability and lower instability growth rates compared to EC-PIC1, in agreement with previous work. 5Additionally, we find that the choice of field solve stencil can significantly impact the size of the instability region; however, using a more accurate field solve does not necessarily suppress the grid instability.An explanation for this behavior will be provided in the next section.

107The CS-PIC algorithm displays a region of instability and instability growth rates on par with EC-PIC1.We surmise that this results from cubic-spline modes that poorly replicate the intended Fourier modes, resulting in the same subgrid mode coupling that drives all grid instabilities.Thus, it is not sufficient to ensure smoothness of the interpolated electric field.Any algorithm that hopes to remove grid instability must eliminate the aliasing of subgrid modes.

108A crucial feature of all the energy-conserving algorithms is that they are always stable when the plasma is not drifting (i.e.v d = 0).This can be understood physically by noting that the cold-beam instability acts by transforming the bulk drift energy of the plasma into thermal energy-if there is no drift velocity then there is no energy reservoir to drive the instability.This property makes energy-conserving algorithms an excellent choice for a wide variety of simulations of stationary plasmas.

VII. COLD-BEAM STABILITY LIMITS FOR EC-PIC ALGORITHMS

109It can be shown that the PIC dispersion relation is

110where −π/∆x < k ≤ π/∆x and where k p = k −2π p/∆x are the aliasing modes for a given k (with integer p). 2,5The sum over p occurs because the charge deposition and field interpolation couple the modes that are represented on the grid (p = 0) with subgrid modes of the particle density (p ̸ = 0).The K 2 (k) term are the eigenvalues of the Poisson solve, and the κ(k p ) terms are −i times the Fourier representation of the gradient operator that transforms the potential to the electric field.Note that the eigenvalues of the Poisson solve only depend on k because the Poisson solve happens on the grid and so it is not influenced by the subgrid modes.For the MC-PIC algorithm, the same is true of the finite-difference derivative of the potential, and so we have κ(k p ) = κ(k).

111In contrast, the energy-conserving algorithms derived in this paper compute the derivative of the potential exactly at all wavenumbers by analytically differentiating the shape function.Thus we have κ(k p ) = k p , which acts as a derivative on one of the factors of S.Then, for the mth order EC-PIC algorithm, the dispersion relation is

112This can be rewritten in terms of dimensionless quantities as

113where ω = ω/ω p , k = k∆x, and K2 ( k) = K 2 ( k/∆x)∆x 2 .The modes of the (numerical) plasma are the zeros of the dispersion relation.The goal of this section is to compute the largest value of vd for which the frequency of at least one mode has a positive imaginary component when vt = 0.One way to do this-explored thoroughly by Barnes and Chacón 5 for energy-conserving PIC algorithms and by Werner, Adams, and Cary 21 for MC-PIC-is to scan over the range of possible k values, and numerically search for values of ω that satisfy D( k/∆x, ω) = 0.Although thorough, this approach does not give much insight into the cause of the numerical instability.Instead, we make some reasonable approximations for where the dispersion relation is likely to retain complex roots as vd is increased.The results of these approximate calculations show excellent agreement with the simulation results presented in the previous section, while also offering some physical insight into the mechanism of instability.

114We begin by assuming that the instability will occur at k = ±π.This is justified by recalling that grid instabilities result from an unphysical coupling between the grid and subgrid modes of the particle density due to aliasing during the interpolations.This coupling occurs because the wavenumber representation of S expands beyond the range of grid wavenumbers and so a good choice of S will fall off sharply beyond the Nyquist wavenumber (of course, an ideal interpolation would be zero for | kp | > π, but such an interpolation would not be local).Thus, the coupling will be largest for modes just larger than the Nyquist wavenumber, and these subgrid modes will couple most strongly to grid modes just inside the Brillouin zone.For this reason, the coupling is typically most detrimental at the Nyquist mode, k = π (corresponding to kp = π − 2π p = πq where q = 1 − 2p is an odd integer).Substituting this into the dispersion relation, we find

115where we have used the fact that the sine term will become one, regardless of the value of p, because it is squared.The modes of the system for k = π are the solutions of D(π/∆x, ω) = 0.These solutions occur when sum of the terms (each containing a pole of order two with a negative coefficient) is equal to one.Between every pole, there will be two zeros, and for a sufficiently large drift velocity, the distance between the poles in ω is much larger than the width of the poles.In this case, each pole will be associated with two real zeros of the dispersion relation, and all of the zeros will be real.

116To quantify the width of a pole, we consider the difference in ω between the two zeros of an isolated pole (i.e.Eq. ( 53) with only a single term from the sum).The zeros ωq of the isolated pole associated with term q are ωq = qπ vd ± 2 2

117so that the width of the pole is As vd decreases, the pole spacing (2π vd ) decreases while the width of each pole remains constant.Eventually, this causes neighboring poles to begin to overlap significantly.When this happens, a zero of the dispersion relation can become suddenly complex as the overlap between two adjacent poles exceeds one.The poles associated with q = ±1 are the widest, and so the region between these poles will be the first (as vd is decreased) to exceed one.This is shown in Fig. 6, where the first transition from real to complex roots occurs at ω = 0 when vd = vcritical .

118We can estimate the vcritical where this occurs by calculating where the width of the q = ±1 poles are equal to the pole spacing.This yields

119For EC-PIC1, we have m = 1 and the three-point Poisson solve has eigenvalues given by

120However, we can do much better than this order of magnitude estimate by noting that the poles are symmetric about ω = 0, and so the first pair of zeros to develop complex components will both be ω = 0 just before they become complex.Substituting ω = 0 into the dispersion relation yields

121Three-point finite-difference k2 sinc For m = 1, we have

122and so

123Therefore, the EC-PIC1 algorithm will be stable for

124This differs from the stability threshold reported in Birdsall, Maron, and Smith 28 which claims vcritical ≈ 1/π, although the numerical values are remarkable similar. 2,22Additionally, this critical drift velocity agrees very well with the simulation results presented in Fig. 4.

125The same analysis can be repeated for EC-PIC2 (i.e.m = 2) which yields

126It is apparent that different field solves will have different eigenvalues and different critical velocities.For the three field solves considered in the previous section, the Nyquist eigenvalue and corresponding critical velocity are shown in Table II.Once again, these analytical predictions agree well with the growth rates computed from simulations in the previous section (see Fig. 4).

VIII. CONCLUDING REMARKS

127If the Debye length of a plasma is not sufficiently well resolved-for example because doing so would be too computationally expensive-then the plasma will heat until the Debye length becomes resolved.This grid instability has the potential to destroy the integrity of a simulation.Although it is relatively easy to detect in these simple simulations when the Debye length is sufficiently underresolved-monitoring plasma temperature is sufficient-it can become extremely challenging to determine if heating in more complex simulations is due to physical or numerical effects.

128Requiring resolution of the Debye length means that simulations of many physical problems of interest are infeasible or borderline infeasible due to the scale disparity between the device geometry and the Debye length. 15,45,46Thus careful characterization of grid instability is necessary to determine the minimum resolution required for stability.For the standard PIC method (MC-PIC), this paper confirms the existence of a stability threshold in Debye length resolution at large drift velocity (instability for vt = λ D /∆x ≲ 0.05 when vd ≳ 0.15). 2 Additionally, we report new measurement of grid instability for plasmas at very low drift velocities (i.e.vd ≲ 0.01), which indicate that grid instability occurs at a lower thresholdvt ≈ 0.15-than previously reported.

129There exists a now fifty-year-old algorithm (EC-PIC) that is capable of circumventing some of these restrictions. 4,24Recent papers have sought to bring more attention to this method and to establish stability limits 5,6,25 We have confirmed the instability thresholds reported by Barnes and Chacón 5 , as well measured instability thresholds for two different field solves in the EC-PIC2 algorithm.All algorithms display a broadly similar instability behavior with instability when vt ≲ vd and when vd ≲ vcritical .Additionally, we have derived analytical estimates for vcritical for several of EC-PIC variants, all of which show excellent agreement with our simulation results.As a result of this analysis, we have shown that use of wider shape functions decreases vcritical (that is, reduces the region of the ( vd , vt ) parameter space which is unstable).We have also shown that a more accurate field solve reduces vcritical , but the use of an accurate field solve cannot totally eliminate the grid instability.Both of these analytical results are reflected in our simulation data.We emphasize previous work which finds that energy-conserving algorithms are suitable for simulating stationary plasmas. 5,6inally, we have presented a new PIC algorithm that uses cubic interpolating splines to represent fields (CS-PIC).The splines approximate a truncated Fourier basis for the potential, which has been shown to be unconditionally stable to grid instability. 25,39We have shown that the interpolations to and from the cubic-spline basis can be efficiently computed by having two charge density fields, and two electric potential fields and performing two FFTs in the field solve.This novel technique for calculating cubic splines avoids a linear solve to compute the second derivative of the splines at the nodes.

130The interpolated electric field in CS-PIC has a continuous first derivative.However, we find that the stability behavior of CS-PIC is only a modest improvement over EC-PIC1, which indicates that the use of a smoother electric does not significantly impact the growth of the grid instability.The CS-PIC method can be readily extended to ensure higher-order differentiability of the interpolated electric field, becoming a sort of unequally-spaced FFT as the number of deposition and interpolation fields are increased.In the limit of some extended CS-PIC exactly approximates PIF, it should conserve both energy and momentum; however we have not given detailed thought to the computational cost of this approach compared to PIF.

131Due to the complexity of CS-PIC relative to EC-PIC, we recommend that readers first evaluate whether EC-PIC1 or EC-PIC2 is sufficient to simulate the physical problem in question.

FIG. 2 .

132FIG.2.The first few B-splines.Higher-order B-splines are smoother (in the sense of approaching a Gaussian) but extend further.

𝓔 − 10 − 5 − 10 2 FIG. 3 .

133FIG.3.Example growth rate measurements for an unstable (EC-PIC1, vt = 0.01, vd = 0.05, top panel) and a stable (EC-PIC1, vt = 0.1, vd = 0.05, bottom panel) simulation.The normalized change in thermal energy, E , is shown as a function of time on a linear scale for |E | < 10 −10 and a symmetric log scale otherwise.The portion of the time series up to and including the last negative value is discarded for the fitting procedure.Additionally, the portion of the time series that exceeds some cutoff-1% here-is discarded to isolate the region of true exponential growth in E .A line is fit to this region of the time series (shown in red), and the grid heating growth rate is half the slope of this fit.If there is no remaining portion of the time series, as in the bottom panel, then the simulation is assumed to be stable.

) 9 v 1 FIG. 6 .

134FIG.6.Dispersion relation for cold-beam ( vt = 0) Nyquist mode ( k = π) of EC-PIC1 at three values of vd / vcritical .The resonant frequencies of the Nyquist modes are the zeros the dispersion relation, which occur between the poles.When vd = vcritical , the maximum of D(±π/∆x, ω) is equal to zero, and so all of the Nyquist mode frequencies are real.

TABLE I .

135Properties of tested PIC algorithms FIG.4.Grid-instability growth rate as a function of the normalized drift velocity, vd , and the normalized thermal velocity, vt = λ D /∆x, for six different PIC algorithms.On the basis of the results in Fig.5, we estimate that our method is sensitive to growth rates down to γ/ω p = 10 −2 .Areas of complete black indicate places where no growth rate was extracted.The vertical white dashed lines on the EC-PIC1 and EC-PIC2 plots indicate the predicted stability thresholds of the analytical cold-beam instability calculations presented in Section VII.

13622G.5.Normalized grid-instability growth rates for MC-PIC1 simulating stationary ( vd = 0) plasmas as a function of normalized thermal velocity, vt = λ D /∆x.The line ends when the growth rate extraction procedure fails to find a nonzero growth rate because the change in thermal energy, E , is negative for values with magnitudes larger than the fitting cutoff: 10 −5 .We estimate that the grid instability stabilizes at about vt ≈ 0.15, around a factor of two lower than reported by Birdsall and Maron22.

TABLE II .

137Critical drift velocities for the EC-PIC2 algorithm with a variety of Poisson solves.

참고문헌 38건

  1. On energy and momentum conservation in particle-in-cell plasma simulation Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.04.050
  2. Plasma self-heating and saturation due to numerical instabilities Journal of Computational Physics · Elsevier BV · 1980 10.1016/0021-9991(80)90171-0
  3. On the Fast Fourier Transform of Functions with Singularities Applied and Computational Harmonic Analysis · Elsevier BV · 1995 10.1006/acha.1995.1026
  4. Simulation benchmarks for low-pressure plasmas: Capacitive discharges Physics of Plasmas · American Institute of Physics · 2013 10.1063/1.4775084
  5. Effects of the spatial grid in simulation plasmas Journal of Computational Physics · Elsevier BV · 1970 10.1016/0021-9991(70)90024-0
  6. Measurements of collision and heating times in a two-dimensional thermal computer plasma Journal of Computational Physics · Elsevier BV · 1971 10.1016/0021-9991(71)90032-5
  7. An energy- and charge-conserving, implicit, electrostatic particle-in-cell algorithm Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.05.031
  8. Computer Experiment of Anomalous Diffusion The Physics of Fluids · AIP Publishing · 1966 10.1063/1.1761939
  9. Rigorous charge conservation for local electromagnetic field solvers Computer Physics Communications · Elsevier BV · 1992 10.1016/0010-4655(92)90169-y
  10. Theory of Plasma Simulation Using Finite-Size Particles The Physics of Fluids · AIP Publishing · 1970 10.1063/1.1693209
  11. An implicit method for electromagnetic plasma simulation in two dimensions Journal of Computational Physics · Elsevier BV · 1982 10.1016/0021-9991(82)90016-x
  12. Multibeam instability in a Maxwellian simulation plasma The Physics of Fluids · AIP Publishing · 1976 10.1063/1.861518
  13. Variational formulation of particle algorithms for kinetic plasma simulations Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.03.006
  14. The energy conserving particle-in-cell method Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.05.033
  15. A Lagrangian formulation of the Boltzmann-Vlasov equation for plasmas Proceedings of the Royal Society of London A Mathematical and Physical Sciences · Royal Society · 1958 10.1098/rspa.1958.0244
  16. Maxwell solvers for the simulations of the laser-matter interaction The European Physical Journal D · Springer Science+Business Media · 2014 10.1140/epjd/e2014-50162-y
  17. Exact charge conservation scheme for Particle-in-Cell simulation with an arbitrary form-factor Computer Physics Communications · Elsevier BV · 2001 10.1016/s0010-4655(00)00228-9
  18. “Energy-conserving” plasma simulation algorithms Journal of Computational Physics · Elsevier BV · 1973 10.1016/s0021-9991(73)80014-2
  19. Julia: A Fresh Approach to Numerical Computing SIAM Review · Society for Industrial and Applied Mathematics · 2017 10.1137/141000671
  20. A new charge conservation method in electromagnetic particle-in-cell simulations Computer Physics Communications · Elsevier BV · 2003 10.1016/s0010-4655(03)00437-5
  21. Energy-conserving numerical approximations for Vlasov plasmas Journal of Computational Physics · Elsevier BV · 1970 10.1016/0021-9991(70)90012-4
  22. Nanoscale Vacuum Channel Transistor Nano Letters · American Chemical Society · 2017 10.1021/acs.nanolett.6b04363
  23. Structure-preserving second-order integration of relativistic charged particle trajectories in electromagnetic fields Physics of Plasmas · American Institute of Physics · 2017 10.1063/1.4979989
  24. Efficient Fourier basis particle simulation Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.07.023
  25. Latest progress in Hall thrusters plasma modelling Reviews of Modern Plasma Physics · Springer Science+Business Media · 2019 10.1007/s41614-019-0033-1
  26. Inside the mysterious world of plasma: A process engineer’s perspective Journal of Vacuum Science & Technology A Vacuum Surfaces and Films · American Institute of Physics · 2020 10.1116/1.5141863
  27. Finite spatial-grid effects in energy-conserving particle-in-cell algorithms Computer Physics Communications · Elsevier BV · 2020 10.1016/j.cpc.2020.107560
  28. Structure of DC magnetron sputtering discharge at various gas pressures: a two-dimensional particle-in-cell Monte Carlo collision study Plasma Sources Science and Technology · IOP Publishing · 2021 10.1088/1361-6595/abf31e
  29. Makie.jl: Flexible high-performance data visualization for Julia The Journal of Open Source Software · Open Journals · 2021 10.21105/joss.03349
  30. Human–machine collaboration for improving semiconductor process development Nature · Nature Portfolio · 2023 10.1038/s41586-023-05773-7
  31. An energy-conserving Fourier particle-in-cell method with asymptotic-preserving preconditioner for Vlasov-Ampère system with exact curl-free constraint Journal of Computational Physics · Elsevier BV · 2023 10.1016/j.jcp.2023.112529
  32. Direct implicit and explicit energy-conserving particle-in-cell methods for modeling of capacitively coupled plasma devices Physics of Plasmas · American Institute of Physics · 2023 10.1063/5.0160853
  33. Accuracy of the explicit energy-conserving particle-in-cell method for under-resolved simulations of capacitively coupled plasma discharges Physics of Plasmas · American Institute of Physics · 2024 10.1063/5.0174168
  34. Numerical thermalization in 2D PIC simulations: Practical estimates for low-temperature plasma simulations Physics of Plasmas · American Institute of Physics · 2024 10.1063/5.0180421
  35. Explicit energy-conserving modification of relativistic PIC method Journal of Computational Physics · Elsevier BV · 2024 10.1016/j.jcp.2024.112820
  36. Artificial correlation heating in PIC simulations Physics of Plasmas · American Institute of Physics · 2024 10.1063/5.0210881
  37. Latest progress on the reduced-order particle-in-cell scheme: I. Refining the underlying formulation Plasma Physics and Controlled Fusion · IOP Publishing · 2025 10.1088/1361-6587/adef78
  38. Latest progress on the reduced-order particle-in-cell scheme: II. Quasi-3D implementation and verification Plasma Physics and Controlled Fusion · IOP Publishing · 2025 10.1088/1361-6587/adf2dd