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.22onaverage.TheeightCFDsimulationtasksencompassarangeofmultidimensionalflowproblems,coveringcompressibleandincompressibleflowswithdifferentphysicalprocesses.ThisdemonstratesthecapabilitytoautomateCFDsimulationsusingonlynaturallanguageinput,iterativelycorrectingerrorstoachievethedesiredsimulations.Anablationstudywasconductedtoverifythenecessityofeachcomponentinthemulti−agentsystemandtheRAGtechnology.AsensitivitystudyontherandomnessofLLMshowedthatLLMwithlowrandomnesscanobtainmorestableandaccurateresults.Additionally,MetaOpenFOAMownstheabilitytoidentifyandmodifykeyparametersinuserrequirements,andexcelsincorrectingbugswhenfailurematchoccur,whichdemonstratesthegeneralizationofMetaOpenFOAM.