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

Finite grid instability and spectral fidelity of the electrostatic Particle-In-Cell algorithm

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Chengkun Huang — Los Alamos National Laboratory, Los Alamos, NM, 87545, USA
  2. Yong Zeng — Los Alamos National Laboratory, Los Alamos, NM, 87545, USA
  3. Zhichao Wang — Los Alamos National Laboratory, Los Alamos, NM, 87545, USA
  4. Michael Meyers — Los Alamos National Laboratory, Los Alamos, NM, 87545, USA|||University of California, Los Angeles, CA, 90095, USA
  5. S. A. Yi — Los Alamos National Laboratory, Los Alamos, NM, 87545, USA
  6. B. J. Albright — Los Alamos National Laboratory, Los Alamos, NM, 87545, USA
DOI
10.1016/j.cpc.2016.05.021
저널
Computer Physics Communications
발행년도
2016
발행기관
Elsevier BV
피인용수
27
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.cpc.2016.05.021
토픽
Chemical and Physical Properties of Materials
OpenAlex ID
W2212917686

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
LLM(gemma-4-26b-a4b-it) 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 94,626자

본문 펼치기
## Finite grid instability and spectral fidelity of the electrostatic Particle-In-Cell algorithm C.-K. Huang <sup>a,</sup> <sup>_∗_</sup>, Y. Zeng <sup>a</sup>, Y. Wang <sup>a</sup>, M.D. Meyers <sup>a,b</sup>, S. Yi <sup>a</sup>, B. J. Albright <sup>a</sup> _aLos_ _Alamos_ _National_ _Laboratory,_ _Los_ _Alamos,_ _NM,_ _USA_ _87545_ _bUniversity_ _of_ _California,_ _Los_ _Angeles,_ _CA,_ _USA_ _90095_ Abstract The origin of the Finite Grid Instability (FGI) is studied by resolving the dynamics in the 1D electrostatic Particle-In-Cell (PIC) model in the spectral domain at the single particle level and at the collective motion level. The spectral fidelity of the PIC model is contrasted with the underlying physical system or the gridless model. The systematic spectral phase and amplitude errors from the charge deposition and field interpolation are quantified for common particle shapes used in the PIC models. It is shown through such analysis and in simulations that the lack of spectral fidelity relative to the physical system due to the existence of aliased spatial modes is the major cause of the FGI in the PIC model. _Keywords:_ Finite Grid Instability, Particle-In-Cell, spectral fidelity, numerical instability _∗_ Corresponding author _Email_ _address:_ `huangck@lanl.gov` (C.-K. Huang) _Preprint_ _submitted_ _to_ _Elsevier_ _October_ _19,_ _2018_ 1. Introduction N-body type problems arise in many disciplines and underpins our understanding of complex dynamical systems like plasmas and the cosmos. In a typical N-body problem, the interaction in particle pairs can be of electrostatic, or electromagnetic, or gravitational in nature and each particle responds to a force that is the linear superposition of all one-to-one interactions it receives. Direct calculation of all one-to-one interactions of _Np_ particles has a computation cost of _O_ ( _Np_ <sup>2), therefore</sup> it is amenable to numerical simulation only when _Np_ is small. The PIC method [1], or more generally the particle-mesh method, is an efficient numerical method that reduces the computation complexity by introducing a computation grid and taking advantage of the linearity in the sum of one-to-one interactions. In the PIC method, the interaction among the particles is mediated by the grid through the Green’s function of the interaction represented on the grid. The computation complexity is reduced from _O_ ( _Np_ <sup>2) to</sup> <sup>_O_</sup> <sup>(</sup> <sup>_Ng_</sup> <sup>)+</sup> <sup>_O_</sup> <sup>(</sup> <sup>_Np_</sup> <sup>), where</sup> <sup>_Ng_</sup> <sup>is the number of grid points.</sup> <sup>When</sup> the number of particles per cell _Np/Ng_ _≫_ 1, the gain in speedup is large ( _∼_ _Np_ ), therefore the PIC method is a popular choice in the _ab-initio_ numerical simulation of N-body systems. However, two major problems arise in the PIC method due to the discrete grid: (1) the use of an Eulerian grid for the moments of the particle distribution and fields, in conjunction with individual Lagrangian particles in continuous phase space, implies an inherent inconsistency; (2) the grid representation of the Green’s function is usually an approximation of the real Green’s function in the continuous space. Despite the computation efficiency of the PIC method and its wide-spread use, especially in plasma physics, common PIC models are vulnerable to an electrostatic numerical instability known as the Finite Grid Instability (FGI) [2, 3] (there is also an electromagnetic instability known as the numerical Cherenkov instability [4, 5, 6]). Early practitioners using the electrostatic PIC model to simulate plasma dynamics observed a heating effect to the plasma which depends on the numerical parameters, i.e., the grid size ∆ _x_ and the number of particles per cell _NC_ . This numerical heating has been extensively studied since the early development of the PIC model and the empirical scaling of the heating time _τH_ of FGI in a thermal plasma, which has the form _ωpτH_ _∼_ ( _λD/_ ∆ _x_ ) <sup>2</sup> ( _ND_ + _NC_ ), is summarized in [1]. Here _ND_ is the number of particles in a Debye length _λD_, _ωp_ is the plasma frequency. It is also known that FGI comes from the aliased modes in the system due to the incompatibility between the Fourier spectra of the discrete Eulerian and continuous Lagrangian variables. (Numerical Cherenkov instability may also come from an Eulerian-Lagrangian mismatch in the convective derivative [4]). The numerical instabilities have been conventionally analyzed as unphysical resonances between physical and aliased modes [1, 4, 5, 6, 7, 8]. The locations and growth rates of the unstable modes have been solved for using linear dispersion analysis in limited, yet essential cases, i.e., for spatially uniform cold or Maxwellian distributions. It is worth noting that, unlike the two-stream type instabilities, for some commonly used electrostatic and electromagnetic PIC models, FGI can arise without the intersection of the physical and aliased modes [9, 8]. Analysis for more realistic and nonlinear simulations has not been carried out. Various methods and numerical schemes to mitigate FGI have been proposed, including introducing grid interlacing [10] and random jiggling [10, 11], employing higher order particle shapes [9] and temporal/spatial filtering [12], implicit time differencing and enforcing the energy conservation property of the numerical algorithm between time steps [13, 14, 15, 16]. All these techniques have shown great promise with regard to the reduction of the instability growth rate. However, this is often achieved with substantial distortion/damping of the meaningful dynamics at the short wavelength scale or by sacrificing conservation properties (such as the loss of momentum conservation 2 in an energy conserving algorithm, which has long been debated in the development of the PIC models [1]). Recent rigorous work on energy conserving algorithm has led to a large improvement of the momentum conservation through nonlinear iterations [14]. The above efforts notwithstanding, the important questions about how and where FGI arises exactly remain to be answered. Previous works treat aliased modes as inherent in the system and study their properties and corresponding mitigation method. However, the origin of the numerical instabilities is clearly unphysical. Therefore, in principle a simulation plasma should be contrasted with the underlying continuous system, which has the same number of particles and particle shape as the simulation plasma, to determine the origin of the numerical instabilities. We call latter the physical system in the following, as it obeys a Vlasov equation for the shaped particles, as long as the same particle shape is used in defining the charge density from the particle and the electric field on the particle. There are many choices about what to be contrasted between the PIC and the physical systems. Conservation properties and dispersion relationship have been used. It should be noted that one direct consequence of FGI in a PIC model without built-in energy (momentum) conservation property is, as can be expected, the gross violation of the energy (momentum) conservation. For this reason, recent efforts have been devoted to improve the energy and/or momentum conservation of the numerical scheme in order to control FGI. But it should be emphasized that conservation laws are desirable when eliminating the FGI, but they are neither necessary nor sufficient conditions. An isolated plasma system can exhibit various kinds of physical instabilities while strictly conserving momentum and energy. Furthermore, as total energy is a global property of the underlying microscopic processes and only one constraint on the degrees of freedom (two if total momentum is also considered) in the phase space, to understand what gives rise to FGI and its consequences, we need a better resolution into the dynamics. Linear dispersion, in which the eigen modes with complex Fourier frequency can be viewed as a way to resolve the (linearized) dynamics, is a better choice. However, such analysis is limited to special cases of the particle distribution and small perturbation amplitude. Insight from such analysis for the improvement to the numerical scheme is useful but not easy to obtained and applied to more general situations. Recently, symplectic PIC codes [17, 18] have also been developed, for which the symplectic structures of the Hamiltonian system is preserved. The symplectic structure may be a good choice to contrast the PIC and the physical systems, however, it is not clear how it is related to the numerical instabilities at present. In this paper, we will study the FGI in the 1D electrostatic PIC models by spectrally resolving the dynamics at the single particle level, thus allowing us to identify the components in the model that lead to unphysical instability. The dynamics in PIC result from the superposition of the pairwise interactions as in a physical system. The major components of an electrostatic PIC model the charge deposition, the field interpolation and the particle pusher, all operate on a single particle, while the field solver can be viewed as operating on the spatial Fourier modes. Therefore the use of the particle and spectral resolutions are natural choices for this purpose. Such a representation of the PIC models is given in section 2 and the spectral errors in PIC models are analyzed in section 3. As an alternative to the individual particle representation, one can also choose the modes of the collective particle motion as a representation. This has the advantage that the plasma dynamics can then be viewed as the collective wave-particle interactions and such couplings in a physical system and in a PIC model can also be contrasted. We note that the deposition, field interpolation and field solver only involve spatial operations at a fixed time, while the particle update in the pusher is a temporal operation in continuous space whose stability and convergence can be verified to rule 3 out its role in FGI. To facilitate simulation comparison with the physical system, the gridless model [19, 20, 21] is used, in which all components and elementary operations of the physical system are projected onto the finite Fourier basis. It is demonstrated in section 4 that the lack of spectral fidelity in the deposition, field interpolation is the major cause of the FGI. Finally we summarize in section 5. 2. Spectral representation of the PIC model _2.1._ _Charge_ _deposition_ Let’s first look at the charge deposition scheme in Fourier space to understand the effect of aliasing. We will see that the most important effect in Fourier space is the summation over all Brillouin zones which is the result of a convolution process between a continuous spectrum and a periodic spectrum over Brillouin zones. The sampling needed to go from continuous space to a discrete grid is the cause of the latter spectrum. In a grid-based model like PIC, the contribution of a particle at position _xp_ <sup>1</sup> and of total charge _Q_ on the density grid _rρ_ is _ρ_ ( _rρ_ ) = _QW_ ( _rρ_ _,_ _xp_ ), where _rρ_ is a vector on a uniform grid with grid size ∆ _x_ = (∆ _x,_ ∆ _y,_ ∆ _z_ ). The interpolation function for the deposition is _W_ ( _rρ_ _,_ _r_ ) = _W_ ( _|_ _rρ_ _−_ _r_ _|_ ). Note that we have assumed the cell volume _V_ = ∆ _x_ ∆ _y_ ∆ _z_ = 1 and dropped it for clarity. The difference between a particle shape function _S_ ( _r_ ) and a interpolation function _W_ ( _rρ_ _,_ _r_ ) is discussed in Appendix A. In the rest of this section, we will not distinguish these two and will use _S_ ( _r_ ) for clarity, _ρ_ ( _rρ_ ) = _QSρ_ ( _rρ_ _−_ _xp_ ). We define a transform (note this is not necessarily the proper Discrete Fourier Transform as _rρ_ may be shifted from the origin of the coordinate system, as will be shown later), _ρ_ ( _rρ_ ) _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_rρ_</sup> = _Q_ _rρ_ _ρ_ ˜( _k_ ) = _rρ_ _Sρ_ ( _rρ_ _−_ _xp_ ) _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_rρ_</sup> _,_ (2.1) which can be viewed as the continuous Fourier transform of _ρ_ ( _r_ ) <sup>�</sup> _δ_ ( _r_ _−_ _rρ_ ), where _ρ_ ( _r_ ) = _QSρ_ ( _r_ _−_ _xp_ ). Then the non-unitary inverse transform is _rρ_ _ρ_ ˜( _k_ ) _e_ <sup>_i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_rρ_</sup> _d_ _k_ _._ <u>1</u> _ρ_ ( _rρ_ ) = 8 _π_ <sup>3</sup> As _Sρ_ ( _r_ ) is a function in continuous space, ˆ _∞_ _−∞_ <u>1</u> _Sρ_ ( _r_ ) = 8 _π_ <sup>3</sup> ˆ _∞_ _−∞_ _S_ ˜ _ρ_ ( _k_ <sup>_′_</sup> ) _e_ <sup>_i_</sup> <sup>_k′_</sup> <sup>_·_</sup> <sup>_r_</sup> _d_ _k_ <sup>_′_</sup> _._ (2.2) Then, _ρ_ ˜( _k_ ) = <sup>_<u>Q</u>_</sup> ˆ _∞_ _−∞_ _rρ_ _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k′_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_rρ_</sup> _· d_ _k_ <sup>_′_</sup> _._ <sup>_<u>Q</u>_</sup> 8 _π_ <sup>3</sup> ˆ _∞_ ( _−∞_ _S_ ˜ _ρ_ ( _k_ <sup>_′_</sup> ) _e_ <sup>_i_</sup> <sup>_k′_</sup> <sup>_·_</sup> <sup>(</sup> <sup>_rρ_</sup> <sup>_−_</sup> <sup>_xp_</sup> <sup>)</sup> _d_ _k_ <sup>_′_</sup> ) _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_rρ_</sup> = <sup>_<u>Q</u>_</sup> 8 _π_ <sup>3</sup> _S_ ˜ _ρ_ ( _k_ <sup>_′_</sup> ) _e_ <sup>_−i_</sup> <sup>_k′_</sup> <sup>_·_</sup> <sup>_xp_</sup> _·_ _rρ_ (2.3) Carrying out the infinite sum (see Appendix B), we obtain, 1Italic bold font is used for vectors. 4 _ρ_ ˜( _k_ ) = _Q_ q _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) _S_ <sup>˜</sup> _ρ_ ( _kq_ ) _e_ <sup>_−i_</sup> <sup>_kq_</sup> <sup>_·_</sup> <sup>_xp_</sup> _,_ (2.4) and where _ρ_ ˜( _k_ + q <sup>_′_</sup> _·_ _kg_ ) = _ψ_ ( _−_ q <sup>_′_</sup> _·_ _kg_ _,_ ∆ _rρ_ )˜ _ρ_ ( _k_ ) _,_ _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) = _e_ <sup>_i_</sup> <sup>(</sup> <sup>q</sup> <sup>_·_</sup> <sup>_kg_</sup> <sup>)</sup> <sup>_·_</sup> <sup>∆</sup> <sup>_rρ_</sup> (2.5) is a phase factor. _rρ_ = _rf_ + ∆ _rρ_ and _rf_ is a reference grid that contains the origin of coordinate system. _kq_ = _k_ + q _·_ _kg_ is an vector alias of _k_ in the q -th Brillouin zone [ q _·_ _kg_ _−_ _kg_ _/_ 2 _,_ q _·_ _kg_ + _kg_ _/_ 2), _kg_ = (2 _π/_ ∆ _x,_ 2 _π/_ ∆ _y,_ 2 _π/_ ∆ _z_ ) and _n_   _._ q =   _m_ _l_ In the case that ∆ _rρ_ _̸_ = 0, the spectra in Brillouin zones are not necessarily the same as a result of the transform defined in Eq. (2.1). For a physical system consisting of particles of shape _Sρ_ ( _r_ ), a particle at position _xp_ will contribute to the density as, _ρ_ ˜( _k_ ) = _QS_ <sup>˜</sup> _ρ_ ( _k_ ) _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xp_</sup> _,_ (2.6) where _k_ _∈_ ( _−∞,_ _∞_ ). For a gridless model which does charge deposition in Fourier space using truncated Fourier basis, Eq. (2.6) is used for a truncated domain _k_ _∈_ [ _−_ _kc_ _,_ _kc_ ], where _kc_ is the cut-off wavenumber. To compare with a grid-based model, it is fair to set _kc_ = _kg/_ 2 so both models have the same spectral resolution. In Eq. (2.4) for the grid-based model and Eq. (2.6) for the physical or the gridless model, one can clearly see that the charge density is from the contribution _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xp_</sup> of a point-charge particle modified by its shape _S_ <sup>˜</sup> ( _k_ ). Furthermore, the grid-based model has the aliasing effect in Fourier space which is absent in the physical or the gridless model, i.e., the summation over all Brillouin zones. The Brillouin zones exist due to the discreteness of the grid. The summation is due to the need to convolve the particle shape’s continuous spectrum with a spectrum that includes Brillouin zones. The ratio between _ρ_ ˜( _k_ ) for the grid-based model, Eq. (2.4), and gridless models, Eq. (2.6), is, ( _S_ <sup>˜</sup> _ρ_ ( _k_ )) <sup>_−_</sup> <sup>1</sup> _e_ <sup>_i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xp_</sup> <sup>�</sup> q _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) _S_ <sup>˜</sup> _ρ_ ( _kq_ ) _e_ <sup>_−i_</sup> <sup>_kq_</sup> <sup>_·_</sup> <sup>_xp_</sup> = ( _S_ <sup>˜</sup> _ρ_ ( _k_ )) <sup>_−_</sup> <sup>1�</sup> q _S_ ˜ _ρ_ ( _kq_ ) _e_ <sup>_−i_</sup> <sup>(</sup> <sup>q</sup> <sup>_·_</sup> <sup>_kg_</sup> <sup>)</sup> <sup>_·_</sup> <sup>(</sup> <sup>_xp−_</sup> <sup>∆</sup> <sup>_rρ_</sup> <sup>)</sup> _≡_ _G_ ( _xp −_ ∆ _rρ_ _,_ _k_ ; _S_ <sup>˜</sup> _ρ_ ( _k_ )) _._ (2.7) _G_ ( _x_ _,_ _k_ ; _S_ <sup>˜</sup> _ρ_ ( _k_ )) determines the spectral error in the deposition for a particular particle shape _S_ <sup>˜</sup> _ρ_ ( _k_ ) and will be quantified in section 3. Eqs. (2.4) and (2.6) give the density for a single particle. For an infinite number of particles from a distribution _f_ ( _xp_ _,_ _v_ ), we have, 5 ˆ ˆ _d_ _v_ _Q_ q _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) _S_ <sup>˜</sup> _ρ_ ( _kq_ ) _f_ <sup>˜</sup> ( _kq_ _,_ _v_ ) _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) _S_ <sup>˜</sup> _ρ_ ( _kq_ ) _e_ <sup>_−i_</sup> <sup>_kq_</sup> <sup>_·_</sup> <sup>_xp_</sup> = _ρ_ ˜( _k_ ) = _d_ _v_ _d_ _xp_ _f_ ( _xp_ _,_ _v_ ) _Q_ q (2.8) for the PIC model and, ˆ _ρ_ ˜( _k_ ) = _d_ _v_ _QS_ <sup>˜</sup> _ρ_ ( _k_ ) _f_ <sup>˜</sup> ( _k_ _,_ _v_ ) (2.9) for the physical or gridless model. Apparently Eq. (2.8) and (2.9) differ in both amplitude and phase, however, such differences depend on _f_ <sup>˜</sup> ( _k_ _,_ _v_ ) and are difficult to quantify. _2.2._ _Field_ _solver_ For a physical system, Poisson’s equation and electric field in continuous space are _∀_ _r_ : _−∇_ <sup>2</sup> _φ_ ( _r_ ) = _ρ_ ( _r_ ) _,_ _E_ ( _r_ ) = _−∇φ_ ( _r_ ) _._ In Fourier space, this is completely equivalent to, _∀_ _k_ : _|_ [ _k_ ] _|_ <sup>2</sup> _φ_ <sup>˜</sup> ( _k_ ) = _ρ_ ˜( _k_ ) _,_ _E_ <sup>˜</sup> ( _k_ ) = _−i_ [ _k_ ] _φ_ <sup>˜</sup> ( _k_ ) _,_ (2.10) where the operator [ _k_ ] = _k_ . In a simulation, there are many ways to solve for the field. The common choices are, _•_ Use a spectral solver, _∀_ _k_ _∈_ [ _−_ _kg_ _/_ 2 _,_ _kg_ _/_ 2] : _|_ [ _k_ ] _sp|_ <sup>2</sup> _φ_ <sup>˜</sup> ( _k_ ) = _ρ_ ˜( _k_ ) _,_ _E_ <sup>˜</sup> ( _k_ ) = _−i_ [ _k_ ] _spφ_ <sup>˜</sup> ( _k_ ) (2.11) where [ _k_ ] _sp_ = _k_ . In this case, _E_ and _ρ_ are collocated on the same grid which is chosen to be the reference grid, i.e., _rE_ = _rρ_ = _rf_, _E_ <sup>˜</sup> ( _k_ ) = <sup>�</sup> _E_ ( _rf_ ) _e_ <sup>_−i_</sup> <sup>_k·rf_</sup> and _ρ_ ˜( _k_ ) = <sup>�</sup> _ρ_ ( _rf_ ) _e_ <sup>_−i_</sup> <sup>_k·rf_</sup> . We also _ρ_ ( _rf_ ) _e_ <sup>_−i_</sup> <sup>_k·rf_</sup> . We also _rf_ _E_ ( _rf_ ) _e_ <sup>_−i_</sup> <sup>_k·rf_</sup> and _ρ_ ˜( _k_ ) = <sup>�</sup> _rf_ have _E_ <sup>˜</sup> ( _k_ + _k_ _g_ ) = _E_ <sup>˜</sup> ( _k_ ) and _ρ_ ˜( _k_ + _k_ _g_ ) = _ρ_ ˜( _k_ ). _•_ Use finite difference on Poisson’s equation and the potential for which the spectral representation is, _∀_ _k_ : _|_ [ _k_ ] _fd|_ <sup>2</sup> _φ_ <sup>˜</sup> ( _k_ ) = _ρ_ ˜( _k_ ) _,_ _E_ <sup>˜</sup> ( _k_ ) = _−i_ [ _k_ ] _fdφ_ <sup>˜</sup> ( _k_ ) _._ (2.12) Here, [ _k_ ] _fd_ = ([ _kx_ ] _fd,_ [ _ky_ ] _fd,_ [ _kz_ ] _fd_ ), [ _kα_ ] _fd_ for _α_ _∈{x,_ _y,_ _z}_ is related to the Fourier representation of the finite difference operator. _ρ_ ˜( _k_ ) = <sup>�</sup> _ρ_ ( _rρ_ ) _e_ <sup>_−i_</sup> <sup>_k·rρ_</sup> and _E_ ˜ _α_ ( _k_ ) = <sup>�</sup> _Eα_ ( _r_ _Eα_ ) _e_ <sup>_−i_</sup> <sup>_k·r_</sup> <sup>_Eα_</sup> _rρ_ _r_ _Eα_ from the transform defined in Eq. (2.1), which in turn gives the usual form of [ _kα_ ] _fd_, e.g., [ _kx_ ] _fd_ = _kx_ sinc( _kx_ ∆ _x/_ 2). As central differencing is typically used, [ _kx_ ] _fd,_ [ _ky_ ] _fd,_ [ _kz_ ] _fd_ are purely real functions. Since _Eα_ and _ρ_ may be defined on different grids from the reference grid, so in general _E_ <sup>˜</sup> _α_ ( _k_ + _kg_ ) = _ψ_ ( _−_ _kg_ _,_ ∆ _r_ _Eα_ ) _E_ <sup>˜</sup> _α_ ( _k_ ), _ρ_ ˜( _k_ + _kg_ ) = _ψ_ ( _−_ _kg_ _,_ ∆ _rρ_ )˜ _ρ_ ( _k_ ) and ∆ _r_ _Eα_ = _r_ _Eα −_ _rf_, ∆ _rρ_ = _rρ_ _−_ _rf_ . Another possible choice is to use spectral solver on Poisson’s equation and finite difference on the potential, as done in the code XES1 [1]. It is clear that none of these choices for the field solver has systematic phase error, however, using finite difference inevitably introduces systematic amplitude error. 6 _rρ_ _ρ_ ( _rρ_ ) _e_ <sup>_−i_</sup> <sup>_k·rρ_</sup> and _E_ ˜ _α_ ( _k_ ) = <sup>�</sup> _r_ _Eα_ _Eα_ ( _r_ _Eα_ ) _e_ <sup>_−i_</sup> <sup>_k·r_</sup> <sup>_Eα_</sup> _2.3._ _Field_ _interpolation_ In PIC, after the field on the grid _E_ ( _rE_ ) is calculated, it is interpolated to the _j_ -th particle’s position according to _E_ ( _xj_ ) = _rE_ _SE_ ( _xj_ _−_ _rE_ ) _E_ ( _rE_ ) _,_ (2.13) ´ _∞_ where the particle shape function is _SE_ ( _r_ ) = _−∞_ <sup>_d_</sup> <sup>_k_</sup> <sup>˜</sup> <sup>_SE_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_r_</sup> <sup>_/_</sup> <sup>8</sup> <sup>_π_</sup> <sup>3</sup> <sup>and</sup> <sup>may</sup> <sup>be</sup> <sup>different</sup> <sup>than</sup> _Sρ_ ( _r_ ) in charge deposition. Then, where the particle shape function is _SE_ ( _r_ ) = ´ _∞_ <u>1</u> _d_ _k_ _S_ <sup>˜</sup> _E_ ( _k_ ) _e_ <sup>_i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xj_</sup> <sup>�</sup> _E_ ( _rE_ ) _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_rE_</sup> = 8 _π_ <sup>3</sup> _rE_ ˆ _∞_ _−∞_ <u>1</u> _E_ ( _xj_ ) = 8 _π_ <sup>3</sup> ˆ _∞_ _−∞_ _d_ _k_ _S_ <sup>˜</sup> _E_ ( _k_ ) _e_ <sup>_i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xj_</sup> _E_ <sup>˜</sup> ( _k_ ) _._ (2.14) This means that _E_ ( _k_ ) = _S_ <sup>˜</sup> _E_ ( _k_ ) _E_ <sup>˜</sup> ( _k_ ), i.e., no aliasing effect for a particular mode _E_ <sup>˜</sup> ( _k_ ). This is consistent with the idea that only sampling leads to aliasing, interpolation does not. Note that this view is for single mode analysis, for the total force on a particle, we need to integrate over all _k_, so the summation over all Brillouin zones reappears. Generally, we have _E_ ˜ _α_ ( _k_ + _kg_ ) = _ψ_ ( _−_ _kg_ _,_ ∆ _r_ _Eα_ ) _E_ <sup>˜</sup> _α_ ( _k_ ) for each component _α_ = _x,_ _y,_ _z_, so q <u>1</u> _Eα_ ( _xj_ ) = 8 _π_ <sup>3</sup> ˆ _kg/_ 2 _−_ _kg/_ 2 _d_ _k_ _E_ <sup>˜</sup> _α_ ( _k_ )� _ψ_ ( _−_ q _·_ _kg_ _,_ ∆ _r_ _Eα_ ) _S_ <sup>˜</sup> _E_ ( _kq_ ) _e_ <sup>_i_</sup> <sup>_kq_</sup> <sup>_·_</sup> <sup>_xj_</sup> _._ (2.15) In a physical model, the field on the particle can be directly reconstructed from the Fourier components, <u>1</u> _E_ ( _xj_ ) = 8 _π_ <sup>3</sup> ˆ _∞_ _d_ _k_ _S_ <sup>˜</sup> _E_ ( _k_ ) _e_ <sup>_i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xj_</sup> _E_ <sup>˜</sup> ( _k_ ) _._ (2.16) _−∞_ In a gridless model, only modes from the truncated Fourier basis, i.e., _k_ _∈_ [ _−_ _kg_ _/_ 2 _,_ _kg_ _/_ 2], are used, <u>1</u> _E_ ( _xj_ ) = 8 _π_ <sup>3</sup> ˆ _kg/_ 2 _−_ _kg/_ 2 _d_ _k_ _S_ <sup>˜</sup> _E_ ( _k_ ) _e_ <sup>_i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xj_</sup> _E_ <sup>˜</sup> ( _k_ ) _._ (2.17) Similar to the charge deposition, the integrands in the above equations for the PIC, physical (or gridless) model differ by a ratio, ( _S_ <sup>˜</sup> _E_ ( _k_ )) <sup>_−_</sup> <sup>1</sup> _e_ <sup>_−i_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_xj_</sup> <sup>�</sup> q _ψ_ ( _−_ q _·_ _kg_ _,_ ∆ _r_ _Eα_ ) _S_ <sup>˜</sup> _E_ ( _kq_ ) _e_ <sup>_i_</sup> <sup>_kq_</sup> <sup>_·_</sup> <sup>_xj_</sup> = ( _S_ <sup>˜</sup> _E_ ( _k_ )) <sup>_−_</sup> <sup>1�</sup> q _S_ ˜ _E_ ( _kq_ ) _e_ <sup>_i_</sup> <sup>(</sup> <sup>q</sup> <sup>_·_</sup> <sup>_kg_</sup> <sup>)</sup> <sup>_·_</sup> <sup>(</sup> <sup>_x_</sup> _j_ <sup>_−_</sup> <sup>∆</sup> <sup>_r_</sup> _Eα_ <sup>)</sup> = _G_ (∆ _r_ _Eα_ _−_ _xj_ _,_ _k_ ; _S_ <sup>˜</sup> _E_ ( _k_ ) ) _._ (2.18) 3. Spatial phase and amplitude errors in PIC Depending on the initial conditions, driving force, equilibrium etc., the plasma that we are trying to model may exhibit a host of unstable modes itself. So to distinguish the physical and numerical instabilities, one needs to look for the differences between the two systems. As the spatial components of the PIC loop, i.e., charge deposition, field solver and field interpolation, are now 7 spectrally resolved, it is informative to investigate the errors in the spectral domain involved in these components. In fact, it turns out that all these three components have errors in the spectral domain. Such errors can be systematic or random in nature (e.g. from round-off error) and we will only focus on the former. It is particularly worthwhile to understand the role that the systematic spectral errors play in the numerical instabilities. The phase error plays a crucial role in the development of instabilities, and in many cases determines whether the system is stable or not. On the other hand, the amplitude error typically affects the instability growth rate. In some other cases, e.g., for instabilities with amplitude threshold or some parametric instabilities, the mode amplitude can also determine the stability. However, most numerical instabilities we encounter and need to mitigate in the PIC model are not known to be of this type. _3.1._ _Spectral_ _error_ _for_ _shaped_ _particle_ Next, we will quantify the phase and amplitude errors of the PIC model compared to the gridless model, which is a computationally feasible but costly model for approximating the physical system with both spectral fidelity (up to the cut-off wave-number) and conservative properties. For the field solver, it is easy to see from Eqs. (2.11), (2.12) that neither the finite difference or spectral solver introduces systematic phase error. There is systematic amplitude error in the finite difference solver but none in the spectral solver. In general, Eq. (2.8) indicates that the deposited charge density has systematic amplitude and phase errors which depend on the particle distribution function. But for a system with finite number of shaped particles, we can further discern these errors by resolving the contributions from individual particles using Eq. (2.7). As summing each individual particle’s contribution to the charge density is a linear process, we do not expect such summation to generate additional errors other than round-off. In addition, field interpolation is naturally written for one particle in Eq. (2.15). Therefore, for a single particle, Eqs. (2.7) and (2.18) give the errors that can be quantified for a specific particle shape. For an orthogonal coordinate system and corresponding deposition and force interpolation, _G_ ( _x_ _,_ _k_ ; _S_ <sup>˜</sup> ( _k_ )) = - _gα_ ( _α/_ ∆ _α,_ _kα_ ; _s_ ˜ _α_ ( _kα_ )) for _S_ <sup>˜</sup> ( _k_ ) = - _s_ ˜ _α_ ( _kα_ ). For _gα_ ( _α/_ ∆ _α,_ _kα_ ; _s_ ˜ _α_ ( _kα_ )) for _S_ <sup>˜</sup> ( _k_ ) = _s_ ˜ _α_ ( _kα_ ). For _α_ = _x,y,z_ _α_ = _x,y,z_ Cartesian coordinate, we only need to determine the spectral errors for one particular dimension, e.g., _g_ ( _x/_ ∆ _x,_ _k_ ; _s_ ˜( _k_ )) = _s_ ˜( _k_ ) <sup>_−_</sup> <sup>1�</sup> _s_ ˜( _kq_ ) _e_ <sup>_−iqkgx_</sup> for _x_ direction. Cartesian coordinate, we only need to determine the spectral errors for one particular dimension, e.g., _g_ ( _x/_ ∆ _x,_ _k_ ; _s_ ˜( _k_ )) = _s_ ˜( _k_ ) <sup>_−_</sup> <sup>1�</sup> _s_ ˜( _kq_ ) _e_ <sup>_−iqkgx_</sup> for _x_ direction. _q_ Since _g_ ( _x/_ ∆ _x,_ _k_ ; _s_ ˜( _k_ )) is periodic in _x_, _g_ ( _x_ + 1 _,_ _k_ ; _s_ ˜( _k_ )) = _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) _,_ and symmetric in _k_ for symmetric shape function _s_ ˜( _−k_ ) = _s_ ˜( _k_ ), _g_ ( _x,_ _−k_ ; _s_ ˜( _−k_ )) = _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) _,_ one only needs to determine _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) for _x_ _∈_ [0 _,_ 1] and _k_ _∈_ [0 _, kg/_ 2]. For the most commonly used B-spline particle shapes _s_ ˜ _µ_ ( _k_ ) of order _µ_ and the Gaussian function _s_ ˜ _G_ ( _k_ ), the systematic spectral errors _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) can be analytically quantified. For B-spline particle shapes, _s_ ˜ _µ_ ( _k_ ) = [sinc( _k_ ∆ _x/_ 2)] <sup>_µ_</sup> <sup>+1</sup>, the infinite sum in _g_ ( _x,_ _k_ ; _s_ ˜ _µ_ ) can be evaluated into a compact form using the Hurwitz-Lerch transcendent Φ( _z, s, a_ ) = <sup>�</sup> _n_ <sup>_∞_</sup> =0 <sup>_zn_</sup> <sup>(</sup> <sup>_n_</sup> <sup>+</sup> <sup>_a_</sup> <sup>)</sup> <sup>_−s_</sup> _n_ <sup>_∞_</sup> =0 <sup>_zn_</sup> <sup>(</sup> <sup>_n_</sup> <sup>+</sup> <sup>_a_</sup> <sup>)</sup> <sup>_−s_</sup> to give, 8 _e_ <sup>_−i_</sup> <sup>2</sup> <sup>_πx_</sup> Φ �( _−_ 1) <sup>_µ_</sup> <sup>+1</sup> _e_ <sup>_−i_</sup> <sup>2</sup> <sup>_πx_</sup> _,_ _µ_ + 1 _,_ 1 + <sup>_<u>k</u>_</sup> <sup><u>∆</u></sup> <sup>_<u>x</u>_</sup> 2 _π_ _g_ ( _x,_ _k,_ _s_ ˜ _µ_ ) = - _<u>−k</u>_ <u>∆</u> _<u>x</u>_ 2 _π_ _µ_ +1 �� _._ (3.1) +Φ �( _−_ 1) <sup>_µ_</sup> <sup>+1</sup> _e_ <sup>_i_</sup> <sup>2</sup> <sup>_πx_</sup> _,_ _µ_ + 1 _,_ <sup>_<u>−k</u>_</sup> <sup><u>∆</u></sup> <sup>_<u>x</u>_</sup> 2 _π_ Similarly, <u>for</u> a Gaussian function of width _σ_ ∆ _x_, _sG_ ( _x_ ; _σ_ ) = _e_ <sup>_−x_</sup> <sup>2</sup> <sup>_/_</sup> <sup>(</sup> <sup>_σ_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>)2</sup> _/_ ( <sup>_√_</sup> _<u>πσ</u>_ ∆ _x_ ), _s_ ˜ _G_ ( _k_ ; _σ_ ) = _√_ _e_ <sup>_−_</sup> <sup>(</sup> <sup>_kσ_</sup> <sup>∆</sup> <sup>_x/_</sup> <sup>2)2</sup> _/_ 2 _π_, the infinite sum in _g_ ( _x,_ _k_ ; _s_ ˜ _G_ ) can be evaluated using the elliptic theta function _ϑ_ 3( _u, q_ ) = 1 + 2 <sup>�</sup> _n_ <sup>_∞_</sup> =1 <sup>_qn_</sup> <sup>2 cos(2</sup> <sup>_nu_</sup> <sup>)</sup> <sup>to</sup> <sup>give,</sup> _√_ _n_ <sup>_∞_</sup> =1 <sup>_qn_</sup> <sup>2 cos(2</sup> <sup>_nu_</sup> <sup>)</sup> <sup>to</sup> <sup>give,</sup> <u>1</u> 2 _g_ ( _x,_ _k,_ _s_ ˜ _G_ ) = _ϑ_ 3 _~~√~~_ _<u>πσe</u>_ <sup>_σ_</sup> <sup>2(</sup> <sup>_k_</sup> <sup>∆</sup> <sup>_x/_</sup> <sup>2+</sup> <sup>_ix/σ_</sup> <sup>2)</sup> - _k_ ∆ _x/_ 2 + _ix/σ_ <sup>2</sup> _,_ _e_ <sup>_−_</sup> <sup>1</sup> <sup>_/σ_</sup> <sup>2�</sup> _._ (3.2) Although _sG_ ( _x_ ; _σ_ ) is a valid particle shape but not a valid interpolation function, one can define a new function ˜ _s_ ( _k_ ) = _s_ ˜ _G_ ( _k_ ; _σ_ )˜ _sµ_ ( _k_ ) such that the corresponding _s_ ( _x_ ) is a valid interpolation function. _√_ For example, for _µ_ = 0, we have _s_ ˜ _Erf_ ( _k_ ; _σ_ ) _≡_ _s_ ˜ _G_ ( _k_ ; _σ_ )˜ _s_ 0( _k_ ) = _e_ <sup>_−_</sup> <sup>(</sup> <sup>_kσ_</sup> <sup>∆</sup> <sup>_x/_</sup> <sup>2)2</sup> sinc( _k_ ∆ _x/_ 2) _/_ 2 _π_ and _√_ For example, for _µ_ = 0, we have _s_ ˜ _Erf_ ( _k_ ; _σ_ ) _≡_ _s_ ˜ _G_ ( _k_ ; _σ_ )˜ _s_ 0( _k_ ) = _e_ <sup>_−_</sup> <sup>(</sup> <sup>_kσ_</sup> <sup>∆</sup> <sup>_x/_</sup> <sup>2)2</sup> sinc( _k_ ∆ _x/_ 2) _/_ 2 _π_ and _sErf_ ( _x_ ; _σ_ ) = �Erf( 2 <sup><u>1</u></sup> _σ_ <sup>_−_</sup> 4 _σx_ ∆ _x_ <sup>) + Erf(</sup> 2 <sup><u>1</u></sup> _σ_ <sup>+</sup> 4 _σx_ ∆ _x_ <sup>)</sup> - _/_ (2∆ _x_ ), where Erf( _x_ ) is the error function. It is _sErf_ ( _x_ ; _σ_ ) = �Erf( 2 <sup><u>1</u></sup> _σ_ <sup>_−_</sup> 4 _σx_ ∆ _x_ <sup>) + Erf(</sup> 2 <sup><u>1</u></sup> _σ_ <sup>+</sup> 4 _σx_ ∆ _x_ <sup>)</sup> - _/_ (2∆ _x_ ), where Erf( _x_ ) is the error function. It is not clear whether _g_ ( _x,_ _k_ ; _s_ ˜ _Erf_ ) has a compact analytic form but numerical evaluation in Fig. 2 shows _g_ ( _x,_ _k_ ; _s_ ˜ _Erf_ ) is similar to _g_ ( _x,_ _k_ ; _s_ ˜ _G_ ). The amplitude and phase of _g_ ( _x,_ _k,_ _s_ ˜ _µ_ ), _g_ ( _x,_ _k,_ _s_ ˜ _G_ ) and _g_ ( _x,_ _k_ ; _s_ ˜ _Erf_ ) are shown in Figs. 1 and 2. The general trends in Figs. 1 and 2 are that (1) larger amplitude and phase errors occur at higher _k_ ; and (2) the wider the particle shape, the errors are more concentrated at high _k_ . Both amplitude and phase errors depend on the particle’s position in the cell, except for the amplitude error for _s_ 0 (nearest grid point). For the phase error, the largest error occurs when the particle is in the middle of the cell. Comparing _g_ ( _x,_ _k,_ _s_ ˜ _µ_ ) in Fig. 1, another salient observation is that the phase error improves slowly with the increase of the order of the particle shape. Also the dependence of the errors on the particle position does not seem to go away quickly as the order is increased, despite stronger attenuation to the high _k_ modes. As will be shown at the end of section 3.2, the spectral errors, especially their dependences on the particle position, play a key role in determining the growth rate of most unstable mode in the linear FGI case, while the attenuation to the high _k_ modes due to _S_ ˜( _k_ ) and _S_ ˜ <sup>_′_</sup> ( _k_ ) in the front factors in Eq. (2.7) and (2.18) enlarges the stability domain, but at the expense of accuracy of the high _k_ modes. The high order B-spline particle shapes offer both benefits but the latter benefit can also be achieved via a low-pass filter that is independent of the particle position. _3.2._ _Relation_ _between_ _the_ _linear_ _instability_ _and_ _the_ _spectral_ _error_ The value of ˜ _s_ ( _k_ ) in and outside the fundamental Brillouin zone _−kg/_ 2 _< k_ _< kg/_ 2 play different roles in the linear grid instability. The latter value is related to the spectral errors _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )). In order to distinguish their roles, it is instructive to inspect the linear dispersion equation Eq. (C.7) in the limit ∆ _t →_ 0 for a 1D cold drifting plasma with velocity _v_ 0, �Erf( 2 <sup><u>1</u></sup> 1 _−_ <sup><u>1</u></sup> _k_ <sup>2</sup> _q_ _s_ ˜ <sup>2</sup> ( _kq_ ) _kq_ <sup>2</sup> ( _ω −_ _kqv_ 0) <sup>2</sup> <sup>= 0</sup> <sup>_,_</sup> (3.3) where we also assume _s_ ˜ _ρ_ = _s_ ˜ _E_ = _s_ ˜, [ _k_ ] <sup>2</sup> = _k_ <sup>2</sup> and _κ_ ( _kq_ ) = _kq_ for simplicity. 9 �g�x, k, _s_ 0�� Arg�g �x, k, _s_ 0�� 0 0 0 0 k�x k�x k�x k�x 2 1 0 2 1 0 k�x k�x k�x k�x 1 0 �1 0 1 0 �1 0 Π 1 1 �g�x, k, _s_ 1�� Arg�g �x, k, _s_ 1�� Π 2 1 0 1 0 �1 0 Π 1 1 �g �x, k, _s_ 2�� Arg�g �x, k, _s_ 2�� Π 2 1 0 1 0 �1 0 Π 1 1 �g �x, k, _s_ 3�� x x x x Arg�g �x, k, _s_ 3�� Π x x x x 0 0 0 0 Π 1 Π 1 Figure 1: The amplitude (left column) and phase (right column) of _g_ ( _x,_ _k,_ _s_ ˜ _µ_ ) for _µ_ = 0 _,_ 1 _,_ 2 _,_ 3, which correspond to nearest grid point, linear, quadratic, cubic particle shapes, respectively. 10 �g �x, k, _s_ ���, Σ�1 Arg�g �x, k, _s_ ���, Σ�1 0 0 k�x k�x k�x 2 1 0 2 1 0 1 0 �1 0 1 0 �1 0 x x k�x x x Π 1 1 �g �x, k, _s_ ���, Σ�2 Arg�g �x, k, _s_ ���, Σ�2 Π 0 0 k�x x Π 1 1 �g �x, k, _s_ Erf��, Σ�2 Arg�g �x, k, _s_ Erf��, Σ�2 Π 2 1 0 1 0 �1 0 x k�x Π 1 Π 1 Figure 2: The amplitude (left column) and phase (right column) of _g_ ( _x,_ _k_ ; _s_ ˜ _G_ ) for the Gaussian shape _sG_ ( _x_ ; ∆ _x_ ) (top row), _sG_ ( _x_ ; 2∆ _x_ ) (middle row) and of _g_ ( _x,_ _k_ ; _s_ ˜ _Erf_ ) for the _sErf_ ( _x_ ; 2∆ _x_ ) shape (bottom row), respectively. 11 _s_ ˜( _kq_ ) _e_ <sup>_−iqkgx_</sup> = _s_ ˜( _k_ ) _g_ ( _x/_ ∆ _x, k_ ; ˜ _s_ ( _k_ )), inverse Fourier transform with respect to _x_ gives As <sup>�</sup> ´ _q_ _s_ ˜( _kq_ ) = g _qs_ ˜( _k_ ), where g _α_ _≡_ _g_ ˜( _α,_ _k_ ; _s_ ˜( _k_ )) = ∆ _x_ _dxe_ <sup>_−i_</sup> <sup>2</sup> <sup>_παx_</sup> _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) is discrete at _α_ = _q_ due to the periodicity of _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) in _x_ . For _n_ th order B-spline shape, g _q_ = ( _−k/kq_ ) <sup>_n_</sup> <sup>+1</sup> ; for _s_ ˜ _Erf_ ( _k_ ; _σ_ ) shape, g _q_ = _−k/kq_ _· e_ <sup>_σ_</sup> <sup>2[(</sup> <sup>_k_</sup> <sup>∆</sup> <sup>_x/_</sup> <sup>2)2</sup> <sup>_−_</sup> <sup>(</sup> <sup>_k_</sup> <sup>∆</sup> <sup>_x/_</sup> <sup>2+</sup> <sup>_qπ_</sup> <sup>)2]</sup> . Keeping only the 0th and _q_ th terms, Eq. (3.3) can be rewritten as, _s_ ˜( _kq_ ) = g _qs_ ˜( _k_ ), where g _α_ _≡_ _g_ ˜( _α,_ _k_ ; _s_ ˜( _k_ )) = ∆ _x_ 1 _−_ _s_ ˜ <sup>2</sup> ( _k_ ) - <u>1</u> g _<u>q</u>_ <sup>2</sup> Ω <sup>2</sup> <sup>+</sup> (Ω (Ω _−_ _kgv_ 0) <sup>2</sup> _<u>q</u>_ <sup>2</sup> <sup>_k_</sup> _<u>q</u>_ <sup>2</sup> _<u>q</u>_ <sup>2</sup> <sup>_/k_</sup> <sup>2</sup> = 0 _,_ (3.4) where Ω= _ω −_ _kv_ 0 and _−kg/_ 2 _< k_ _< kg/_ 2. In Eq. (3.4), _s_ ˜( _k_ ) and g _q_ affect the instability domain and growth rate differently. For the model dispersion in Eq. (3.4), mode stability requires _s_ ˜( _k_ ) ≲ _kgv_ 0 (see Appendix C). So for sufficiently small _s_ ˜( _k_ ) in the fundamental Brillouin zone, there is no instability for a particular _k_ . However, this is achieved at the expense of the dispersion accuracy of the physical modes, since _s_ ˜( _k_ ) can be seen as a renormalization of Ω. While g _q_ = _s_ ˜( _kq_ ) _/s_ ˜( _k_ ), which is closely related to the spectral errors _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )), affects the alias modes thus the instability only. More specifically, g _q_ has a large effect on the instability growth rate but little on the stability domain. g _q_ is real and can be written as a sum of the Fourier coefficients of the amplitude and phase components of _g_ ( _x,_ _k_ ; _s_ ˜( _k_ )), g _q_ = _l_ A _l_ Θ _q−l_ (3.5) _dxe_ <sup>_−i_</sup> <sup>2</sup> <sup>_πlx_</sup> _|g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) _|_ and Θ _q−l_ = ∆ _x_ where A _l_ = ∆ _x_ _dxe_ <sup>_−i_</sup> <sup>2</sup> <sup>_πlx_</sup> _|g_ ( _x,_ _k_ ; _s_ ˜( _k_ )) _|_ and Θ _q−l_ = ∆ _x_ _dxe_ <sup>_−i_</sup> <sup>2</sup> <sup>_π_</sup> <sup>(</sup> <sup>_q−l_</sup> <sup>)</sup> <sup>_x_</sup> <sup>+</sup> <sup>_i_</sup> <sup>Arg[</sup> <sup>_g_</sup> <sup>(</sup> <sup>_x, k_</sup> <sup>; ˜</sup> <sup>_s_</sup> <sup>(</sup> <sup>_k_</sup> <sup>))]</sup> . The dominating terms in Eq. (3.5) is A0Θ _q_ and A _q_ Θ0 as both A _l_ and Θ _l_ are highly peaked at _l_ = 0. Therefore the _q_ th alias mode appears mainly because the presence of the amplitude or phase errors that is position-dependent and modulated at the _q_ th harmonics of the grid. For the common Bspline particle shapes, A0Θ _q_ dominates at high _k_, therefore the amplitude error is more important, while at lower _k_, A _q_ Θ0 dominates, i.e., the phase error is more important. ´ where A _l_ = ∆ _x_ ´ The most unstable mode _k_ <sup>_max_</sup> in the dispersion Eq. (3.4) can be obtained from _s_ ˜( _k_ <sup>_max_</sup> ) _≈_ _kgv_ 0. Its normalized growth rate is <u>3</u> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _i_ <sup>_max_</sup> _≈_ 2 _·_ 2 <sup>1</sup> _q_ <sup>_max_</sup> _/k_ <sup>_max_</sup> <sup>�2</sup> <sup>_/_</sup> <sup>3</sup> g _q_ <sup>2</sup> <sup>_/_</sup> <sup>3</sup> <u>3</u> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _q_ _._ (3.6) 2 _·_ 2 <sup>1</sup> <sup>_/_</sup> <sup>3</sup> <sup>(</sup> <sup>_kgv_</sup> <sup>0)1</sup> <sup>_/_</sup> <sup>3 (1 +</sup> <sup>_qkg/kmax_</sup> <sup>)2</sup> <sup>_/_</sup> <sup>3 g2</sup> <sup>_/_</sup> <sup>3</sup> <u>3</u> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _q_ <sup>2</sup> <sup>_/_</sup> <sup>3</sup> _≈_ 2 _·_ 2 <sup>1</sup> _ωi_ <sup>_max_</sup> _kq_ <sup>_max_</sup> 2 _·_ 2 <sup>1</sup> <sup>_/_</sup> <sup>3</sup> <sup>_s_</sup> <sup>˜(</sup> <sup>_kmax_</sup> <sup>)1</sup> <sup>_/_</sup> <sup>3 �</sup> Therefore, smaller _s_ ˜( _k_ ) in the fundamental Brillouin zone (but keeping g _q_ the same) actually leads to smaller _k_ <sup>_max_</sup> and higher maximum growth rate, while smaller _|_ g _q|_ (but keeping _s_ ˜( _k_ ) in the fundamental Brillouin zone the same) lowers the maximum growth rate. This indicates that a particle shape with a high contrast between the fundamental and higher order Brillouin zones, i.e., small _|_ g _q|_ that translates to small position dependent spectral errors, is beneficial when aliasing is unavoidable. _3.3._ _Spectral_ _fidelity_ _of_ _the_ _collective_ _modes_ Now it is clear that the systematic spectral errors in the deposition and field interpolation occur at the individual particle level, but the overall errors from an ensemble of plasma particles are less transparent. To this end, we can analyze how these errors manifest themselves in the collective motion of a finite number of particles. To simplify this analysis, an initially cold beam of _Np_ particles moving at velocity _V_ 0 is assumed, but the analysis is not restricted to this velocity 12 distribution. Each particle has charge _Q_, mass _m_ . The system is periodic with length _L_ and _Ng_ cells, ∆ _x_ = _L/Ng_ is the cell size. When there is no perturbation, the _j_ -th particle is located at _Xj_ and particles are equally spaced with distance ∆ _X_ = _L/Np_ . The particle’s position _xj_ is perturbed at _t_ = 0 and then evolves self-consistently. The displacement of the particle is _δx_ ( _Xj, t_ ) = _xj_ ( _t_ ) _−Xj_ and can be expanded into Fourier modes ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_K_</sup> <sup>⩾0</sup> ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_|K|_</sup> _δx_ ˜ ( _K, t_ ) _e_ <sup>_iKX_</sup> _j_ = 2 _Np_ <sup>_−_</sup> <sup>1</sup> _δx_ ( _Xj, t_ ) = _Np_ <sup>_−_</sup> <sup>1</sup> _δx_ ( _Xj, t_ ) = _Np_ <sup>_−_</sup> <sup>1</sup> _A_ ( _K, t_ )cos ( _KXj_ + _θ_ ( _K, t_ )) _,_ where _δx_ <sup>˜</sup> ( _K, t_ ) = _A_ ( _K, t_ ) _e_ <sup>_iθ_</sup> <sup>(</sup> <sup>_K,t_</sup> <sup>)</sup> = <sup>�</sup> _δx_ ( _Xj, t_ ) _e_ <sup>_−iKXj_</sup>, _A_ ( _K, t_ ) and _θ_ ( _K, t_ ) are the mode amplitude _j_ and phase of the collective motion of these _Np_ particles. The drift motion of the beam is described by the _K_ = 0 mode. Assuming these particles have shape _s_ ˜( _k_ ), their contribution to the density of mode _k_ in the periodic physical system (or a gridless model) is ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_K_</sup> <sup>⩾0</sup>  _A_ ( _K,t_ )cos( _KXj_ + _θ_ ( _K,t_ )) _,_ (3.7)   _Xj_ +2 _Np_ <sup>_−_</sup> <sup>1</sup> _s_ ˜( _k_ ) _e_ <sup>_−ikxj_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = _Qs_ ˜( _k_ )� _s_ ˜( _k_ ) _e_ <sup>_−ikxj_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = _Qs_ ˜( _k_ ) _−ik_ _e_ _ρ_ ˜( _k_ ) = _Q_ _j_ _j_ where _|k| < π/_ ∆ _x_ . the phase factor in this sum can be written, using the Jacobi-Anger expansion, as ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_K_</sup> <sup>⩾0</sup>   _−ik_ _e_   _Xj_ +2 _Np_ <sup>_−_</sup> <sup>1</sup> _A_ ( _K,t_ )cos( _KXj_ + _θ_ ( _K,t_ )) = _e_ <sup>_−ikXj_</sup> _·_ = _e_ <sup>_−ikXj_</sup> _·_ �� _νK_ ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_K_</sup> <sup>⩾0</sup> _i_ <sup>_νK_</sup> _JνK_ ( _−_ 2 _kA_ ( _K, t_ ) _/Np_ ) _· e_ <sup>_iνK_</sup> <sup>[</sup> <sup>_KXj_</sup> <sup>+</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K,t_</sup> <sup>)]</sup> _ν_ 0 _,...,νK_ _JνK_ ( _−_ 2 _kA_ ( _K, t_ ) _/Np_ ) _._ (3.8) _ν_ 0 _,...,νK_ _e_ <sup>_i_</sup> <sup>�(</sup> <sup>_νK_</sup> <sup>_K_</sup> <sup>)</sup> <sup>_·Xj_</sup> <sup>+</sup> <sup>_i_</sup> <sup>�</sup> <sup>_νK_</sup> <sup>_·_</sup> <sup>[</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2]</sup> _·_ where _νK_ is an integer for each mode _K_ in ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_K_</sup> <sup>⩾</sup> <sup>0,</sup> <sup>_JνK_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>_νK_</sup> <sup>-th</sup> <sup>Bessel</sup> <sup>function</sup> <sup>of</sup> the first kind. - ( - ) is a sum (product) over all combination of _νK_ s and <sup>�</sup> _νK_ is a sum ( ) is a sum (product) over all combination of _νK_ s and <sup>�</sup> _νK_ is a sum _ν_ 0 _,...,νK_ _ν_ 0 _,...,νK_ of every _νK_ for ∆ _<u>πX</u>_ <sup>⩾</sup> <sup>_K_</sup> <sup>⩾</sup> <sup>0.</sup> Summing Eq. (3.8) over _Xj_ and using _∞_ _ν_ 0= _−∞_ _Jν_ 0( _x_ ) = 1 gives, _k −_ _mkP_ _−_ _,_ _JνK_ ( _−_ 2 _kA_ ( _K, t_ ) _/Np_ ) - ( _νKK_ )� _· e_ <sup>_i_</sup> <sup>�</sup> <sup>_νK_</sup> <sup>_·_</sup> <sup>[</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2]</sup> _·_ _ν_ 1 _,...,νK_ _δ_ _ρ_ ˜( _k_ ) = _NpQs_ ˜( _k_ ) _ν_ 1 _,...,νK_ (3.9) where _kP_ = 2 _π/_ ∆ _X_ = _Np_ 2 _π/L_ and _m_ is an integer. Eq. (3.9) describes the contribution from the Fourier modes of the collective motion to the Fourier modes of the density, where the first, second and third terms in the curly bracket determining the mode coupling relation, phase and strength, respectively. The _π/_ 2 in the phase factor comes 13 from the phase difference between particle’s displacement and the density. Note that Eq. (3.9) is valid for arbitrary number of particles and arbitrary spectrum/amplitude of the collective modes. Due to the finite number of particles in a system, the _mkP_ term in the argument of the delta function introduces a physical coupling due to the “particle aliasing” effect of the collective mode. Typically we are interested in the case _k_ _≪_ _kP_, thus this effect couples a low _k_ mode and a very high _K_ collective mode efficiently only when _νK_ is a small number. Furthermore, the coupling coefficient _JνK_ ( _−_ 2 _kA_ ( _K, t_ ) _/Np_ ) would be small when there are sufficient large number of particles, _Np_ _≫_ 1, so practically we may take _m_ = 0 and ignore this effect in a physical system for most situations. Next we investigate the coupling among collective modes and density modes only. This can be illustrated by understanding how a single collective mode couples to the density perturbation first. For a collective mode spectrum with a single mode _K_ 0, _A_ ( _K_ 0) _̸_ = 0, while _A_ ( _K̸_ = _K_ 0) = 0. Since _JνK_ (0) _̸_ = 0 only when _νK_ = 0, so we have _δ_ ( _k −_ <sup>�</sup> ( _νKK_ )) = _δ_ ( _k −_ _νK_ 0 _K_ 0). This corresponds to the excitation of the fundamental mode _k_ = _K_ 0 and its harmonics _k_ = _νK_ 0 _K_ 0 with the mode coupling coefficient being _s_ ( _νK_ 0 _K_ 0) _e_ <sup>_iνK_</sup> <sup>0</sup> <sup>_·_</sup> <sup>[</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K_</sup> <sup>0</sup> <sup>_,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2]</sup> _· JνK_ 0 ( _−_ 2 _νK_ 0 _K_ 0 _A_ ( _K_ 0 _, t_ ) _/Np_ ). Similarly, when there are two collective modes _K_ 0 and _K_ 1, their beating will result in density perturbation at mode _k_ = _νK_ 0 _K_ 0 + _νK_ 1 _K_ 1 with the coupling coefficient being _s_ ( _νK_ 0 _K_ 0 + _νK_ 1 _K_ 1) _e_ <sup>_i_</sup> <sup>[</sup> <sup>_νK_</sup> <sup>0</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K_</sup> <sup>0</sup> <sup>_,t_</sup> <sup>)+</sup> <sup>_νK_</sup> <sup>1</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K_</sup> <sup>1</sup> <sup>_,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2</sup> <sup>_·_</sup> <sup>(</sup> <sup>_νK_</sup> <sup>0</sup> <sup>+</sup> <sup>_νK_</sup> <sup>1</sup> <sup>)]</sup> _· JνK_ 0 ( _−_ 2 _kA_ ( _K_ 0 _, t_ ) _/Np_ ) _JνK_ 1 ( _−_ 2 _kA_ ( _K_ 1 _, t_ ) _/Np_ ). From this, the coupling for the density perturbation involving more collective modes can be generalized. The density perturbation created by the collective modes in turn drives more collective modes of the particles through the electric field. We define the electric field on the particle as a function of _Xj_, _k_ _s_ ˜( _k_ ) _E_ <sup>˜</sup> ( _k_ ) _e_ <sup>_ikxj_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = _Ng_ <sup>_−_</sup> <sup>1</sup> _<u>−i</u>_ [ _k_ ] <sup>_s_</sup> <sup>˜(</sup> <sup>_k_</sup> <sup>)˜</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_eikxj_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> _E_ ( _Xj, t_ ) = _E_ ( _xj_ ( _t_ )) = _Ng_ <sup>_−_</sup> <sup>1</sup> _k_ whose Fourier transform with regard to _Xj_ is, _j_ _<u>−i</u>_ [ _k_ ] <sup>_s_</sup> <sup>˜(</sup> <sup>_k_</sup> <sup>)˜</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>[</sup> <sup>_kxj_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_−KXj_</sup> <sup>]</sup> <sup>_._</sup> _E_ ( _K, t_ ) = _Ng_ <sup>_−_</sup> <sup>1</sup> _E_ ( _K, t_ ) = _Ng_ <sup>_−_</sup> <sup>1</sup> _k_ Here, [ _k_ ] is the effective operator from the field solver. Similar to the phase factor for the density in Eq. (3.8), the phase factor in the above equation can be expanded and the sum over _Xj_ can be carried out to give, _K −_ _k −_ _mkP_ _−_ _e_ <sup>_i_</sup> <sup>�</sup> <sup>_νK′_</sup> <sup>_·_</sup> <sup>[</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K′,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2]</sup> _E_ ( _K, t_ ) = <sup>_<u>Np</u>_</sup> _Ng_ _k_ �� _νK′K_ <sup>_′_</sup> <sup>��</sup> _<u>−i</u>_ [ _k_ ] <sup>_s_</sup> <sup>˜(</sup> <sup>_k_</sup> <sup>)˜</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _ν_ 1 _,...,νK′_ _δ_ _·_ _ν_ 1 _,...,νK′_ _JνK′_   �2 _kA_ ( _K_ <sup>_′_</sup> _, t_ ) _/Np_ � <sup>_._</sup> (3.10) The relation between _E_ ( _K, t_ ) and _ρ_ ˜( _k_ ) (or _E_ ( _k_ )) depends on the argument of the delta function and the sum over _k_, therefore it is more complicated than that between _ρ_ ˜( _k_ ) and _δx_ <sup>˜</sup> ( _K, t_ ) in Eq. (3.9). Again we may ignore the particle aliasing effect in the collective mode when _N_ _≫_ 1. Then for the simplest case of a collective motion with a single mode _K_ 0, a non-zero value of - _̸_ _ν_ 1 _,...,νK′_ _JνK′_ (2 _kA_ ( _K_ <sup>_′_</sup> _, t_ ) _/Np_ ) requires that _νK′̸_ = _K_ 0 = 0, therefore, <sup>�</sup> _νK′_ = _νK_ 0, <sup>�</sup> ( _νK′K_ <sup>_′_</sup> ) = 14 _νK_ 0 _K_ 0. Coupling to _E_ ( _K, t_ ) thus comes from _ρ_ ˜( _k_ = _K_ _−_ _νK_ 0 _K_ 0), which is not necessarily the harmonics of _K_ 0. When the collective motion involves two modes _K_ 0 and _K_ 1, coupling to _E_ ( _K, t_ ) can come from _ρ_ ˜( _k_ = _K −_ _νK_ 0 _K_ 0 _−_ _νK_ 1 _K_ 1) for any _νK_ 0 and _νK_ 1. Finally, the evolution of the collective modes is determined by the equation of motion _d_ ( _δx_ ( _K, t_ )) _/dt_ <sup>2</sup> = <sup>_<u>Q</u>_</sup> (3.11) _m_ <sup>_E_</sup> <sup>(</sup> <sup>_K, t_</sup> <sup>)</sup> <sup>_,_</sup> which is an ordinary differential equation (ODE). Clearly, regardless of whether it is written in a continuous or discrete time variable, this step does not introduce spectral errors in _K_ -space. Now, Eqs. (3.9), (3.10) and (3.11) are the coupled equations describing the evolution of the collective modes in the physical system of a cold beam. When the discrete time version of Eq. (3.11) is used, these equations represent a discrete-time analog of the physical system. If Eq. (3.11) is discretized using a scheme consistent with the underlying ODE, i.e., the solution of the discretized equation approaches that of the ODE when the discretization step ∆ _t_ _→_ 0, then a numerical instability, if occurring in this discrete-time system, will exhibit dependence on ∆ _t_ . Therefore, a convergence test can discern a numerical instability due to discretization in time. Early study of FGI already established that the numerical heating rate is independent of the time step, therefore time discretization cannot be the reason of FGI. From the single particle analysis of the systematic spectral errors presented earlier in this section, we can see that another possibility of the numerical instability in PIC is the spectral errors in the deposition and field interpolation due to the aliasing effect. In fact, for the PIC model, Eqs. (3.9) and (3.10) take on the following forms, _kq −_ _mkP_ _−_ - ( _νKK_ )� _e_ <sup>_i_</sup> <sup>�</sup> <sup>_νK_</sup> <sup>_·_</sup> <sup>[</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2]</sup> _ρ_ ˜( _k_ ) = _NpQ_ _q_ _ν_ 1 _,...,νK_ _δ_ _s_ ˜( _kq_ ) _·_ - _JνK_ ( _−_ 2 _kqA_ ( _K, t_ ) _/Np_ ) _ν_ 1 _,...,νK_ _,_ (3.12) _δ_ _ν_ 1 _,...,νK′_ _<u>Np</u>_ _E_ ( _K, t_ ) = _Ng_ _q_ _|k|≤kg/_ 2 �� _νK′K_ <sup>_′_</sup> <sup>��</sup> _<u>−i</u>_ [ _kq_ ] <sup>_ρ_</sup> <sup>˜(</sup> <sup>_kq_</sup> <sup>)</sup> <sup>_·_</sup> <sup>˜</sup> <sup>_s_</sup> <sup>(</sup> <sup>_kq_</sup> <sup>)</sup> <sup>_·_</sup> _K −_ _kq −_ _mkP_ _−_ _·_ _e_ <sup>_i_</sup> <sup>�</sup> <sup>_νK′_</sup> <sup>_·_</sup> <sup>[</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_K′,t_</sup> <sup>)+</sup> <sup>_π/_</sup> <sup>2]</sup> _ν_ 1 _,...,νK′_ _JνK′_   �2 _kqA_ ( _K_ <sup>_′_</sup> _, t_ ) _/Np_ � <sup>_,_</sup> (3.13) where _k_ has been replaced by its alias _kq_ and a sum of all aliases is taken. Compared with Eqs. (3.9) and (3.10), Eqs. (3.12) and (3.13) lack the spectral fidelity to the physical system, i.e., they contain not only phase and amplitude errors, but also unphysical mode couplings. As will be shown in the next section, such lack of spectral fidelity is the major cause of the finite grid instability. 4. Comparison of the gridless model and the PIC models In this section, we compare the 1D non-relativistic electrostatic simulation results of a numerical plasma that is susceptible to the finite grid instability, for various PIC models and from the gridless 15 model. The simplest simulation is that of a single-mode electrostatic oscillation in a cold plasma with a drift. While this mode will generate high harmonics, such system should be stable for a long time. During this period, the plasma should remain cold, i.e., the local momentum spread is zero. The three spatial components of the numerical scheme - the charge deposition, the field solver and the field interpolation, are implemented in the PIC/finite-difference mode and/or the gridless mode. The mode history from the simulations are compared, the focus here is not the accuracy of the simulation but to understand the roles of the amplitude and phase errors in the finite grid instability. The simulation box has dimensionless size _L_ = 2 _πc/ωp_ and _N_ = 33 cells. The initial plasma density _n_ 0 is constant across the box. _NC_ = 300 particles per cell is used for the electrons and the ions constitute a uniform neutralizing background. The electrons are equally spaced and a sinusoidal displacement _δx_ ( _xp_ 0) = _AL_ cos(2 _πMxp_ 0 _/L_ ) _/_ (2 _πM_ ) is applied to initialize a density perturbation, where _M_ is the mode number and _xp_ 0 is the unperturbed particle position. The density perturbation is given by _n_ 1( _x_ ) _/n_ 0 = _−∂δx/∂x_ = _A_ sin(2 _πMx/L_ ) for point particles and the actual amplitude will be smaller by _s_ ( _k_ = 2 _πM/L_ ) when a shaped particle is used in the simulation. The electron initial velocity is the sum of the drift velocity _V_ 0 = 0 _._ 01 _c_ and perturbed velocity _δV_ = _ALωp_ sin(2 _πMx/L_ ) _/_ (2 _πM_ ), where _c_ is the speed of light. Results are compared in Fig. 3 for four simulations with _ωp_ ∆ _t_ = 0 _._ 2: (1) the momentum conserving PIC model [1] with linear particle shape; (2) the momentum conserving PIC model with quadratic particle shape; (3) the energy conserving PIC model [13] with quadratic particle shape; and (4) the electrostatic gridless model [20, 21] with quadratic particle shape. For all PIC models compared, the initial small-amplitude single-mode perturbation ( _A ∼_ 10 <sup>_−_</sup> <sup>2</sup> for mode _K_ = 9) excites all the modes in the system at a level of _∼_ 10 <sup>_−_</sup> <sup>6</sup> immediately after the first step. Then, it is observed that mode _k_ = 15, which is an alias mode from the second harmonics _K_ = 18 of the initial perturbation in the adjacent Brillouin zone, grows exponentially in all PIC models. The growth rate is higher for the lower order particle shape used in the momentum conserving PIC models. Although the initial amplitude of mode _k_ = 15 is higher in the energy conserving PIC model with quadratic particle shape due to the lower order, i.e., linear, particle shape used in field interpolation, the growth rate is about the same as in the momentum conserving PIC with quadratic shape. Following the growth of mode _k_ = 15, mode _k_ = 6 also grows at a similar rate, which appears to be a result of the beating between modes _k_ = 9 and _k_ = 15. Other exponential growing modes before _ωpt <_ 50, e.g., modes _k_ = 3 and _k_ = 12 may also result from beating. These modes grow to an amplitude comparable to the initial perturbation during _ωpt_ _∼_ 50 _−_ 100, after which a wide spectrum of modes are excited. As a result of the interaction with a wide spectrum of waves, the phase space plots in Fig. 4 show heated electron distributions in all PIC models, while the momentum (energy) is relatively constant in the momentum (energy) conserving model by design. Comparing with the gridless model for which the perturbation remains single-mode and the electrons stay cold during the simulation, it can be seen that the development of the wide-band spectrum and the heating of the electrons are clearly numerical effects. Such numerical artifacts result from the lack of spectral fidelity in the PIC model. It should be noted that the gridless model improves not only the spectral accuracy of the dynamics, but also the energy and momentum conservation of the simulation model. In Fig. 4, the gross loss of energy (momentum) conservation in the momentum (energy) conserving PIC models are correlated with the saturation of the unstable mode growth. Furthermore, despite the 2 <sup>_nd_</sup> order accurate leap-frog scheme used for the time advance in all models, only the gridless model 16 exhibits energy conservation (and possibly for momentum conservation) that scales like _O_ (∆ _t_ <sup>3</sup> ) in this numerical instability test. For the gridless model, the energy conservation is improved by about a factor of 1000 when the time step is decreased by a factor of 10 to _ωp_ ∆ _t_ = 0 _._ 02, while the momentum conservation is already at the machine precision for _ωp_ ∆ _t_ = 0 _._ 2 thus does not improve further. For the energy conserving model, the heating in phase space, mode history and growth rate are essentially unchanged when the time step is decreased to _ωp_ ∆ _t_ = 0 _._ 02, while the momentum conservation is only slightly improved and the energy conservation is improved by about a factor of 10. The heating and unstable mode growth behave similarly in the momentum conserving model, but neither the energy or momentum conservation improves as time step is decreased to _ωp_ ∆ _t_ = 0 _._ 02. The superior conservative properties of the gridless model may be due to the fact that it can be derived from the action principle using a truncated Fourier series [21] and the resulting finite dimension dynamical system possesses spectral fidelity to the physical system. The advantage of the variational models [21, 17, 18] and the spectral fidelity in conservation properties and numerical stability deserve further study but will not be pursued here. To understand the relative importance of the spectral fidelity in the deposition/interpolation and the field solver, in particular the role of amplitude and phase errors, simulations are carried out using the momentum conserving PIC model with the deposition/interpolation and the field solver implemented in gridless mode respectively. The results are shown in Fig. 5. Operating the field solver in the gridless mode effectively turns the finite difference PIC model into a spectral PIC model, which improves upon the systematic amplitude error and random spectral errors in a finite difference solver. The benefit is seen in Fig. 5 where the dominate modes are those separated modes (mode 3 _,_ 6 _,_ 9 _,_ 12 _,_ 15) up to _ωpt_ = 200, but the onset of whole spectrum excitation, similar to those shown in Fig. 3, is delayed to _ωpt_ _∼_ 400 in a longer simulation (not shown). The growth rate of mode 15 is about the same as in the case with a finite difference solver and the electron phase space shows similar heating. Thus a spectral solver that improves amplitude and random errors does not qualitatively change the characteristics of the simulation. Upon adopting the gridless deposition and field interpolation (but keeping the finite difference field solver), which improves both the systematic phase and amplitude errors, the results are essentially similar to those of the gridless model, with a higher floor of the background modes. This confirms that the major loss of the spectral fidelity in PIC occurs in the deposition and the field interpolation where their phase errors play important roles in FGI. The dynamics shown in Fig. 3 involves nonlinear coupling of a large range of modes as the system evolves, but at the early time the unstable dynamics grows predominately from the interaction between density mode _k_ = _±_ 15 and the collective mode _K_ = 18 which is excited by the initial perturbation at _K_ = 9. To quantitatively determine the behavior of such interaction, we can set _δx_ ( _K, t_ ) = _Ae_ <sup>_iωrt_</sup> = _A_ 0 _e_ <sup>_i_</sup> <sup>(</sup> <sup>_ωt_</sup> <sup>+</sup> <sup>_θ_</sup> <sup>0)</sup>, where _ω_ = _ωr −_ _iωi_, _δx_ ( _K,_ 0) = _A_ 0 _e_ <sup>_iθ_</sup> <sup>0</sup> and _A_ = _A_ 0 _e_ <sup>_ωit_</sup> . Inserting this into the coupled Eqs. (3.11), (3.12) and (3.13), and ignoring the particle aliasing effect then _N_ _≫_ 1, one obtains, _−A_ 0 _ω_ <sup>2</sup> _e_ <sup>_i_</sup> <sup>(</sup> <sup>_ωt_</sup> <sup>+</sup> <sup>_θ_</sup> <sup>0)</sup> = <sup>_N_</sup> _<u>p</u>_ <sup>2</sup> _<u>p</u>_ <sup>2</sup> <sup>_Q_</sup> <sup>2</sup> _q_ <sup>_′_</sup> - _K −_ _kq′_ _−_ _νK′K_ _q_ _<u>−i</u>_ [ _kq′_ ] <sup>_s_</sup> <sup>˜(</sup> <sup>_kq_</sup> <sup>)</sup> <sup>_·_</sup> <sup>˜</sup> <sup>_s_</sup> <sup>(</sup> <sup>_kq′_</sup> <sup>)</sup> <sup>_δ_</sup> <sup>(</sup> <sup>_kq −_</sup> <sup>_νKK_</sup> <sup>)</sup> <sup>_δ_</sup> _Ngm_ _· e_ <sup>_i_</sup> <sup>(</sup> <sup>_νK_</sup> <sup>+</sup> <sup>_νK′_</sup> <sup>)</sup> <sup>_·_</sup> <sup>(</sup> <sup>_ωrt_</sup> <sup>+</sup> <sup>_θ_</sup> <sup>0+</sup> <sup>_π/_</sup> <sup>2)</sup> _JνK_ - _−_ 2 _kqA_ 0 _e_ <sup>_ωit_</sup> _/Np_ - _JνK′_ �2 _kq′A_ 0 _e_ <sup>_ωit_</sup> _/Np_ - _,_ (4.1) This can be simplified by equating the time varying phase on both sides of Eq. (4.1) and setting the arguments of the delta functions to zero, i.e., using the following relationships for the mode 17 p <sup>t</sup> 200 150 100 50 0 200 150 100 50 0 200 150 100 50 0 200 150 100 50 0 <u>M.C., linear shape</u> 0 5 10 15 mode number <u>M.C., quardratic shape</u> 0 5 10 15 mode number <u>E.C., quardratic shape</u> 0 5 10 15 mode number <u>gridless, quardratic shape</u> 0 5 10 15 mode number 0 0 0 0 8 16 24 32 40 8 16 24 32 40 8 16 24 32 40 8 16 24 32 40 <u>M.C., linear shape</u> mode 9 mode 15 0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40 0 50 100 150 200 mode 6 0 50 100 150 200 p <sup>t</sup> 0 5 10 15 20 25 30 35 40 <u>M.C., quardratic shape</u> mode 9 mode 15 mode 6 0 50 100 150 200 p <sup>t</sup> 0 5 10 15 20 25 30 35 40 <u>E.C., quardratic shape</u> mode 9 mode 15 mode 6 0 50 100 150 200 p <sup>t</sup> <u>gridless, quardratic shape</u> mode 9 mode 15 mode 6 Figure 3: Simulation mode spectrum from various models. Left column: full mode spectrum ln( _|E_ ( _k_ ) _|_ ) as a function of time. Right column: evolution of the mode amplitude for the perturbation - mode _k_ = 9, alias of its second harmonic - mode _k_ = 15(= 33 _−_ 9 _×_ 2) and the beat between them - mode _k_ = 6(= 15 _−_ 9). The four rows from top to bottom correspond to (1) the momentum conserving (M.C.) PIC model with linear particle shape; (2) the momentum conserving PIC model with quadratic particle shape; (3) the energy conserving (E.C.) PIC model with quadratic particle shape; and (4) the gridless model with quadratic particle shape. 18 2.5 2.0 1.5 1.0 0.5 0.0 0.5 <u>M.C., quardratic shape</u> t=0.02 t=0.20 <u>×10</u> <sup>6</sup> <u>M.C., quardratic shape</u> t=0.02 t=0.20 0 50 100 150 200 p <sup>t</sup> <u>E.C., quardratic shape</u> t=0.02 t=0.20 0 50 100 150 200 p <sup>t</sup> <u>×10</u> <sup>15</sup> <u>gridless</u> t=0.02 t=0.20 0 50 100 150 200 p <sup>t</sup> 0 50 100 150 200 1.5 1.0 0.5 0.0 0.5 1.0 0.0 0.2 0.4 0.6 0.8 1.0 0.5 0.0 0.5 1.0 p <sup>t</sup> 2 1 0 1 2 3 4 4 2 0 2 4 <u>×10</u> 4 E.C., quardratic shape E/E0 ×10, t=0.02 E/E0, t=0.20 0 50 100 150 200 p <sup>t</sup> <u>×10</u> 5 <u>gridless</u> 3, t=0.02 E/E0 ×10 E/E0, t=0.20 0 50 100 150 200 p <sup>t</sup> Figure 4: Electron phase space at the end of the simulation (left column), energy (middle column) and momentum (right column) conservation from various models. The energy and momentum conservation are shown for _ωp_ ∆ _t_ = 0 _._ 2 (green curves) and _ωp_ ∆ _t_ = 0 _._ 02 (blue curves). The three rows from top to bottom correspond to (1) the momentum conserving (M.C.) PIC model with quadratic particle shape; (2) the energy conserving (E.C.) PIC model with quadratic particle shape; and (3) the gridless model with quadratic particle shape. 19 p <sup>t</sup> 200 150 100 50 0 200 150 100 50 0 <u>spectral solver</u> 0 5 10 15 mode number <u>gridless + F.D.</u> 0 5 10 15 mode number 0 0 8 16 24 32 40 8 16 24 32 40 <u>spectral solver</u> mode 9 mode 15 0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40 0 50 100 150 200 mode 6 0 50 100 150 200 p <sup>t</sup> <u>gridless + F.D.</u> mode 9 mode 15 mode 6 Figure 5: The mode spectrum (left column), amplitudes of mode 9 _,_ 15 _,_ 6 (middle column), and electron phase space from a PIC model (right column) with (1) a spectral solver (top row); (2) gridless deposition and field interpolation (bottom row). coupling, _νK_ + _νK′_ = 1 _,_ _q_ = _q_ <sup>_′_</sup> _,_ _νK_ = _kq/K,_ _νK, q_ _∈_ Z _,_ (4.2) to give, _<u>s</u>_ <u>˜</u> <sup>2</sup> <u>(</u> _<u>νKK</u>_ <u>)</u> [ _νKK_ ] <sup>_JνK_</sup> _ω_ <sup>2</sup> _e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ <sup>=</sup> <sup>_−_</sup> <sup>2</sup> <sup>_K_</sup> _νK_ = _kq/K_ - _−νKe_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ - _J_ (1 _−νK_ ) - _νKe_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ - _._ (4.3) where the normalization _n_ _→_ _n/np_, _ω_ _→_ _ω/ωp_, _t_ _→_ _ωpt_, _Q_ _→_ _Ng/Np_, _Q/m_ _→_ 1, is used and ∆ _n_ <sup>0</sup> _K_ <sup>= 2</sup> <sup>_KA_</sup> <sup>0</sup> <sup>_/Np_</sup> <sup>is the normalized initial density perturbation due to the collective mode</sup> <sup>_K_</sup> <sup>.</sup> <sup>The</sup> summation in Eq. (4.3) is over all integers _νK_ and _q_ that satisfy _νK_ = _kq/K_ = ( _k_ + _qkg_ ) _/K._ For the above example, _k_ = _±_ 15, _K_ = 18 and _kg_ = 33, we can rewrite the infinite summation to be, _νK_ = _kq/K_ = _l∈_ Z _,_ with _q_ = 6 _l_ _∓_ 1, _νK_ = 11 _l_ _∓_ 1. For _|x|_ ≲ 0 _._ 7, _|JνK_ ( _−νKx_ ) _J_ 1 _−νK_ ( _νKx_ ) _|_ drops quickly as _|νK|_ increases, so in practice only the _l_ = 0 term needs to be included in the above sum until the coupling is nonlinear. Thus, Eq. (4.3) becomes, 20 _ω_ <sup>2</sup> _e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ <sup>_≈−_</sup> <sup>2</sup> <sup>_K_</sup> - _<u>s</u>_ <u>˜2(</u> _<u>−K</u>_ <u>)</u> [ _−K_ ] <sup>_J−_</sup> <sup>1</sup> + <sup>_<u>s</u>_</sup> <sup><u>˜2(</u></sup> <sup>_<u>K</u>_</sup> <sup><u>)</u></sup> [ _K_ ] <sup>_J_</sup> <sup>1</sup> - _−e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ - <sup>�</sup> _._ - _e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ - _J_ 2 - _−e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ - _J_ 0 - _e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ (4.4) The first (second) term on the right hand side results from the coupling through mode _k_ = 15 ( _k_ = _−_ 15). The coupling from the second term is much stronger than that from the first term through mode when the perturbation amplitude is small, i.e., when _e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ <sup>_≪_</sup> <sup>1.</sup> <sup>In</sup> <sup>fact</sup> <sup>the</sup> second term leads to absolute instability ( _ωr_ = 0), while the first term leads to oscillatory solution ( _ωi_ = 0). Therefore, an initially small perturbation grows exponentially until saturation and then oscillates at that level. The linear growth rate can be obtained by dropping the first term and Taylor expanding the Bessel functions in the second term, which gives, _ωi_ _≈_ _s_ ˜( _K_ ) ~~�~~ _|K/_ [ _K_ ] _|,_ (4.5) which does not depend on the drift velocity _V_ 0. When _e_ <sup>_ωit_</sup> ∆ _n_ <sup>0</sup> _K_ <sup>_≈_</sup> <sup>1</sup> <sup>_._</sup> <sup>84,</sup> <sup>the</sup> <sup>RHS</sup> <sup>of</sup> <sup>(4.4)</sup> <sup>is</sup> <sup>zero,</sup> therefore the normalized instability saturation time is _tsat_ _≈_ ln(1 _._ 84 _/_ ∆ _n_ <sup>0</sup> _K_ <sup>)</sup> <sup>_/ωi._</sup> (4.6) Note that the linear FGI in section 3.2 is different than the case discussed here. For the former case, unstable modes grow independently from particle noise. Each unstable mode involves the fundamental of the collective motion that can be resolved by the grid (harmonics have been dropped in the linear analysis), and the corresponding density perturbation which also contains alias modes that cause the instability. For the latter case, the collective motion cannot be resolved by the grid. Therefore the density mode contains alias modes only and the instability can be more severe than the former case, e.g., for the simulation with large amplitude perturbation. Also, unlike the former FGI case which is convective and has stability domains, the latter instability is absolute and has no stability domain as long as _K_ _> kg_ and _s_ ˜( _K_ ) _>_ 0. The linear growth rate from Eq. (4.5), _ωi_ _≈_ 0 _._ 21, and the instability saturation time from Eq. (4.6), _tsat_ _≈_ 46 _._ 5, are compared to the simulation shown in Fig. 6, in which only collective mode _K_ = 18 and electric field modes _k_ = _±_ 15 are kept and an initial perturbation in the mode _K_ = 18 is applied. Solving Eq. (3.4) for modes _k_ = _±_ 15 gives _ωi_ _≈_ 0 _._ 04 which is much smaller than the actual grow rate. This simulation result is also in close agreement with the example shown in Fig. 5, for the dynamics of mode _k_ = 15 in the linear growth stage up to the saturation of the instability, indicating the early unstable dynamics is due to the coupling between _K_ = 18 and _k_ = _±_ 15 modes. However, the detail dynamics after saturation in the latter simulation involves more mode coupling, thus requiring a more complete treatment similar to the above analysis. 5. Summary In this paper, the origin of the FGI is studied by employing particle and spectral resolutions into the dynamics of the 1D electrostatic PIC model and by contrasting the spectral fidelity of the PIC model with respect to the underlying physical system (or the gridless model). The particle resolution can be either adopted for individual particle or for the collective motion. The use of the particle and spectral resolutions are not the only options for this purpose, but are suitable ones as the particle dynamics consist of pair-wise interactions and can also be viewed as collective wave-particle interactions. 21 0 5 10 15 20 mode 15 mode 15(filtered sim.) theory 0 50 100 150 200 ## p t Figure 6: Comparison of the FGI growth (red, dashed, _ωi_ _≈_ 0 _._ 21) and the saturation time (black, dotted, _tsat_ _≈_ 46 _._ 5) predicted by Eq (4.5) and Eq. (4.6), respectively, with _ln|E_ ( _k_ = 15) _|_ in a PIC simulation using a 2nd order particle shape and a spectral field solver (green curve). Eq. (3.4) gives _ωi_ _≈_ 0 _._ 04. The simulation is initialized with a perturbation in the collective mode _K_ = 18 such that ∆ _n_ <sup>0</sup> _K_ <sup>=</sup> <sup>10</sup> <sup>_−_</sup> <sup>4.</sup> <sup>Only</sup> <sup>the</sup> <sup>collective</sup> <sup>mode</sup> <sup>_K_</sup> <sup>=</sup> <sup>18</sup> <sup>and</sup> <sup>the</sup> a perturbation in the collective mode _K_ = 18 such that ∆ _n_ <sup>0</sup> _K_ <sup>=</sup> <sup>10</sup> <sup>_−_</sup> <sup>4.</sup> <sup>Only</sup> <sup>the</sup> <sup>collective</sup> <sup>mode</sup> <sup>_K_</sup> <sup>=</sup> <sup>18</sup> <sup>and</sup> <sup>the</sup> electric field modes _k_ = _±_ 15 are kept in the simulation. Other numerical parameters are the same as in the simulation in Fig. 5 that employs a spectral solver, no mode filtering and an initial perturbation in mode _K_ = 9 such that ∆ _n_ <sup>0</sup> _K_ <sup>= 10</sup> <sup>_−_</sup> <sup>2</sup> <sup>(blue</sup> <sup>curve).</sup> <sup>0</sup> _K_ <sup>= 10</sup> <sup>_−_</sup> <sup>2</sup> <sup>(blue</sup> <sup>curve).</sup> At the individual particle level, the charge deposition and field interpolation operations of the PIC models exhibit systematic spectral errors relative to the physical system (or gridless model) due to the existence of the spatial alias modes from the use of the discrete grid in conjunction with Lagrangian particles in continuous space. In principle, these errors can be calculated for arbitrary particle shape, and surprisingly, they have relatively compact analytic forms shown in Eq. (3.1) for the B-spline particle shapes and in Eq. (3.2) for the Gaussian particle shape. These forms allow us to understand the effects in the spectral domain from using shaped particles in the PIC models. It is observed that these systematic spectral errors depend on both _k_ ∆ _x_ and the particle’s normalized position in the cell. These errors are directly related to the instability growth rate but they improve slowly with the increase of the order (smoothness) of the B-spline particle shape. Another benefit of using higher order particle shape is the stronger damping to the short-wavelength modes in the fundamental Brillouin zone which can enlarge the stability domain. Such a damping effect also applies to the physical modes and may be achieved using a spatial mode filter on the grid which has a lower computation cost and does not depend on individual particle’s position. At the collective motion level, as it is shown in Eqs. (3.12) and (3.13), the charge deposition and field interpolation introduce unphysical mode couplings which eventually result in amplitude and phase errors in the collective modes. This is also due to the aliasing of the spatial modes. Within the framework of collective wave-particle interactions, Eqs. (3.9), (3.10) and (3.11) are the coupled equations describing the evolution of the collective modes in the physical system, while Eqs. (3.12) and (3.13) and the discrete time version of Eq. (3.11) are the counterparts for the PIC model, whose convergence with respect to time step can be verified to rule out the time discretization as a possible origin of the FGI. In fact, early works on FGI already indicated that the numerical heating rate is independent of the time step with the leap-frog advance, while our result also shows that the growth rates of the unstable modes are not affected by the time step, making it clear the cause of FGI can only be the lack of spectral fidelity of Eqs. (3.12) and (3.13) as compared to Eqs. (3.9) and 22 (3.10). In this regard, the difference between the PIC model and the physical system (or gridless model) is technical, not fundamental - with a properly-chosen particle shape such that _s_ ( _k_ ) = 0 for _|k|_ _>_ _kg/_ 2, we recover Eqs. (3.9) and (3.10) from Eqs. (3.12) and (3.13) for _|k|_ _≤_ _kg/_ 2, thus making the PIC models effectively a gridless model. This opens the question of the optimal compact particle shapes for the PIC model. Finally, as with many physical instabilities which result from the constructive feedback of modes, it can be understood that the systematic spectral errors play important roles in the development of FGI. This finding is verified in the simulation comparison with the gridless model and may help the design of a PIC model with better stability. 6. Acknowledgements We are grateful to many of our colleagues for their valuable comments to this work. One of the authors (C. H.) would like to thank Prof. D. F. Escande for his lectures in Los Alamos National Laboratory (LANL) which motivated the analysis using the collective modes. This work is supported by the U.S. Department of Energy through the LDRD program at LANL. Appendix A. Particle shape function and interpolation function The function _S_ ( _r_ ) is used to define particle shape in phase space (for PIC, the shape in velocity dimension is assumed to be a Delta function) and the function _W_ ( _rg_ _,_ _r_ ) is used in the charge deposition and field interpolation. The PIC method can be derived from the Vlasov equation using the distribution function of shaped particles [22], which reveals that any symmetric function, _S_ ( _r_ ) = _S_ ( _−_ _r_ ), or _S_ <sup>˜</sup> ( _k_ ) = _S_ <sup>˜</sup> ( _−_ _k_ ), can be used as long as the averaged fields on the particle is defined as in Eq. (6) of [22]. Self-force consideration and momentum conservation require that the same function be used for charge deposition and field interpolation. The other requirement on the ´ shape function is _S_ ( _r_ ) _d_ _r_ = 1, or _S_ <sup>˜</sup> ( _k_ = 0) = 1, while for a valid interpolation function in PIC, ´ shape function is _S_ ( _r_ ) _d_ _r_ = 1, or _S_ <sup>˜</sup> ( _k_ = 0) = 1, while for a valid interpolation function in PIC, charge conservation requires <sup>�</sup> _W_ ( _rg_ _,_ _r_ ) = 1. From the Poisson summation, this requires _W_ ( _rg_ _,_ _r_ ) = 1. From the Poisson summation, this requires _rg_ _W_ ( _rg_ _,_ _r_ ) = _rg_ - _W_ ˜ ( q _·_ _kg_ ) _e_ <sup>_i_</sup> <sup>(</sup> <sup>q</sup> <sup>_·_</sup> <sup>_kg_</sup> <sup>)</sup> <sup>_·_</sup> <sup>r</sup> = 1 _,_ q which is equivalent to _W_ <sup>˜</sup> ( _k_ = 0) = 1 and _W_ <sup>˜</sup> ( q _·_ _kg_ ) = 0 for _n_ <sup>2</sup> + _m_ <sup>2</sup> + _l_ <sup>2</sup> <sup>_̸_</sup> = 0. Therefore a particle shape function is not necessarily an interpolation function, e.g., a linear particle shape function with a width of half the grid size is not a valid interpolation function. But valid interpolation functions are true particle shape functions, e.g., the family of B-spline interpolation functions used in PIC. Furthermore, the convolution of an arbitrary shape function _S_ ( _r_ ) with these B-spline interpolation functions results in valid interpolation functions. In this paper, we will not distinguish the particle shape function and the interpolation function unless necessary and will use _S_ ( _r_ ) for clarity. Appendix B. Aliasing and phase factor _q_ = _−∞_ _∞_ _∞_ _q_ = _−∞_ From the Poisson summation formula _q_ ∆ <sup><u>2</u></sup> <sup>_<u>π</u>_</sup> _x_ <sup>),</sup> <sup>we</sup> <sup>have,</sup> _∞_ _n_ = _−∞_ _e_ <sup>_ik_</sup> <sup>0</sup> <sup>_n_</sup> <sup>∆</sup> <sup>_x_</sup> = _δ_ ( _q −_ _k_ 0∆ _x/_ 2 _π_ ) = ∆ <sup><u>2</u></sup> <sup>_<u>π</u>_</sup> _x_ _δ_ ( _k_ 0 _−_ 23 _δ_ ( _k_ <sup>_′_</sup> _−_ _kq_ ) _._ (B.1) _rf_ _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k′_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_rf_</sup> = 8 _π_ <sup>3�</sup> q We have also used ∆ _x_ ∆ _y_ ∆ _z_ = 1. The infinite sum in Eq. (2.3) is related to the infinite sum on the reference grid, Eq. (B.1), by a phase factor, _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) _δ_ ( _k_ <sup>_′_</sup> _−_ _kq_ ) (B.2) _rf_ _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k′_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_rf_</sup> = 8 _π_ <sup>3�</sup> q _rρ_ _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k′_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_rρ_</sup> = _e_ <sup>_i_</sup> <sup>(</sup> <sup>_k′_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>)</sup> <sup>_·_</sup> <sup>∆</sup> <sup>_rρ_</sup> _·_ where _rρ_ = _rf_ + ∆ _rρ_ and _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) = _e_ <sup>_i_</sup> <sup>(</sup> <sup>q</sup> <sup>_·_</sup> <sup>_kg_</sup> <sup>)</sup> <sup>_·_</sup> <sup>∆</sup> <sup>_rρ_</sup> is the phase factor. For zero offset ∆ _rρ_ = (0 _,_ 0 _,_ 0), _ψ_ = 1; while for a half cell offset, _ψ_ is either 1 or _−_ 1, e.g. if ∆ _rρ_ = (∆ _x/_ 2 _,_ 0 _,_ 0), _ψ_ = ( _−_ 1) <sup>_n_</sup> . Appendix C. Linear dispersion of electrostatic PIC models The linear numerical dispersion of the momentum conserving and energy conserving PIC models are given in [1] for finite time step. Here we gives a similar derivation but without introducing temporal aliasing, as all PIC quantities, including the distribution function, are discrete in time. The perturbed discrete (in time) distribution function is derived in a way similar to Eq. (30) of [8] but with one full position update instead of two half updates, _f_ ˜1( _k_ _,_ _v_ _, ω_ ) = <sup>_<u>−i</u>_</sup> <sup><u>∆</u></sup> <sup>_<u>te−i</u>_</sup> <sup>(</sup> <sup>_ω−_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_v_</sup> <sup>)∆</sup> <sup>_t/_</sup> <sup>2</sup> csc[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2] _F_ <sup>˜</sup> ( _k_ _, ω_ ) _· ∇_ _v_ _f_ 0 _,_ (C.1) 2 for which a phase factor _e_ <sup>_iω_</sup> <sup>∆</sup> <sup>_t/_</sup> <sup>2</sup> is dropped because _f_ 1 is now needed at the same time step as the electric field. When the leap-frog update is viewed as a continuous time integration of the Newton’s laws but with a force sampled on the time step, temporal aliasing is introduced. In such case the distribution function of the eigen mode is defined on the continuous time, and the discrete distribution function in PIC is its time sample. The linearization is performed on the former and before the time sampling. Using <sup>�</sup> _ω−_ _k_ _·_ _v_ _−_ <u>12</u> _πq/_ ∆ _t_ <sup>=</sup> <sup><u>∆</u></sup> 2 <sup>_<u>t</u>_</sup> <sup>cot[(</sup> <sup>_ω −_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_v_</sup> <sup>)∆</sup> <sup>_t/_</sup> <sup>2]</sup> <sup>to</sup> <sup>evaluate</sup> <sup>the</sup> <sup>infinite</sup> <sup>sum</sup> <sup>from</sup> <sup>aliasing</sup> <sup>[1],</sup> <sup>one</sup> _q_ arrives at a similar expression to Eq. (C.1) for the perturbed discrete distribution function but with _e_ <sup>_−i_</sup> <sup>(</sup> <sup>_ω−_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_v_</sup> <sup>)∆</sup> <sup>_t/_</sup> <sup>2</sup> csc[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2] = cot[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2] _−_ _i_ replaced by cot[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2]. This difference does not manifest in the zeroth moment of _f_ <sup>˜</sup> 1 but may appear in higher order moments. The normalized equations for the perturbed density _ρ_ ˜1( _k_ _, ω_ ), the potential _φ_ <sup>˜</sup> 1( _k_ _, ω_ ),the electric field _E_ <sup>˜</sup> 1( _k_ _, ω_ ) and the force _F_ <sup>˜</sup> ( _k_ _,_ _v_ _, ω_ ) are, _q_ _ω−_ _k_ _·_ _v_ _−_ <u>12</u> _πq/_ ∆ _t_ <sup>=</sup> <sup><u>∆</u></sup> 2 <sup>_<u>t</u>_</sup> <sup><u>∆</u></sup> 2 <sup>_<u>t</u>_</sup> <sup>cot[(</sup> <sup>_ω −_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_v_</sup> <sup>)∆</sup> <sup>_t/_</sup> <sup>2]</sup> <sup>to</sup> <sup>evaluate</sup> <sup>the</sup> <sup>infinite</sup> <sup>sum</sup> <sup>from</sup> <sup>aliasing</sup> <sup>[1],</sup> <sup>one</sup> arrives at a similar expression to Eq. (C.1) for the perturbed discrete distribution function but with _e_ <sup>_−i_</sup> <sup>(</sup> <sup>_ω−_</sup> <sup>_k_</sup> <sup>_·_</sup> <sup>_v_</sup> <sup>)∆</sup> <sup>_t/_</sup> <sup>2</sup> csc[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2] = cot[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2] _−_ _i_ replaced by cot[( _ω −_ _k_ _·_ _v_ )∆ _t/_ 2]. This difference does not manifest in the zeroth moment of _f_ <sup>˜</sup> 1 but may appear in higher order moments. ˆ _f_ ˜1( _kq_ _,_ _v_ _, ω_ ) _d_ _v_ _,_ (C.2) _ρ_ ˜1( _k_ _, ω_ ) = q _S_ ˜ _ρ_ ( _k_ _q_ ) _φ_ ˜1( _k_ _, ω_ ) = _ρ_ ˜1( _k_ _, ω_ ) _/_ [ _k_ ] <sup>2</sup> _,_ (C.3) _E_ ˜1( _k_ _, ω_ ) = _−i_ _κ_ ( _k_ )˜ _φ_ 1( _k_ _, ω_ ) _,_ (C.4) _F_ ˜ ( _k_ _, ω_ ) = _S_ ˜ _E_ ( _k_ ) ˜ _E_ 1( _k_ _, ω_ ) _,_ (C.5) where [ _k_ ] <sup>2</sup> is the Poisson operator and _κ_ ( _k_ ) is the gradient operator. All grid quantities are transformed according to the transform defined in Eq. (2.1). Eq. (C.2) also implies that ∆ _r_ _ρ_ = 0 is chosen in Eq. (2.8), so _ψ_ ( q _·_ _kg_ _,_ ∆ _rρ_ ) = 1. 24 Substituting Eq. (C.1) into the above equations, the dispersion equation is, <u>1</u> 1 + [ _k_ ] <sup>2</sup> q _S_ ˜ _ρ_ ( _kq_ ) ˜ _SE_ ( _kq_ ) ˆ <u>∆</u> _<u>te−i</u>_ ( _ω−_ _kq_ _·_ _v_ )∆ _t/_ 2 csc[( _ω −_ _kq_ _·_ _v_ )∆ _t/_ 2][ _κ_ ] _· ∇_ _v_ _f_ 0 _d_ _v_ = 0 _._ (C.6) 2 For a cold uniform beam with velocity _v_ 0, it reduces to, q - <u>∆</u> _<u>t</u>_ 1 _−_ 2 �2 <u>1</u> [ _k_ ] <sup>2</sup> _<u>S</u>_ ˜ _<u>ρ</u>_ <u>(</u> _<u>kq</u>_ <u>)</u> _<u>S</u>_ ˜ _<u>E</u>_ <u>(</u> _<u>kq</u>_ <u>)</u> _<u>κ</u>_ <u>(</u> _<u>kq</u>_ <u>)</u> _<u>·</u>_ _<u>kq</u>_ sin <sup>2</sup> [( _ω −_ _kq_ _·_ _v_ 0)∆ _t/_ 2] <sup>= 0</sup> <sup>_._</sup> (C.7) Eq. (C.7) has many resonances that are folded into the fundamental Brillouin zone _−π_ _<_ _ω_ ∆ _t/_ 2 _≤_ _π_ . For two interacting resonances, the dispersion equation can be simplified as 1 _−_ _a_ [sin <sup>_−_</sup> <sup>2</sup> ( _y_ ) + _b_ sin <sup>_−_</sup> <sup>2</sup> ( _y_ + _c_ )] = 0, _|b|_ _<_ 1. Here we use the 1D case and include the fundamental mode and the _q_ th ( _|q|_ _>_ 0) alias mode as an example, _y_ = ( _ω_ _−_ _k_ _·_ _v_ 0)∆ _t/_ 2, _a_ = ∆ _t_ <sup>2</sup> _s_ ˜ _ρ_ ( _k_ )˜ _sE_ ( _k_ ) _κ_ ( _k_ ) _k/_ 4[ _k_ ] <sup>2</sup> _≥_ 0, _b_ = _s_ ˜ _ρ_ ( _kq_ )˜ _sE_ ( _kq_ ) _κ_ ( _kq_ ) _kq/s_ ˜ _ρ_ ( _k_ )˜ _sE_ ( _k_ ) _κ_ ( _k_ ) _k_, and _c_ = ( _qkgv_ 0∆ _t/_ 2) mod 2 _π_, _−π_ _<_ _c_ _≤_ _π_ . When ∆ _t_ is sufficiently small, this equation can be approximated by a quartic equation in _y_, _−ac_ <sup>2</sup> + 2 _acy_ + - _−a −_ _ab_ + _c_ <sup>2�</sup> _y_ <sup>2</sup> _−_ 2 _cy_ <sup>3</sup> + _y_ <sup>4</sup> = 0, for which a pair of com tic equation in _y_, _−ac_ <sup>2</sup> + 2 _acy_ + - _−a −_ _ab_ + _c_ <sup>2�</sup> _y_ <sup>2</sup> _−_ 2 _cy_ <sup>3</sup> + _y_ <sup>4</sup> = 0, for which a pair of com plex conjugate roots (the other two roots are always real) exist when the discriminant _D_ = _−_ 16 _a_ <sup>2</sup> _bc_ <sup>2 �</sup> ( _a_ (1 + _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2�</sup> _<_ 0. When _D_ _>_ 0, there are (1) four real roots, if _a_ _>_ 0; - _−a −_ _ab_ + _c_ <sup>2�</sup> ( _a_ (1 + _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2�</sup> _−_ 16 _a_ <sup>2</sup> _bc_ <sup>2 �</sup> ( _a_ (1 + _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2�</sup> _<_ 0. When _D_ _>_ 0, there are (1) four real roots, if _a_ _>_ 0; or (2) two pairs of complex conjugate roots, if _a_ _<_ 0. Therefore, for the interaction of any two nearby resonances, there are domains of stability/instability defined by the parameters _a, b_ and _c_, depending on the signs of _D_ and _a_ . Two types of situation can be distinguished. When _b_ _>_ 0, the simplified dispersion equation resembles that of a physical two-stream instability. Stability requires ( _a_ (1 + _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2</sup> _≤_ 0 and _a >_ 0, which gives a stable domain 0 _< a < a_ 1 and unstable domains _a > a_ 1 or _a <_ 0. Here _a_ 1 is the only real root of ( _a_ (1+ _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2</sup> = 0. For _|b| ≪_ 1, _a_ 1 _≈_ �1 _−_ 3 _b_ <sup>1</sup> <sup>_/_</sup> <sup>3�</sup> _c_ <sup>2</sup> . When _b <_ 0, which corresponds to unusual two streams with densities of opposite signs, the stable domain is _a > a_ 1 and the unstable domain is _a < a_ 1. Two types of situation can be distinguished. When _b_ _>_ 0, the simplified dispersion equation resembles that of a physical two-stream instability. Stability requires ( _a_ (1 + _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2</sup> _≤_ 0 and _a >_ 0, which gives a stable domain 0 _< a < a_ 1 and unstable domains _a > a_ 1 or _a <_ 0. Here _a_ 1 is the only real root of ( _a_ (1+ _b_ ) _−_ _c_ <sup>2</sup> ) <sup>3</sup> _−_ 27 _a_ <sup>2</sup> _bc_ <sup>2</sup> = 0. For _|b| ≪_ 1, _a_ 1 _≈_ �1 _−_ 3 _b_ <sup>1</sup> <sup>_/_</sup> <sup>3�</sup> _c_ <sup>2</sup> . When _b <_ 0, The dispersion equation Eq. (C.7) applies to both the energy conserving and momentum conserving PIC models. The major difference in Eq. (C.7) for these two PIC models is the operator _κ_ ( _kq_ ). For the energy conserving model, _κ_ ( _kq_ ) = _kq_, so _b_ _∼_ _kq_ <sup>2</sup> <sup>_>_</sup> <sup>0.</sup> <sup>Therefore,</sup> <sup>interaction</sup> <sup>of</sup> _κ_ ( _kq_ ). For the energy conserving model, _κ_ ( _kq_ ) = _kq_, so _b_ _∼_ _kq_ <sup>2</sup> <sup>_>_</sup> <sup>0.</sup> <sup>Therefore,</sup> <sup>interaction</sup> <sup>of</sup> any pair of resonances is of the usual two-stream type and there is a stable domain 0 _<_ _a_ _<_ _a_ 1. This can be written explicitly, e.g., for the fundamental mode and the _q_ th ( _|q|_ _>_ 0) alias mode, [( _qkgv_ 0∆ _t/_ 2) mod 2 _π_ ] <sup>2</sup> _>_ 4[ <sup><u>∆</u></sup> _k_ <sup>_<u>t</u>_</sup> ] <sup>22</sup> <sup>_s_</sup> <sup>˜</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)˜</sup> <sup>_sE_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_κ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_k_</sup> �1 _−_ 3(˜ _sρ_ ( _kq_ )˜ _sE_ ( _kq_ ) _κ_ ( _kq_ ) _kq/s_ ˜ _ρ_ ( _k_ )˜ _sE_ ( _k_ ) _k_ <sup>2</sup> ) <sup>1</sup> <sup>_/_</sup> <sup>3�</sup> <sup>_−_</sup> <sup>1</sup> . [( _qkgv_ 0∆ _t/_ 2) mod 2 _π_ ] <sup>2</sup> _>_ 4[ <sup><u>∆</u></sup> _k_ <sup>_<u>t</u>_</sup> ] <sup>22</sup> <sup>_s_</sup> <sup>˜</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)˜</sup> <sup>_sE_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_κ_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_k_</sup> �1 _−_ 3(˜ _sρ_ ( _kq_ )˜ _sE_ ( _kq_ ) _κ_ ( _kq_ ) _kq/s_ ˜ _ρ_ ( _k_ )˜ _sE_ ( _k_ ) _k_ <sup>2</sup> ) <sup>1</sup> <sup>_/_</sup> <sup>3�</sup> <sup>_−_</sup> <sup>1</sup> . For momentum conserving PIC model, _κ_ ( _kq_ ) = _kq_ sinc( _kq_ ∆ _x_ ), so _b ∼_ _kq_ <sup>2sinc(</sup> <sup>_kq_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>)</sup> <sup>which</sup> <sup>switches</sup> <sup>sign</sup> momentum conserving PIC model, _κ_ ( _kq_ ) = _kq_ sinc( _kq_ ∆ _x_ ), so _b ∼_ _kq_ <sup>2sinc(</sup> <sup>_kq_</sup> <sup>∆</sup> <sup>_x_</sup> <sup>)</sup> <sup>which</sup> <sup>switches</sup> <sup>sign</sup> when _q_ switches sign. Therefore, interaction of any pair of resonances can be of either the first or the second type. References References [1] C. K. Birdsall, B. A. Langdon, Plasma Physics via Computer Simulation, IOP Publishing Ltd., Bristol, England, 1991. [2] B. A. Langdon, Effects of the spatial grid in simulation plasmas, Journal of Computational Physics 6 (2) (1970) 247–267. 25 [3] H. Okuda, Nonphysical noises and instabilities in plasma simulation due to a spatial grid, Journal of Computa tional Physics 10 (3) (1972) 475–486. [4] B. B. Godfrey, Numerical Cherenkov instabilities in electromagnetic particle codes, Journal of Computational Physics 15 (4) (1974) 504–521. [5] B. B. Godfrey, J.-L. Vay, Numerical stability of relativistic beam multidimensional PIC simulations employing the Esirkepov algorithm, Journal of Computational Physics 248 (2013) 33–46. [6] X. Xu, P. Yu, S. F. Martins, F. S. Tsung, V. K. Decyk, J. Vieira, R. A. Fonseca, W. Lu, L. O. Silva, W. B. Mori, Numerical instability due to relativistic plasma drift in em-pic simulations, Computer Physics Communications 184 (11) (2013) 2503 - 2514. [7] E. Lindman, Dispersion Relation for Computer-Simulated Plasmas, Journal of Computational Physics 5 (1) (1970) 13–22. [8] M. D. Meyers, C.-K. Huang, Y. Zeng, S. Yi, B. J. Albright, On the numerical dispersion of electromagnetic particle-in-cell code: Finite grid instability, Journal of Computational Physics 297 (2015) 565–583. [9] C. K. Birdsall, N. Maron, Plasma self-heating and saturation due to numerical instabilities, Journal of Compu tational Physics 36 (1) (1980) 1–19. [10] L. Chen, B. A. Langdon, C. K. Birdsall, Reduction of the Grid Effects in Simulation, Journal of Computational Physics 14 (1974) 200–222. [11] J. Brackbill, G. Lapenta, A Method to Suppress the Finite-Grid Instability in Plasma Simulations, Journal of Computational Physics 114 (1) (1994) 77–84. [12] H. R. Lewis, A. Sykes, J. A. Wesson, A comparison of some particle-in-cell plasma simulation methods, Journal of Computational Physics 10 (1) (1972) 85–106. [13] H. R. Lewis, Energy-conserving numerical approximations for Vlasov plasmas, Journal of Computational Physics 6 (1) (1970) 136–141. [14] G. Chen, L. Chacón, D. C. Barnes, An energy- and charge-conserving, implicit, electrostatic particle-in-cell algorithm, Journal of Computational Physics 230 (18) (2011) 7018–7036. [15] S. Markidis, G. Lapenta, The energy conserving particle-in-cell method, Journal of Computational Physics 230 (18) (2011) 7037–7052. [16] W. T. Taitano, D. A. Knoll, L. Chacón, G. Chen, Development of a Consistent and Stable Fully Implicit Moment Method for Vlasov–Ampère Particle in Cell (PIC) System, SIAM Journal on Scientific Computing 35 (5) (2013) S126–S149. [17] J. Xiao, J. Liu, H. Qin, Z. Yu, A variational multi-symplectic particle-in-cell algorithm with smoothing functions for the Vlasov-Maxwell system, Physics of Plasmas 20 (10) (2013) 102517. [18] J. Xiao, H. Qin, J. Liu, Y. He, R. Zhang, Y. Sun, Explicit high-order non-canonical symplectic particle-in-cell algorithms for Vlasov-Maxwell systems, Physics of Plasmas 22 (11) (2015) 112504. [19] G. Vlad, S. Briguglio, G. Fogaccia, B. Martino, Gridless finite-size-particle plasma simulation, Computer Physics Communications 134 (1) (2001) 58–77. [20] V. K. Decyk, Description of Spectral Particle-in-Cell Codes from the UPIC Framework, `[http://picksc.idre.](http://picksc.idre.ucla.edu/publications/publications-reports-and-notes/)` `[ucla.edu/publications/publications-reports-and-notes/](http://picksc.idre.ucla.edu/publications/publications-reports-and-notes/)`, accessed: 2015-07-30. [21] E. G. Evstatiev, B. A. Shadwick, Variational formulation of particle algorithms for kinetic plasma simulations, Journal of Computational Physics 245 (2013) 376–398. [22] G. Lapenta, J. U. Brackbill, P. Ricci, Kinetic approach to microscopic-macroscopic coupling in space and laboratory plasmas, Physics of Plasmas 13 (5) (2006) 055904. 26

