Fine-tuning a Large Language Model for Automating Computational Fluid Dynamics Simulations
State Key Laboratory for Turbulence and Complex Systems, College of Engineering, Peking University, Beijing 100871, China(湍流与复杂系统国家重点实验室,工程学院,北京大学,北京100871,中国);HEDPS-CAPT, Peking University, Beijing 100871, China(HEDPS-CAPT,北京大学,北京100871,中国)
Configuring computational fluid dynamics (CFD) simulations typically demands extensive domain expertise, limiting broader access. Although large language models (LLMs) have advanced scientific computing, their use in automating CFD workflows is underdeveloped. We introduce a novel approach centered on domain-specific LLM adaptation. By fine-tuning Qwen2.5-7B-Instruct on NL2FOAM, our custom dataset of 28716 natural language-to-OpenFOAM configuration pairs with chain-of-thought (CoT) annotations, we enable direct translation from natural language descriptions to executable CFD setups. A multi-agent framework orchestrates the process, autonomously verifying inputs, generating configurations, running simulations, and correcting errors. Evaluation on a benchmark of 21 diverse flow cases demonstrates state-of-the-art performance, achieving 88.7% solution accuracy and 82.6% first-attempt success rate. This significantly outperforms larger general-purpose models like Qwen2.5-72B-Instruct, DeepSeek-R1, and Llama3.3-70B-Instruct, while also requiring fewer correction iterations and maintaining high computational efficiency. The results highlight the critical role of domain-specific adaptation in deploying LLM assistants for complex engineering workflows. Our code and fine-tuned model have been deposited at https://github.com/YYgroup/AutoCFD.
Foam-Agent: A Large Language Model-Based Multi-Agent Framework for Automating Computational Fluid Dynamics Workflows
Department of Computer Science, Rensselaer Polytechnic Institute(里士满理工学院计算机科学系);Department of Mechanical, Aerospace, and Nuclear Engineering, Rensselaer Polytechnic Institute(里士满理工学院机械、航空航天与核工程系);Department of Computer Science and Engineering, University of California San Diego(加州大学圣地亚哥分校计算机科学与工程系);College of Education, Zhejiang Normal University(浙江师范大学教育学院);School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院)
AutoPRM: Automating Procedural Supervision for Multi-Step Reasoning via Controllable Question Decomposition
University of Chicago(芝加哥大学);Peking University(北京大学);University of California, Berkeley(加州大学伯克利分校);Carnegie Mellon University(卡内基梅隆大学);UNC-Chapel Hill(北卡罗来纳大学教堂山分校)
SimulCost: A Cost-Aware Benchmark and Toolkit for Automating Physics Simulations with LLMs
University of California San Diego(加州大学圣地亚哥分校);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Peking University(北京大学);University of California, Los Angeles(加州大学洛杉矶分校);California Institute of Technology(加州理工学院);ETH Zurich(苏黎世联邦理工学院)
Automating Steering for Safe Multimodal Large Language Models
Zhejiang University(浙江大学);Zhejiang University - Ant Group Joint Lab of Knowledge Graph(浙江大学-蚂蚁集团知识图谱联合实验室);National University of Singapore, NUS-NCS Joint Lab(新加坡国立大学NUS-NCS联合实验室)
CFDLLMBench: A Benchmark Suite for Evaluating Large Language Models in Computational Fluid Dynamics
Rensselaer Polytechnic Institute(拉特格斯理工学院);University of California, San Diego(加州大学圣地亚哥分校);National Laboratory of the Rockies(落基山国家实验室);Pacific Northwest National Laboratory(太平洋西北国家实验室)
LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuning
Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Software, Tsinghua University(清华大学软件学院);Sinosoft Company Limited(中科软科技股份有限公司)