arXiv:2412.17146cs.AIphysics.flu-dyn2024-12被引 12

用大模型助手自动配置火灾模拟,提升科研效率。

LLM Agent for Fire Dynamics Simulations

  • 基于大模型的智能代理,理解自然语言指令。
  • 支持代码查询、模拟设置与高算力环境执行,准确率超80%。
  • 适合不熟悉代码的工程师快速上手复杂火灾模拟。

本文提出 FoamPilot,一个面向火场动力学仿真工具 FireFOAM(基于 OpenFOAM)的 LLM 代理原型。该代理具备三项核心功能:代码洞察、案例配置与仿真评估。代码洞察利用检索增强生成(RAG)替代传统关键词搜索,帮助开发者高效导航和总结 FireFOAM 源码;案例配置通过解析自然语言请求,自动修改已有仿真设置,服务于中级用户;作业执行功能可管理高性能计算(HPC)环境中的仿真提交与运行,并提供初步结果分析,支持初级用户。在简单任务中表现良好,复杂任务仍有较大提升空间。将多项功能集成于单一代理,是加速工程师与科研人员使用 FireFOAM 进行复杂火灾安全仿真的重要一步。

原文摘要 · Abstract (English)

Significant advances have been achieved in leveraging foundation models, such as large language models (LLMs), to accelerate complex scientific workflows. In this work we introduce FoamPilot, a proof-of-concept LLM agent designed to enhance the usability of FireFOAM, a specialized solver for fire dynamics and fire suppression simulations built using OpenFOAM, a popular open-source toolbox for computational fluid dynamics (CFD). FoamPilot provides three core functionalities: code insight, case configuration and simulation evaluation. Code insight is an alternative to traditional keyword searching leveraging retrieval-augmented generation (RAG) and aims to enable efficient navigation and summarization of the FireFOAM source code for developers and experienced users. For case configuration, the agent interprets user requests in natural language and aims to modify existing simulation setups accordingly to support intermediate users. FoamPilot's job execution functionality seeks to manage the submission and execution of simulations in high-performance computing (HPC) environments and provide preliminary analysis of simulation results to support less experienced users. Promising results were achieved for each functionality, particularly for simple tasks, and opportunities were identified for significant further improvement for more complex tasks. The integration of these functionalities into a single LLM agent is a step aimed at accelerating the simulation workflow for engineers and scientists employing FireFOAM for complex simulations critical for improving fire safety.

大模型应用火灾模拟科学计算

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。