섹션 본문 121문단 · 51,886자

(제목 없음)

1The origin of the Finite Grid Instability (FGI) is studied by resolving the dynamics in the 1D electrostatic Particle-In-Cell (PIC) model in the spectral domain at the single particle level and at the collective motion level.The spectral fidelity of the PIC model is contrasted with the underlying physical system or the gridless model.The systematic spectral phase and amplitude errors from the charge deposition and field interpolation are quantified for common particle shapes used in the PIC models.It is shown through such analysis and in simulations that the lack of spectral fidelity relative to the physical system due to the existence of aliased spatial modes is the major cause of the FGI in the PIC model.

Introduction

2N-body type problems arise in many disciplines and underpins our understanding of complex dynamical systems like plasmas and the cosmos.In a typical N-body problem, the interaction in particle pairs can be of electrostatic, or electromagnetic, or gravitational in nature and each particle responds to a force that is the linear superposition of all one-to-one interactions it receives.Direct calculation of all one-to-one interactions of N p particles has a computation cost of O(N 2 p ), therefore it is amenable to numerical simulation only when N p is small.The PIC method [1], or more generally the particle-mesh method, is an efficient numerical method that reduces the computation complexity by introducing a computation grid and taking advantage of the linearity in the sum of one-to-one interactions.In the PIC method, the interaction among the particles is mediated by the grid through the Green's function of the interaction represented on the grid.The computation complexity is reduced from O(N 2 p ) to O(N g )+O(N p ), where N g is the number of grid points.When the number of particles per cell N p /N g 1, the gain in speedup is large (∼ N p ), therefore the PIC method is a popular choice in the ab-initio numerical simulation of N-body systems.However, two major problems arise in the PIC method due to the discrete grid: (1) the use of an Eulerian grid for the moments of the particle distribution and fields, in conjunction with individual Lagrangian particles in continuous phase space, implies an inherent inconsistency; (2) the grid representation of the Green's function is usually an approximation of the real Green's function in the continuous space.

