MetaOpenFOAM:一个基于大语言模型的多智能体计算流体力学框架
MetaOpenFOAM: an LLM-based multi-agent framework for CFD
AI总结:
MetaOpenFOAM 提出基于大语言模型的多智能体框架,以自然语言输入自动完成 CFD 模拟任务,结合 MetaGPT 装配线分工与 RAG 检索增强,在八项基准测试中取得 85% 通过率并具备错误修正与参数识别能力。
摘要:
基于大语言模型(LLMs)的智能体社会在自动化问题求解方面已经取得了显著进展。计算流体力学(CFD)作为一个复杂问题,在需要精细解决方案的自动化模拟中提出了独特挑战。MetaOpenFOAM 作为一个新颖的多智能体协作框架,旨在仅以自然语言作为输入来完成 CFD 模拟任务。这些模拟任务包括网格预处理、模拟等。MetaOpenFOAM 利用 MetaGPT 的装配线范式,将不同角色分配给各个智能体,从而高效地将复杂 CFD 任务分解为可管理的子任务。Langchain 通过集成检索增强生成(RAG)技术进一步补充了 MetaOpenFOAM,该技术通过为 LLMs 集成一个可搜索的 OpenFOAM 教程数据库来增强框架的能力。在一个由八个 CFD 模拟任务组成的基于自然语言的 CFD 求解器基准上的测试表明,MetaOpenFOAM 在每个测试上取得了较高的通过率(85%),每个测试用例平均仅花费 0.22 美元。这八个 CFD 模拟任务涵盖了一系列多维流动问题,覆盖了具有不同物理过程的可压缩和不可压缩流动。这表明了仅使用自然语言输入即可自动化 CFD 模拟的能力,并通过迭代纠正错误来实现所需的模拟。进行了消融研究以验证多智能体系统和 RAG 技术中每个组件的必要性。对 LLM 随机性的敏感性研究表明,具有低随机性的 LLM 可以获得更稳定和准确的结果。此外,MetaOpenFOAM 拥有识别和修改用户需求中关键参数的能力,并且在出现失败匹配时擅长纠正错误,这展示了 MetaOpenFOAM 的泛化能力。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。