CFD Forge: A Physics-Constrained Agentic Framework for Autonomous CFD
Abstract
Setting up, running, and assessing a computational fluid dynamics (CFD) simulation requires substantial manual effort, from meshing and solver setup to diagnosis and interpretation, and repeating it across design variants slows engineering iteration. We present CFD Forge, an agentic framework built around OpenFOAM that carries an engineering request through case construction, meshing, solver execution, diagnostics, and reporting. A large language model interprets the request, reads the simulation evidence, identifies likely causes of problems, and proposes actions from a closed set. Automation is only useful if its results can be trusted, so acceptance is not left to the model: deterministic checks, registered for each type of flow, measure explicit criteria and decide. We demonstrate the framework on a converging-diverging nozzle and a two-dimensional forward-facing step, including geometry and operating changes requested in text. A turbulent cube, run outside the agent loop, shows why the checks matter: the solver completed and the mean drag settled, but the lateral-force oscillations were still growing, so a retrospective assessment withheld acceptance. To test this separation, we replayed 36 recorded simulation states, some with deliberately altered diagnostics, through the same model in two setups. Judging from the evidence without the check results, the model accepted 12 of the 13 detectable faults in all three repeats; with CFD Forge's checks deciding, none was accepted. The two setups also differ in prompting, and a fixed rule reached the same verdicts, so the model's value lies in the open-ended work rather than the verdict. Case files, recorded model calls, and decisions are retained for audit. A model that does the work, paired with checks that decide what is accepted, is a step toward automated CFD that can be trusted in high-throughput design and active-learning loops.
Create a lesson
Metadata
- Comments
- 32 pages, 12 figures, 12 tables. Code: https://github.com/aakashoza31/physics-constrained-cfd-agent ; data: https://doi.org/10.5281/zenodo.23148676
Related papers
Physics-Constrained Symbolic Regression for Mean-Velocity and Mixing-Length Scaling in Zero-Pressure-Gradient Turbulent Boundary Layers
Shared title terminologyphysics.flu-dynXianglin Shan, Weiwei Zhang
Only Linear Constraints Survive Coarse-Graining: Evaluating Physics-Constrained Neural Operators on Stochastically Forced Turbulence
Shared title terminologyphysics.flu-dynMichael Groom, Rafael Oliveira
Construction of a Deployable Closure Model for the Transport of Turbulence Dissipation Rate with Hard-Constrained Physics-Informed Machine Learning
Shared title terminologyphysics.flu-dynTamerlan Hajiyev, Emre Sefer, Ivan Otić et al.
Flow Mesh: A Velocity-Regularized Flow Matching Framework for Stable Distributional Modeling of Physical Fields on Unstructured Meshes
Shared title terminologyphysics.flu-dynSiddharth Verma, Jaewan Park, Jay Phil Yoo et al.
Automated Discovery of Physically Interpretable Subgrid Length Scales for Detached Eddy Simulation via Agentic AI
Shared title terminologyphysics.flu-dynJiawei Chen, Xiang I. A. Yang, Ping He
Dopamine: A Cartesian grid large-eddy-simulation framework for coastal ocean modelling of free-surface waves
Shared title terminologyphysics.flu-dynAkshay Patil