3Despite the computation efficiency of the PIC method and its wide-spread use, especially in plasma physics, common PIC models are vulnerable to an electrostatic numerical instability known as the Finite Grid Instability (FGI) [2,3] (there is also an electromagnetic instability known as the numerical Cherenkov instability [4,5,6]).Early practitioners using the electrostatic PIC model to simulate plasma dynamics observed a heating effect to the plasma which depends on the numerical parameters, i.e., the grid size ∆x and the number of particles per cell N C .This numerical heating has been extensively studied since the early development of the PIC model and the empirical scaling of the heating time τ H of FGI in a thermal plasma, which has the form ω p τ H ∼ (λ D /∆x) 2 (N D +N C ), is summarized in [1].Here N D is the number of particles in a Debye length λ D , ω p is the plasma frequency.It is also known that FGI comes from the aliased modes in the system due to the incompatibility between the Fourier spectra of the discrete Eulerian and continuous Lagrangian variables.(Numerical Cherenkov instability may also come from an Eulerian-Lagrangian mismatch in the convective derivative [4]).The numerical instabilities have been conventionally analyzed as unphysical resonances between physical and aliased modes [1,4,5,6,7,8].The locations and growth rates of the unstable modes have been solved for using linear dispersion analysis in limited, yet essential cases, i.e., for spatially uniform cold or Maxwellian distributions.It is worth noting that, unlike the two-stream type instabilities, for some commonly used electrostatic and electromagnetic PIC models, FGI can arise without the intersection of the physical and aliased modes [9,8].Analysis for more realistic and nonlinear simulations has not been carried out.

