MetaOpenFOAM 2.0:大语言模型驱动的思维链用于自动化CFD仿真与后处理
MetaOpenFOAM 2.0: Large Language Model Driven Chain of Thought for Automating CFD Simulation and Post-Processing
AI总结:
MetaOpenFOAM 2.0通过思维链分解与迭代验证,以自然语言驱动CFD仿真与后处理自动化,在基准测试中显著超越前代并保持低成本。
摘要:
计算流体动力学(CFD)广泛应用于航空航天、能源和生物领域,用于模拟流体流动、传热和化学反应。尽管大语言模型(LLMs)已经变革了多个领域,但它们在CFD中的应用仍然有限,尤其是在后处理等复杂任务中。为了弥合这一差距,我们提出了MetaOpenFOAM 2.0,它利用思维链(COT)分解和迭代验证,通过自然语言输入提升非专家用户的可访问性。在一个涵盖仿真(流体流动、传热、燃烧)和后处理(提取、可视化)的新基准上测试,MetaOpenFOAM 2.0取得了6.3/7的可执行性得分和86.9%的通过率,显著优于MetaOpenFOAM 1.0(2.1/7,0%)。此外,它被证明具有成本效益,平均每个案例花费0.15美元。消融研究证实,COT驱动的分解和迭代细化显著提升了任务性能。此外,缩放定律表明,增加COT步骤在提高准确性的同时增加了token使用量,这与LLM后训练缩放趋势一致。这些结果凸显了LLM在自动化为工业和研究应用服务的CFD工作流方面的变革潜力。代码可在https://github.com/Terry-cyx/MetaOpenFOAM获取。
英文摘要:
Computational Fluid Dynamics (CFD) is widely used in aerospace, energy, and biology to model fluid flow, heat transfer, and chemical reactions. While Large Language Models (LLMs) have transformed various domains, their application in CFD remains limited, particularly for complex tasks like post-processing. To bridge this gap, we introduce MetaOpenFOAM 2.0, which leverages Chain of Thought (COT) decomposition and iterative verification to enhance accessibility for non-expert users through natural language inputs. Tested on a new benchmark covering simulation (fluid flow, heat transfer, combustion) and post-processing (extraction, visualization), MetaOpenFOAM 2.0 achieved an Executability score of 6.3/7 and a pass rate of 86.9%, significantly outperforming MetaOpenFOAM 1.0 (2.1/7, 0%). Additionally, it proved cost-efficient, averaging $0.15 per case. An ablation study confirmed that COT-driven decomposition and iterative refinement substantially improved task performance. Furthermore, scaling laws showed that increasing COT steps enhanced accuracy while raising token usage, aligning with LLM post-training scaling trends. These results highlight the transformative potential of LLMs in automating CFD workflows for industrial and research applications. Code is available at https://github.com/Terry-cyx/MetaOpenFOAM
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。