Skip to content

About

Combining CFDQuery, CFDCodeBench and FoamBench

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

48 Commits

Folders and files

Repository files navigation

CFDLLMBench V2

🌐 Website: nithinsomu.github.io/cfdllmbench_v2

CFDLLMBench is a comprehensive benchmark suite designed to assess Large Language Models (LLMs) on key competencies relevant to computational fluid dynamics (CFD). It evaluates LLMs across three interconnected tasks:

  • ✅ CFDQuery: Conceptual understanding through multiple-choice CFD questions.
  • ✅ CFDCodeBench: Instruction-following ability to generate CFD code.
  • ✅ FoamBench: End-to-end automation of OpenFOAM simulations from natural language.

What's new in V2: we updated the prompts for some cases, evaluated newer LLMs, and evaluated the latest version of Foam-Agent. The latest (V2) datasets are included in this repository (see Datasets).


🔍 Motivation

While LLMs excel in general NLP, their ability to reason about scientific systems, generate structured physical code, and interface with domain-specific simulators like OpenFOAM remains underexplored.

CFDLLMBench bridges this gap by systematically measuring:

  • Conceptual grasp of CFD principles (via QA),
  • Structured code generation fidelity,
  • Robustness of simulation execution and output.

🧱 Benchmark Components

📘 CFDQuery

  • 90 graduate-level multiple-choice questions from CFD lectures.
  • Covers numerical methods, turbulence modeling, and solver theory.
  • LLMs select the correct option from four choices.

🔧 CFDCodeBench

  • 24 natural language prompts describing CFD problems.
  • Models must output executable CFD code (FDM, FVM, etc.).
  • Evaluated on correctness, numerical stability, and output similarity.

🌀 FoamBench

  • 110 Basic + 16 Advanced OpenFOAM simulation tasks.
  • Benchmarks end-to-end tool use: case creation → execution → postprocessing.
  • Assesses multi-step reasoning, domain adaptation, and recovery.

📂 Datasets

The latest (V2) datasets are in this repository:

The datasets used in the original paper are on Kaggle: CFDQuery, CFDCodeBench, FoamBench.


🖼️ Benchmark Overview

Benchmark Overview


📈 Main Results

CFDQuery

CFDQuery results

CFDCodeBench

CFDCodeBench results

FoamBench

Latest Foam-Agent version (models evaluated in V2 and the Codex CLI / Claude Code coding agents):

FoamBench results, latest Foam-Agent version

Previous Foam-Agent version (models from the original paper and the models evaluated in V2, with the coding agents):

FoamBench results, previous Foam-Agent version


🤝 Contributing

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


📄 License

This benchmark is open-source and released under license: BSD-3-Clause.

Citation

If you use CFDLLMBench in your research, please cite our paper:

@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},
  month={2},
  publisher={JMLR.org},
  url={https://openreview.net/forum?id=kTcH1MnkjY}
}

About

Combining CFDQuery, CFDCodeBench and FoamBench

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages