Search arXiv⌕ Search

arXiv · 2610.14104

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Aakash Shailesh Oza, Ryan F. Johnson, Amir Barati Farimani. 2026-10-08. CFD Forge: A Physics-Constrained Agentic Framework for Autonomous CFD. https://arxiv.org/abs/2610.14104

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Tandem jets in crossflow: a one-parameter dilution law for the trajectory and the velocity decay

The front jet of a tandem pair in crossflow is not passive. This paper treats the mean-flow phenomenology and its scaling; the mechanism is left to the companion paper. In 40\ kHz time-resolved PIV measurements covering nine spacing--velocity-ratio conditions ($L=2d$, $3d$, $4d$; $r\approx3$, $5$, $7$) and a single-jet baseline, the front-jet $rd$-normalized trajectory lies below the single-jet reference in every condition (near-field segment up to 40\% shorter), while the shielded rear jet rises above the reference in eight of the nine and penetrates $1.4$--$2.0$ times deeper than the front jet. The mean pressure and reverse-flow statistics are inconsistent with the two classical explanations: the inter-jet region is pressurized rather than sub-atmospheric, the lateral pressure difference across the front jet is weakened rather than enhanced (within reconstruction uncertainty), and the reverse-flow region does not follow the ordering of the modification. In natural coordinates the centerline decay re-scales onto the single-jet law at the effective velocity ratio (seven of nine within 18\%), so bending and decay are two readouts of one dilution, which whole-trajectory matching condenses into the one-parameter law $r_{\mathrm{eff}}/r=r/(r+c)$, $c=3.31$, with the velocity ratio as the primary control and the spacing entering through the near-field capacity ($c_h=2.50$--$3.30$). The law has one fitted constant and needs only the single-jet reference family; leave-one-condition-out predictions reproduce each held-out condition within 15\%, so the procedure is portable to any tandem array in which the gap recirculation closes.

physics.flu-dyn↗

On buoyancy in disperse two-phase flow and its impact on the well-posedness of two-fluid models

The Maxey--Riley--Gatignol equation for the flow around a sphere at low particle Reynolds number tells us that the fluid-particle interaction force decomposes into a contribution from the local flow disturbance caused by the particle's boundary---consisting of the drag, virtual-mass, and history forces, and their Faxén corrections---and another contribution from the stress of the background flow, termed generalized-buoyancy force. There is also a consensus that, for general disperse two-phase flow, the interfacial force density, coupling the average fluid phase and dispersed-phase momentum balances, decomposes in a like manner. However, there has been a long-standing controversy about the physical closure separating the generalized-buoyancy from the interfacial force density, especially whether or not pseudo-stresses, such as the Reynolds stress, should be attributed to the background flow. Furthermore, most existing propositions for this closure involve small-particle approximations. Here, we show that all existing buoyancy closures are inconsistent with particle-resolving numerical simulations and/or at least one of two simple thought experiments designed to determine the roles of pseudo-stresses and small-particle approximations. We then derive the unique consistent closure. It requires no approximation and implies that all stresses and pseudo-stresses in the average fluid phase momentum balance, except the Reynolds stress, fully contribute to the background flow responsible for buoyancy. Remarkably, it exhibits a low-pass filter property, attenuating buoyancy at short wavelengths, that prevents it from causing Hadamard instabilities, constituting a first-principles-based solution to the long-standing ill-posedness problem of two-fluid models. When employing the derived closure, even simplistic two-fluid models are linearly well-posed.

physics.flu-dyn↗

Global non-equilibrium thermodynamics of stationary states applied to the Rayleigh-Bénard convection

Classical thermodynamics describes physical systems in thermodynamic equilibrium, characterized in particular by the absence of macroscopic motion. Global non-equilibrium thermodynamics extends this framework to include physical systems in stationary states (Hołyst et al., EPL 149, 30001 (2025)). Here, we demonstrate that this extended theory captures macroscopic motion in stationary states, thereby providing a unified framework for global thermodynamics and fluid mechanics. We apply the theory to stationary Rayleigh-Bénard convection and show how the second law of global non-equilibrium thermodynamics determines the direction of changes in fluid motion.

physics.flu-dyn↗