FPIC: a new Particle-In-Cell code for stationary and axisymmetric black-hole spacetimes
Claudio Meringolo, Luciano Rezzolla
TL;DR
FPIC delivers a comprehensive general-relativistic PIC framework for stationary and axisymmetric black-hole spacetimes, combining a Maxwell solver on a 2D spherical Yee grid with multiple particle pushers, including a novel hybrid integrator that switches between RK4 and a Hamiltonian scheme based on energy-violation criteria. The code, implemented in Fortran with MPI, leverages Kerr-Schild coordinates to regularize the horizon and achieves reproducible, high-precision simulations of both neutral and charged particle dynamics, as well as electrovacuum and plasma-filled magnetospheres. Validation spans neutral geodesics, vacuum Wald fields, and self-consistent plasma dynamics in Wald and split-monopole topologies, yielding physically consistent Meissner effects, Penrose-energy extraction, and Blandford-Znajek power in agreement with analytic expectations. The work demonstrates FPIC’s potential as a robust, extensible tool for kinetic studies near black holes, while outlining future upgrades to 3D, radiative processes, and GPU-accelerated architectures. Overall, FPIC advances reproducible, high-fidelity GRPIC simulations and provides a solid platform for exploring microphysical plasma processes in strong gravity.
Abstract
In this paper we present a newly developed GRPIC code framework called FPIC, providing a detailed description of the Maxwell-equations solver, of the particle ``pushers'', and of the other algorithms that are needed in this approach. We describe in detail the code, which is written in Fortran and exploits parallel architectures using MPI directives both for the fields and particles. FPIC adopts spherical Kerr-Schild coordinates, which encode the overall spherical topology of the problem while remaining regular at the event horizon. The Maxwell equations are evolved using a finite-difference time-domain solver with a leapfrog scheme, while multiple particle ``pushers'' are implemented for the evolution of the particles. In addition to well-known algorithms, we introduce a novel hybrid method that dynamically switches between the most appropriate scheme based on the violation of the Hamiltonian energy. We first present results for neutral particles orbiting around black holes, both in the Schwarzschild and Kerr metrics, monitoring the evolution of the Hamiltonian error across different integration schemes. We apply our hybrid approach, showing that it is capable of achieving improved energy conservation at reduced computational cost. We apply FPIC to investigate the Wald solution, first in electrovacuum and subsequently in plasma-filled configurations. In the latter case, particles with negative energy at infinity are present inside the ergosphere, indicating that the Penrose process is active. Finally, we present the split-monopole solution in a plasma-filled environment and successfully reproduce the Blandford-Znajek luminosity, finding very good agreement with analytical predictions.
