Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-08T07:03:53.606Z Has data issue: false hasContentIssue false

Enhanced biDimensional pIc: an electrostatic/magnetostatic particle-in-cell code for plasma based systems

Published online by Cambridge University Press:  27 March 2019

G. Gallina
Affiliation:
Department of Physics and Astronomy, University of British Columbia, 6224 Agricultural Road, Vancouver BC V6T 1Z1, CA TRIUMF, 4004 Wesbrook Mall, Vancouver BC V6T 2A3, CA
M. Magarotto*
Affiliation:
Department of Industrial Engineering, University of Padova, Via Gradenigo 6/a 35131 Padova, IT Centro di Ateneo di Studi e Attività Spaziali ‘Giuseppe Colombo’ – CISAS, University of Padova, Via Venezia 15 35131 Padova, IT
M. Manente
Affiliation:
Technology for Propulsion and Innovation S.r.l., Via della Croce Rossa 112 35129 Padova, IT
Daniele Pavarin
Affiliation:
Department of Industrial Engineering, University of Padova, Via Gradenigo 6/a 35131 Padova, IT Centro di Ateneo di Studi e Attività Spaziali ‘Giuseppe Colombo’ – CISAS, University of Padova, Via Venezia 15 35131 Padova, IT Technology for Propulsion and Innovation S.r.l., Via della Croce Rossa 112 35129 Padova, IT
*
†Email address for correspondence: magamir91@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

EDI (enhanced biDimensional pIc) is a two-dimensional (2-D) electrostatic/magnetostatic particle-in-cell (PIC) code designed to optimize plasma based systems. The code is built on an unstructured mesh of triangles, allowing for arbitrary geometries. The PIC core is comprised of a Boris leapfrog scheme that can manage multiple species. Particle tracking locates particles in the mesh, using a fast and simple priority-sorting algorithm. A magnetic field with an arbitrary topology can be imposed to study the magnetized particle dynamics. The electrostatic fields are then computed by solving Poisson’s equation with a a finite element method solver. The latter is an external solver that has been properly modified in order to be integrated into EDI. The major advantage of using an external solver directly incorporated into the EDI structure is its strong flexibility, in fact it is possible to couple together different physical problems (electrostatic, magnetostatic, etc.). EDI is written in C, which allows the rapid development of new modules. A big effort in the development of the code has been made in optimization of the linking efficiency, in order to minimize computational time. Finally, EDI is a multiplatform (Linux, Mac OS X) software.

Information

Type
Research Article
Copyright
© Cambridge University Press 2019 
Figure 0

Figure 1. Scheme of EDI loop. Force $F_{k}$, velocity $u_{k}$ and position $x_{k}$ are referred to the particle $k$. Electric filed $E_{i}$, magnetic field $B_{i}$ and charge density $\unicode[STIX]{x1D70C}_{i}$ are evaluated at node $i$.

Figure 1

Figure 2. The parameter $\unicode[STIX]{x1D6E4}$ is the area of the Voronoy cell associated with node 1. The particle $P$ is located inside the triangular mesh element of vertices 1, 2 and 3. The vectors $\boldsymbol{r}_{\mathbf{12}}$ and $\boldsymbol{r}_{\mathbf{13}}$ are employed to calculate the surface of the triangular mesh element $\unicode[STIX]{x1D6FA}_{123}$, while the vectors $\boldsymbol{r}_{\boldsymbol{P}\pmb{{\it 2}}}$ and $\boldsymbol{r}_{\boldsymbol{P}\pmb{{\it 3}}}$ are used for the surface $\unicode[STIX]{x1D6FA}_{P23}$ (depicted in green), see (2.8). Figure from Spirkin (2006).

Figure 2

Figure 3. Comparison between the magnetic fields $\boldsymbol{B}$ computed by EDI and FEMM: (a) intensity of the reference field computed with FEMM; (b) comparison between $|\boldsymbol{B}|$; (c) comparison between $B_{x}/|B|$; (d) comparison between $B_{y}/|B|$. The comparisons are performed along $y=-2.5~\text{mm}$ (see red line in a).

Figure 3

Table 1. Simulation parameters (see § 2.2) adopted during the oscillation mode analysis.

Figure 4

