Hostname: page-component-74656f9884-8rzl6 Total loading time: 0 Render date: 2026-11-05T23:04:32.859Z Has data issue: false hasContentIssue false

Geometric electrostatic particle-in-cell algorithm on unstructured meshes

Published online by Cambridge University Press:  21 July 2021

Zhenyu Wang*
Affiliation:
Princeton Plasma Physics Laboratory, Princeton University, Princeton, NJ 08543, USA
Hong Qin
Affiliation:
Princeton Plasma Physics Laboratory, Princeton University, Princeton, NJ 08543, USA
Benjamin Sturdevant
Affiliation:
Princeton Plasma Physics Laboratory, Princeton University, Princeton, NJ 08543, USA
C.S. Chang
Affiliation:
Princeton Plasma Physics Laboratory, Princeton University, Princeton, NJ 08543, USA
*
†Email address for correspondence: zwang3@pppl.gov
Rights & Permissions [Opens in a new window]

Abstract

We present a geometric particle-in-cell (PIC) algorithm on unstructured meshes for studying electrostatic perturbations with frequency lower than electron gyrofrequency in magnetized plasmas. In this method, ions are treated as fully kinetic particles and electrons are described by the adiabatic response. The PIC method is derived from a discrete variational principle on unstructured meshes. To preserve the geometric structure of the system, the discrete variational principle requires that the electric field is interpolated using Whitney 1-forms, the charge is deposited using Whitney 0-forms and the electric field is computed by discrete exterior calculus. The algorithm has been applied to study the ion Bernstein wave (IBW) in two-dimensional magnetized plasmas. The simulated dispersion relations of the IBW in a rectangular region agree well with theoretical results. In a two-dimensional circular region with fixed boundary condition, the spectrum and eigenmode structures of the IBW are obtained from simulations. We compare the energy conservation property of the geometric PIC algorithm derived from the discrete variational principle with that of previous PIC methods on unstructured meshes. The comparison shows that the new PIC algorithm significantly improves the energy conservation property.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2021. Published by Cambridge University Press
Figure 0

Figure 1. The PIC algorithm on a triangle. (a) Depositing a particle's charge to the triangular vertices using Whitney 0-forms $W_{\sigma _{0},I}$. (b) Computing $\boldsymbol {E}_{J}$ on the edge with the discrete gradient operator $\nabla _{dJ,I}$. (c) Interpolating $\boldsymbol {E}_{J}$ from edges to the particle's location through Whitney 1-forms $W_{\sigma _{1},J}$.

Figure 1

Figure 2. The values of the Whitney 0-forms and 1-forms. The density plot of the value of (a) $W_{\sigma _{0},i_{1}}(x,y)$, (b) $W_{\sigma _{0},i_{2}}(x,y)$ and (c) $W_{\sigma _{0},i_{3}}(x,y)$. The amplitude density plot and the quiver plot of (d) $W_{\sigma _{1},i_{2}i_{3}}(x,y)$, (e) $W_{\sigma _{1},i_{3}i_{1}}(x,y)$ and (f) $W_{\sigma _{1},i_{1}i_{2}}(x,y)$.

Figure 2

Figure 3. The PIC algorithm on prism mesh. (a) Charge-deposition algorithm. Here $\rho _{i_{1}},\ldots ,\rho _{i_{6}}$ are the charge density on the vertices deposited from a particle at ($x, y, z$). (b) Potentials $\phi _{i_{1}},\ldots ,\phi _{i_{6}}$ are electric potentials on the vertices, and $\boldsymbol {E}_{i_{2}i_{3}}, \boldsymbol {E}_{i_{3}i_{1}}, \boldsymbol {E}_{i_{4}i_{5}}, \boldsymbol {E}_{i_{5}i_{6}}, \boldsymbol {E}_{i_{6}i_{4}}, \boldsymbol {E}_{i_{1}i_{4}}, \boldsymbol {E}_{i_{2}i_{5}}, \boldsymbol {E}_{i_{3}i_{6}}$ are discrete electric field on the edges. (c) Field-interpolation algorithm. Note that $\boldsymbol {E}_{i_{3}i_{1}}$, $\boldsymbol {E}_{i_{5}i_{6}}$ and $\boldsymbol {E}_{i_{1}i_{4}}$ are not labelled for clarity.

Figure 3

Figure 4. (a) The rectangular simulation domain. (b) A zoom-in of the red rectangular region in (a).

Figure 4

Figure 5. Dispersion relation of the IBW in a 2-D rectangular domain. The contour plot of $\tilde {\phi }(k_{x},\omega )$ at (a) $k_{y}\rho _{i}=0$, (b) $k_{y}\rho _{i}=1.0$, (c) $k_{y}\rho _{i}=2.0$ and (d) $k_{y}\rho _{i}=3.0$. The red dashed lines represent the theoretical dispersion relation.

Figure 5

Figure 6. (a) The 2-D circular simulation domain. (b) A zoom-in of the red rectangular region in (a).

Figure 6

Figure 7. (a) Spectrum of the IBW for $m=0,1,2,3$. (b) Zoom-in of (a) for $0\leq \omega /\varOmega _{i}\leq 3$.

Figure 7

Figure 8. Eigenmode structures $\tilde {\phi }_{nml}(r)$ for $m=0,1,2,3$ and $l=1,2,3$ in the neighbourhood of the first harmonic ($n=1$). The black solid line is the real part of $\tilde {\phi }_{nml}(r)$ and the red dashed line is the imaginary part. The eigenfrequency $\omega _{nml}$ for each eigenmode is listed.

Figure 8

Figure 9. A previous PIC method (Method B) on unstructured meshes with identical shape function for charge deposition and field interpolation. (a) Depositing the particle's charge into the triangular vertices. (b) Computing $E_{x}$ and $E_{y}$ by a five-point finite-difference method. (c) Interpolating $\boldsymbol {E}$ from vertices to the particle's position.

Figure 9

Figure 10. Comparison between our algorithm derived from the discrete variational principle (Method A) and a previous method using identical shape function for charge deposition and field interpolation (Method B). (a) The total energy error during the simulation. The blue curve is for method A and the red curve is for Method B. (b) The dispersion relation obtained from Method A. The red dashed lines are the theoretical results. (c) The dispersion relation obtained from Method B.