4Various methods and numerical schemes to mitigate FGI have been proposed, including introducing grid interlacing [10] and random jiggling [10,11], employing higher order particle shapes [9] and temporal/spatial filtering [12], implicit time differencing and enforcing the energy conservation property of the numerical algorithm between time steps [13,14,15,16].All these techniques have shown great promise with regard to the reduction of the instability growth rate.However, this is often achieved with substantial distortion/damping of the meaningful dynamics at the short wavelength scale or by sacrificing conservation properties (such as the loss of momentum conservation in an energy conserving algorithm, which has long been debated in the development of the PIC models [1]).Recent rigorous work on energy conserving algorithm has led to a large improvement of the momentum conservation through nonlinear iterations [14].

5The above efforts notwithstanding, the important questions about how and where FGI arises exactly remain to be answered.Previous works treat aliased modes as inherent in the system and study their properties and corresponding mitigation method.However, the origin of the numerical instabilities is clearly unphysical.Therefore, in principle a simulation plasma should be contrasted with the underlying continuous system, which has the same number of particles and particle shape as the simulation plasma, to determine the origin of the numerical instabilities.We call latter the physical system in the following, as it obeys a Vlasov equation for the shaped particles, as long as the same particle shape is used in defining the charge density from the particle and the electric field on the particle.

