# MetaOpenFOAM: an LLM-based multi-agent framework for CFD

arXiv: https://arxiv.org/abs/2407.21320 · HTML: https://mlsanity.com/paper/2407.21320/

## Key facts

- Cited by 39 papers in the map (data through 14 Oct 2026).
- Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use.
- Builds on 2 of its 11 references that are in the map.
- First posted on arXiv 31 Jul 2024.

## Placed in

- LLM agents and tool use / [Web, search, and research agents](https://mlsanity.com/agents/web-search-and-research-agents/)

## Builds on (most cited first, 2 of 2)

- [Large Language Models as Tool Makers](https://mlsanity.com/paper/2305.17126/) (2023)
- [Playing repeated games with Large Language Models](https://mlsanity.com/paper/2305.16867/) (2023)

## Built on by (most cited first, 30 of 39)

- [LLM-based Agentic Reasoning Frameworks: A Survey from Methods to Scenarios](https://mlsanity.com/paper/2508.17692/) (2025)
- [AI Agents in Engineering Design: A Multi-Agent Framework for Aesthetic and Aerodynamic Car Design](https://mlsanity.com/paper/2503.23315/) (2025)
- [Fine-tuning a Large Language Model for Automating Computational Fluid Dynamics Simulations](https://mlsanity.com/paper/2504.09602/) (2025)
- [Foam-Agent 2.0: An End-to-End Composable Multi-Agent Framework for Automating CFD Simulation in OpenFOAM](https://mlsanity.com/paper/2509.18178/) (2025)
- [MetaOpenFOAM 2.0: Large Language Model Driven Chain of Thought for Automating CFD Simulation and Post-Processing](https://mlsanity.com/paper/2502.00498/) (2025)
- [DeepSeek vs. ChatGPT vs. Claude: A Comparative Study for Scientific Computing and Scientific Machine Learning Tasks](https://mlsanity.com/paper/2502.17764/) (2025)
- [ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods](https://mlsanity.com/paper/2603.21011/) (2026)
- [Autonomous Agents for Scientific Discovery: Orchestrating Scientists, Language, Code, and Physics](https://mlsanity.com/paper/2510.09901/) (2025)
- [LLM Agent for Fire Dynamics Simulations](https://mlsanity.com/paper/2412.17146/) (2024)
- [ChatCFD: An LLM-Driven Agent for End-to-End CFD Automation with Structured Knowledge and Reasoning](https://mlsanity.com/paper/2506.02019/) (2025)
- [Using Large Language Models for Parametric Shape Optimization](https://mlsanity.com/paper/2412.08072/) (2024)
- [OptMetaOpenFOAM: Large Language Model Driven Chain of Thought for Sensitivity Analysis and Parameter Optimization based on CFD](https://mlsanity.com/paper/2503.01273/) (2025)
- [CFDLLMBench: A Benchmark Suite for Evaluating Large Language Models in Computational Fluid Dynamics](https://mlsanity.com/paper/2509.20374/) (2025)
- [Agentic Scientific Simulation: Execution-Grounded Model Construction and Reconstruction](https://mlsanity.com/paper/2603.00214/) (2026)
- [A Status Quo Investigation of Large Language Models towards Cost-Effective CFD Automation with OpenFOAMGPT: ChatGPT vs. Qwen vs. Deepseek](https://mlsanity.com/paper/2504.02888/) (2025)
- [Engineering.ai: A Platform for Teams of AI Engineers in Computational Design](https://mlsanity.com/paper/2511.00122/) (2025)
- [Towards LLM-enabled autonomous combustion research: A literature-aware agent for self-corrective modeling workflows](https://mlsanity.com/paper/2601.01357/) (2026)
- [SwarmFoam: An OpenFOAM Multi-Agent System Based on Multiple Types of Large Language Models](https://mlsanity.com/paper/2601.07252/) (2026)
- [SimulCost: A Cost-Aware Benchmark and Toolkit for Automating Physics Simulations with LLMs](https://mlsanity.com/paper/2603.20253/) (2026)
- [COSMO-Agent: Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestration](https://mlsanity.com/paper/2604.05547/) (2026)
- [AI CFD Scientist: Toward Open-Ended Computational Fluid Dynamics Discovery with Physics-Aware AI Agents](https://mlsanity.com/paper/2605.06607/) (2026)
- [MOOSEnger: A Simulation-Aware AI Agent Framework for the MOOSE Ecosystem](https://mlsanity.com/paper/2603.04756/) (2026)
- [SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Science](https://mlsanity.com/paper/2605.18630/) (2026)
- [Auto-Configuring Scientific Simulators with Lightweight Coding-Agent Adapters](https://mlsanity.com/paper/2606.09774/) (2026)
- [Reinforcement Learning with Verifiable Physics: Post-training LLMs with Continuous Rewards](https://mlsanity.com/paper/2607.10474/) (2026)
- [CFD-copilot: leveraging domain-adapted large language model and model context protocol to enhance simulation automation](https://mlsanity.com/paper/2512.07917/) (2025)
- [PhyNiKCE: A Neurosymbolic Agentic Framework for Autonomous Computational Fluid Dynamics](https://mlsanity.com/paper/2602.11666/) (2026)
- [AutoMS: Multi-Agent Evolutionary Search for Cross-Physics Inverse Microstructure Design](https://mlsanity.com/paper/2603.27195/) (2026)
- [TurboAgent: An LLM-Driven Autonomous Multi-Agent Framework for Turbomachinery Aerodynamic Design](https://mlsanity.com/paper/2604.06747/) (2026)
- [A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problems](https://mlsanity.com/paper/2606.00138/) (2026)

## Abstract (arXiv)

Remarkable progress has been made in automated problem solving through societies of agents based on large language models (LLMs). Computational fluid dynamics (CFD), as a complex problem, presents unique challenges in automated simulations that require sophisticated solutions. MetaOpenFOAM, as a novel multi-agent collaborations framework, aims to complete CFD simulation tasks with only natural language as input. These simulation tasks include mesh pre-processing, simulation and so on. MetaOpenFOAM harnesses the power of MetaGPT's assembly line paradigm, which assigns diverse roles to various agents, efficiently breaking down complex CFD tasks into manageable subtasks. Langchain further complements MetaOpenFOAM by integrating Retrieval-Augmented Generation (RAG) technology, which enhances the framework's ability by integrating a searchable database of OpenFOAM tutorials for LLMs. Tests on a benchmark for natural language-based CFD solver, consisting of eight CFD simulation tasks, have shown that MetaOpenFOAM achieved a high pass rate per test (85%), with each test case costing only 0.22 on average. The eight CFD simulation tasks encompass a range of multidimensional flow problems, covering compressible and incompressible flows with different physical processes. This demonstrates the capability to automate CFD simulations using only natural language input, iteratively correcting errors to achieve the desired simulations. An ablation study was conducted to verify the necessity of each component in the multi-agent system and the RAG technology. A sensitivity study on the randomness of LLM showed that LLM with low randomness can obtain more stable and accurate results. Additionally, MetaOpenFOAM owns the ability to identify and modify key parameters in user requirements, and excels in correcting bugs when failure match occur,which demonstrates the generalization of MetaOpenFOAM.
