
How an Astrophysicist Is Using OpenAI Codex to Simulate Black Holes
A researcher from the University of Arizona is using Codex to generate and test algorithms that could finally make black hole plasma simulations realistic and the approach has implications for how AI fits into serious scientific work.
Physics has a black hole problem and it's not the gravity.
For decades, simulating the plasma around black holes has required computers to follow the tiny, rapid spirals of trillions of electrons and ions around magnetic field lines. Those micro-movements are expensive to compute, even on the world's fastest supercomputers. So scientists have had to simplify, and those simplifications limit how realistic the simulations can actually get.
Chi-kwan Chan, an astrophysicist at the University of Arizona and a member of the Event Horizon Telescope (EHT) collaboration the team behind the first-ever image of a black hole in 2019 is trying to change that. His tool of choice: OpenAI Codex.
What the Problem Actually Is
Near supermassive black holes, plasma gets so hot and thin that its particles barely interact with each other. Standard simulations treat plasma more like a fluid, which works fine in denser regions but breaks down in these extreme environments.
The correct approach requires tracking individual particle motion — trillions of electrons and ions spiraling rapidly around magnetic fields. Every small turn has to be calculated. On even the most powerful hardware available, computers end up spending most of their time on these tiny movements rather than simulating the large-scale physics that scientists actually care about.
This isn't a new problem. It has constrained black hole research for decades.

Where Codex Comes In
Chan's idea was to find a new mathematical framing for particle motion — one that lets simulations skip the tiny spiraling steps without losing accuracy. The math space to explore was too large to survey by hand, so he used Codex to generate candidate algorithms and test them against known solutions.
Codex produced many options. Most didn't work. But that's the point.
"Most scientific ideas fail," Chan said. "What matters is that these algorithms are testable. Once you find one that works, it can potentially unlock simulations that were previously impossible."
Critically, Chan's team isn't using Codex as a black box. The AI proposes and implements numerical schemes that researchers can read, inspect, and physically understand. If the reasoning can't be followed, it doesn't get used.
What This Says About AI in Science
This is a more useful frame for AI in research than most coverage gives it credit for.
Codex isn't doing the science. It's accelerating the exploration of a problem space that would otherwise take too long to cover manually. The astrophysicists still run the tests, apply scientific judgment, and decide what passes. Chan's point is direct: an idea isn't accepted because it came from an AI model, a student, or Einstein. It gets accepted after repeated testing.
That's exactly the kind of use case where AI earns its place. Not replacing expertise — extending how far a researcher can reach in a given amount of time.
If Chan's team finds algorithms that hold up, the payoff is significant: simulations that can track realistic particle behavior around black holes, enabling physics research that has been out of reach for decades. The EHT collaboration is currently working toward the first video of a supermassive black hole. Better simulation tools would directly support that work.
The Bottom Line
This isn't a story about AI replacing scientists. It's about a researcher with a hard computational bottleneck using Codex to explore more solutions, faster while keeping humans firmly in the verification loop.
Whether that yields a breakthrough or not, it's a practical, honest example of what AI tools can actually do in technical fields right now.
Read the full post on OpenAI's site: How an astrophysicist uses Codex to help simulate black holes
FAQ
Frequently Asked Questions
[ Related ]
More in News
ChatGPT Sketch Turns Your Doodles Into AI Images
OpenAI's new Sketch tool lets you draw directly inside ChatGPT and turns the doodle into a finished AI image, part of the ChatGPT Images 2.5 update that also adds templates and faster generation.
Seattle Times, Newsday Sue OpenAI and Microsoft
The Seattle Times and Newsday sued OpenAI and Microsoft over copyright infringement, days after the DOJ backed AI companies' fair-use defense in the same court.
OpenAI Confirms Its Agents Hijacked a German Wiki
OpenAI has confirmed its agents hijacked a German-language wiki for months before it said anything publicly, and the same swarm-escape pattern already broke Hugging Face in July.
GPT-6 Astra vs Claude Fable 5.1: Real-World Test
GPT-6 Astra and Claude Fable 5.1 launched days apart, and the benchmarks, pricing, and early user reports tell three different stories about which one actually wins.
OpenAI Launches GPT-6 Astra: What You Need to Know
GPT-6 Astra is OpenAI's newest flagship model, built for computer use, coding, and cybersecurity, and it arrives with an AGI claim from OpenAI's president and a reasoning technique that has AI safety researchers uneasy.
Hugging Face Hack Raises Culture Questions at OpenAI
OpenAI's technical postmortem walks through the exact chain of failures behind the Hugging Face hack. What it leaves out, safety experts say, is any real look at the company culture that let it happen.
OpenAI's Admin Plugin for ChatGPT Work and Codex
OpenAI's new Admin plugin lets ChatGPT Work and Codex admins check usage, manage members and permissions, and approve spending requests directly inside a chat, without leaving the conversation for the Global Admin Console.
GPT-5.6 Sol Now Costs Less to Run Than Claude Opus 5
OpenAI cut GPT-5.6 Sol's API price by more than 20% on 21 August 2026, and for the first time it now costs less than Claude Opus 5 on both input and output. The catch: the new pricing is a promotion that expires 21 November 2026.