6There are many choices about what to be contrasted between the PIC and the physical systems.Conservation properties and dispersion relationship have been used.It should be noted that one direct consequence of FGI in a PIC model without built-in energy (momentum) conservation property is, as can be expected, the gross violation of the energy (momentum) conservation.For this reason, recent efforts have been devoted to improve the energy and/or momentum conservation of the numerical scheme in order to control FGI.But it should be emphasized that conservation laws are desirable when eliminating the FGI, but they are neither necessary nor sufficient conditions.An isolated plasma system can exhibit various kinds of physical instabilities while strictly conserving momentum and energy.Furthermore, as total energy is a global property of the underlying microscopic processes and only one constraint on the degrees of freedom (two if total momentum is also considered) in the phase space, to understand what gives rise to FGI and its consequences, we need a better resolution into the dynamics.Linear dispersion, in which the eigen modes with complex Fourier frequency can be viewed as a way to resolve the (linearized) dynamics, is a better choice.However, such analysis is limited to special cases of the particle distribution and small perturbation amplitude.Insight from such analysis for the improvement to the numerical scheme is useful but not easy to obtained and applied to more general situations.Recently, symplectic PIC codes [17,18] have also been developed, for which the symplectic structures of the Hamiltonian system is preserved.The symplectic structure may be a good choice to contrast the PIC and the physical systems, however, it is not clear how it is related to the numerical instabilities at present.

