Searcharxiv⌕ 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

Lacunarity in a Two-Dimensional Atomizing Liquid Jet

Atomization stretches and folds the liquid--gas interface before fragmenting it into ligaments and droplets, making fractal measures a natural descriptor of the lacunarity of the final breakup state. We examine this idea in two-dimensional (2D) VOF-DNS of a liquid jet with adaptive mesh refinement in Basilisk. Box-counting of the full resolved interface does not yield a single scale-independent exponent. Instead, two scaling ranges appear, separated by a crossover near the box-counting level \(L_{\mathrm{box}}\simeq7\): coarser boxes measure the folded connected jet envelope, whereas finer boxes increasingly sample ligaments, droplets, and nearly smooth local interface segments. Decomposing the interface into detached droplets, ligaments, and the connected main body shows that the relevant effective dimension is structure dependent. Droplets are most lacunar with dimension below one, ligaments occupy an intermediate level, and the main body carries the largest coarse-scale dimension. This hierarchy persists over $Re_l=100$--$10^4$ at fixed $\We_g=200$. The lacunarity of droplets is reminiscent of that of the object positions in the night sky hypothesized by de Vaucouleurs.

physics.flu-dyn↗

Generalizable turbulence closures across bluff-body shapes by PINN-based solver-agnostic training

Data-driven turbulence closures are commonly calibrated by embedding a CFD solver within an inverse procedure that requires a converged flow solution at every optimization iteration, which is fragile and costly. We instead formulate closure identification as a PDE-constrained, data-driven inverse problem within a physics-informed neural network (PINN), and subsequently stabilize the inferred closure for deployment in a numerical solver. This separation eliminates the training cost of repeated CFD solves and associated adjoint or ensemble evaluations, providing substantial flexibility to investigate alternative closure forms. Using this flexibility, we develop four closures: three model the Reynolds stress on a realizable tensor basis---a local map, a non-local model transporting the turbulent kinetic energy and recovering the out-of-plane normal stress, and the same with a learned length scale $\ell$---and a fourth models the Reynolds force $\mathbf{F}=-\nabla\cdot\boldsymbolτ$ directly, free of the realizability constraint. All four are trained across six two-dimensional bluff-body wakes at $Re=10^4$ and deployed frozen in a standard finite-element solver, stabilized primarily by input-gradient smoothing. Under a strict leave-one-shape-out (LOSO) protocol, all four reduce the field errors of a steady SST $k$-$ω$ baseline, most strongly on the mean velocity. The learned-length-scale closure is most accurate on the stress fields, while the force model generalizes best on the mean velocity and drag (LOSO drag error $\sim 7\%$). The closures also train efficiently on Particle Image Velocimetry data, enabling geometries intractable for DNS.

physics.flu-dyn↗

Effect of leading edge geometry on aerodynamic performance of a flat plate

Flow separation around flat plate is influenced by the thickness and leading edge geometry, which creates the shear stresses and pressure distribution manifesting into unsteady aerodynamic forces. Leading edge geometries have been widely reported but the influence of leading edge curvature at low Reynolds numbers (Re) have found less attention. The present study uses two dimensional numerical simulation to investigate the effect of a hemispherical curvature (protuberance) at the leading edge and reports how vortex shedding, shedding frequencies and aerodynamic forces are affected over a range of angles of attack ($0^\circ \leq α\leq 25^\circ$) at Re = 1000. Thicker vortical regions are formed near the plate with curvature at the leading edge. Onset of shedding is noted at angle of attack of $5^\circ$ for the plate with curvature at the leading edge and it gets delayed for simple flat plate. The temporal force coefficients on the plates show multiple frequencies at higher angles of attack. The plate with curvature at the leading edge has a glide ratio of 1 at $0^\circ$ angle of attack and has equivalent glide ratio to that of simple flat plate at higher angles of attack. The simple flat plate has better glide ratios at moderate angles of attack like $5^\circ, 10^\circ$ and $15^\circ$. The results will help in making engineering informed design decisions for smaller unmanned aerial/aquatic vehicles cruising at low Reynolds numbers.

physics.flu-dyn↗