Foam-Agent: Towards Automated Intelligent CFD Workflows

Ling Yue, Nithin Somasekharan, Tingwen Zhang, Yadi Cao, Zhangze Chen +2 more
5/8/2025
cs.AIcs.MA

No official code found. Best implementation: csml-rpi/Foam-Agent (340 stars, MIT, last commit 2026-04-09). 1 more below.

Abstract

Computational fluid dynamics (CFD) has been the main workhorse of computational physics. Yet its steep learning curve and fragmented, multi-stage workflow create significant barriers. To address these challenges, we present Foam-Agent, a multi-agent framework leveraging large language models (LLMs) to automate the end-to-end CFD workflow from a single natural language prompt. Foam-Agent orchestrates the comprehensive simulation workflow from mesh generation and high-performance computing job scripting to post-processing visualization. The system integrates retrieval-augmented generation with dependency-aware scheduling to synthesize high-fidelity simulation configurations. Furthermore, Foam-Agent adopts the Model Context Protocol to expose its core functions as discrete, callable tools. This allows for flexible integration and use by any other agentic systems. Evaluated on 110 simulation tasks, Foam-Agent achieved a state-of-the-art execution success rate of 88.2% without expert intervention. These results demonstrate how specialized multi-agent systems can effectively reduce expertise barriers and streamline complex fluid simulations.

View on arXivView PDF

Code Implementations(2)

csml-rpi/Foam-AgentCommunity100%
MIT

Foam-Agent: An end-to-end, composable multi-agent framework for automating CFD simulations in OpenFOAM. NeurIPS 2025 Machine Learning and the Physical Sciences Workshop.

34074Shell, PythonMay 6, 20256 months agoMIT
agentcfdcomputational-fluid-dynamicsfoam-agentmulti-agent-systems+3 more
csml-rpi/FoamGPTCommunity60%

Paper: https://arxiv.org/pdf/2505.04997

176PythonAug 24, 20259 months ago

Similar Papers

Cite this paper

@article{yue2025foamagent,
  title  = {Foam-Agent: Towards Automated Intelligent CFD Workflows},
  author = {Ling Yue and Nithin Somasekharan and Tingwen Zhang and Yadi Cao and Zhangze Chen and Shimin Di and Shaowu Pan},
  year   = {2025},
  eprint = {2505.04997},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.04997v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.04997.svg)](https://codeofpaper.com/paper/2505.04997)

Discussion