PHECT : A lightweight computation tool for pulsar halo emission
Kun Fang · 2025
Read PHECT : A lightweight computation tool for pulsar halo emission by Kun Fang (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-2508-13667.txt.
Introduction
Kun Fang introduced in 2025 a light software tool for modeling the gamma-ray glow around pulsars, spinning dead stars that shed energetic particles. Those particles scatter background light up to gamma-ray energies, forming a halo. Halos can probe how cosmic rays spread over short galactic distances.
Standard models assume smooth, even spreading, but real transport is likely messier. The new tool includes several transport models tied to different ideas about where halos come from. Users set up runs through a plain config file, with no code edits. Its grid method stays stable on uneven grids and where spreading jumps sharply. The tool is aimed at a growing set of sharper halo data.
Catalog record
| CREATOR | Kun Fang |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 70 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2508-13667
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
PHECT : A lightweight computation tool for pulsar halo emission Kun Fang Abstract γ \gamma -ray pulsar halos, formed by inverse Compton scattering of electrons and positrons propagating in the pulsar-surrounding interstellar medium with background photons, serve as an ideal probe for Galactic cosmic-ray propagation on small scales (typically tens of parsecs). While the associated electron and positron propagation is often modeled using homogeneous and isotropic diffusion, termed here as normal diffusion, the actual transport process is expected to be more complex. This work introduces the Pulsar Halo Emission Computation Tool ( PHECT ), a lightweight software designed for modeling pulsar halo emission. PHECT incorporates multiple transport models extending beyond normal diffusion, accounting for different possible origins of pulsar halos. Users can conduct necessary computations simply by configuring a YAML file without manual code edits. Furthermore, the tool adopts finite-volume discretizations that remain stable on non-uniform grids and in the presence of discontinuous coefficients. PHECT is ready for the increasingly precise observational data and the rapidly growing sample of pulsar halos. I Introduction Pulsar halos are extended \gamma -ray sources around middle-aged pulsars (see Ref. Fang 2022 ; Liu 2022 ; López-Coto et al. 2022 ; Amato and Recchia 2024 for reviews), initially detected in the TeV regime Abdo et al. 2007 ; Abeysekara et al. 2017 and hence also referred to as TeV halos Linden et al. 2017 . These structures are produced by relativistic electrons and positrons 1 1 1 Hereafter, electrons refers to both electrons and positrons unless explicitly distinguished. that have escaped from pulsar wind nebulae (PWNe) into the interstellar medium (ISM), where they generate \gamma rays via inverse Compton scattering (ICS) with background photons. The background photon field can be regarded as homogeneous over the typical scale of pulsar halos (tens of parsecs). As a result, the \gamma -ray surface brightness ( \gamma SB) distribution of pulsar halos provides an accurate projection of their parent electron spatial distribution, making them ideal probes for investigating cosmic-ray (CR) propagation in the localized ISM. Furthermore, the \gamma -ray spectral energy distribution of pulsar halos is determined by the energy spectrum of escaped electrons, offering a unique opportunity to study electron escape processes from PWNe Fang and Bi 2022 . Pulsar halos primarily demonstrate the slow-diffusion behavior of CR electrons in the ISM surrounding pulsars, with derived diffusion coefficients two orders of magnitude lower than the Galactic average Abeysekara et al. 2017 . This suppressed diffusion enables sufficient electron accumulation around pulsars, making these halos detectable. Nearly ten pulsar halos or candidates have been detected to date Abeysekara et al. 2017 ; Albert et al. 2024 ; Aharonian et al. 2021 ; Fang et al. 2022 ; Cao et al. 2025 ; Albert et al. 2023 ; Albert et al. 2020 ; Kumar 2025 , with ongoing observations continually expanding the sample. Both direct and indirect evidence suggest that pulsar halos could be a common phenomenon Di Mauro et al. 2020 ; Albert et al. 2025 ; John and Linden 2025 , though not necessarily universal Fang et al. 2019a ; Martin et al. 2022 ; Bourguinat et al. 2025 . The origin of slow diffusion has sparked extensive discussion, yet no consensus has been reached Evoli et al. 2018 ; Fang et al. 2019b ; Liu et al. 2019a ; Recchia et al. 2021 ; Mukhopadhyay and Linden 2022 ; De La Torre Luque et al. 2022 . Determining the origin of slow diffusion is crucial for understanding the magnetohydrodynamic (MHD) characteristics of the localized ISM, and would significantly impact the interpretation of several key issues including the positron excess (e.g., Hooper et al. 2017 ; Fang et al. 2018 ) and diffuse \gamma -ray excess (e.g., Linden and Buckman 2018 ; Yan et al. 2024 ). Future measurements of energy-dependent \gamma SB distributions with improved sensitivity and spatial resolution could provide critical constraints for distinguishing between these competing hypotheses. During the initial discovery stage of pulsar halos, their \gamma SB distributions were adequately explained by a homogeneous, isotropic electron diffusion-loss model, termed here as the normal diffusion model. Within this framework, the \gamma SB profile could be described by simplified formulas Abeysekara et al. 2017 ; Aharonian et al. 2021 . However, given the diverse possible origins of slow-diffusion phenomena, the actual electron transport processes are expected to be significantly more complex. With improving observational precision, these simplified formulas are expected to become insufficient for interpreting upcoming measurements 2 2 2 Moreover, using these over-simplified formulas for estimating physical parameters may lead to incorrect conclusions. Guo and Yuan 2024 . . Given that models beyond normal diffusion involve computationally intricate procedures, this work introduces a lightweight software for pulsar halo emission called the Pulsar Halo Emission Computation Tool ( PHECT ), developed in C . The tool requires minimal dependencies ( GSL and YAML ), and users can perform essential computations by merely configuring a YAML file. PHECT provides a variety of physical and phenomenological models of pulsar halos for selection, which will accommodate the growing number of pulsar halo samples and increasingly precise observations. The software is available at https://code.ihep.ac.cn/fangkun/phect . This paper is organized as follows. Section II briefly reviews the mechanism of pulsar halos and possible interpretations for the slow-diffusion phenomenon. Section III introduces the computational methods of different models along with the parameter configuration. Section IV presents the basic outcomes of PHECT . Section V provides concluding remarks and prospects for the tool. II Origin of pulsar halos Young pulsars typically power a PWN located at the center of their host supernova remnants (SNRs), as their velocities are significantly lower than the expansion speeds of young SNRs. As the expansion decelerates over time, the pulsar becomes offset from its initial position, gradually departing from the original PWN. When the pulsar approaches the SNR boundary or escapes the remnant, its motion exceeds the local sound speed, causing a newly formed bow-shock PWN. The size of the bow-shock PWN is constrained by the ram pressure from the motion of the pulsar, typically not exceeding \simeq 1 pc Gaensler and Slane 2006 . Electrons that escape from the bow-shock PWN freely diffuse into the surrounding medium. Through ICS with background photons, they generate \gamma -ray emission that forms a pulsar halo. A defining characteristic of the halo is the significantly larger spatial extent compared to the associated bow-shock PWN Giacinti et al. 2020 ; Fang 2022 , as it originates from freely diffusing electrons. Additionally, pulsar halo searches typically focus on middle-aged pulsars ( \gtrsim 50 kyr), ensuring sufficient spatial separation from the relic of the initial PWN. Despite the extended nature of pulsar halos (tens of parsecs), the derived diffusion coefficient is significantly smaller than the Galactic average suggested by the secondary-to-primary flux ratios of CR nuclei (e.g., Yuan et al. 2017 ). The origin of this slow-diffusion phenomenon is the primary enigma in understanding the formation mechanism of pulsar halos. The differences among models in PHECT partially stem from their distinct assumptions about the slow-diffusion origin. Figure 1: Schematic illustrations of two of the possible slow-diffusion interpretations. The star symbols denote the current position of the pulsar. Left: SNR-induced model. The slow diffusion originates