Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Subgrid modeling for relativistic magnetohydrodynamics with machine learning

William Cook and Sebastiano Bernuzzi

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.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (90)

  1. D. Radice and I. Hawke, Liv. Rev. Comput. Astrophys. 10, 1 (2024).
  2. D. Price and S. Rosswog, Science 312, 719 (2006).
  3. S. A. Balbus and J. F. Hawley, Astrophys. J. 376, 214 (1991).
  4. T. Piran, Rev. Mod. Phys. 76, 1143 (2004).
  5. S. I. Blinnikov, I. D. Novikov, T. V. Perevodchikova, and A. G. Polnarev, Sov. Astron. Lett. 10, 177 (1984).
  6. B. Paczynski, Astrophys. J. Lett. 308, L43 (1986).
  7. J. Goodman, Astrophys. J. Lett. 308, L47 (1986).
  8. D. Eichler, M. Livio, T. Piran, and D. N. Schramm, Nature (London) 340, 126 (1989).
  9. R. Narayan, B. Paczynski, and T. Piran, Astrophys. J. 395, L83 (1992).
  10. B. P. Abbott et al. (LIGO Scientific and Virgo Collaborations), Phys. Rev. Lett. 119, 161101 (2017).
  11. 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).
  12. B. P. Abbott et al. (LIGO Scientific, Virgo, Fermi-GBM, INTEGRAL Collaborations), Astrophys. J. Lett. 848, L13 (2017).
  13. A. Goldstein et al., Astrophys. J. 848, L14 (2017).
  14. V. Savchenko et al., Astrophys. J. 848, L15 (2017).
  15. 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).
  16. K. Hayashi, K. Kiuchi, K. Kyutoku, Y. Sekiguchi, and M. Shibata, Phys. Rev. Lett. 134, 211407 (2025).
  17. J. Bamber, A. Tsokaros, M. Ruiz, and S. L. Shapiro, Phys. Rev. D 111, 044038 (2025).
  18. C. Musolino, L. Rezzolla, and E. R. Most, Astrophys. J. Lett. 984, L61 (2025).
  19. E. R. Most, J. Peterson, L. Scurto, H. Pais, and V. Dexheimer, Astrophys. J. Lett. 989, L29 (2025).
  20. E. M. Gutiérrez, W. Cook, D. Radice, S. Bernuzzi, J. Fields, P. Hammond, B. Daszuta, H. Bandyopadhyay, and M. Jacobi, arXiv:2506.18995.
  21. W. Cook, E. M. Gutiérrez, S. Bernuzzi, D. Radice, B. Daszuta, J. Fields, P. Hammond, H. Bandyopadhyay, and M. Jacobi, arXiv:2508.19342.
  22. I. Rainho, J. Bamber, D. Guerra, M. Miravet-Tenés, M. Ruiz, A. Tsokaros, and S. L. Shapiro, arXiv:2510.17511.
  23. K. Kiuchi, A. Reboul-Salze, Y. Sekiguchi, and M. Shibata, arXiv:2606.11299.
  24. A. Wen, J. V. Kalinani, M. Chabanov, M. Campanelli, R. Ciolfi, and Y. Zlochower, arXiv:2605.30548.
  25. A. Tsokaros, M. Ruiz, S. L. Shapiro, and K. Uryū, Phys. Rev. Lett. 128, 061101 (2022).
  26. A. Sur, W. Cook, D. Radice, B. Haskell, and S. Bernuzzi, Mon. Not. R. Astron. Soc. 511, 3983 (2022).
  27. W. Cook, R. K. Joshi, S. Bernuzzi, B. Haskell, and J. Fields, Mon. Not. R. Astron. Soc. 547, stag136 (2026).
  28. F. V. Piñas, A. K. L. Yip, P. C.-K. Cheong, and M. Ruiz, Astrophys. J. 1001, 49 (2026).
  29. A. Capobianco, W. Cook, S. Bernuzzi, B. Haskell, and J. Fields, arXiv:2605.22921.
  30. E. M. Gutiérrez, D. Radice, J. Fields, and J. M. Stone, arXiv:2601.20953.
  31. J. Smagorinsky, Mon. Weather Rev. 91, 99 (1963).
  32. 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.
  33. 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.
  34. R. A. Clark, J. H. Ferziger, and W. C. Reynolds, J. Fluid Mech. 91, 1 (1979).
  35. M. L. Theobald, P. A. Fox, and S. Sofia, Phys. Plasmas 1, 3016 (1994).
  36. W.-C. Müller and D. Carati, Phys. Plasmas 9, 824 (2002).
  37. P. Grete, Large Eddy simulations of compressible magnetohydrodynamic turbulence, Ph.D. thesis, Georg August University of Gottingen, Germany, 2016.
  38. P. Grete, D. G. Vlaykov, W. Schmidt, and D. R. G. Schleicher, Phys. Plasmas 23, 062317 (2016).
  39. D. G. Vlaykov, P. Grete, W. Schmidt, and D. R. G. Schleicher, Phys. Plasmas 23, 062316 (2016).
  40. 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).
  41. W. Schmidt, Liv. Rev. Comput. Astrophys. 1, 2 (2015).
  42. D. Radice, Astrophys. J. 838, L2 (2017).
  43. D. Viganò, R. Aguilera-Miret, and C. Palenzuela, Phys. Fluids 31, 105102 (2019).
  44. F. Carrasco, D. Viganò, and C. Palenzuela, Phys. Rev. D 101, 063003 (2020).
  45. D. Viganò, R. Aguilera-Miret, F. Carrasco, B. Miñano, and C. Palenzuela, Phys. Rev. D 101, 123019 (2020).
  46. M. Shibata, K. Kiuchi, and Y. I. Sekiguchi, Phys. Rev. D 95, 083005 (2017).
  47. A. Pandya and F. Pretorius, Phys. Rev. D 104, 023015 (2021).
  48. Harry L. H. Shum, F. Abalos, Y. Bea, M. Bezares, P. Figueras, and C. Palenzuela, Phys. Rev. D 113, 084029 (2026).
  49. E. R. Most, Phys. Rev. D 108, 123012 (2023).
  50. J. Ling, A. Kurzawski, and J. Templeton, J. Fluid Mech. 807, 155 (2016).
  51. A. Beck, D. Flad, and C.-D. Munz, J. Comput. Phys. 398, 108910 (2019).
  52. Z. Wang, K. Luo, D. Li, J. Tan, and J. Fan, Phys. Fluids 30, 125101 (2018).
  53. S. G. Rosofsky and E. A. Huerta, Phys. Rev. D 101, 084024 (2020).
  54. E. A. Huerta, arXiv:2605.19057.
  55. D. George and E. Huerta, Phys. Lett. B 778, 64 (2018).
  56. D. George and E. Huerta, in NiPS Summer School 2017 (2017), arXiv:1711.07966.
  57. Alvin J. K. Chua, C. R. Galley, and M. Vallisneri, Phys. Rev. Lett. 122, 211101 (2019).
  58. S. G. Rosofsky, H. A. Majed, and E. A. Huerta, Mach. Learn. Sci. Tech. 4, 025022 (2023).
  59. S. G. Rosofsky and E. A. Huerta, Mach. Learn. Sci. Tech. 4, 035002 (2023).
  60. S. Kacmaz, E. A. Huerta, and R. Haas, Mach. Learn. Sci. Tech. 6, 035057 (2025).
  61. T. Dieselhorst, W. Cook, S. Bernuzzi, and D. Radice, Symmetry 13, 2157 (2021).
  62. S. Kacmaz, R. Haas, and E. A. Huerta, Symmetry 17, 1409 (2025).
  63. R. Mudimadugula, F. Schianchi, A. Neuweiler, T. Wouters, H. Gieg, and T. Dietrich, Eur. Phys. J. A 61, 193 (2025).
  64. 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.
  65. J. M. Stone, K. Tomida, C. J. White, and K. G. Felker, Astrophys. J. Suppl. Ser. 249, 4 (2020).
  66. A. Leonard, Adv. Geophys. 18, 237 (1975).
  67. S. B. Pope, Turbulent Flows (Cambridge University Press, Cambridge, England, 2000).
  68. P. Sagaut, Large Eddy Simulation for Incompressible Flows (Springer, Berlin, Heidelberg, 2006).
  69. 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.
  70. G. Guennebaud, B. Jacob et al., eigen, https://libeigen.gitlab.io (2010).
  71. B. Daszuta, F. Zappa, W. Cook, D. Radice, S. Bernuzzi, and V. Morozova, Astrophys. J. Suppl. Ser. 257, 25 (2021).
  72. W. Cook, B. Daszuta, J. Fields, P. Hammond, S. Albanesi, F. Zappa, S. Bernuzzi, and D. Radice, Astrophys. J. Suppl. Ser. 277, 3 (2025).
  73. B. Daszuta and W. Cook, in New Frontiers in GRMHD Simulations (Springer, Singapore, 2025).
  74. B. Daszuta, W. Cook, P. Hammond, J. Fields, E. M. Gutiérrez, S. Bernuzzi, and D. Radice, Phys. Rev. D 112, 103006 (2025).
  75. B. Daszuta, S. Bernuzzi, M. Jacobi, E. M. Gutiérrez, P. Hammond, W. Cook, and D. Radice, arXiv:2602.18290.
  76. C. R. Evans and J. F. Hawley, Astrophys. J. 332, 659 (1988).
  77. T. A. Gardiner and J. M. Stone, J. Comput. Phys. 227, 4123 (2008).
  78. R. Aguilera-Miret, D. Viganò, F. Carrasco, B. Miñano, and C. Palenzuela, Phys. Rev. D 102, 103006 (2020).
  79. A. Kolmogorov, Akad. Nauk SSSR Dokl. 30, 301 (1941).
  80. A. P. Kazantsev, Sov. J. Exp. Theor. Phys. 26, 1031 (1968).
  81. M. Miravet-Tenés, P. Cerdá-Durán, M. Obergaulinger, and J. A. Font, Mon. Not. R. Astron. Soc. 527, 1081 (2023).
  82. K. Kiuchi, P. Cerdá-Durán, K. Kyutoku, Y. Sekiguchi, and M. Shibata, Phys. Rev. D 92, 124034 (2015).
  83. W. Kastaun, J. V. Kalinani, and R. Ciolfi, Phys. Rev. D 103, 023018 (2021).
  84. B. Daszuta, S. Bernuzzi, J. Fontbuté, R. Zhai, A. T.-L. Lam, J. Fields, and D. Radice, arXiv:2605.30430.
  85. R. Aguilera-Miret, D. Viganò, and C. Palenzuela, Astrophys. J. Lett. 926, L31 (2022).
  86. M. Miravet-Tenés, P. Cerdá-Durán, M. Obergaulinger, and J. A. Font, Mon. Not. R. Astron. Soc. 517, 3505 (2022).
  87. T. Celora, N. Andersson, I. Hawke, and G. L. Comer, Phys. Rev. D 104, 084090 (2021).
  88. T. Celora, M. J. Hatton, I. Hawke, and N. Andersson, Phys. Rev. D 110, 123040 (2024).
  89. T. Celora, N. Andersson, I. Hawke, G. L. Comer, and M. J. Hatton, Phys. Rev. D 110, 123039 (2024).
  90. https://www.gauss-centre.eu.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation