
arXiv: 1802.08838
With the approach of exascale computing era, particle-based models are becoming the focus of research due to their excellent scalability. We present a new code, Slurm, which implements the classic particle-in-cell algorithm for modeling magnetized fluids and plasmas. It features particle volume evolution which damps the numerical finite grid instability, and allows modeling of key physical instabilities such as Kelvin-Helmholtz and Rayleigh-Taylor. The magnetic field in Slurm is handled via the electromagnetic vector potential carried by particles. Numerical diffusion of the magnetic flux is extremely low, and the solenoidality of the magnetic field is preserved to machine precision. A double-linked list is used to carry particles, thus implementation of open boundary conditions is simple and efficient. The code is written in C++ with OpenMP multi-threading, and has no external dependencies except for Boost. It is easy to install and use on multi-core desktop computers as well as on large shared-memory machines. Slurm is an ideal tool for its primary goal, modeling of space weather events in the heliosphere. This article walks the reader through the physical model, the algorithm, and all important details of implementation. Ideally, after finishing this paper, the reader should be able to either use Slurm for solving the desired problem, or create a new fluid PIC code.
Accepted to the special issue "Advances in the Numerical Simulation of Plasmas" of the Computer Physics Communications
Technology, FLIP, CODE, FOS: Physical sciences, computational fluid dynamics, Computational fluid dynamics, 46 Information and computing sciences, plasma simulations, Magnetohydrodynamics, Fluid mechanics, particle-in-cell, 01 Mathematical Sciences, Science & Technology, 02 Physical Sciences, Physics, SCHEME, Plasma simulations, Computational Physics (physics.comp-ph), Nuclear & Particles Physics, SIMULATIONS, Physics, Mathematical, Geophysics, Physical Sciences, Computer Science, Particle-in-cell, Computer Science, Interdisciplinary Applications, 08 Information and Computing Sciences, 51 Physical sciences, magnetohydrodynamics, 49 Mathematical sciences, Physics - Computational Physics
Technology, FLIP, CODE, FOS: Physical sciences, computational fluid dynamics, Computational fluid dynamics, 46 Information and computing sciences, plasma simulations, Magnetohydrodynamics, Fluid mechanics, particle-in-cell, 01 Mathematical Sciences, Science & Technology, 02 Physical Sciences, Physics, SCHEME, Plasma simulations, Computational Physics (physics.comp-ph), Nuclear & Particles Physics, SIMULATIONS, Physics, Mathematical, Geophysics, Physical Sciences, Computer Science, Particle-in-cell, Computer Science, Interdisciplinary Applications, 08 Information and Computing Sciences, 51 Physical sciences, magnetohydrodynamics, 49 Mathematical sciences, Physics - Computational Physics
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 7 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Top 10% |
