CFDLLMBenchV2

Benchmark update · October 2026

CFDLLMBench V2

CFDLLMBench measures how well large language models handle computational fluid dynamics, from graduate-level numerics to setting up and running real OpenFOAM simulations.

Overview of CFDLLMBench: CFDQuery asks multiple-choice numerics questions, CFDCodeBench asks for a Python solver of a PDE such as 1D viscous Burgers, and FoamBench asks an agent to set up, mesh and run an OpenFOAM case such as the lid-driven cavity
The three tasks: graduate CFD knowledge, numerical and physical reasoning in code, and complete OpenFOAM workflows.

The benchmark

What CFDLLMBench measures

A CFD engineer needs three things: knowing the numerics, turning a problem statement into a working solver, and setting up a simulation that reproduces the right flow. CFDLLMBench tests each one separately. The scoring is strict: an answer is right or wrong, and code or a simulation only counts if it runs and matches a reference solution.

CFDQuery

90questions

Multiple-choice questions on modified equations, stability, dispersion and non-uniform grids.

Success: the share of questions answered correctly.

CFDCodeBench

24PDE problems

From 1D Burgers to Rayleigh–Bénard convection. The model writes a Python solver in one attempt.

Success: the code runs, NMSE < 0.1 against the reference, and convergence as grid is refined.

FoamBench

126OpenFOAM cases

110 Basic cases in 11 flow families and 16 Advanced cases with new geometries and turbulence models. An agent (Foam-Agent) writes every case file, meshes and runs the solver.

Success: the solver finishes and the final flow field has NMSE < 0.1 against the reference.

  • ModelsGPT-5.6 Sol, Gemini 3.1 Pro, Gemini 3.8 Flash, GLM 5.2, Qwen3.8-27B and Llama 4 Maverick 17B Instruct, compared with the original study's Sonnet 3.5, o3-mini, Gemini 2.5 Flash, Haiku 3.5, GPT-4o and Gemma-2-9B.
  • AgentsFoamBench runs on two versions of Foam-Agent: Foam-Agent 1.0, the version used in the original study, and the current Foam-Agent 2.0. Codex CLI and Claude Code also ran the benchmark directly, without Foam-Agent.

Results

Success rate on every task

Leaderboard

Show data table

2025 models: as published in the CFDLLMBench paper, with that study's prompts, its 28-task CFDCodeBench and Foam-Agent 1.0. On FoamBench they are shown next to the 2026 models run with Foam-Agent 1.0.

Old vs new models

What changed between the 2025 and the 2026 models

Each dot is one model: grey for the six models of the original study, blue for the six models of V2.

Success rate per model, 2025 vs 2026

2025 models (original study)2026 models (V2)
Show data table

CFDQuery

Knowledge has plateaued

2025: 59–91%  ·  2026: 80–86%

Every 2026 model answers between 80% and 86% of the 90 questions. The weaker models caught up, but the top didn't move: no 2026 model beats o3-mini's 91% (82 of 90).

CFDCodeBench

Writing a working solver went from rare to routine

2025 best: 14%  ·  2026 best: 75%

In 2025 the best model wrote a correct, convergent solver for 14% of the problems. Three 2026 models reach 75% in a single attempt with no error feedback, and every 2026 model writes code that runs on at least 79% of the tasks; what remains is accuracy.

FoamBench

OpenFOAM cases now run and reproduce the reference

Basic: 34% → 82%  ·  Advanced: 25% → 81% (94% with Foam-Agent 2.0)

With Foam-Agent 1.0, the best 2025 model solved 34% of the Basic cases and the best 2026 model solves 82%. On Advanced the best result rises from 25% to 81%, and to 94% with Foam-Agent 2.0. Advanced used to be the harder set and is now the easier one as the agents now build the right geometry.

FoamBench Advanced

The geometry is right now

The Advanced cases put new obstacles in the flow. In the original study, Sonnet 3.5, the best 2025 model, built none of the four obstacles below: it simulated an empty channel, or a solid square block in place of the diamond. With V2, Gemini 3.1 Pro builds every one. On the cylinder its mesh is identical to the reference; on the other three it uses a coarser mesh, and all four still match the reference within NMSE 0.1.

2 / 16Advanced cases solved, Sonnet 3.5 (2025)
15 / 16Advanced cases solved, Gemini 3.1 Pro (V2)
Velocity magnitude for four FoamBench Advanced cases (cylinder, diamond obstacle, two square obstacles, rectangular obstacle). The reference and Gemini 3.1 Pro show the obstacle and its wake; Sonnet 3.5 shows an empty channel for three cases and a solid square block for the diamond case.
Velocity magnitude at the reference's final time, with the mesh drawn on top and one colour scale per row. Sonnet 3.5 ran the 2025 prompts with Foam-Agent 1.0; Gemini 3.1 Pro ran the V2 prompts with Foam-Agent 2.0.

Data, code and contributions

Reproduce it, extend it

The V2 datasets, reference solutions and evaluation code are in the GitHub repository: CFDQuery, CFDCodeBench and FoamBench. The FoamBench agent is Foam-Agent.

Temperature 0 wherever the provider allows it. GPT-5.6 Sol and both Gemini models ran at low reasoning effort, and GLM 5.2 and Qwen3.8-27B with thinking off. Codex CLI used GPT-5.6 Sol and Claude Code used Opus 5.5, both at low effort. All simulations use OpenFOAM 10.

Contribute

If you wish to contribute to CFDLLMBench, please raise a pull request with your prompts and reference files, and we will review it.

Cite

@article{somasekharan2025cfdllmbench,
  title={{CFDLLMBench}: A Benchmark Suite for Evaluating Large Language Models in Computational Fluid Dynamics},
  author={Somasekharan, Nithin and Yue, Ling and Cao, Yadi and Li, Weichao and Emami, Patrick and Bhargav, Pochinapeddi Sai and Acharya, Anurag and Xie, Xingyu and Pan, Shaowu},
  journal={Journal of Data-centric Machine Learning Research},
  volume={3}, number={13}, pages={1--40}, year={2026},
  url={https://openreview.net/forum?id=kTcH1MnkjY}
}