Skip to content
Gradland
← AI News
OpenAI
🌌

How an astrophysicist uses Codex to help simulate black holes

11 June 2026·2 min read
Read original on OpenAI

Source: OpenAI

What was announced

This is a case study, not a product announcement — OpenAI published a story about astrophysicist Chi-kwan Chan using Codex (OpenAI's deprecated code-generation model, sunset in 2022) to accelerate black hole simulations. The article showcases how Codex accelerated development of GRMHD (general-relativistic magnetohydrodynamics) code, allowing researchers to test Einstein's general relativity in extreme physics scenarios.

Why it matters

This is historical retrospective, not breaking news — Codex itself is end-of-life. However, the pattern it illustrates (using LLMs to generate domain-specific simulation code) is now more relevant than ever with GPT-4, Claude, and specialized models. For developers: if you're building scientific computing tools, physics simulators, or research infrastructure, LLMs are now viable accelerators for boilerplate and specialized code generation — but you need to validate outputs rigorously (critical for research that tests physical laws).

Key takeaways

  • LLMs can genuinely accelerate scientific code development — this wasn't marketing; Chan's team saw measurable velocity gains on real astrophysics work
  • Validation is mandatory in domains where wrong code = wrong physics — case studies like this matter as proof that LLM-assisted science is reproducible if you verify outputs
  • Codex is dead; use GPT-4, Claude Sonnet, or fine-tuned models instead for equivalent/better code generation today
← All AI NewsThanks for reading 🌿