OptMetaOpenFOAM:基于CFD的大语言模型驱动的思维链用于敏感性分析与参数优化
OptMetaOpenFOAM: Large Language Model Driven Chain of Thought for Sensitivity Analysis and Parameter Optimization based on CFD
AI总结:
本研究提出OptMetaOpenFOAM框架,利用大语言模型驱动的思维链连接MetaOpenFOAM与外部工具库,通过自然语言输入自动化CFD敏感性分析与参数优化,显著提升非专家用户的使用效率。
摘要:
将自然语言界面与计算流体力学(CFD)工作流相结合,为工业界和学术界带来了变革性机遇。在本研究中,我们提出了OptMetaOpenFOAM——一种新颖的框架,通过大语言模型(LLM)驱动的思维链(COT)方法,将MetaOpenFOAM与外部分析和优化工具库连接起来。通过自然语言输入自动化复杂的CFD任务,该框架使非专家用户能够以显著提高的效率执行敏感性分析和参数优化。测试数据集包含11个不同的CFD分析或优化任务,其中包括一个源自OpenFOAM教程的基线模拟任务,涵盖流体力学、燃烧和传热。结果证实,OptMetaOpenFOAM能够准确解释自然语言表达的用户需求,并有效调用外部工具库及MetaOpenFOAM以完成任务。此外,在非OpenFOAM教程案例(即氢燃烧室)上的验证表明,仅需200个字符的自然语言输入即可触发涵盖超过2,000行代码的一系列模拟、后处理、分析和优化任务。这些发现凸显了LLM驱动的COT方法在连接外部工具以进行高级分析和优化方面的变革性潜力,使OptMetaOpenFOAM成为一种有效的工具,简化了CFD模拟,提升了其在工业和研究应用中的便利性和效率。代码可在https://github.com/Terry-cyx/MetaOpenFOAM获取。
英文摘要:
Merging natural language interfaces with computational fluid dynamics (CFD) workflows presents transformative opportunities for both industry and research. In this study, we introduce OptMetaOpenFOAM - a novel framework that bridges MetaOpenFOAM with external analysis and optimization tool libraries through a large language model (LLM)-driven chain-of-thought (COT) methodology. By automating complex CFD tasks via natural language inputs, the framework empowers non-expert users to perform sensitivity analyses and parameter optimizations with markedly improved efficiency. The test dataset comprises 11 distinct CFD analysis or optimization tasks, including a baseline simulation task derived from an OpenFOAM tutorial covering fluid dynamics, combustion, and heat transfer. Results confirm that OptMetaOpenFOAM can accurately interpret user requirements expressed in natural language and effectively invoke external tool libraries alongside MetaOpenFOAM to complete the tasks. Furthermore, validation on a non-OpenFOAM tutorial case - namely, a hydrogen combustion chamber - demonstrates that a mere 200-character natural language input can trigger a sequence of simulation, postprocessing, analysis, and optimization tasks spanning over 2,000 lines of code. These findings underscore the transformative potential of LLM-driven COT methodologies in linking external tool for advanced analysis and optimization, positioning OptMetaOpenFOAM as an effective tool that streamlines CFD simulations and enhances their convenience and efficiency for both industrial and research applications. Code is available at https://github.com/Terry-cyx/MetaOpenFOAM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。