COSMOS: A numerical relativity code specialized for PBH formation
Pith reviewed 2026-06-28 13:28 UTC · model grok-4.3
The pith
COSMOS is a C++ package that solves the Einstein equations in 3+1 dimensions to simulate primordial black hole formation.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
COSMOS is a C++ package for solving the Einstein equations in 3+1 dimensions, providing simple tools for the simulation of PBH formation. In order to resolve the collapsing region, non-Cartesian scale-up coordinates and a fixed mesh-refinement procedure are implemented. In COSMOS, a massless scalar field and a perfect fluid with a linear equation of state are implemented as matter fields. To achieve a practically acceptable computational speed, OpenMP is used for the parallelization. COSMOS has no other dependencies, which makes for an easier installation.
What carries the argument
The COSMOS code, which implements 3+1 dimensional numerical relativity with non-Cartesian scale-up coordinates and fixed mesh refinement to handle collapsing regions in PBH formation simulations.
If this is right
- Researchers can now run three-dimensional simulations of PBH formation with either a massless scalar field or a linear-EOS fluid.
- Fixed mesh refinement combined with scale-up coordinates allows the code to focus computational effort on the collapsing region without adaptive mesh overhead.
- OpenMP parallelization and the absence of external library dependencies reduce the barrier to running the simulations on standard hardware.
- The same framework can be applied to both scalar-field and fluid descriptions of the early-universe matter content.
Where Pith is reading between the lines
- Results from COSMOS could be used to map the threshold amplitude for PBH formation as a function of the equation-of-state parameter.
- The code's simplicity may allow direct comparison with analytic approximations in the near-threshold regime to test their validity.
- Extensions to include more realistic initial spectra or additional matter species would follow naturally from the current modular structure.
Load-bearing premise
The implemented matter models and coordinate plus refinement scheme suffice to capture the essential nonlinear dynamics of PBH formation from super-horizon fluctuations.
What would settle it
A side-by-side comparison of a COSMOS run for a standard initial fluctuation against an independent numerical relativity code using the same initial data and matter model would show whether the results agree within numerical error.
Figures
read the original abstract
Primordial black holes (PBHs) are black holes generated in the early universe without having gone through stellar evolution. In the standard formation process, PBHs are formed from super-horizon primordial fluctuations with non-linearly large initial amplitude. In order to simulate the non-linear gravitational dynamics of PBH formation, one has to rely on numerical relativity solvers to approximate the solution of the Einstein equations. COSMOS is a C++ package for solving the Einstein equations in 3+1 dimensions, providing simple tools for the simulation of PBH formation. In order to resolve the collapsing region, non-Cartesian scale-up coordinates and a fixed mesh-refinement procedure are implemented. In COSMOS, a massless scalar field and a perfect fluid with a linear equation of state are implemented as matter fields. To achieve a practically acceptable computational speed, OpenMP is used for the parallelization. COSMOS has no other dependencies, which makes for an easier installation.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript introduces COSMOS, a C++ package implementing a 3+1 numerical relativity solver specialized for primordial black hole formation. It uses non-Cartesian scale-up coordinates with fixed mesh refinement, supports a massless scalar field and a perfect fluid with linear equation of state as matter models, employs OpenMP for parallelization, and has no external dependencies.
Significance. A correctly implemented and validated code with these features could provide a practical, lightweight tool for studying the nonlinear collapse of super-horizon fluctuations into PBHs, addressing a niche in early-universe numerical relativity. The choice of coordinates and matter models is well-motivated for the target application, and the lack of dependencies is a practical strength for accessibility.
major comments (2)
- [Abstract] Abstract and manuscript body: the central claim that COSMOS solves the Einstein equations for the stated matter models and coordinate system is unsupported, as the text supplies only a feature list with no evolution equations, gauge choices, constraint-damping terms, initial-data construction, or any numerical output (convergence tests, comparison to known solutions such as Choptuik critical collapse or Tolman-Oppenheimer-Volkoff stars, or PBH threshold amplitudes).
- The absence of any validation or benchmark results means the assertion that the implementation correctly captures the nonlinear dynamics of PBH formation cannot be evaluated; this is load-bearing for the paper's purpose as a specialized solver.
minor comments (1)
- [Abstract] The abstract and introduction could more explicitly list the specific numerical methods (e.g., finite-difference order, time integrator, boundary conditions) rather than only high-level features.
Simulated Author's Rebuttal
We thank the referee for the detailed and constructive report. We agree that the current manuscript version is primarily a high-level description and lacks the supporting technical details and validation results needed to substantiate the central claims. We will perform a major revision to address these points by adding the requested equations, implementation specifics, and benchmark results.
read point-by-point responses
-
Referee: [Abstract] Abstract and manuscript body: the central claim that COSMOS solves the Einstein equations for the stated matter models and coordinate system is unsupported, as the text supplies only a feature list with no evolution equations, gauge choices, constraint-damping terms, initial-data construction, or any numerical output (convergence tests, comparison to known solutions such as Choptuik critical collapse or Tolman-Oppenheimer-Volkoff stars, or PBH threshold amplitudes).
Authors: We acknowledge that the present manuscript provides only a feature overview without the underlying equations or numerical demonstrations. In the revised version we will add the complete 3+1 evolution system (including the specific BSSN or similar formulation employed), the chosen gauge conditions and constraint-damping terms, the construction of initial data for super-horizon fluctuations, and the full set of numerical results (convergence tests, Choptuik critical collapse, TOV stars, and PBH threshold amplitudes) that were omitted from the initial submission. revision: yes
-
Referee: [—] The absence of any validation or benchmark results means the assertion that the implementation correctly captures the nonlinear dynamics of PBH formation cannot be evaluated; this is load-bearing for the paper's purpose as a specialized solver.
Authors: We agree that validation results are essential for a code paper. The revised manuscript will incorporate the missing benchmark suite—convergence studies, comparisons against known analytic and semi-analytic solutions (Choptuik, TOV), and PBH formation threshold measurements—to allow readers to assess the code’s correctness for the target application. revision: yes
Circularity Check
No circularity: code description paper with no derivation chain
full rationale
The manuscript is a straightforward description of a C++ numerical relativity code package (COSMOS) implementing 3+1 Einstein equations with specific coordinates, refinement, matter models, and parallelization for PBH simulations. No predictions, fitted parameters, uniqueness theorems, ansatzes, or derivations are claimed or presented; the text consists solely of feature lists and implementation notes. No self-citations or load-bearing reductions to inputs exist. This matches the default expectation of no significant circularity for non-derivational papers.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math The 3+1 decomposition of the Einstein equations is an appropriate starting point for numerical evolution of PBH formation.
Forward citations
Cited by 1 Pith paper
-
Primordial Black Holes: A Review of Formation and Evolution
Review of PBH formation via compaction function and relativistic thresholds in FLRW backgrounds, arguing that memory burden and curvature corrections halt evaporation to leave Planck-scale relics.
Reference graph
Works this paper leans on
-
[1]
Brito, R., Cardoso, V., Macedo, C. F. B., Okawa, H., & Palenzuela, C.Interaction between bosonic dark matter and stars. Phys. Rev. D,93, 044045 (2016). https://doi.org/10.1103/PhysRevD.93.044045
-
[2]
Brito, R., Cardoso, V., & Okawa, H.Accretion of dark matter by stars. Phys. Rev. Lett.,115, 111301 (2015). https://doi.org/10.1103/PhysRevLett.115.111301 Escrivà, A., & Yoo, C.-M.Nonspherical effects on the mass function of primordial black holes. Phys. Rev. D, 112, L081304 (2025). https://doi.org/10.1103/4jbp-87wc Escrivà, A., & Yoo, C.-M.Simulations of ...
-
[3]
3+1 formalism in general relativity : Bases of numerical relativity
Gourgoulhon, E. 3+1 formalism in general relativity : Bases of numerical relativity. Springer (2012). https://doi.org/10.1007/978-3-642-24525-1
-
[4]
Harada, T., Yoo, C.-M., Nakama, T., & Koga, Y.Cosmological long-wavelength solutions and primordial black hole formation. Phys. Rev. D,91, 084057 (2015). https://doi.org/10.1103/PhysRevD.91.084057
-
[5]
Ikeda, T., Yoo, C.-M., & Nambu, Y.Expanding universe with nonlinear gravitational waves. Phys. Rev. D, 92, 044041 (2015). https://doi.org/10.1103/PhysRevD.92.044041
-
[6]
Kurganov, A., & Tadmor, E.New high-resolution central schemes for nonlinear conservation laws and convection–diffusion equations. J. Comput. Phys.,160, 241–282 (2000). https://doi.org/10.1006/jcph.200 0.6459
-
[7]
Classical and Quantum Gravity,32, 214003 (2015)
Okawa, H.Nonlinear evolutions of bosonic clouds around black holes. Classical and Quantum Gravity,32, 214003 (2015). https://doi.org/10.1088/0264-9381/32/21/214003
-
[8]
Okawa, H., & Cardoso, V.Black holes and fundamental fields: Hair, kicks, and a gravitational Magnus effect. Phys. Rev. D,90, 104040 (2014). https://doi.org/10.1103/PhysRevD.90.104040
-
[9]
Okawa, H., Witek, H., & Cardoso, V.Black holes and fundamental fields in Numerical Relativity: initial data construction and evolution of bound states. Phys. Rev. D,89, 104032 (2014). https://doi.org/10.1103/Ph ysRevD.89.104032
work page doi:10.1103/ph 2014
-
[10]
World Scientific Publishing Co
Shibata, M.Numerical relativity. World Scientific Publishing Co. Pte. Ltd. (2016). https://doi.org/10.1142/ 9692
2016
-
[11]
Shibata, M., & Font, J. A.Robustness of a high-resolution central scheme for hydrodynamic simulations in full general relativity. Phys. Rev. D,72, 047501 (2005). https://doi.org/10.1103/PhysRevD.72.047501
-
[12]
Yamamoto, T., Shibata, M., & Taniguchi, K.Simulating coalescing compact binaries by a new code SACRA. Phys. Rev. D,78, 064054 (2008). https://doi.org/10.1103/PhysRevD.78.064054
-
[13]
Yoo, C.-M.Primordial black hole formation from a nonspherical density profile with a misaligned deformation tensor. Phys. Rev. D,110, 043526 (2024). https://doi.org/10.1103/PhysRevD.110.043526
-
[14]
Yoo, C.-M., Harada, T., Hirano, S., Okawa, H., & Sasaki, M.Primordial black hole formation from massless scalar isocurvature. Phys. Rev. D,105, 103538 (2022). https://doi.org/10.1103/PhysRevD.105.103538
-
[15]
Yoo, C.-M., Harada, T., & Okawa, H.3D Simulation of spindle gravitational collapse of a collisionless particle system. Class. Quant. Grav.,34, 105010 (2017). https://doi.org/10.1088/1361-6382/aa6ad5
-
[16]
Yoo, C.-M., Harada, T., & Okawa, H.Threshold of primordial black hole formation in nonspherical collapse. Phys. Rev. D,102(4), 043526 (2020). https://doi.org/10.1103/PhysRevD.102.043526
-
[17]
Yoo, C.-M., Ikeda, T., & Okawa, H.Gravitational collapse of a massless scalar field in a periodic box. Class. Quant. Grav.,36, 075004 (2019). https://doi.org/10.1088/1361-6382/ab06e2 6https://github.com/cmyoo/cosmos/wiki/Spherically-symmetric-isocurvature 4
-
[18]
Yoo, C.-M., & Okawa, H.Black hole universe with a cosmological constant. Phys. Rev. D,89, 123502 (2014). https://doi.org/10.1103/PhysRevD.89.123502
-
[19]
Yoo, C.-M., Okawa, H., & Nakao, K.Black Hole Universe: Time Evolution. Phys. Rev. Lett.,111, 161102 (2013). https://doi.org/10.1103/PhysRevLett.111.161102 5
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.