7In this paper, we will study the FGI in the 1D electrostatic PIC models by spectrally resolving the dynamics at the single particle level, thus allowing us to identify the components in the model that lead to unphysical instability.The dynamics in PIC result from the superposition of the pairwise interactions as in a physical system.The major components of an electrostatic PIC modelthe charge deposition, the field interpolation and the particle pusher, all operate on a single particle, while the field solver can be viewed as operating on the spatial Fourier modes.Therefore the use of the particle and spectral resolutions are natural choices for this purpose.Such a representation of the PIC models is given in section 2 and the spectral errors in PIC models are analyzed in section 3.As an alternative to the individual particle representation, one can also choose the modes of the collective particle motion as a representation.This has the advantage that the plasma dynamics can then be viewed as the collective wave-particle interactions and such couplings in a physical system and in a PIC model can also be contrasted.We note that the deposition, field interpolation and field solver only involve spatial operations at a fixed time, while the particle update in the pusher is a temporal operation in continuous space whose stability and convergence can be verified to rule out its role in FGI.To facilitate simulation comparison with the physical system, the gridless model [19,20,21] is used, in which all components and elementary operations of the physical system are projected onto the finite Fourier basis.It is demonstrated in section 4 that the lack of spectral fidelity in the deposition, field interpolation is the major cause of the FGI.Finally we summarize in section 5.

Charge deposition

8Let's first look at the charge deposition scheme in Fourier space to understand the effect of aliasing.We will see that the most important effect in Fourier space is the summation over all Brillouin zones which is the result of a convolution process between a continuous spectrum and a periodic spectrum over Brillouin zones.The sampling needed to go from continuous space to a discrete grid is the cause of the latter spectrum.

