- Open Access
Subgrid modeling for relativistic magnetohydrodynamics with machine learning
Phys. Rev. D 114, 063010 – Published 4 September, 2026
DOI: https://doi.org/10.1103/t81t-vx23
Abstract
Resolving the impact of magnetic field instabilities in triggering small scale turbulent flow and the associated rearrangement of the field is of critical importance in understanding multimessenger observables in binary neutron star mergers and angular momentum transport in neutron stars and accretion disks. Direct simulation of these instabilities are unfeasible, however large-eddy simulations can incorporate the impact of this turbulence with a subgrid model. We present the first machine-learning-based subgrid model for special relativistic magnetohydrodynamics, trained using a neural network. We demonstrate its performance in online simulations of the 3D Kelvin-Helmholtz instability through both a priori and a posteriori tests. Evaluated in a low resolution simulation, our model captures magnetic field amplification of a simulation at 4 times the resolution with a speedup factor of 44. This demonstrates the applicability of such methods in general relativistic simulations of neutron star mergers and other scenarios.
Physics Subject Headings (PhySH)
Article Text
References (90)
- D. Radice and I. Hawke, Liv. Rev. Comput. Astrophys. 10, 1 (2024).
- D. Price and S. Rosswog, Science 312, 719 (2006).
- S. A. Balbus and J. F. Hawley, Astrophys. J. 376, 214 (1991).
- T. Piran, Rev. Mod. Phys. 76, 1143 (2004).
- S. I. Blinnikov, I. D. Novikov, T. V. Perevodchikova, and A. G. Polnarev, Sov. Astron. Lett. 10, 177 (1984).
- B. Paczynski, Astrophys. J. Lett. 308, L43 (1986).
- J. Goodman, Astrophys. J. Lett. 308, L47 (1986).
- D. Eichler, M. Livio, T. Piran, and D. N. Schramm, Nature (London) 340, 126 (1989).
- R. Narayan, B. Paczynski, and T. Piran, Astrophys. J. 395, L83 (1992).
- B. P. Abbott et al. (LIGO Scientific and Virgo Collaborations), Phys. Rev. Lett. 119, 161101 (2017).
- B. P. Abbott et al. (LIGO Scientific, Virgo, Fermi GBM, INTEGRAL, IceCube, AstroSat Cadmium Zinc Telluride Imager Team, IPN, Insight-Hxmt, ANTARES, Swift, AGILE Team, 1M2H Team, Dark Energy Camera GW-EM, DES, DLT40, GRAWITA, Fermi-LAT, ATCA, ASKAP, Las Cumbres Observatory Group, OzGrav, DWF (Deeper Wider Faster Program), AST3, CAASTRO, VINROUGE, MASTER, J-GEM, GROWTH, JAGWAR, CaltechNRAO, TTU-NRAO, NuSTAR, Pan-STARRS, MAXI Team, TZAC Consortium, KU, Nordic Optical Telescope, ePESSTO, GROND, Texas Tech University, SALT Group, TOROS, BOOTES, MWA, CALET, IKI-GW Follow-up, H.E.S.S., LOFAR, LWA, HAWC, Pierre Auger, ALMA, Euro VLBI Team, Pi of Sky, Chandra Team at McGill University, DFN, ATLAS Telescopes, High Time Resolution Universe Survey, RIMAS, RATIR, SKA South Africa/MeerKAT Collaborations), Astrophys. J. Lett. 848, L12 (2017).
- B. P. Abbott et al. (LIGO Scientific, Virgo, Fermi-GBM, INTEGRAL Collaborations), Astrophys. J. Lett. 848, L13 (2017).
- A. Goldstein et al., Astrophys. J. 848, L14 (2017).
- V. Savchenko et al., Astrophys. J. 848, L15 (2017).
- C. Palenzuela, R. Aguilera-Miret, F. Carrasco, R. Ciolfi, J. V. Kalinani, W. Kastaun, B. Miñano, and D. Viganò, Phys. Rev. D 106, 023013 (2022).
- K. Hayashi, K. Kiuchi, K. Kyutoku, Y. Sekiguchi, and M. Shibata, Phys. Rev. Lett. 134, 211407 (2025).
- J. Bamber, A. Tsokaros, M. Ruiz, and S. L. Shapiro, Phys. Rev. D 111, 044038 (2025).
- C. Musolino, L. Rezzolla, and E. R. Most, Astrophys. J. Lett. 984, L61 (2025).
- E. R. Most, J. Peterson, L. Scurto, H. Pais, and V. Dexheimer, Astrophys. J. Lett. 989, L29 (2025).
- E. M. Gutiérrez, W. Cook, D. Radice, S. Bernuzzi, J. Fields, P. Hammond, B. Daszuta, H. Bandyopadhyay, and M. Jacobi, arXiv:2506.18995.
- W. Cook, E. M. Gutiérrez, S. Bernuzzi, D. Radice, B. Daszuta, J. Fields, P. Hammond, H. Bandyopadhyay, and M. Jacobi, arXiv:2508.19342.
- I. Rainho, J. Bamber, D. Guerra, M. Miravet-Tenés, M. Ruiz, A. Tsokaros, and S. L. Shapiro, arXiv:2510.17511.
- K. Kiuchi, A. Reboul-Salze, Y. Sekiguchi, and M. Shibata, arXiv:2606.11299.
- A. Wen, J. V. Kalinani, M. Chabanov, M. Campanelli, R. Ciolfi, and Y. Zlochower, arXiv:2605.30548.
- A. Tsokaros, M. Ruiz, S. L. Shapiro, and K. Uryū, Phys. Rev. Lett. 128, 061101 (2022).
- A. Sur, W. Cook, D. Radice, B. Haskell, and S. Bernuzzi, Mon. Not. R. Astron. Soc. 511, 3983 (2022).
- W. Cook, R. K. Joshi, S. Bernuzzi, B. Haskell, and J. Fields, Mon. Not. R. Astron. Soc. 547, stag136 (2026).
- F. V. Piñas, A. K. L. Yip, P. C.-K. Cheong, and M. Ruiz, Astrophys. J. 1001, 49 (2026).
- A. Capobianco, W. Cook, S. Bernuzzi, B. Haskell, and J. Fields, arXiv:2605.22921.
- E. M. Gutiérrez, D. Radice, J. Fields, and J. M. Stone, arXiv:2601.20953.
- J. Smagorinsky, Mon. Weather Rev. 91, 99 (1963).
- M. Germano, U. Piomelli, P. Moin, and W. H. Cabot, in Studying Turbulence Using Numerical Simulation Databases. 3: Proceedings of the 1990 Summer Program, edited by D. Spinks (Center for Turbulence Research, Stanford University, 1990), pp. 5–17.
- W. K. Yeo, A generalized high pass/low pass averaging procedure for deriving and solving turbulent flow equations, Ph.D. thesis, Ohio State University, 1987, http://rave.ohiolink.edu/etdc/view?acc-num=osu1210098135.
- R. A. Clark, J. H. Ferziger, and W. C. Reynolds, J. Fluid Mech. 91, 1 (1979).
- M. L. Theobald, P. A. Fox, and S. Sofia, Phys. Plasmas 1, 3016 (1994).
- W.-C. Müller and D. Carati, Phys. Plasmas 9, 824 (2002).
- P. Grete, Large Eddy simulations of compressible magnetohydrodynamic turbulence, Ph.D. thesis, Georg August University of Gottingen, Germany, 2016.
- P. Grete, D. G. Vlaykov, W. Schmidt, and D. R. G. Schleicher, Phys. Plasmas 23, 062317 (2016).
- D. G. Vlaykov, P. Grete, W. Schmidt, and D. R. G. Schleicher, Phys. Plasmas 23, 062316 (2016).
- M. Miesch, W. Matthaeus, A. Brandenburg, A. Petrosyan, A. Pouquet, C. Cambon, F. Jenko, D. Uzdensky, J. Stone, S. Tobias, J. Toomre, and M. Velli, Space Sci. Rev. 194, 97 (2015).
- W. Schmidt, Liv. Rev. Comput. Astrophys. 1, 2 (2015).
- D. Radice, Astrophys. J. 838, L2 (2017).
- D. Viganò, R. Aguilera-Miret, and C. Palenzuela, Phys. Fluids 31, 105102 (2019).
- F. Carrasco, D. Viganò, and C. Palenzuela, Phys. Rev. D 101, 063003 (2020).
- D. Viganò, R. Aguilera-Miret, F. Carrasco, B. Miñano, and C. Palenzuela, Phys. Rev. D 101, 123019 (2020).
- M. Shibata, K. Kiuchi, and Y. I. Sekiguchi, Phys. Rev. D 95, 083005 (2017).
- A. Pandya and F. Pretorius, Phys. Rev. D 104, 023015 (2021).
- Harry L. H. Shum, F. Abalos, Y. Bea, M. Bezares, P. Figueras, and C. Palenzuela, Phys. Rev. D 113, 084029 (2026).
- E. R. Most, Phys. Rev. D 108, 123012 (2023).
- J. Ling, A. Kurzawski, and J. Templeton, J. Fluid Mech. 807, 155 (2016).
- A. Beck, D. Flad, and C.-D. Munz, J. Comput. Phys. 398, 108910 (2019).
- Z. Wang, K. Luo, D. Li, J. Tan, and J. Fan, Phys. Fluids 30, 125101 (2018).
- S. G. Rosofsky and E. A. Huerta, Phys. Rev. D 101, 084024 (2020).
- E. A. Huerta, arXiv:2605.19057.
- D. George and E. Huerta, Phys. Lett. B 778, 64 (2018).
- D. George and E. Huerta, in NiPS Summer School 2017 (2017), arXiv:1711.07966.
- Alvin J. K. Chua, C. R. Galley, and M. Vallisneri, Phys. Rev. Lett. 122, 211101 (2019).
- S. G. Rosofsky, H. A. Majed, and E. A. Huerta, Mach. Learn. Sci. Tech. 4, 025022 (2023).
- S. G. Rosofsky and E. A. Huerta, Mach. Learn. Sci. Tech. 4, 035002 (2023).
- S. Kacmaz, E. A. Huerta, and R. Haas, Mach. Learn. Sci. Tech. 6, 035057 (2025).
- T. Dieselhorst, W. Cook, S. Bernuzzi, and D. Radice, Symmetry 13, 2157 (2021).
- S. Kacmaz, R. Haas, and E. A. Huerta, Symmetry 17, 1409 (2025).
- R. Mudimadugula, F. Schianchi, A. Neuweiler, T. Wouters, H. Gieg, and T. Dietrich, Eur. Phys. J. A 61, 193 (2025).
- N. Bhojwani, C. Wang, H.-Y. Wang, C. Sun, E. R. Most, and A. Anandkumar, in 38th conference on Neural Information Processing Systems (2025), arXiv:2512.01576.
- J. M. Stone, K. Tomida, C. J. White, and K. G. Felker, Astrophys. J. Suppl. Ser. 249, 4 (2020).
- A. Leonard, Adv. Geophys. 18, 237 (1975).
- S. B. Pope, Turbulent Flows (Cambridge University Press, Cambridge, England, 2000).
- P. Sagaut, Large Eddy Simulation for Incompressible Flows (Springer, Berlin, Heidelberg, 2006).
- A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Köpf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala, arXiv:1912.01703.
- G. Guennebaud, B. Jacob et al., eigen, https://libeigen.gitlab.io (2010).
- B. Daszuta, F. Zappa, W. Cook, D. Radice, S. Bernuzzi, and V. Morozova, Astrophys. J. Suppl. Ser. 257, 25 (2021).
- W. Cook, B. Daszuta, J. Fields, P. Hammond, S. Albanesi, F. Zappa, S. Bernuzzi, and D. Radice, Astrophys. J. Suppl. Ser. 277, 3 (2025).
- B. Daszuta and W. Cook, in New Frontiers in GRMHD Simulations (Springer, Singapore, 2025).
- B. Daszuta, W. Cook, P. Hammond, J. Fields, E. M. Gutiérrez, S. Bernuzzi, and D. Radice, Phys. Rev. D 112, 103006 (2025).
- B. Daszuta, S. Bernuzzi, M. Jacobi, E. M. Gutiérrez, P. Hammond, W. Cook, and D. Radice, arXiv:2602.18290.
- C. R. Evans and J. F. Hawley, Astrophys. J. 332, 659 (1988).
- T. A. Gardiner and J. M. Stone, J. Comput. Phys. 227, 4123 (2008).
- R. Aguilera-Miret, D. Viganò, F. Carrasco, B. Miñano, and C. Palenzuela, Phys. Rev. D 102, 103006 (2020).
- A. Kolmogorov, Akad. Nauk SSSR Dokl. 30, 301 (1941).
- A. P. Kazantsev, Sov. J. Exp. Theor. Phys. 26, 1031 (1968).
- M. Miravet-Tenés, P. Cerdá-Durán, M. Obergaulinger, and J. A. Font, Mon. Not. R. Astron. Soc. 527, 1081 (2023).
- K. Kiuchi, P. Cerdá-Durán, K. Kyutoku, Y. Sekiguchi, and M. Shibata, Phys. Rev. D 92, 124034 (2015).
- W. Kastaun, J. V. Kalinani, and R. Ciolfi, Phys. Rev. D 103, 023018 (2021).
- B. Daszuta, S. Bernuzzi, J. Fontbuté, R. Zhai, A. T.-L. Lam, J. Fields, and D. Radice, arXiv:2605.30430.
- R. Aguilera-Miret, D. Viganò, and C. Palenzuela, Astrophys. J. Lett. 926, L31 (2022).
- M. Miravet-Tenés, P. Cerdá-Durán, M. Obergaulinger, and J. A. Font, Mon. Not. R. Astron. Soc. 517, 3505 (2022).
- T. Celora, N. Andersson, I. Hawke, and G. L. Comer, Phys. Rev. D 104, 084090 (2021).
- T. Celora, M. J. Hatton, I. Hawke, and N. Andersson, Phys. Rev. D 110, 123040 (2024).
- T. Celora, N. Andersson, I. Hawke, G. L. Comer, and M. J. Hatton, Phys. Rev. D 110, 123039 (2024).
- https://www.gauss-centre.eu.