PySCo:一种用于修改引力模拟的快速粒子-网格N体代码(Python)
PySCo: A fast Particle-Mesh $N$-body code for modified gravity simulations in Python
AI总结:
PySCo是一种用于修改引力模拟的快速Python N体代码,提供高效的粒子-网格求解器和多种宇宙学模型的模拟能力。
摘要:
我们介绍了PySCo,一种快速且用户友好的Python库,旨在在各种宇宙学模型中运行宇宙学N体模拟,如ΛCDM和w0waCDM以及替代引力理论,包括f(R)、MOND和时间依赖的引力常数参数化。PySCo采用粒子-网格求解器,使用多网格或快速傅里叶变换(FFT)方法的不同变体。此外,PySCo可以轻松地作为外部库集成,提供粒子和网格计算的实用程序。该库提供了关键功能,包括基于最高三次拉格朗日扰动理论(LPT)的初始条件生成器、功率谱估计,以及计算背景和密度扰动的增长。在本文中,我们详细介绍了PySCo的架构和算法,并进行了与其他代码和数值方法的广泛比较。我们的分析显示,当使用第一、第二和第三阶LPT时,对于初始红移z_ini≥125、30和10的情况,在红移z=0处的功率谱在0.1%的水平上与初始红移无关。尽管多网格中使用的七点拉普拉斯方法在小尺度上也会导致功率抑制,但当计算比值时,这种影响可以大大缓解。在性能方面,PySCo仅需大约一小时的CPU时间即可在笔记本电脑上完成具有512^3个粒子(和等数量的单元)的牛顿模拟。由于其速度和易用性,PySCo非常适合快速生成大量的模拟集,并探索参数空间,允许引力理论、暗能量模型和数值方法的变化。这种多功能性使PySCo成为生成模拟器、协方差矩阵或用于机器学习训练数据集的有价值的工具。
英文摘要:
We present PySCo, a fast and user-friendly Python library designed to run cosmological $N$-body simulations across various cosmological models, such as $Λ$CDM and $w_0w_a$CDM, and alternative theories of gravity, including $f(R)$, MOND and time-dependent gravitational constant parameterisations. PySCo employs Particle-Mesh solvers, using multigrid or Fast Fourier Transform (FFT) methods in their different variations. Additionally, PySCo can be easily integrated as an external library, providing utilities for particle and mesh computations. The library offers key features, including an initial condition generator based on up to third-order Lagrangian Perturbation Theory (LPT), power spectrum estimation, and computes the background and growth of density perturbations. In this paper, we detail PySCo's architecture and algorithms and conduct extensive comparisons with other codes and numerical methods. Our analysis shows that, with sufficient small-scale resolution, the power spectrum at redshift $z = 0$ remains independent of the initial redshift at the 0.1\% level for $z_{\rm ini} \geq$ 125, 30, and 10 when using first, second, and third-order LPT, respectively. Although the seven-point Laplacian method used in multigrid also leads to power suppression on small scales, this effect can largely be mitigated when computing ratios. In terms of performance, PySCo only requires approximately one CPU hour to complete a Newtonian simulation with $512^3$ particles (and an equal number of cells) on a laptop. Due to its speed and ease of use, PySCo is ideal for rapidly generating vast ensemble of simulations and exploring parameter spaces, allowing variations in gravity theories, dark energy models, and numerical approaches. This versatility makes PySCo a valuable tool for producing emulators, covariance matrices, or training datasets for machine learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。