OpenFOAMGPT: A retrieval-augmented large language model (LLM) agent for OpenFOAM-based computational fluid dynamics

物理 计算流体力学 流体力学 动力学(音乐) 统计物理学 机械 经典力学 计算科学 计算机科学 声学
作者
Sandeep Pandey,Ran Xu,Wenkang Wang,Xu Chu
出处
期刊:Physics of Fluids [American Institute of Physics]
卷期号:37 (3) 被引量:28
标识
DOI:10.1063/5.0257555
摘要

This work presents a large language model (LLM)-based agent OpenFOAMGPT tailored for OpenFOAM-centric computational fluid dynamics (CFD) simulations, leveraging two foundation models from OpenAI: the GPT-4o (GPT means Generative Pre-trained Transformer) and a chain-of-thought–enabled o1 preview model. Both agents demonstrate success across multiple tasks. While the price of token with o1 model is six times as that of GPT-4o, it consistently exhibits superior performance in handling complex tasks, from zero-shot/few-shot case setup to boundary condition modifications, zero-shot turbulence model adjustments, and zero-shot code translation. Through an iterative correction loop, the agent efficiently addressed single-phase and multiphase flow, heat transfer, Reynolds-averaged Navier–Stokes modeling, large eddy simulation, and other engineering scenarios, often converging in a limited number of iterations at low token costs. To embed domain-specific knowledge, we employed a retrieval-augmented generation pipeline, demonstrating how preexisting simulation setups can further specialize the agent for subdomains such as energy and aerospace. Despite the great performance of the agent, human oversight remains crucial for ensuring accuracy and adapting to shifting contexts. Fluctuations in model performance over time suggest the need for monitoring in mission-critical applications. Although our demonstrations focus on OpenFOAM, the adaptable nature of this framework opens the door to developing LLM-driven agents into a wide range of solvers and codes. By streamlining CFD simulations, this approach has the potential to accelerate both fundamental research and industrial engineering advancements.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
陶醉完成签到,获得积分10
刚刚
zxx完成签到,获得积分10
1秒前
JamesPei应助诚心凌珍采纳,获得10
1秒前
哈哈鬼应助kkk采纳,获得10
1秒前
无奈世立完成签到,获得积分10
1秒前
1秒前
1秒前
LSD完成签到,获得积分10
2秒前
Lil_Bear完成签到,获得积分10
2秒前
张欢馨应助Dong采纳,获得10
2秒前
3秒前
xlkz完成签到,获得积分10
3秒前
4秒前
BecksTse完成签到 ,获得积分10
4秒前
悸动完成签到 ,获得积分10
4秒前
帅气鹰完成签到,获得积分10
4秒前
ding应助卓儿采纳,获得10
4秒前
小柠檬完成签到,获得积分10
5秒前
ZLongevity完成签到 ,获得积分10
5秒前
MrX完成签到,获得积分10
5秒前
leeeeeeee完成签到 ,获得积分10
5秒前
超级丝发布了新的文献求助10
5秒前
AliHamid完成签到,获得积分20
6秒前
6秒前
cc完成签到,获得积分10
6秒前
希望天下0贩的0应助惠_____采纳,获得50
7秒前
7秒前
科研通AI6.3应助徐5V采纳,获得10
7秒前
hiimsakura完成签到,获得积分10
8秒前
8秒前
Sherry完成签到,获得积分10
8秒前
霸王爱吃面完成签到,获得积分10
8秒前
博修完成签到,获得积分10
8秒前
温柔的夜柳完成签到,获得积分10
8秒前
土豪的钻石完成签到,获得积分20
9秒前
脑洞疼应助辞忧采纳,获得10
9秒前
晴空发布了新的文献求助10
9秒前
xlkz发布了新的文献求助10
9秒前
9秒前
积极的猎豹完成签到 ,获得积分10
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Römisch-Germanische Forschungen 1000
APA handbook of comparative psychology: Basic concepts, methods, neural substrate, and behavior 1000
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
An introduction of AMSTAR-2: a quality assessment instrument of systematic reviews including randomized or non-randomized controlled trials or both 500
An introduction to a measurement tool to assess the methodological quality of systematic reviews/meta-analysis: AMSTAR 500
The formulation methods and steps of umbrella review 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7606222
求助须知:如何正确求助?哪些是违规求助? 9182028
关于积分的说明 19664789
捐赠科研通 7180459
什么是DOI,文献DOI怎么找? 3269538
关于科研通互助平台的介绍 2433514
邀请新用户注册赠送积分活动 2263764