9In a grid-based model like PIC, the contribution of a particle at position x p 1 and of total charge Q on the density grid r ρ is ρ(r ρ ) = QW (r ρ , x p ), where r ρ is a vector on a uniform grid with grid size ∆x = (∆x, ∆y, ∆z).The interpolation function for the deposition is W (r ρ , r) = W (|r ρ − r|).Note that we have assumed the cell volume V = ∆x∆y∆z = 1 and dropped it for clarity.The difference between a particle shape function S(r) and a interpolation function W (r ρ , r) is discussed in Appendix A. In the rest of this section, we will not distinguish these two and will use S(r) for clarity, ρ(r ρ ) = QS ρ (r ρ − x p ).We define a transform (note this is not necessarily the proper Discrete Fourier Transform as r ρ may be shifted from the origin of the coordinate system, as will be shown later),

10which can be viewed as the continuous Fourier transform of ρ(r) rρ δ(r − r ρ ), where ρ(r) = QS ρ (r −

11x p ). Then the non-unitary inverse transform is

12As S ρ (r) is a function in continuous space,

13Then,

14(2.3) Carrying out the infinite sum (see Appendix B), we obtain, 1 Italic bold font is used for vectors.

15and

16is a phase factor.r ρ = r f + ∆r ρ and r f is a reference grid that contains the origin of coordinate system.k q = k +q•k g is an vector alias of k in the q-th Brillouin zone [q•k g −k g /2, q•k g +k g /2), k g = (2π/∆x, 2π/∆y, 2π/∆z) and

17In the case that ∆r ρ = 0, the spectra in Brillouin zones are not necessarily the same as a result of the transform defined in Eq. (2.1).For a physical system consisting of particles of shape S ρ (r), a particle at position x p will contribute to the density as,

18where k ∈ (−∞, ∞).For a gridless model which does charge deposition in Fourier space using truncated Fourier basis, Eq. (2.6) is used for a truncated domain k

19where k c is the cut-off wavenumber.To compare with a grid-based model, it is fair to set k c = k g /2 so both models have the same spectral resolution.In Eq. (2.4) for the grid-based model and Eq.(2.6) for the physical or the gridless model, one can clearly see that the charge density is from the contribution e −ik•xp of a point-charge particle modified by its shape S(k).Furthermore, the grid-based model has the aliasing effect in Fourier space which is absent in the physical or the gridless model, i.e., the summation over all Brillouin zones.The Brillouin zones exist due to the discreteness of the grid.The summation is due to the need to convolve the particle shape's continuous spectrum with a spectrum that includes Brillouin zones.

20The ratio between ρ(k) for the grid-based model, Eq. (2.4), and gridless models, Eq. (2.6), is,

21G(x, k; Sρ (k)) determines the spectral error in the deposition for a particular particle shape Sρ (k) and will be quantified in section 3. Eqs.(2.4) and (2.6) give the density for a single particle.For an infinite number of particles from a distribution f (x p , v), we have,

22for the PIC model and,

23for the physical or gridless model.Apparently Eq. (2.8) and (2.9) differ in both amplitude and phase, however, such differences depend on f (k, v) and are difficult to quantify.

Field solver

24For a physical system, Poisson's equation and electric field in continuous space are

25In Fourier space, this is completely equivalent to,

26where the operator [k] = k.In a simulation, there are many ways to solve for the field.The common choices are,

27• Use a spectral solver,

28where [k] sp = k.In this case, E and ρ are collocated on the same grid which is chosen to be the reference grid, i.e., r

29• Use finite difference on Poisson's equation and the potential for which the spectral representation is,

30(2.12)

31Here,

32Since E α and ρ may be defined on different grids from the reference grid, so in general

33Another possible choice is to use spectral solver on Poisson's equation and finite difference on the potential, as done in the code XES1 [1].It is clear that none of these choices for the field solver has systematic phase error, however, using finite difference inevitably introduces systematic amplitude error.

Field interpolation

34In PIC, after the field on the grid E(r E ) is calculated, it is interpolated to the j-th particle's position according to

35where the particle shape function is S E (r) = ´∞ −∞ dk SE (k)e ik•r /8π 3 and may be different than S ρ (r) in charge deposition.Then,

36This means that E(k) = SE (k) Ẽ(k), i.e., no aliasing effect for a particular mode Ẽ(k).This is consistent with the idea that only sampling leads to aliasing, interpolation does not.Note that this view is for single mode analysis, for the total force on a particle, we need to integrate over all k, so the summation over all Brillouin zones reappears.Generally, we have

37In a physical model, the field on the particle can be directly reconstructed from the Fourier components,

38In a gridless model, only modes from the truncated Fourier basis, i.e., k

39(2.17)

40Similar to the charge deposition, the integrands in the above equations for the PIC, physical (or gridless) model differ by a ratio,

41(2.18)

Spatial phase and amplitude errors in PIC

42Depending on the initial conditions, driving force, equilibrium etc., the plasma that we are trying to model may exhibit a host of unstable modes itself.So to distinguish the physical and numerical instabilities, one needs to look for the differences between the two systems.As the spatial components of the PIC loop, i.e., charge deposition, field solver and field interpolation, are now spectrally resolved, it is informative to investigate the errors in the spectral domain involved in these components.In fact, it turns out that all these three components have errors in the spectral domain.Such errors can be systematic or random in nature (e.g. from round-off error) and we will only focus on the former.

43It is particularly worthwhile to understand the role that the systematic spectral errors play in the numerical instabilities.The phase error plays a crucial role in the development of instabilities, and in many cases determines whether the system is stable or not.On the other hand, the amplitude error typically affects the instability growth rate.In some other cases, e.g., for instabilities with amplitude threshold or some parametric instabilities, the mode amplitude can also determine the stability.However, most numerical instabilities we encounter and need to mitigate in the PIC model are not known to be of this type.

Spectral error for shaped particle

44Next, we will quantify the phase and amplitude errors of the PIC model compared to the gridless model, which is a computationally feasible but costly model for approximating the physical system with both spectral fidelity (up to the cut-off wave-number) and conservative properties.

45For the field solver, it is easy to see from Eqs. (2.11), (2.12) that neither the finite difference or spectral solver introduces systematic phase error.There is systematic amplitude error in the finite difference solver but none in the spectral solver.

46In general, Eq. (2.8) indicates that the deposited charge density has systematic amplitude and phase errors which depend on the particle distribution function.But for a system with finite number of shaped particles, we can further discern these errors by resolving the contributions from individual particles using Eq.(2.7).As summing each individual particle's contribution to the charge density is a linear process, we do not expect such summation to generate additional errors other than round-off.In addition, field interpolation is naturally written for one particle in Eq. (2.15).Therefore, for a single particle, Eqs.(2.7) and (2.18) give the errors that can be quantified for a specific particle shape.For an orthogonal coordinate system and corresponding deposition and force interpolation, G(x, k;

