RHINE stands for R-process Heating Implementation in hydrodynamic simulations with NEural networks. It is a machine-learning framework designed to predict the nuclear heating rate and compositional changes from the r-process on the fly during a hydrodynamic simulation of a neutron star merger. Normally, a full nuclear reaction network—tracking the transformations of thousands of isotopes—would be needed at every time step in every cell of the simulation. RHINE replaces this with a small, fast neural network, cutting the computational cost dramatically .
RHINE employs a multilayer perceptron architecture that has been trained on thousands of reference r-process calculations from a full nuclear network. Those training data trace out the thermodynamic and compositional histories of neutron-rich matter under merger conditions. Once trained, the network takes just four locally evolved simulation quantities as input: the local density, temperature, electron fraction, and mean mass number. From these inputs, it predicts eight key source terms that govern how the r-process proceeds—including the nuclear heating rate, changes in the electron fraction, and the average atomic and mass numbers of the composition .
By injecting these predictions into the hydrodynamic simulation at each location and time step, researchers no longer need to run the full nuclear network in real time. This conceptually simple but powerful approach avoids the bottleneck that previously made long-duration or high-resolution r-process simulations impractical .
Validation is critical whenever a machine-learning model replaces fundamental physics calculations. The RHINE team used two rigorous classes of tests to ensure the neural network was reliable under realistic conditions :
Commenting on the performance, the researchers noted that the method can save a "tremendous amount of computing time" while retaining the accuracy needed for astrophysical interpretation .
The energy released by the r-process directly alters the velocity, temperature, and composition of merger ejecta—all factors that shape the kilonova light curve we observe through telescopes. The landmark kilonova AT2017gfo, associated with the gravitational-wave event GW170817, gave the first detailed look at such emission, but linking that signal back to the underlying nuclear physics has been a challenge. RHINE now enables researchers to incorporate r-process heating self-consistently in 3D simulations, making it far more practical to generate theoretical predictions that can be compared directly with observed kilonovae .
RHINE will also serve as a computational bridge between theory and upcoming nuclear physics experiments at FAIR, the Facility for Antiproton and Ion Research in Darmstadt, Germany. FAIR will probe the properties of exotic neutron-rich nuclei that are currently beyond experimental reach but critically shape r-process outcomes. By accelerating simulations to match the speed of data analysis, RHINE offers a pathway to directly link laboratory measurements with astrophysical observations—testing models of element formation against real-world nuclear data for the first time .
In the spirit of open science, the research team has made the RHINE source code publicly available on Zenodo, the open-access scientific repository. Researchers interested in using or building upon the method can access it at:
This public release means that other simulation groups can implement RHINE in their own merger codes, expanding the impact of the framework across the broader astrophysics community.