CFDLLMBench: A Benchmark Suite for Evaluating Large Language Models in Computational Fluid Dynamics
Nithin Somasekharan, Ling Yue, Yadi Cao, Weichao Li, Patrick Emami, Pochinapeddi Sai Bhargav, Anurag Acharya, Xingyu Xie, Shaowu Pan
TL;DR
CFDLLMBench presents the first holistic benchmark suite for evaluating large language models on computational fluid dynamics tasks, spanning conceptual CFD knowledge (CFDQuery), CFD code generation (CFDCodeBench), and practical OpenFOAM workflow automation (FoamBench). By coupling domain-specific datasets with carefully designed, execution-oriented metrics (executable code, NMSE, numerical convergence, and ROUGE-based structural checks), the study reveals that while state-of-the-art models perform well on conceptual questions, their capabilities in generating correct CFD code and running valid simulations remain limited without agentic workflows. The authors also demonstrate that retrieval-augmented generation and human-in-the-loop reviewing can meaningfully boost performance in complex OpenFOAM tasks, underscoring the importance of tool-use and long-context reasoning for scientific automation. Overall, CFDLLMBench provides a robust, open-source platform to drive progress in LLM-enabled scientific computing and CFD workflow automation.
Abstract
Large Language Models (LLMs) have demonstrated strong performance across general NLP tasks, but their utility in automating numerical experiments of complex physical system -- a critical and labor-intensive component -- remains underexplored. As the major workhorse of computational science over the past decades, Computational Fluid Dynamics (CFD) offers a uniquely challenging testbed for evaluating the scientific capabilities of LLMs. We introduce CFDLLMBench, a benchmark suite comprising three complementary components -- CFDQuery, CFDCodeBench, and FoamBench -- designed to holistically evaluate LLM performance across three key competencies: graduate-level CFD knowledge, numerical and physical reasoning of CFD, and context-dependent implementation of CFD workflows. Grounded in real-world CFD practices, our benchmark combines a detailed task taxonomy with a rigorous evaluation framework to deliver reproducible results and quantify LLM performance across code executability, solution accuracy, and numerical convergence behavior. CFDLLMBench establishes a solid foundation for the development and evaluation of LLM-driven automation of numerical experiments for complex physical systems. Code and data are available at https://github.com/NREL-Theseus/cfdllmbench/.
