Purple filaments of primordial gas stretch across the digital cosmos, feeding the birth of the first stars in a simulation called MEGATRON. At the University of Bath, Dr. Martin Rey and his team are peering into the universe’s earliest chapters, not through a telescope, but through lines of code running on some of the world’s most powerful supercomputers. Their mission: to trace how the first stars lit up the darkness and scattered the chemical seeds of planets, life, and us.
For the first time, these ultra-detailed simulations connect two vital clues about the early universe. One comes from the James Webb Space Telescope, which captures real images of infant galaxies as they appeared over 13 billion years ago. The other comes from ancient stars in our own galaxy, whose chemical makeup acts like a fossil record of the first stellar generations. Until now, these two views have been hard to reconcile. MEGATRON bridges them by modeling how starlight, gas, and newly forged elements like oxygen interact from the moment the first star ignites.
The simulations start with pure hydrogen and helium—the only elements present after the Big Bang—and follow the life and death of the first stars in unprecedented detail. As these stars explode in supernovae, they scatter heavy elements into space, enriching the gas that forms the next generation of stars. The team tracked this process across billions of years, capturing how radiation from stars heats and shapes the surrounding gas, a dynamic often oversimplified in older models.
One key discovery is that earlier, less detailed simulations may have underestimated how much starlight and chemical complexity affect the gas around galaxies. MEGATRON’s high-resolution models reveal fine structures in this gas—patterns invisible to coarser methods—improving predictions for what telescopes should see. The results, published in the Open Journal of Astrophysics, mark the first major findings from the project, with more on the way.
The work is already shaping the future of cosmic research. Rey and his colleagues have secured 40 million processor hours on the U.K.’s national supercomputers—equivalent to running 5 million laptops nonstop for a year. This computing power will fuel the next generation of simulations, with even finer detail and more complete physics. As JWST keeps delivering stunning images of the early universe, and sky surveys map the chemistry of ancient stars in greater depth, MEGATRON will help turn raw data into a coherent story of cosmic origins.
"The elements that make our world and life possible—carbon, oxygen, iron and many others—were forged by stars," says Rey. "To understand where those elements came from, we need to understand how the first stars formed and enriched their surroundings." With every simulation, we’re not just modeling the past—we’re uncovering the story of our own beginnings.
