Entity – Hardware-agnostic Particle-in-Cell Code for Plasma Astrophysics. II: General Relativistic Module
Alisa Galishnikova, Hayk Hakobyan, Alexander Philippov, Benjamin Crinquand · 2025
Read Entity – Hardware-agnostic Particle-in-Cell Code for Plasma Astrophysics. II: General Relativistic Module by Alisa Galishnikova, Hayk Hakobyan, Alexander Philippov, Benjamin Crinquand (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2511-17701.txt.
Introduction
Alisa Galishnikova, Hayk Hakobyan, Alexander Philippov, and Benjamin Crinquand introduce the general relativity module of Entity, a free particle in cell code for plasmas around black holes. Near black holes, jets and hot coronae hold magnetized gas with almost no collisions, in very strong gravity.
The new module lets Entity model such gas in curved space while staying open, flexible in coordinates, and fast on modern graphics and central processors. It supports two dimensional symmetric simulations around black holes. The work extends the Entity project from special to general relativity for studies of particle heating and jets.
Catalog record
| CREATOR | Alisa Galishnikova, Hayk Hakobyan, Alexander Philippov, Benjamin Crinquand |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 83 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2511-17701
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Entity – Hardware-agnostic Particle-in-Cell Code for Plasma Astrophysics. II: General Relativistic Module Alisa Galishnikova, Hayk Hakobyan, Alexander Philippov, Benjamin Crinquand Abstract Black hole environments often host plasmas that are fully collisionless or contain intrinsically collisionless regions, including relativistic jets and coronae where particle energization is ubiquitous. Capturing the physics of these systems requires numerical methods capable of modeling relativistic, magnetized, collisionless plasmas in strong gravitational fields. In this work, we introduce the general-relativistic module for the Entity – the first open-source, coordinate-agnostic performance-portable particle-in-cell code. The code enables fast axisymmetric simulations of collisionless plasmas around black holes on any modern high-performance computing architecture (both GPUs and CPUs). show][email protected] I Introduction Black holes (BHs) are fundamental astrophysical objects whose influence extends across a vast range of scales – from stellar environments to the intergalactic medium – where they play a central role in regulating the formation and evolution of cosmic structures. Because BHs cannot be observed directly, our understanding of them relies on interpreting their influence on the surrounding plasma, which typically consists of electrons, protons, heavier nuclei, and possibly positrons. Significant progress in modeling such systems has been made through magnetohydrodynamic (MHD) simulations, which assume that the plasma is in local thermodynamical equilibrium. General relativistic MHD (GRMHD) further incorporates the effects of strong gravity, essential for accurately describing physics in curved spacetime ( 18 ) . This framework has already yielded numerous insights into the global behavior of plasmas around BHs. However, many phenomena associated with BHs remain poorly understood due to the numerical challenges involved in modeling the relevant plasma regimes. A prime example is the class of low-luminosity galactic nuclei, including M87* and Sgr A*, which have been imaged in unprecedented detail by the Event Horizon Telescope. These systems exhibit hot accretion flows ( 25 ) , where the plasma is essentially collisionless: the mean free path for Coulomb collisions exceeds the BH event horizon radius by about six orders of magnitude. Under such conditions, the plasma cannot easily thermalize, rendering the assumptions underlying MHD formally invalid. Nevertheless, MHD remains a valuable tool for capturing the large-scale dynamics governed by global conservation laws. Furthermore, additional justification for the fluid approximation can arise from effective “fluidization” – that is, effective collisionality induced by small-scale plasma instabilities. In addition to their quiescent emission, many such systems display episodic flaring activity characterized by non-thermal spectra. For instance, Sgr A* produces bright, multi-wavelength flares in the near-infrared, mid-infrared, and X-ray bands ( 6 ; 26 ; 10 ; 21 ) . Understanding these flares requires a detailed investigation of the dynamics during such episodes, the mechanisms responsible for the generation of non-thermal particles, and their resulting radiation. Other regions of interest that are fundamentally collisionless exist in both stellar-mass and supermassive BH systems. A notable example is relativistic jets, which, especially in the supermassive BH case, affect environments ranging from the immediate vicinity of the BH to the intracluster medium. Jet formation is widely attributed to the Blandford–Znajek (BZ) mechanism ( 4 ) , but interpreting their morphology and emission requires modeling pair loading, particle acceleration, and radiation mechanisms – processes beyond the scope of standard GRMHD. Another example is the X-ray-emitting corona of efficiently accreting plasma flows, believed to be composed of a hot, magnetized, collisionless plasma located in the inner vicinity of the BH ( 8 ; 3 ; 2 ) . The corona likely dissipates magnetic energy through combination of magnetic reconnection and turbulence. These considerations motivate the need for a framework that treats the plasma as collisionless while still incorporating the effects of strong gravity. Such an approach is realized through the general-relativistic particle-in-cell (GRPIC) method, first developed by 17 . More recently, several new GRPIC codes have been introduced ( 5 ; 16 ) . In this work, we present the first architecture-agnostic GRPIC code, which is publicly available as part of the Entity framework. 1 1 1 GitHub link: github.com/entity-toolkit/entity . The paper is structured as follows. In Section II , we introduce the general equations in the 3+1 formalism and define our notation. Section III describes the numerical algorithm implemented within the Entity framework. Finally, in Section IV , we present a suite of test cases that validate our GRPIC implementation. II Equations in curvilinear space-time Throughout this paper, we use the following conventions: c denotes the speed of light and is taken to be 1 throughout this paper, G the gravitational constant, and M the mass of the central BH. We additionally define the gravitational radius as r_{g}=GM . The evolution of electromagnetic fields and charged particles in curved spacetime is naturally described using the 3+1 formalism. This approach foliates a Lorentzian manifold into a family of spatial hypersurfaces indexed by a global time coordinate. Extensive treatments of the formalism can be found in 13 ; 20 ; 7 ; 9 . II.1 Spacetime metric We adopt the 3+1 decomposition of spacetime, where the manifold is endowed with a symmetric, non-degenerate metric tensor g_{\mu\nu} of signature (-+++) , and restrict our analysis to stationary spacetimes. Throughout this work, Greek indices ( \mu,\nu,\dots ) run from 0 to 3, while Latin indices ( i,j,\dots ) range from 1 to 3 and denote spatial components. A key component of the 3+1 formalism is the introduction of a timelike unit normal vector to the spatial hypersurfaces, which we define as n_{\mu}=(-\alpha,0,0,0), (1) where \alpha is the lapse function , encoding the proper time separation between hypersurfaces. This vector represents the covariant four-velocity of a local fiducial observer (FIDO). The spatial metric on each hypersurface – also referred to as the projection tensor – is given by h_{\mu\nu}=g_{\mu\nu}+n_{\mu}n_{\nu}, (2) and has a Euclidean signature (+++) . It defines distances and inner products on the three-dimensional spatial slices. The contravariant form of the FIDO four-velocity is n^{\mu}=\alpha^{-1}\begin{pmatrix}1\\ \beta^{i}\end{pmatrix}, (3) where \beta^{i} is the shift vector , which describes the relative motion of the spatial coordinates with respect to the FIDO frame. The shift vector captures the non-orthogonality between the time coordinate and the spatial hypersurfaces. A useful identity relates the determinants of the full spacetime and spatial metrics: g\equiv\det(g_{\mu\nu})=-\alpha^{2}h,~\text{where}~h\equiv\det(h_{ij}). (4) With these definitions, the spacetime interval in 3+1 formalism reads ds^{2}=(\beta^{2}-\alpha^{2})\,dt^{2}+2\beta_{i}\,dx^{i}dt+h_{ij}\,dx^{i}dx^{j}, (5) where \beta^{2}=\beta_{i}\beta^{i} , t is the coordinate time, and x^{i} denote the spatial coordinates. Up to this point, all expressions assumed a general foliation of a Lorentzian manifold. In the case of a rotating Kerr BH, various foliations (and thus coordinate systems) are possible; in this work, we adopt Kerr–Schild coordinates to describe rotating Kerr black holes. This coordinate system is widely used in numerical simulations of accretion flows due to its regularity at the event horizon (while other coordinates, such as the Boyer–Lindquist system, introduce coordinate singularities near the horizon). Details of the Kerr–Schild metric, including its components, derivatives, and coordinate transformations, are provided in Appendix A . II.2 Electromagnetic fields & Maxwell’s equations The covariant Maxwell tensor is defined as F_{\mu\nu}\equiv g_{\mu\alpha}g_{\nu\beta}F^{\alpha\beta}=\partial_{\mu}A_{\nu}-\partial_{\nu}A_{\mu}, (6) where A_{\mu} is the electromagnetic four-potential. Where for visual clarity we employ \partial_{\mu}\equiv\partial/\partial x^{\mu} . The dual Maxwell tensor, often referred to as the Faraday tensor, is given by {}^{*}F^{\alpha\beta}=\frac{1}{2}e^{\alpha\beta\mu\nu}F_{\mu\nu}, (7) where e^{\alpha\beta\mu\nu}\equiv\varepsilon^{\alpha\beta\mu\nu}/\sqrt{-g} , and \varepsilon^{\alpha\beta\mu\nu} is the totally antisymmetric Levi-Civita symbol