arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.23466astro-ph.CO
收藏

nanoCMB:一个基于Python的最小CMB功率谱计算器

nanoCMB: A minimal CMB power spectrum calculator in Python

School of Physics and Astronomy, University of Nottingham(诺丁汉大学物理与天文学院)

Adam Moss

AI总结:

nanoCMB是一款基于Python的简洁CMB功率谱计算工具,采用完整视线积分方法,实现高精度计算并提供详细的物理和数值方法说明。

摘要:

我们介绍了nanoCMB,一个简洁但准确的计算平坦ΛCDM宇宙学中未受扰动CMB温度和极化角功率谱(CℓTT,CℓEE,CℓTE)的工具。该代码用约1400行可读的Python编写,实现了完整的视线积分方法:RECFast重结合,耦合的爱因斯坦-玻尔兹曼扰动方程在同步坐标系中,紧密耦合近似,预计算的球面贝塞尔函数表,以及最优构造的波数和共形时间非均匀网格。尽管其简洁性,nanoCMB在多极范围2≤ℓ≤2500内与CAMB的亚百分比一致,现代笔记本电脑上运行约10秒。整个计算生活在单个易于修改的Python脚本中,设计为连接教科书处理和研究级玻尔兹曼求解器的桥梁,每个近似和数值选择都明确说明。我们详细描述了物理、方程和计算方法,代码片段展示了每个计算阶段。该代码在https://github.com/adammoss/nanoCMB上公开可用。

英文摘要:

We present nanoCMB, a minimal but accurate calculator for the unlensed CMB temperature and polarisation angular power spectra ($C_\ell^{TT}$, $C_\ell^{EE}$, $C_\ell^{TE}$) of flat $Λ$CDM cosmologies. Written in $\sim$1400 lines of readable Python, the code implements the full line-of-sight integration method: RECFAST recombination, coupled Einstein--Boltzmann perturbation equations in synchronous gauge with a tight-coupling approximation, precomputed spherical Bessel function tables, and optimally constructed non-uniform grids in wavenumber and conformal time. Despite its brevity, nanoCMB achieves sub-percent agreement with CAMB across the multipole range $2 \le \ell \le 2500$, running in $\sim$10 seconds on a modern laptop. The entire calculation lives in a single, easily modifiable Python script, designed as a pedagogical bridge between textbook treatments and research-level Boltzmann solvers, with every approximation and numerical choice made explicit. We describe the physics, equations, and computational methods in detail, with code snippets illustrating each stage of the calculation. The code is publicly available at https://github.com/adammoss/nanoCMB.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