Fine-tuning a Large Language Model for Automating Computational Fluid Dynamics Simulations
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 18 of its 31 references that are in the map. First posted on arXiv 13 Apr 2025.
Builds on
18 of 31 references.
References · 18
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
- 2023Llemma: An Open Language Model For Mathematicscited by 388
6 more
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
- 2022Improving the Domain Adaptation of Retrieval Augmented Generation (RAG) Models for Open Domain Question Answeringcited by 127
- 2024CRUD-RAG: A Comprehensive Chinese Benchmark for Retrieval-Augmented Generation of Large Language Modelscited by 50
- 2024MetaOpenFOAM: an LLM-based multi-agent framework for CFDcited by 39
- 2025MetaOpenFOAM 2.0: Large Language Model Driven Chain of Thought for Automating CFD Simulation and Post-Processingcited by 13
- 2025A Status Quo Investigation of Large Language Models towards Cost-Effective CFD Automation with OpenFOAMGPT: ChatGPT vs. Qwen vs. Deepseekcited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 16.
18 papers.
Sort:
By area:
- 2026ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methodscited by 12
- 2026MDAgent2: Large Language Model for Code Generation and Knowledge Q&A in Molecular Dynamicscited by 7
- 2026Agentic Scientific Simulation: Execution-Grounded Model Construction and Reconstructioncited by 4
- 2025Engineering.ai: A Platform for Teams of AI Engineers in Computational Designcited by 3
- 2026Towards LLM-enabled autonomous combustion research: A literature-aware agent for self-corrective modeling workflowscited by 3
- 2026COSMO-Agent: Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestrationcited by 3
- 2026AI CFD Scientist: Toward Open-Ended Computational Fluid Dynamics Discovery with Physics-Aware AI Agentscited by 3
- 2026SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Sciencecited by 2
- 2025CFD-copilot: leveraging domain-adapted large language model and model context protocol to enhance simulation automationcited by 1
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generationcited by 1
- 2026Foundation-Model-Based Agents in Industrial Automation: Purposes, Capabilities, and Open Challengescited by 1
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problemscited by 1
6 more
- 2026Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategiescited by 1
- 2026A unified foundational framework for knowledge injection and evaluation of Large Language Models in Combustion Sciencecited by 0
- 2026Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestrationcited by 0
- 2026Automating structural reliability analysis with a multi-agent large language model frameworkcited by 0
- 2026Large language models for partial differential equation workflowscited by 0
- 2026LLM Agents Perform Controlled Experiments Using Simulation Modelscited by 0
- 2026LLM Agents Perform Controlled Experiments Using Simulation Models22 Aug 2026
- 2026Large language models for partial differential equation workflows4 Aug 2026
- 2026Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategies31 Jul 2026
- 2026Automating structural reliability analysis with a multi-agent large language model framework18 Jul 2026
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problems28 May 2026
- 2026SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Science18 May 2026
- 2026AI CFD Scientist: Toward Open-Ended Computational Fluid Dynamics Discovery with Physics-Aware AI Agents7 May 2026
- 2026Foundation-Model-Based Agents in Industrial Automation: Purposes, Capabilities, and Open Challenges4 May 2026
- 2026COSMO-Agent: Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestration7 Apr 2026
- 2026Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestration1 Apr 2026
- 2026A unified foundational framework for knowledge injection and evaluation of Large Language Models in Combustion Science27 Feb 2026
- 2026Agentic Scientific Simulation: Execution-Grounded Model Construction and Reconstruction27 Feb 2026
6 more
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generation12 Feb 2026
- 2026ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods8 Jan 2026
- 2026MDAgent2: Large Language Model for Code Generation and Knowledge Q&A in Molecular Dynamics5 Jan 2026
- 2026Towards LLM-enabled autonomous combustion research: A literature-aware agent for self-corrective modeling workflows4 Jan 2026
- 2025CFD-copilot: leveraging domain-adapted large language model and model context protocol to enhance simulation automation8 Dec 2025
- 2025Engineering.ai: A Platform for Teams of AI Engineers in Computational Design31 Oct 2025
- 2026ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methodscited by 12
- 2026Agentic Scientific Simulation: Execution-Grounded Model Construction and Reconstructioncited by 4
- 2026Towards LLM-enabled autonomous combustion research: A literature-aware agent for self-corrective modeling workflowscited by 3
- 2026COSMO-Agent: Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestrationcited by 3
- 2026AI CFD Scientist: Toward Open-Ended Computational Fluid Dynamics Discovery with Physics-Aware AI Agentscited by 3
- 2025CFD-copilot: leveraging domain-adapted large language model and model context protocol to enhance simulation automationcited by 1
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generationcited by 1
- 2026Foundation-Model-Based Agents in Industrial Automation: Purposes, Capabilities, and Open Challengescited by 1
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problemscited by 1
- 2026Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestrationcited by 0
- 2026Automating structural reliability analysis with a multi-agent large language model frameworkcited by 0
- 2026LLM Agents Perform Controlled Experiments Using Simulation Modelscited by 0
- 2026LLM Agents Perform Controlled Experiments Using Simulation Models22 Aug 2026
- 2026Automating structural reliability analysis with a multi-agent large language model framework18 Jul 2026
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problems28 May 2026
- 2026AI CFD Scientist: Toward Open-Ended Computational Fluid Dynamics Discovery with Physics-Aware AI Agents7 May 2026
- 2026Foundation-Model-Based Agents in Industrial Automation: Purposes, Capabilities, and Open Challenges4 May 2026
- 2026COSMO-Agent: Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestration7 Apr 2026
- 2026Tool-Augmented Agent for Closed-loop Optimization,Simulation,and Modeling Orchestration1 Apr 2026
- 2026Agentic Scientific Simulation: Execution-Grounded Model Construction and Reconstruction27 Feb 2026
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generation12 Feb 2026
- 2026ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods8 Jan 2026
- 2026Towards LLM-enabled autonomous combustion research: A literature-aware agent for self-corrective modeling workflows4 Jan 2026
- 2025CFD-copilot: leveraging domain-adapted large language model and model context protocol to enhance simulation automation8 Dec 2025
- 2026MDAgent2: Large Language Model for Code Generation and Knowledge Q&A in Molecular Dynamicscited by 7
- 2025Engineering.ai: A Platform for Teams of AI Engineers in Computational Designcited by 3
- 2026SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Sciencecited by 2
- 2026Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategiescited by 1
- 2026A unified foundational framework for knowledge injection and evaluation of Large Language Models in Combustion Sciencecited by 0
- 2026Large language models for partial differential equation workflowscited by 0
- 2026Large language models for partial differential equation workflows4 Aug 2026
- 2026Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategies31 Jul 2026
- 2026SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Science18 May 2026
- 2026A unified foundational framework for knowledge injection and evaluation of Large Language Models in Combustion Science27 Feb 2026
- 2026MDAgent2: Large Language Model for Code Generation and Knowledge Q&A in Molecular Dynamics5 Jan 2026
- 2025Engineering.ai: A Platform for Teams of AI Engineers in Computational Design31 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Foam-Agent: A Large Language Model-Based Multi-Agent Framework for Automating Computational Fluid Dynamics Workflows
- 2025ChatCFD: An LLM-Driven Agent for End-to-End CFD Automation with Structured Knowledge and Reasoning
- 2026AutoFOAM: The Self-Refining Autonomous OpenFOAM Agent
- 2025OptMetaOpenFOAM: Large Language Model Driven Chain of Thought for Sensitivity Analysis and Parameter Optimization based on CFD
- 2024FLUID-LLM: Learning Computational Fluid Dynamics with Spatiotemporal-aware Large Language Models
- 2025Foam-Agent 2.0: An End-to-End Composable Multi-Agent Framework for Automating CFD Simulation in OpenFOAM
- 2025Automating Data-Driven Modeling and Analysis for Engineering Applications using Large Language Model Agents
- 2026Full-Stack Domain Enhancement for Combustion LLMs: Construction and Optimization