Figure 4. In the absence of a magnetic field: (a) $q_{x}$ and $q_{y}$ (see (3.4)) versus the simulation time $t$; (b) square moduli of the $F_{x}$ and $F_{y}$ quantities (see (3.3)), namely the FT of $q_{x}$ and $q_{y}$, as a function of the frequency $\unicode[STIX]{x1D714}$ (normalized in respect to the plasma frequency $\unicode[STIX]{x1D714}_{p}$).

Figure 5

Table 2. Frequency analysis in the absence of a background magnetic field. Ratio between the plasma frequency ($\unicode[STIX]{x1D714}_{pe}$) and the principal oscillation frequencies calculated from the FT of the $q_{x}$ and $q_{y}$ quantities (see (3.4)), respectively $\unicode[STIX]{x1D714}_{x}^{\text{SIM}}$ and $\unicode[STIX]{x1D714}_{y}^{\text{SIM}}$.

Figure 6

Figure 5. In the presence of magnetic field: (a) $q_{x}$ and $q_{y}$ (see (3.4)) versus the simulation time $t$; (b) square moduli of the $F_{x}$ and $F_{y}$ quantities (see (3.3)) namely the FT of $q_{x}$ and $q_{y}$, as a function of the frequency $\unicode[STIX]{x1D714}$ (normalized in respect to the cyclotron frequency $\unicode[STIX]{x1D714}_{c}$).

Figure 7

Table 3. Frequency analysis in the presence of a background magnetic field. Ratio between the cyclotron frequency ($\unicode[STIX]{x1D714}_{c}$) and the principal oscillation frequencies calculated from the FT of the $q_{x}$ and $q_{y}$ quantities (see (3.4)), respectively $\unicode[STIX]{x1D714}_{x}^{\text{SIM}}$ and $\unicode[STIX]{x1D714}_{y}^{\text{SIM}}$.

Figure 8

Figure 6. Normalized total energy $\overline{W}$ (see (3.17)) plotted versus time $t$ for: (a) different mean edge of the triangular mesh $a$ and fixed integration time step $\unicode[STIX]{x0394}t=1\times 10^{-10}~\text{s}$; (b) different $\unicode[STIX]{x0394}t$ and fixed $a=2\times 10^{-4}~\text{m}$.

Figure 9

Table 4. Timing analysis for different values of the mean edge of the triangular mesh $a$ and fixed integration time step $\unicode[STIX]{x0394}t=1\times 10^{-11}~\text{s}$. Reported is the simulation duration, along with the percentage time required for accomplishing the charge deposition (CD), the solution of the electrostatic field (EM), the integration of the particle trajectories (Int) and the particles tracking (Track).

Figure 10

Table 5. Timing analysis for different values of the integration time step $\unicode[STIX]{x0394}t$ and fixed mean edge of the triangular mesh $a=2\times 10^{-4}~\text{m}$. Reported is the simulation duration, along with the percentage time required for accomplishing the charge deposition (CD), the solution of the electrostatic field (EM), the integration of the particle trajectories (Int) and the particles tracking (Track).

Figure 11

Figure 7. Normalized total momentum $\overline{\boldsymbol{Q}}$ (see (3.20)) plotted versus time $t$ for mean edge of the triangular mesh $a=2\times 10^{-4}~\text{m}$ and integration time step $\unicode[STIX]{x0394}t=1\times 10^{-10}~\text{s}$. Both components along the $x$ (solid line) and $y$ (dashed line) axes have been depicted.

Figure 12

Figure 8. Particle phase space, position along the $x$ axis versus component of the velocity in the same direction $V_{x}$. Different times $t$ recorded: (a) $t=0~\text{s}$; (b) $t=5\times 10^{-9}~\text{s}$; (c) $t=1\times 10^{-8}~\text{s}$; (d) $t=4\times 10^{-8}~\text{s}$.

Figure 13

Figure 9. Linear growth rate analysis. Logarithm of the field energy $\ln (W_{E})$ versus the simulation time $t$. The red line is the linear fit defined by (3.12) to verify the linear growth rate.

Figure 14

Figure 10. Evolution of the normalized energy of the system versus simulation time $t$. Reported are the normalized field energy $\overline{W}_{E}$ (see (3.16)), kinetic energy $\overline{W}_{K}$ (see (3.15)) and total energy $\overline{W}$ (see (3.17)).