47Cartesian coordinate, we only need to determine the spectral errors for one particular dimension, e.g., g(x/∆x, k;

48and symmetric in k for symmetric shape function

49For the most commonly used B-spline particle shapes sµ (k) of order µ and the Gaussian function sG (k), the systematic spectral errors g(x, k; s(k)) can be analytically quantified.

50For B-spline particle shapes, sµ (k) = [sinc(k∆x/2)] µ+1 , the infinite sum in g(x, k; sµ ) can be evaluated into a compact form using the Hurwitz-Lerch transcendent Φ(z, s, a) = ∞ n=0 z n (n +a) −s to give,

51Similarly, for a Gaussian function of width σ∆x, s G (x; σ) = e −x 2 /(σ∆x) 2 /( √ πσ∆x), sG (k; σ) = e −(kσ∆x/2) 2 / √ 2π, the infinite sum in g(x, k; sG ) can be evaluated using the elliptic theta function

52Although s G (x; σ) is a valid particle shape but not a valid interpolation function, one can define a new function s(k) = sG (k; σ)s µ (k) such that the corresponding s(x) is a valid interpolation function.For example, for µ = 0, we have sErf (k;

53, where Erf(x) is the error function.It is not clear whether g(x, k; sErf ) has a compact analytic form but numerical evaluation in Fig. 2 shows g(x, k; sErf ) is similar to g(x, k; sG ).

54The amplitude and phase of g(x, k, sµ ), g(x, k, sG ) and g(x, k; sErf ) are shown in Figs. 1 and 2. The general trends in Figs. 1 and 2 are that (1) larger amplitude and phase errors occur at higher k; and (2) the wider the particle shape, the errors are more concentrated at high k.Both amplitude and phase errors depend on the particle's position in the cell, except for the amplitude error for s 0 (nearest grid point).For the phase error, the largest error occurs when the particle is in the middle of the cell.

55Comparing g(x, k, sµ ) in Fig. 1, another salient observation is that the phase error improves slowly with the increase of the order of the particle shape.Also the dependence of the errors on the particle position does not seem to go away quickly as the order is increased, despite stronger attenuation to the high k modes.As will be shown at the end of section 3.2, the spectral errors, especially their dependences on the particle position, play a key role in determining the growth rate of most unstable mode in the linear FGI case, while the attenuation to the high k modes due to S(k) and S (k) in the front factors in Eq. (2.7) and (2.18) enlarges the stability domain, but at the expense of accuracy of the high k modes.The high order B-spline particle shapes offer both benefits but the latter benefit can also be achieved via a low-pass filter that is independent of the particle position.

Relation between the linear instability and the spectral error

56The value of s(k) in and outside the fundamental Brillouin zone −k g /2 < k < k g /2 play different roles in the linear grid instability.The latter value is related to the spectral errors g(x, k; s(k)).In order to distinguish their roles, it is instructive to inspect the linear dispersion equation Eq. (C.7) in the limit ∆t → 0 for a 1D cold drifting plasma with velocity v 0 ,

57where we also assume sρ = sE = s, [k] 2 = k 2 and κ(k q ) = k q for simplicity.As q s(k q )e −iqkgx = s(k)g(x/∆x, k; s(k)), inverse Fourier transform with respect to x gives s(k q ) = g q s(k), where g α ≡ g(α, k; s(k)) = ∆x ´dxe −i2παx g(x, k; s(k)) is discrete at α = q due to the periodicity of g(x, k; s(k)) in x.For nth order B-spline shape, g q = (−k/k q ) n+1 ; for sErf (k; σ) shape,

58. Keeping only the 0th and qth terms, Eq. (3.3) can be rewritten as,

59where

60In Eq. (3.4), s(k) and g q affect the instability domain and growth rate differently.For the model dispersion in Eq. (3.4), mode stability requires s(k) k g v 0 (see Appendix C).So for sufficiently small s(k) in the fundamental Brillouin zone, there is no instability for a particular k.However, this is achieved at the expense of the dispersion accuracy of the physical modes, since s(k) can be seen as a renormalization of Ω.While g q = s(k q )/s(k), which is closely related to the spectral errors g(x, k; s(k)), affects the alias modes thus the instability only.More specifically, g q has a large effect on the instability growth rate but little on the stability domain.g q is real and can be written as a sum of the Fourier coefficients of the amplitude and phase components of g(x, k; s(k)),

61where

62. The dominating terms in Eq. (3.5) is A 0 Θ q and A q Θ 0 as both A l and Θ l are highly peaked at l = 0. Therefore the qth alias mode appears mainly because the presence of the amplitude or phase errors that is position-dependent and modulated at the qth harmonics of the grid.For the common Bspline particle shapes, A 0 Θ q dominates at high k, therefore the amplitude error is more important, while at lower k, A q Θ 0 dominates, i.e., the phase error is more important.The most unstable mode k max in the dispersion Eq. (3.4) can be obtained from s(k max ) ≈ k g v 0 .Its normalized growth rate is

63q .(3.6) Therefore, smaller s(k) in the fundamental Brillouin zone (but keeping g q the same) actually leads to smaller k max and higher maximum growth rate, while smaller |g q | (but keeping s(k) in the fundamental Brillouin zone the same) lowers the maximum growth rate.This indicates that a particle shape with a high contrast between the fundamental and higher order Brillouin zones, i.e., small |g q | that translates to small position dependent spectral errors, is beneficial when aliasing is unavoidable.

Spectral fidelity of the collective modes

64Now it is clear that the systematic spectral errors in the deposition and field interpolation occur at the individual particle level, but the overall errors from an ensemble of plasma particles are less transparent.To this end, we can analyze how these errors manifest themselves in the collective motion of a finite number of particles.To simplify this analysis, an initially cold beam of N p particles moving at velocity V 0 is assumed, but the analysis is not restricted to this velocity distribution.Each particle has charge Q, mass m.The system is periodic with length L and N g cells, ∆x = L/N g is the cell size.When there is no perturbation, the j-th particle is located at X j and particles are equally spaced with distance ∆X = L/N p .The particle's position x j is perturbed at t = 0 and then evolves self-consistently.The displacement of the particle is δx(X j , t) = x j (t)−X j and can be expanded into Fourier modes

65where δx(K, t) = A(K, t)e iθ(K,t) = j δx(X j , t)e −iKX j , A(K, t) and θ(K, t) are the mode amplitude and phase of the collective motion of these N p particles.The drift motion of the beam is described by the K = 0 mode.

66Assuming these particles have shape s(k), their contribution to the density of mode k in the periodic physical system (or a gridless model) is

67where |k| < π/∆x.the phase factor in this sum can be written, using the Jacobi-Anger expansion, as

68where ν K is an integer for each mode

69) is a sum (product) over all combination of ν K s and ν K is a sum of every ν K for π ∆X K 0.

70Summing Eq. (3.8) over X j and using

71where k P = 2π/∆X = N p 2π/L and m is an integer.

72Eq. (3.9) describes the contribution from the Fourier modes of the collective motion to the Fourier modes of the density, where the first, second and third terms in the curly bracket determining the mode coupling relation, phase and strength, respectively.The π/2 in the phase factor comes from the phase difference between particle's displacement and the density.Note that Eq. (3.9) is valid for arbitrary number of particles and arbitrary spectrum/amplitude of the collective modes.Due to the finite number of particles in a system, the mk P term in the argument of the delta function introduces a physical coupling due to the "particle aliasing" effect of the collective mode.Typically we are interested in the case k k P , thus this effect couples a low k mode and a very high K collective mode efficiently only when ν K is a small number.Furthermore, the coupling coefficient J ν K (−2kA(K, t)/N p ) would be small when there are sufficient large number of particles, N p 1, so practically we may take m = 0 and ignore this effect in a physical system for most situations.

73Next we investigate the coupling among collective modes and density modes only.This can be illustrated by understanding how a single collective mode couples to the density perturbation first.For a collective mode spectrum with a single mode K 0 , A(K 0 ) = 0, while A(K = K 0 ) = 0. Since J ν K (0) = 0 only when ν K = 0, so we have δ (k

74. This corresponds to the excitation of the fundamental mode k = K 0 and its harmonics k = ν K 0 K 0 with the mode coupling coefficient being s(ν

75Similarly, when there are two collective modes K 0 and K 1 , their beating will result in density perturbation at mode k = ν K 0 K 0 + ν K 1 K 1 with the coupling coefficient being s(ν

76From this, the coupling for the density perturbation involving more collective modes can be generalized.

77The density perturbation created by the collective modes in turn drives more collective modes of the particles through the electric field.We define the electric field on the particle as a function of X j ,

78whose Fourier transform with regard to X j is,

79Here, [k] is the effective operator from the field solver.Similar to the phase factor for the density in Eq. (3.8), the phase factor in the above equation can be expanded and the sum over X j can be carried out to give,

80The relation between E(K, t) and ρ(k) (or E(k)) depends on the argument of the delta function and the sum over k, therefore it is more complicated than that between ρ(k) and δx(K, t) in Eq. (3.9).Again we may ignore the particle aliasing effect in the collective mode when N 1.Then for the simplest case of a collective motion with a single mode K 0 , a non-zero value of

81Coupling to E(K, t) thus comes from ρ(k = K − ν K 0 K 0 ), which is not necessarily the harmonics of K 0 .When the collective motion involves two modes K 0 and K 1 , coupling to E(K, t)

82Finally, the evolution of the collective modes is determined by the equation of motion

83which is an ordinary differential equation (ODE).Clearly, regardless of whether it is written in a continuous or discrete time variable, this step does not introduce spectral errors in K-space.Now, Eqs.(3.9), (3.10) and (3.11) are the coupled equations describing the evolution of the collective modes in the physical system of a cold beam.When the discrete time version of Eq. (3.11) is used, these equations represent a discrete-time analog of the physical system.If Eq. (3.11) is discretized using a scheme consistent with the underlying ODE, i.e., the solution of the discretized equation approaches that of the ODE when the discretization step ∆t → 0, then a numerical instability, if occurring in this discrete-time system, will exhibit dependence on ∆t.Therefore, a convergence test can discern a numerical instability due to discretization in time.Early study of FGI already established that the numerical heating rate is independent of the time step, therefore time discretization cannot be the reason of FGI.From the single particle analysis of the systematic spectral errors presented earlier in this section, we can see that another possibility of the numerical instability in PIC is the spectral errors in the deposition and field interpolation due to the aliasing effect.In fact, for the PIC model, Eqs.(3.9) and (3.10) take on the following forms,

84)

85where k has been replaced by its alias k q and a sum of all aliases is taken.Compared with Eqs.(3.9) and (3.10), Eqs.(3.12) and (3.13) lack the spectral fidelity to the physical system, i.e., they contain not only phase and amplitude errors, but also unphysical mode couplings.As will be shown in the next section, such lack of spectral fidelity is the major cause of the finite grid instability.

Comparison of the gridless model and the PIC models

86In this section, we compare the 1D non-relativistic electrostatic simulation results of a numerical plasma that is susceptible to the finite grid instability, for various PIC models and from the gridless model.The simplest simulation is that of a single-mode electrostatic oscillation in a cold plasma with a drift.While this mode will generate high harmonics, such system should be stable for a long time.During this period, the plasma should remain cold, i.e., the local momentum spread is zero.The three spatial components of the numerical scheme -the charge deposition, the field solver and the field interpolation, are implemented in the PIC/finite-difference mode and/or the gridless mode.The mode history from the simulations are compared, the focus here is not the accuracy of the simulation but to understand the roles of the amplitude and phase errors in the finite grid instability.

87The simulation box has dimensionless size L = 2πc/ω p and N = 33 cells.The initial plasma density n 0 is constant across the box.N C = 300 particles per cell is used for the electrons and the ions constitute a uniform neutralizing background.The electrons are equally spaced and a sinusoidal displacement δx(x p0 ) = AL cos(2πM x p0 /L)/(2πM ) is applied to initialize a density perturbation, where M is the mode number and x p0 is the unperturbed particle position.The density perturbation is given by n 1 (x)/n 0 = −∂δx/∂x = A sin(2πM x/L) for point particles and the actual amplitude will be smaller by s(k = 2πM/L) when a shaped particle is used in the simulation.The electron initial velocity is the sum of the drift velocity V 0 = 0.01c and perturbed velocity δV = ALω p sin(2πM x/L)/(2πM ), where c is the speed of light.

88Results are compared in Fig. 3 for four simulations with ω p ∆t = 0.2: (1) the momentum conserving PIC model [1] with linear particle shape; (2) the momentum conserving PIC model with quadratic particle shape; (3) the energy conserving PIC model [13] with quadratic particle shape; and (4) the electrostatic gridless model [20,21] with quadratic particle shape.For all PIC models compared, the initial small-amplitude single-mode perturbation (A ∼ 10 −2 for mode K = 9) excites all the modes in the system at a level of ∼ 10 −6 immediately after the first step.Then, it is observed that mode k = 15, which is an alias mode from the second harmonics K = 18 of the initial perturbation in the adjacent Brillouin zone, grows exponentially in all PIC models.The growth rate is higher for the lower order particle shape used in the momentum conserving PIC models.Although the initial amplitude of mode k = 15 is higher in the energy conserving PIC model with quadratic particle shape due to the lower order, i.e., linear, particle shape used in field interpolation, the growth rate is about the same as in the momentum conserving PIC with quadratic shape.Following the growth of mode k = 15, mode k = 6 also grows at a similar rate, which appears to be a result of the beating between modes k = 9 and k = 15.Other exponential growing modes before ω p t < 50, e.g., modes k = 3 and k = 12 may also result from beating.These modes grow to an amplitude comparable to the initial perturbation during ω p t ∼ 50 − 100, after which a wide spectrum of modes are excited.As a result of the interaction with a wide spectrum of waves, the phase space plots in Fig. 4 show heated electron distributions in all PIC models, while the momentum (energy) is relatively constant in the momentum (energy) conserving model by design.Comparing with the gridless model for which the perturbation remains single-mode and the electrons stay cold during the simulation, it can be seen that the development of the wide-band spectrum and the heating of the electrons are clearly numerical effects.Such numerical artifacts result from the lack of spectral fidelity in the PIC model.

89It should be noted that the gridless model improves not only the spectral accuracy of the dynamics, but also the energy and momentum conservation of the simulation model.In Fig. 4, the gross loss of energy (momentum) conservation in the momentum (energy) conserving PIC models are correlated with the saturation of the unstable mode growth.Furthermore, despite the 2 nd order accurate leap-frog scheme used for the time advance in all models, only the gridless model exhibits energy conservation (and possibly for momentum conservation) that scales like O(∆t 3 ) in this numerical instability test.For the gridless model, the energy conservation is improved by about a factor of 1000 when the time step is decreased by a factor of 10 to ω p ∆t = 0.02, while the momentum conservation is already at the machine precision for ω p ∆t = 0.2 thus does not improve further.For the energy conserving model, the heating in phase space, mode history and growth rate are essentially unchanged when the time step is decreased to ω p ∆t = 0.02, while the momentum conservation is only slightly improved and the energy conservation is improved by about a factor of 10.The heating and unstable mode growth behave similarly in the momentum conserving model, but neither the energy or momentum conservation improves as time step is decreased to ω p ∆t = 0.02.The superior conservative properties of the gridless model may be due to the fact that it can be derived from the action principle using a truncated Fourier series [21] and the resulting finite dimension dynamical system possesses spectral fidelity to the physical system.The advantage of the variational models [21,17,18] and the spectral fidelity in conservation properties and numerical stability deserve further study but will not be pursued here.

90To understand the relative importance of the spectral fidelity in the deposition/interpolation and the field solver, in particular the role of amplitude and phase errors, simulations are carried out using the momentum conserving PIC model with the deposition/interpolation and the field solver implemented in gridless mode respectively.The results are shown in Fig. 5. Operating the field solver in the gridless mode effectively turns the finite difference PIC model into a spectral PIC model, which improves upon the systematic amplitude error and random spectral errors in a finite difference solver.The benefit is seen in Fig. 5 where the dominate modes are those separated modes (mode 3, 6, 9, 12, 15) up to ω p t = 200, but the onset of whole spectrum excitation, similar to those shown in Fig. 3, is delayed to ω p t ∼ 400 in a longer simulation (not shown).The growth rate of mode 15 is about the same as in the case with a finite difference solver and the electron phase space shows similar heating.Thus a spectral solver that improves amplitude and random errors does not qualitatively change the characteristics of the simulation.Upon adopting the gridless deposition and field interpolation (but keeping the finite difference field solver), which improves both the systematic phase and amplitude errors, the results are essentially similar to those of the gridless model, with a higher floor of the background modes.This confirms that the major loss of the spectral fidelity in PIC occurs in the deposition and the field interpolation where their phase errors play important roles in FGI.

91The dynamics shown in Fig. 3 involves nonlinear coupling of a large range of modes as the system evolves, but at the early time the unstable dynamics grows predominately from the interaction between density mode k = ±15 and the collective mode K = 18 which is excited by the initial perturbation at K = 9.To quantitatively determine the behavior of such interaction, we can set δx(K, t) = Ae iωrt = A 0 e i(ωt+θ 0 ) , where ω = ω r − iω i , δx(K, 0) = A 0 e iθ 0 and A = A 0 e ω i t .Inserting this into the coupled Eqs.(3.11), (3.12) and (3.13), and ignoring the particle aliasing effect then N 1, one obtains,

92This can be simplified by equating the time varying phase on both sides of Eq. (4.1) and setting the arguments of the delta functions to zero, i.e., using the following relationships for the mode coupling,

93to give,

94where the normalization n → n/n p , ω → ω/ω p , t → ω p t, Q → N g /N p , Q/m → 1, is used and ∆n 0 K = 2KA 0 /N p is the normalized initial density perturbation due to the collective mode K.The summation in Eq. (4.3) is over all integers ν K and q that satisfy ν K = k q /K = (k + qk g )/K.For the above example, k = ±15, K = 18 and k g = 33, we can rewrite the infinite summation to be,

95| drops quickly as |ν K | increases, so in practice only the l = 0 term needs to be included in the above sum until the coupling is nonlinear.Thus, Eq. (4.3) becomes,

964) The first (second) term on the right hand side results from the coupling through mode k = 15 (k = −15).The coupling from the second term is much stronger than that from the first term through mode when the perturbation amplitude is small, i.e., when e ω i t ∆n 0 K 1.In fact the second term leads to absolute instability (ω r = 0), while the first term leads to oscillatory solution (ω i = 0).Therefore, an initially small perturbation grows exponentially until saturation and then oscillates at that level.The linear growth rate can be obtained by dropping the first term and Taylor expanding the Bessel functions in the second term, which gives,

97which does not depend on the drift velocity V 0 .When e ω i t ∆n 0 K ≈ 1.84, the RHS of (4.4) is zero, therefore the normalized instability saturation time is

98Note that the linear FGI in section 3.2 is different than the case discussed here.For the former case, unstable modes grow independently from particle noise.Each unstable mode involves the fundamental of the collective motion that can be resolved by the grid (harmonics have been dropped in the linear analysis), and the corresponding density perturbation which also contains alias modes that cause the instability.For the latter case, the collective motion cannot be resolved by the grid.Therefore the density mode contains alias modes only and the instability can be more severe than the former case, e.g., for the simulation with large amplitude perturbation.Also, unlike the former FGI case which is convective and has stability domains, the latter instability is absolute and has no stability domain as long as K > k g and s(K) > 0.

99The linear growth rate from Eq. (4.5), ω i ≈ 0.21, and the instability saturation time from Eq. (4.6), t sat ≈ 46.5, are compared to the simulation shown in Fig. 6, in which only collective mode K = 18 and electric field modes k = ±15 are kept and an initial perturbation in the mode K = 18 is applied.Solving Eq. (3.4) for modes k = ±15 gives ω i ≈ 0.04 which is much smaller than the actual grow rate.This simulation result is also in close agreement with the example shown in Fig. 5, for the dynamics of mode k = 15 in the linear growth stage up to the saturation of the instability, indicating the early unstable dynamics is due to the coupling between K = 18 and k = ±15 modes.However, the detail dynamics after saturation in the latter simulation involves more mode coupling, thus requiring a more complete treatment similar to the above analysis.

Summary

100In this paper, the origin of the FGI is studied by employing particle and spectral resolutions into the dynamics of the 1D electrostatic PIC model and by contrasting the spectral fidelity of the PIC model with respect to the underlying physical system (or the gridless model).The particle resolution can be either adopted for individual particle or for the collective motion.The use of the particle and spectral resolutions are not the only options for this purpose, but are suitable ones as the particle dynamics consist of pair-wise interactions and can also be viewed as collective wave-particle interactions.predicted by Eq (4.5) and Eq.(4.6), respectively, with ln|E(k = 15)| in a PIC simulation using a 2nd order particle shape and a spectral field solver (green curve).Eq. (3.4) gives ωi ≈ 0.04.The simulation is initialized with a perturbation in the collective mode K = 18 such that ∆n 0 K = 10 −4 .Only the collective mode K = 18 and the electric field modes k = ±15 are kept in the simulation.Other numerical parameters are the same as in the simulation in Fig. 5 that employs a spectral solver, no mode filtering and an initial perturbation in mode K = 9 such that ∆n 0 K = 10 −2 (blue curve).

101At the individual particle level, the charge deposition and field interpolation operations of the PIC models exhibit systematic spectral errors relative to the physical system (or gridless model) due to the existence of the spatial alias modes from the use of the discrete grid in conjunction with Lagrangian particles in continuous space.In principle, these errors can be calculated for arbitrary particle shape, and surprisingly, they have relatively compact analytic forms shown in Eq. (3.1) for the B-spline particle shapes and in Eq. (3.2) for the Gaussian particle shape.These forms allow us to understand the effects in the spectral domain from using shaped particles in the PIC models.It is observed that these systematic spectral errors depend on both k∆x and the particle's normalized position in the cell.These errors are directly related to the instability growth rate but they improve slowly with the increase of the order (smoothness) of the B-spline particle shape.Another benefit of using higher order particle shape is the stronger damping to the short-wavelength modes in the fundamental Brillouin zone which can enlarge the stability domain.Such a damping effect also applies to the physical modes and may be achieved using a spatial mode filter on the grid which has a lower computation cost and does not depend on individual particle's position.

102At the collective motion level, as it is shown in Eqs.(3.12) and (3.13), the charge deposition and field interpolation introduce unphysical mode couplings which eventually result in amplitude and phase errors in the collective modes.This is also due to the aliasing of the spatial modes.Within the framework of collective wave-particle interactions, Eqs.(3.9), (3.10) and (3.11) are the coupled equations describing the evolution of the collective modes in the physical system, while Eqs.(3.12) and (3.13) and the discrete time version of Eq. (3.11) are the counterparts for the PIC model, whose convergence with respect to time step can be verified to rule out the time discretization as a possible origin of the FGI.In fact, early works on FGI already indicated that the numerical heating rate is independent of the time step with the leap-frog advance, while our result also shows that the growth rates of the unstable modes are not affected by the time step, making it clear the cause of FGI can only be the lack of spectral fidelity of Eqs.(3.12) and (3.13) as compared to Eqs. (3.9) and (3.10).In this regard, the difference between the PIC model and the physical system (or gridless model) is technical, not fundamental -with a properly-chosen particle shape such that s(k) = 0 for |k| > k g /2, we recover Eqs.(3.9) and (3.10) from Eqs. (3.12) and (3.13) for |k| ≤ k g /2 , thus making the PIC models effectively a gridless model.This opens the question of the optimal compact particle shapes for the PIC model.Finally, as with many physical instabilities which result from the constructive feedback of modes, it can be understood that the systematic spectral errors play important roles in the development of FGI.This finding is verified in the simulation comparison with the gridless model and may help the design of a PIC model with better stability.

103We have also used ∆x∆y∆z = 1.The infinite sum in Eq. (2.3) is related to the infinite sum on the reference grid, Eq. (B.1), by a phase factor,

104where r ρ = r f + ∆r ρ and ψ(q • k g , ∆r ρ ) = e i(q•kg)•∆rρ is the phase factor.For zero offset ∆r ρ = (0, 0, 0), ψ = 1; while for a half cell offset, ψ is either 1 or −1, e.g. if ∆r ρ = (∆x/2, 0, 0), ψ = (−1) n .

Appendix C. Linear dispersion of electrostatic PIC models

105The linear numerical dispersion of the momentum conserving and energy conserving PIC models are given in [1] for finite time step.Here we gives a similar derivation but without introducing temporal aliasing, as all PIC quantities, including the distribution function, are discrete in time.The perturbed discrete (in time) distribution function is derived in a way similar to Eq. (30) of [8] but with one full position update instead of two half updates,

106for which a phase factor e iω∆t/2 is dropped because f 1 is now needed at the same time step as the electric field.

107When the leap-frog update is viewed as a continuous time integration of the Newton's laws but with a force sampled on the time step, temporal aliasing is introduced.In such case the distribution function of the eigen mode is defined on the continuous time, and the discrete distribution function in PIC is its time sample.The linearization is performed on the former and before the time sampling.Using

108to evaluate the infinite sum from aliasing [1], one arrives at a similar expression to Eq. (C.1) for the perturbed discrete distribution function but with e

109. This difference does not manifest in the zeroth moment of f1 but may appear in higher order moments.

110The normalized equations for the perturbed density ρ1 (k, ω), the potential φ1 (k, ω),the electric field Ẽ1 (k, ω) and the force F (k, v, ω) are, ρ1 (k, ω) = q Sρ (k q ) ˆf 1 (k q , v, ω)dv, where [k] 2 is the Poisson operator and κ(k) is the gradient operator.All grid quantities are transformed according to the transform defined in Eq. (2.1).Eq. (C.2) also implies that ∆r ρ = 0 is chosen in Eq. (2.8), so ψ(q • k g , ∆r ρ ) = 1.

111Substituting Eq. (C.1) into the above equations, the dispersion equation is,

112For a cold uniform beam with velocity v 0 , it reduces to,

113Eq. (C.7) has many resonances that are folded into the fundamental Brillouin zone −π < ω∆t/2 ≤ π.For two interacting resonances, the dispersion equation can be simplified as 1 − a[sin −2 (y) + bsin −2 (y + c)] = 0, |b| < 1.Here we use the 1D case and include the fundamental mode and the qth (|q| > 0) alias mode as an example, y = (ω − k • v 0 )∆t/2, a = ∆t 2 sρ (k)s E (k)κ(k)k/4[k] 2 ≥ 0, b = sρ (k q )s E (k q )κ(k q )k q /s ρ (k)s E (k)κ(k)k, and c = (qk g v 0 ∆t/2) mod 2π, −π < c ≤ π.When ∆t is sufficiently small, this equation can be approximated by a quartic equation in y, −ac 2 + 2acy + −a − ab + c 2 y 2 − 2cy 3 + y 4 = 0, for which a pair of complex conjugate roots (the other two roots are always real) exist when the discriminant D = −16a 2 bc 2 (a(1 + b) − c 2 ) 3 − 27a 2 bc 2 < 0. When D > 0, there are (1) four real roots, if a > 0; or (2) two pairs of complex conjugate roots, if a < 0. Therefore, for the interaction of any two nearby resonances, there are domains of stability/instability defined by the parameters a, b and c, depending on the signs of D and a.

114Two types of situation can be distinguished.When b > 0, the simplified dispersion equation resembles that of a physical two-stream instability.Stability requires (a(1 + b) − c 2 ) 3 − 27a 2 bc 2 ≤ 0 and a > 0, which gives a stable domain 0 < a < a 1 and unstable domains a > a 1 or a < 0.Here a 1 is the only real root of (a(1 + b) − c 2 ) 3 − 27a 2 bc 2 = 0.For |b| 1, a 1 ≈ 1 − 3b 1/3 c 2 .When b < 0, which corresponds to unusual two streams with densities of opposite signs, the stable domain is a > a 1 and the unstable domain is a < a 1 .

115The dispersion equation Eq. (C.7) applies to both the energy conserving and momentum conserving PIC models.The major difference in Eq. (C.7) for these two PIC models is the operator κ(k q ).For the energy conserving model, κ(k q ) = k q , so b ∼ k 2 q > 0. Therefore, interaction of any pair of resonances is of the usual two-stream type and there is a stable domain 0 < a < a 1 .This can be written explicitly, e.g., for the fundamental mode and the qth (|q| > 0) alias mode, [(qk g v 0 ∆t/2) mod 2π] 2 > ∆t 2 4[k] 2 sρ (k)s E (k)κ(k)k 1 − 3(s ρ (k q )s E (k q )κ(k q )k q /s ρ (k)s E (k)k 2 ) 1/3 −1 .For momentum conserving PIC model, κ(k q ) = k q sinc(k q ∆x), so b ∼ k 2 q sinc(k q ∆x) which switches sign when q switches sign.Therefore, interaction of any pair of resonances can be of either the first or the second type.

Figure 1 :Figure 2 :

116Figure1: The amplitude (left column) and phase (right column) of g(x, k, sµ) for µ = 0, 1, 2, 3, which correspond to nearest grid point, linear, quadratic, cubic particle shapes, respectively.

Figure 3 :

117Figure 3: Simulation mode spectrum from various models.Left column: full mode spectrum ln(|E(k)|) as a function of time.Right column: evolution of the mode amplitude for the perturbation -mode k = 9, alias of its second harmonic -mode k = 15(= 33 − 9 × 2) and the beat between them -mode k = 6(= 15 − 9).The four rows from top to bottom correspond to (1) the momentum conserving (M.C.) PIC model with linear particle shape; (2) the momentum conserving PIC model with quadratic particle shape; (3) the energy conserving (E.C.) PIC model with quadratic particle shape; and (4) the gridless model with quadratic particle shape.

Figure 4 :

118Figure 4: Electron phase space at the end of the simulation (left column), energy (middle column) and momentum (right column) conservation from various models.The energy and momentum conservation are shown for ωp∆t = 0.2 (green curves) and ωp∆t = 0.02 (blue curves).The three rows from top to bottom correspond to (1) the momentum conserving (M.C.) PIC model with quadratic particle shape; (2) the energy conserving (E.C.) PIC model with quadratic particle shape; and (3) the gridless model with quadratic particle shape.

Figure 5 :

119Figure 5: The mode spectrum (left column), amplitudes of mode 9, 15, 6 (middle column), and electron phase space from a PIC model (right column) with (1) a spectral solver (top row); (2) gridless deposition and field interpolation (bottom row).

Figure 6 :

120Figure 6: Comparison of the FGI growth (red, dashed, ωi ≈ 0.21) and the saturation time (black, dotted, tsat ≈ 46.5)predicted by Eq (4.5) and Eq.(4.6), respectively, with ln|E(k = 15)| in a PIC simulation using a 2nd order particle shape and a spectral field solver (green curve).Eq. (3.4) gives ωi ≈ 0.04.The simulation is initialized with a perturbation in the collective mode K = 18 such that ∆n 0 K = 10 −4 .Only the collective mode K = 18 and the electric field modes k = ±15 are kept in the simulation.Other numerical parameters are the same as in the simulation in Fig.5that employs a spectral solver, no mode filtering and an initial perturbation in mode K = 9 such that ∆n 0 K = 10 −2 (blue curve).

(C. 2 )

121φ1 (k, ω) = ρ1 (k, ω)/[k] 2 , (C.3) Ẽ1 (k, ω) = −iκ(k) φ1 (k, ω), (C.4) F (k, ω) = SE (k) Ẽ1 (k, ω), (C.5)

참고문헌 22건

  1. Plasma Physics via Computer Simulation 2018 10.1201/9781315275048
  2. On the numerical dispersion of electromagnetic particle-in-cell code: Finite grid instability Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.05.037
  3. A variational multi-symplectic particle-in-cell algorithm with smoothing functions for the Vlasov-Maxwell system Physics of Plasmas · American Institute of Physics · 2013 10.1063/1.4826218
  4. Plasma self-heating and saturation due to numerical instabilities Journal of Computational Physics · Elsevier BV · 1980 10.1016/0021-9991(80)90171-0
  5. Reduction of the grid effects in simulation plasmas Journal of Computational Physics · Elsevier BV · 1974 10.1016/0021-9991(74)90014-x
  6. Nonphysical noises and instabilities in plasma simulation due to a spatial grid Journal of Computational Physics · Elsevier BV · 1972 10.1016/0021-9991(72)90048-4
  7. A Method to Suppress the Finite-Grid Instability in Plasma Simulations Journal of Computational Physics · Elsevier BV · 1994 10.1006/jcph.1994.1150
  8. Development of a Consistent and Stable Fully Implicit Moment Method for Vlasov--Ampère Particle in Cell (PIC) System SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2013 10.1137/120881385
  9. Effects of the spatial grid in simulation plasmas Journal of Computational Physics · Elsevier BV · 1970 10.1016/0021-9991(70)90024-0
  10. A comparison of some particle-in-cell plasma simulation methods Journal of Computational Physics · Elsevier BV · 1972 10.1016/0021-9991(72)90092-7
  11. 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
  12. Dispersion relation for computer-simulated plasmas Journal of Computational Physics · Elsevier BV · 1970 10.1016/0021-9991(70)90049-5
  13. Numerical Cherenkov instabilities in electromagnetic particle codes Journal of Computational Physics · Elsevier BV · 1974 10.1016/0021-9991(74)90076-x
  14. Variational formulation of particle algorithms for kinetic plasma simulations Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.03.006
  15. The energy conserving particle-in-cell method Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.05.033
  16. Numerical stability of relativistic beam multidimensional PIC simulations employing the Esirkepov algorithm Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.04.006
  17. Kinetic approach to microscopic-macroscopic coupling in space and laboratory plasmas Physics of Plasmas · American Institute of Physics · 2006 10.1063/1.2173623
  18. Gridless finite-size-particle plasma simulation Computer Physics Communications · Elsevier BV · 2001 10.1016/s0010-4655(00)00191-0
  19. Numerical instability due to relativistic plasma drift in EM-PIC simulations Computer Physics Communications · Elsevier BV · 2013 10.1016/j.cpc.2013.07.003
  20. Explicit high-order non-canonical symplectic particle-in-cell algorithms for Vlasov-Maxwell systems Physics of Plasmas · American Institute of Physics · 2015 10.1063/1.4935904
  21. Energy-conserving numerical approximations for Vlasov plasmas Journal of Computational Physics · Elsevier BV · 1970 10.1016/0021-9991(70)90012-4
  22. Plasma Physics via Computer Simulation 1991 10.1887/0750301171