OpenFOAMGPT 2.0: end-to-end, trustworthy automation for computational fluid dynamics

Jingsen Feng, Ran Xu, Xu Chu · 2025

Read OpenFOAMGPT 2.0: end-to-end, trustworthy automation for computational fluid dynamics by Jingsen Feng, Ran Xu, Xu Chu (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-19338.txt.

Introduction

Jingsen Feng and co-authors automate fluid flow simulation end to end with a team of AI agents. Setting up a flow run is expert work: meshing, settings, solving, and reading results. Their frame splits the chain among four agents. One preps, one drafts prompts, one runs the solver, and one handles the output.

The whole flow starts from a plain language request. Across case types from pipe flow to aerodynamics, hundreds of runs finished with full success and repeatability. Checks on trustworthiness form part of the design, since science codes allow no sloppy runs. The authors pitch chat driven simulation as a way to widen access.

Catalog record

CREATORJingsen Feng, Ran Xu, Xu Chu
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE31 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2504-19338

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

OpenFOAMGPT 2.0: end-to-end, trustworthy automation for computational fluid dynamics Jingsen Feng, Ran Xu, Xu Chu Abstract We propose the first multi-agent framework for computational fluid dynamics that enables fully automated, end-to-end simulations directly from natural-language queries. The approach integrates four specialized agents—Pre-processing, Prompt Generation, OpenFOAMGPT (simulator), and Post-processing—decomposing complex computational fluid dynamics workflows into collaborative components powered by large language models. Extensive validation through diverse case studies, including Poiseuille flows, single- and multi-phase porous media flows, and aerodynamic analyses, demonstrates 100% success and reproducibility rates across over 450 simulations. Rigorous trustworthiness verification confirms that properly designed multi-agent systems can achieve the reliability standards necessary for zero-tolerance scientific computing applications while significantly lowering entry barriers. The framework establishes a foundation for conversation-driven simulation workflows in computational science, potentially accelerating discovery and innovation through more accessible tools for complex numerical simulations. Results reveal that multi-agent architectures, when properly specialized and orchestrated, can effectively handle the stringent requirements of computational physics while maintaining the intuitive interface of natural language interaction. 1 Introduction The rapid advancement of Large Language Models (LLMs) has catalyzed a transformative era in artificial intelligence, propelling multi-agent systems into a new phase of robust development and application [ 1 , 2 , 3 , 4 ] . These multi-agent frameworks, which orchestrate multiple specialized AI entities toward solving complex tasks, have demonstrated remarkable versatility across disciplines including sociology, economics, medicine, pharmaceuticals, computer science, mathematics, and engineering [ 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ] , and are even capable of conducting scientific research independently [ 16 , 17 ] . Indeed, multi-agent architectures are increasingly recognized as an effective approach for maximizing the capabilities of LLMs through specialization, collaboration, and iterative refinement processes. Computational Fluid Dynamics (CFD), a branch of fluid mechanics employing numerical methods and algorithms to analyze and solve problems involving fluid flows [ 18 , 19 , 20 , 21 , 22 , 23 ] , represents a domain with particularly widespread applications [ 24 ] —spanning aerospace engineering [ 25 ] , weather prediction [ 26 ] , biomedical flows [ 27 , 28 ] , and Geo-Engineering [ 29 , 30 ] . The computational complexity, domain expertise requirements, and labor-intensive workflows associated with CFD simulations have historically limited its accessibility and practical deployment despite its critical importance across scientific and engineering disciplines. The integration of LLMs with CFD presents a compelling opportunity to address these limitations [ 31 , 32 , 33 ] . However, this integration faces significant challenges: CFD simulations demand precise numerical specifications, complex geometry handling, sophisticated physics modeling, and specialized result interpretation. In this paper, we build upon OpenFOAMGPT system [ 34 , 35 ] to present a comprehensive end-to-end multi-agent framework specifically designed for CFD applications. Through careful agent specialization and orchestration, we achieve truly conversational simulation capabilities, where natural language queries are automatically transformed into complete, executable CFD simulations with appropriate visualization and analysis of results, while maintaining exceptional levels of trustworthiness and reproducibility. This system represents a significant advancement in human-computer interaction for scientific computing, effectively democratizing access to sophisticated fluid dynamics simulations while maintaining numerical rigor and solution quality. By enabling end-to-end "conversation-to-simulation" workflows, our multi-agent framework reduces the technical barriers to CFD utilization while simultaneously increasing productivity for domain experts. Experimental validation across diverse flow scenarios demonstrates the system’s robustness, accuracy, and practical utility for both academic and industrial applications. 2 Multi-Agent LLM framework for CFD The proposed multi-agent framework for CFD automation, as illustrated in Figure 1 , comprises four specialized intelligent agents that collaboratively orchestrate end-to-end CFD workflows from pre-processing, simulation to post-processing without any human intervention. This framework represents a significant advancement in automated CFD simulation by integrating LLMs: Pre-processing Agent: This agent harnesses LLMs’ advanced semantic understanding capabilities to comprehensively analyze user queries. In CFD simulations, mesh generation is a fundamental step that significantly impact the accuracy and comprehensiveness of numerical results. For mesh generation, which discretizes the computational domain into small control volumes, OpenFOAM [ 36 ] provides two primary utilities: blockMesh for structured hexahedral meshes in simple geometries, and snappyHexMesh for unstructured meshes that can accurately capture flow fields around complex geometries, enabling detailed resolution of boundary layers, wake regions, and other critical flow features in the vicinity of intricate geometric configurations. The quality and resolution of these spatial discretizations directly impact the accuracy of the numerical solutions and the stability of the computational process. Additionally, CFD studies typically require multiple simulation cases with controlled parameter variations to investigate their effects on the flow physics, rather than relying on single-case results. This parametric study approach is essential for understanding the sensitivity of flow behavior to various input parameters, establishing correlations between design variables and performance metrics, and validating numerical models across different operating conditions. Recognizing these essential requirements, this agent intelligently determines critical simulation parameters through two primary decision paths: (1) simulation scope classification (single-case vs. multi-case parametric studies) and (2) mesh generation strategy selection ( blockMesh for simple geometries vs. snappyHexMesh for complex geometries). For parametric studies, the agent automatically identifies key variables (e.g., mesh resolution, physical properties, boundary conditions). This agent defaults to single-case simulations with blockMesh -generated grids for computational efficiency in simple geometries. The agent employs contextual reasoning to resolve ambiguities in problem specifications, ensuring robust parameter formalization before downstream processing. By automating these critical pre-processing decisions, the agent significantly reduces the manual effort required in traditional CFD workflows while ensuring the generation of high-quality computational setups suitable for accurate flow simulations. Figure 1: The design of multi-Agent framework for CFD. Red components represent user interfaces for input queries and output results. Green components indicate LLM-based intelligent agents. Blue components show built-in code modules working alongside agents to implement specific functionalities. Yellow components denote information and states provided during workflow execution. Orange components represent text-based output logs. Prompt Generation Agent: This agent implements an adaptive prompt engineering pipeline that dynamically constructs simulation instructions tailored to each specific case requirement. This agent demonstrates remarkable capability in precisely identifying all parameters requiring adjustment across the simulation space, even in complex scenarios involving multiple interacting variables—a capability we will demonstrate in Section 3.3 . For single-case scenarios, it directly employs user query as input prompt. In multi-case scenarios, it systematically decomposes parametric variables (e.g., mesh resolution, physical properties like viscosity or density, boundary conditions) to generate a structured set of case-specific prompts. This approach of generating dedicated prompts for each parametric variation was deliberately chosen over alternative methods. A seemingly straightforward alternative would be to replicate configuration files from an initial successful simulation and subsequently modify specific parameters for derivative cases. However, this approach presents significant challenges in the context of OpenFOAM, whose configuration files adhere to extremely strict syntactical requirements and structural hierarchies. Such an approach would necessitate an additional specialized agent to guide the LLM in making precise modifications to the correct parameter locations across multiple interconnected files. When dealing with multi-variable modifications, this method becomes highly inefficient and prone to errors, as even minor syntax inconsistencies can cause simulation failures that are difficult to diagnose and correct automatically. By contrast,

Read the complete text