WorksPhysics and Astronomy
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.
Introduction
Computational fluid dynamics (CFD) is central to engineering analysis, but obtaining a useful result requires a sequence of decisions and operations. An analyst prepares a CAD model or parameterized geometry, defines the domain, generates a mesh, selects physical models, and assigns boundary and initial conditions. Solver execution is then followed by diagnostics and interpretation, with the final aim of reporting results that range from scientific discovery to engineering decisions. Although individual steps can be scripted, coordinating them requires extensive experience, so much so that the need for workflow automation was identified in the NASA CFD Vision 2030 study to support routine computational analysis and design [1]. The effort required for CFD analysis creates a bottleneck in high-throughput screening and iterative design, where many geometries or operating conditions must be evaluated consistently [2, 3]. A programmable CFD workflow could translate an engineering objective into a sequence of reusable operations and return simulation results with an interpretation of their significance. System response quantities, such as drag, lift, or pressure loss, could then guide subsequent evaluations within an active-learning or optimization loop, as illustrated by recent work on language-model-assisted CFD optimization [4].
Large language models (LLMs) offer a way to coordinate such operations through natural-language interpretation, reasoning, and tool use [5, 6], supported by retrieval of technical information [7]. OpenFOAM [8] provides an accessible, open-source CFD framework with a programmable interface that facilitates integration with LLM-based approaches. Several agents now generate and run OpenFOAM cases from natural language: MetaOpenFOAM and MetaOpenFOAM 2.0 [9, 10], OpenFOAMGPT and OpenFOAMGPT 2.0 [11, 12], fine-tuned case generators [13], Foam-Agent [14], and ChatCFD [15]. Their evaluations mainly measure whether a generated case executes and how closely its configuration or its computed fields match a reference. A run is treated as successful when the solver finishes without error or reports convergence, or when an LLM or a human reviewer judges the result. Language-guided multi-agent automation has also been applied to complex flow simulation [16]. Two recent systems address physical correctness more directly. PhyNiKCE separates neural planning from symbolic constraint enforcement: before the LLM writes the case files, it retrieves configuration templates, boundary-condition knowledge, and solver constraints that are consistent with the requested physics [17]. AI CFD Scientist adds checks after execution, a mesh-independence gate and a vision-language physics check, and it evaluates the visual check on deliberately planted failures [18].
In this work, we introduce CFD Forge, an agentic framework for OpenFOAM built on one central idea: the language model should not decide whether a CFD result is acceptable. Most of the CFD agents described in the previous paragraph treat a run that executes without error as a success and score its accuracy afterwards, or leave the judgment to a language model or a person; AI CFD Scientist adds a mesh-independence gate, but its physics verdict still comes from a vision-language model (Table 1). CFD Forge instead makes acceptance a deterministic, physics-based decision. Each kind of flow it handles, such as the nozzle or the forward-facing step, is registered as a flow family with its own acceptance contract: a fixed set of numerical checks, including tests for flows that have not yet become statistically steady and for mass conservation in transient runs. Only that contract can return ACCEPT, REJECT, or INCONCLUSIVE. The model does the open-ended work, but its corrections come from a closed list and a validator can refuse them, including a premature ACCEPT. We test this split directly, using planted faults that a model judging alone accepted almost every time. Starting from a plain-language engineering request, CFD Forge builds the case, generates the mesh, runs the solver, diagnoses the result, and reports what it found, using an LLM to plan and propose while deterministic code carries out each step and checks the result. This division of labor builds on simulation agents developed for structural design [19], protein molecular dynamics (MD) [20], and adsorption calculations [21]. The closest precedent is PolyJarvis [22], which executes all-atom polymer MD using a validated run plan, deterministic stage scripts, and equilibration gates. It invokes a recovery agent only when structured failures occur, with a fixed decision budget and a closed set of recovery actions. CFD Forge extends this approach to CFD, including validator-controlled mesh refinement. Whereas MeshDQN uses reinforcement learning to coarsen a mesh while preserving a target quantity [23], CFD Forge restricts mesh changes to bounded refinements that follow a registered rule, are proposed by the model, and require validator approval.
CFD Forge thus occupies a complementary design point. Separating model proposals from deterministic checks is not new, and we do not claim it as such. What this paper contributes is how that separation is built and tested for CFD acceptance, summarized at the end of this section.
| System | Acceptance decided by | Registered numerical criteria | Bounded actions with deterministic veto | Development or stationarity test | Transient mass balance | Evaluation reported |
| MetaOpenFOAM 2.0 [10] | Execution checks, then LLM reviewer, then human judgment | – | – | – | – | 13 requests, 10 runs each, ablation |
| OpenFOAMGPT 2.0 [12] | Error-free completion | – | – | – | – | Case studies, over 450 simulations |
| Foam-Agent [14] | Error-free execution; field-level fidelity scored afterwards | – | – | – | – | 110 basic and 16 advanced tasks with field-level fidelity |
| ChatCFD [15] | Error-free, converged execution; fidelity scored afterwards | – | – | – | – | 315 cases with fidelity scoring |
| PhyNiKCE [17] | Execution without failure; accuracy scored afterwards | – | – | – | – | 13 setups, repeated runs, ablation |
| AI CFD Scientist [18] | Vision-language verdict with a mesh-independence flag | Partial (mesh threshold only) | – (rerun controller revises the request) | – | – | 5 tasks; 16 planted failures |
| PolyJarvis [22] (MD) | Deterministic gates | ✓ | ✓ (recovery set, fixed budget) | ✓ (drift, block error) | n/a | 7 polymers, 3 replicates, vs. experiment |
| CFD Forge | Deterministic family contract | ✓ | ✓ (per-family vocabulary) | ✓ (nozzle monitors and fields; cube force components) | ✓ | 2 agent families (19 sessions) plus one offline cube study; controller comparison, repeated calls |
Table 1. Acceptance-related features described in prior agents and in CFD Forge. Entries summarize each paper as we read it; ✓ means the feature is described; “–” means the feature is not described there, not that the system cannot have it. Several of these systems cover far more cases and solver configurations than the three studies reported here, and none has been compared with CFD Forge on common tasks. PolyJarvis is a molecular-dynamics agent and is included as the closest architectural precedent.
Automating these steps is useful only if the results can be trusted, but in CFD the usual indicators of a completed run do not establish that the result is correct. A solver can terminate normally, residuals can decrease, and the fields can appear physically reasonable while the boundary conditions are wrong, discretization error remains significant, or the flow has not yet reached a statistically steady state. For this reason, verification and validation rely on several independent kinds of evidence [24, 25]. A language model asked to judge such a run can be misled by the same indicators: in our controller comparison, a model given the evidence without the check results proposed acceptance for 12 of the 13 detectable planted faults.
CFD Forge is built around this observation. In practice, the language model turns a request into a case specification, reads solver logs, conservation measures, and flow histories, proposes what to try next, and writes the engineering report. The model is deliberately not used to decide acceptance, where a rule suffices (§ 5.2), and new flow families are added through their own contracts. In this paper, geometry enters through parameterized families; an earlier CAD→Gmsh prototype is described in Appendix C. We demonstrate the workflow with a compressible nozzle assessed against quasi-one-dimensional theory and a forward-facing step assessed for transient numerical health and storage-aware mass conservation (Appendix A.2), including new cases that the agent built from text requests with different geometry and operating conditions. A three-dimensional turbulent cube provides a diagnostic stress test. Although execution completes and mean drag becomes comparatively stable, quantitative force and wake diagnostics reveal continuing lateral-mode growth. Applied retrospectively, a check for statistically steady flow withholds acceptance on this evidence, illustrating why several physical signals must be examined together.
The contributions of this paper are:
An agentic workflow from request to report: A language model turns a plain-language request into an executable OpenFOAM case within a registered family, diagnoses each run, proposes the next step, and writes the report. We show this in 19 sessions on a nozzle and a forward-facing step, including new cases built from text requests.
Acceptance decided by contracts, not by the model: Registered numerical checks for each flow family alone decide the verdict. The model can only choose corrections from a closed list, and a deterministic validator can refuse them. For example, in one session on the Mach-3 forward-facing step, the request asked whether the result depended on the mesh. The model refined the mesh and, because both solutions passed their checks, proposed ACCEPT. But passing the checks shows that each solution is healthy, not that the answer has stopped changing with the mesh, and no limit had been set for how much change is acceptable. The validator therefore refused and returned INCONCLUSIVE rather than an unsupported claim. This is one of three recorded refusals.
Testing for results that appear complete but are not: An automated workflow has to decide when a simulation is done. If a run terminates, a mean settles, or a result agrees with theory, this does not necessarily mean that the simulation is finished or consistent. Hence, the contracts check the quantity that would reveal an unfinished or inconsistent result. Examples include a settled mean drag, which is not enough to certify a cube flow with growing lateral force; agreement with theory, which is not enough to certify a nozzle run that has not settled; and transient mass conservation, which holds only when the change in stored mass is counted.
Evidence that the split matters: In a controller comparison, the model judging alone accepted nearly all detectable planted faults, whereas the CFD Forge configuration accepted none. The two configurations 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 in the verdict.
The model automates the work; the contracts decide what can be trusted. Together they move CFD a step closer to the automated, repeatable evaluations that high-throughput design and active-learning loops require.
The CFD Forge Agent
CFD Forge organizes CFD analysis as a programmable workflow, driven by a language-model agent, that connects an engineering request to simulation execution, assessment, and reporting. The agent works through programmatic case-construction primitives and explicit scientific checks. Its central design principle is to separate proposing an interpretation or action from determining whether the resulting simulation satisfies the prescribed acceptance criteria.
Workflow Overview
The workflow begins with a natural-language engineering request describing the intended flow problem and relevant geometry or operating parameters. The request is interpreted and matched to a registered simulation family. Each family supplies a scientific contract defining the physical assumptions, admissible inputs, numerical recipe, required diagnostics, and permitted corrective actions.
For an admissible request, a family-specific runner constructs the case, generates the mesh, assigns boundary and initial conditions, and executes OpenFOAM (Figure 1). Diagnostic routines then extract evidence from the mesh, solver logs, saved fields, and time histories. This evidence supports both model-assisted interpretation and deterministic scientific assessment. Where an allowed corrective action is justified, the runner can update the permitted settings or continue execution before reassessing the result. Otherwise, the workflow terminates with a recorded decision and supporting artifacts.
Figure 1. The CFD Forge workflow. Top: conceptual illustration (AI-generated, with the step tile redrawn by the authors; its flow pictures are schematic, not simulation output). A language model interprets the request and the simulation evidence and proposes actions; registered scientific checks, defined by each family’s contract, decide ACCEPT, REJECT, or INCONCLUSIVE and permit only listed corrections. Bottom: the corresponding real OpenFOAM fields from the archived runs, each with its own color scale. (a) Nozzle and (b) Mach-2 forward-facing step are from agent sessions; (c) the turbulent cube is a diagnostic study run outside the agent loop (§ 5.6).
Reasoning and Scientific Authority
Scientific acceptance is evaluated separately from the model’s reasoning: deterministic routines compute the registered quantities and compare them with the criteria, and nothing the model says can override a failed or unresolved check.
Within these bounds, the language model is the component that drives the workflow by proposing what to do. It translates a natural-language engineering request into a structured case specification that drives geometry, mesh, and boundary-condition construction; reviews mesh evidence before setup proceeds; diagnoses each completed run from solver, conservation, and field evidence; and proposes the next action—accept, continue, extend the horizon, refine the mesh, or stop safely—which the orchestrator executes, once approved, by invoking the corresponding meshing, solver, and post-processing tools. It also interprets rendered field images and writes the engineering summary.
The deterministic layer returns one of four decisions. The model never writes the binding verdict: an ACCEPT from the model is an action proposal, which the validators may refuse, whereas the decisions below are computed by code:
ACCEPT: every registered check of the family passes, and every criterion the request depends on is registered.CORRECT_AND_RERUN(not terminal): the solution is healthy but incomplete—not yet stationary, short of the registered horizon, or insufficiently resolved—and an approved corrective action is executed before reassessment.REJECT: a registered criterion is violated by a solution that is not merely incomplete (a numerical failure, a boundary anomaly, or a request outside the family envelope), or a development test still fails when no permitted correction remains.INCONCLUSIVE: the assessment cannot be settled, because a criterion the request depends on is not registered, a needed correction was not approved, or the evidence is insufficient or anomalous.
Insufficient development is therefore not in itself a rejection. While a permitted continuation exists, it leads to CORRECT_AND_RERUN; it becomes REJECT only when the run ends still failing a registered development test, as for the cube (§ 5.6). A refused action is also distinct from a rejected solution. The action validator rules on the model’s proposal, and the scientific validator rules on the result, so a run can end with a healthy solution whose acceptance was refused (§ 5.1). The archived campaigns record family-specific status strings, such as PASS_SINGLE_MESH, FAIL, and STOPPED_ACTION_REFUSED; the session ledger in Appendix § 10 maps each to these decisions. Acceptance therefore refers to the stated scientific contract and the evidence available for that run. It does not imply that every source of modeling or numerical uncertainty has been eliminated.
Model Integration
Figure 2 shows how the model calls sit inside the execution loop, and Table 2 lists them. Each call is a single request to the Google Gemini API through the google-genai Python SDK. The request has a fixed system instruction, a JSON evidence payload, and, except for the plain-text summary, a Pydantic response schema; it uses temperature 0, and the structured response is parsed into a typed record before any code acts on it. The archived campaigns used gemini-3.5-flash-lite for interpretation, mesh review, diagnosis, and reporting, and the identifier is recorded with every logged call. If the model is unavailable or its response fails the schema, the stage stops, unless a deterministic fallback has been explicitly enabled; any such fallback is recorded as non-LLM in the call log. The fallback is enabled by default only for the step report summary, and no fallback occurred in the archived sessions. Each call is logged with its stage, model identifier, latency, number of attempts, and parsed output. In the archived sessions one repair call was not logged (§ 5.1); the released code records it. The runs also use a multimodal observer on rendered field images. It does not write the model identifier into its own record. We infer its model from the provider’s daily per-model usage records, which are included in the data deposit: its 15 calls in the step sessions went to gemini-3.6-flash, its code default when the model variable is unset, and no gemini-3.6-flash requests were made on the day of the nozzle sessions, so its 8 nozzle calls used gemini-3.5-flash-lite. Five of its 23 calls, all in the step sessions, failed with an HTTP 503 (service unavailable) error from the provider and were not retried; the other 18 returned a schema-valid observation. Observation is advisory, so no failure changed a decision. System instructions, response schemas, and iteration budgets are listed in Appendix § 10.
Figure 2. The agent loop as implemented. Blue: model calls, each a single request, schema-constrained except the summary; orange: deterministic gates and validators; green: registered tools. A proposed correction is executed only after the action validator approves it, and the run then returns to the solver; a proposed ACCEPT is passed to the scientific validator, whose verdict is binding. Call counts and rulings are recorded totals over the 19 archived nozzle and step sessions (§ 5.1). Mesh review is used in the nozzle family; field observation is advisory and feeds no gate.
| Stage | Model input | Structured output | Consumer |
| Request interpretation | Engineering request text | Case parameters and unsupported-physics flags (step: unstated fields returned empty and filled by family defaults) | Scope gate (family envelope) |
| Mesh-evidence review (nozzle) | checkMesh and mesh-generation records | Proceed or stop, with cited evidence | Mesh gate |
| Diagnosis and action | Theory- or reference-blind evidence packet: solver health, conservation, stationarity, admissibility, boundaries, mesh, flow features | Diagnosis label, cited evidence, competing hypotheses with evidence for and against (nozzle), one action from the family vocabulary, confidence | Action validator, then scientific validator |
| Field observation | Rendered field images | Qualitative observations and suspected regions | Advisory only; no gate |
| Reporting | Final evidence and verdict | Engineering summary | Report |
Table 2. Model calls in the CFD Forge workflow. “Consumer” is the deterministic component that receives the structured output.
The diagnosis stage is the one that drives the workflow. Its system instruction states that OpenFOAM solves the equations, that deterministic code measures the evidence, and that the model interprets the evidence and chooses one permitted action. It also directs the model not to invent measurements, to distinguish insufficient run time from local under-resolution and from numerical failure, not to treat solver completion as evidence of stationarity, and to request a diagnostic when the evidence cannot separate competing hypotheses. Analytical and reference targets are removed from the evidence packet before the call, and a key-based check rejects a packet that still contains them. The model therefore diagnoses from the simulation’s own evidence, and agreement with theory is checked afterwards, by code.
Actions come from closed, family-specific vocabularies (listed in Appendix § 10). The action validator checks each proposal against the evidence and a fixed iteration budget: for example, CONTINUE_RUN is refused once the requested horizon has been reached, and, for the step family, ACCEPT is refused unless the registered scientific status is final; for both families the final decision is taken by the scientific validator.
Scientific Contracts and Corrective Actions
A scientific contract makes the basis for assessment explicit before a result is accepted. It specifies the geometry and operating range, physical model, boundary-condition formulation, mesh requirements, numerical controls, diagnostic quantities, and reference comparisons applicable to a family. The criteria reflect the intended flow regime: a steady nozzle requires appropriate stationarity evidence, whereas an unsteady compressible step requires conservation checks that account for changes in stored mass.
Corrective actions are restricted to those supported by the registered workflow. The model proposes an action, while deterministic checks establish whether it is admissible and whether another solver attempt is warranted. The resulting case is then assessed using the same acceptance criteria rather than a revised threshold chosen to match the outcome.
Evidence, Reporting, and Reproducibility
CFD Forge retains the artifacts needed to inspect both the simulation and the decisions made around it: case configurations, mesh information, solver logs, diagnostic measurements, model-call records where available, proposed actions, and final assessments, together with plots, contours, and field-evolution videos rendered from the saved fields. Together they give an auditable account of what was requested, what was computed, which actions were taken, and why the result received its final decision.
Walkthrough: From an Engineering Request to an Accepted Simulation
We first follow one complete agent session, the canonical Mach-2 forward-facing-step run, from the engineering request to the final verdict. Every artifact quoted below is taken from the archived session record. Table 11 in Appendix § 9 lists the stages, who performed each one, and when.
| Time (s) | Stage | Performed by | Outcome |
| 0.0 | Request received | – | 313-character prompt |
| 5.9 | Request interpretation | LLM | Mach 2, , |
| 5.9 | Scope gate | Deterministic | 14/14 checks, in scope |
| 22.0 | Case and mesh generation | Deterministic | 16,128 cells, recipe hash-checked |
| 28.3 | Mesh check | OpenFOAM | Mesh OK |
| 134.2 | Solver run | OpenFOAM | Completed to |
| 148.9 | Evidence extraction | Deterministic | 17/17 hard checks |
| 158.8 | Field-image observation | LLM (multimodal) | Observation complete |
| 161.7 | Diagnosis and action | LLM | HEALTHY_COMPLETE → ACCEPT |
| 161.7 | Action validation | Deterministic | Approved |
| 161.7 | Scientific verdict | Deterministic | PASS_2D_FORWARD_STEP |
| 165.4 | Engineering summary | LLM | Report written |
Table 11. Timeline of the walkthrough session, from the archived event log. “LLM” marks a model call (the image observer is a multimodal call whose model identifier was not recorded; provider usage records indicate gemini-3.6-flash for the step sessions).
Request. The session starts from a short natural-language request:
Simulate a 2D forward-facing step in the validated supersonic channel family with inlet Mach number 2.0, step height 0.20 channel heights, and step location . Run the CFD, inspect the transient shock/compression structure, and determine whether the final result passes deterministic scientific validation.
Interpretation. The model converts the request into a structured specification (Figure 11 in Appendix § 9). It extracts the three quantities the user stated—Mach number 2.0, step height 0.2, and step location 0.6—and leaves every quantity the user did not state empty rather than guessing it. It also records the two reporting objectives separately from the case parameters. The framework then fills each empty field from the family defaults (the Foundation v14 shockFluid/forwardStep recipe) and labels every field as stated by the user or inferred from family defaults, so the origin of each simulation parameter is explicit.

Figure 11. Request interpretation in the walkthrough session (abridged from the archived llm_interpretation.json). The model returns only what the request states; family defaults complete the specification, and the origin of every field is recorded.
Admissibility and case construction. A deterministic scope gate checks the resolved specification against the family envelope: Mach number, step height and position as fractions of the channel, channel aspect ratio, cell count and aspect ratio, thermodynamic state, end time, and Courant limit. All fourteen checks pass, and the gate records the realized inlet Mach number, 2.000006. The family builder then writes a three-block blockMeshDict (240 × 80 cells minus the step, 16,128 cells, ) and sets the inlet and initial state , . It copies the numerical recipe unchanged and hash-checks it, and runs blockMesh and checkMesh, which reports a valid mesh with two solution directions.
Execution and evidence. OpenFOAM shockFluid advances the flow to in 5,428 steps (102 s). Deterministic diagnostics then compute the 17 hard checks and the compression measurements, and render eight field images. The evidence packet passed to the model contains solver health, horizon, mesh quality, field ranges, Courant history, the transient mass balance, the measured compression structure, the outcome of each deterministic check, the iteration budget, and the permitted diagnoses and actions. Reference comparisons are removed before the call. In this family the model therefore sees the check outcomes; its task is to interpret them and to choose the next action, not to recompute them.
Diagnosis and decision. A multimodal LLM observer first inspects the field images. The diagnosis call then returns HEALTHY_COMPLETE with high confidence, cites solver health, horizon, mesh, field ranges, Courant number, transient conservation, and the deterministic checks, and proposes ACCEPT. The action validator approves the proposal because it is consistent with the registered checks, and the scientific validator independently returns PASS_2D_FORWARD_STEP. The terminal verdict is ACCEPT.
Report. Finally the model writes the engineering summary from the evidence and the verdict. It reproduces the measured values correctly but attaches physical units (s, Pa, K) to the normalized quantities and adds a sentence about quasi-one-dimensional nozzle comparisons that does not apply to this case. Such errors are why the summary is treated as narrative and never as evidence: every number in it can be traced back to, and checked against, the deterministic record.
The full session took 165 s from request to report. The OpenFOAM run took 102 s of that, and the four model calls took about 22 s.
Simulation Families and Assessment Protocol
We evaluate the agent on three CFD studies whose acceptance logic differs. The converging–diverging nozzle is a steady compressible flow with an analytical reference. The Mach-2 forward-facing step is a transient, shock-containing flow whose acceptance rests on storage-aware conservation and compression diagnostics. The three-dimensional turbulent cube tests whether the acceptance layer can distinguish numerical completion from a developed flow. All three use OpenFOAM Foundation v14. Figure 3, Figure 9 and Table 9 (the latter two in Appendix § 8) summarize their geometry, meshes, boundary conditions, and numerics; the complete setup and acceptance criteria are given in Appendix § 8.
Figure 3. Nozzle meshes. (a) The agent-built wedge mesh in the – plane, every cell shown: five blocks with 20, 40, 4, 48, and 20 axial divisions and 16 radial divisions, reconstructed exactly from the archived blockMeshDict (linear edges, uniform grading), whose digest matches the native case. (b) The tetrahedral mesh from the earlier CAD→Gmsh prototype of the same nozzle (Appendix § 10): wall-surface triangles of the archived .msh file, back half only, viewed from the side, showing the throat refinement selected by the model.
| Nozzle | Forward-facing step | Surface-mounted cube | |
| Model | Inviscid compressible Euler, perfect gas (, ); shockFluid | Inviscid compressible Euler, normalized perfect gas (, sound speed 1); shockFluid | Incompressible unsteady Reynolds-averaged Navier–Stokes (URANS), – shear-stress transport (SST) [26], , ; incompressibleFluid |
| Mesh | 5° wedge, cells (1,980 hexahedra and 132 axis-adjacent prisms); max. aspect ratio 2.46, non-orthogonality 9.6°, skewness 0.33 | Three blocks, uniform , 16,128 hexahedra, one empty spanwise layer | Rectilinear, minus the cube cells = 567,360 hexahedra; max. aspect ratio 18.4, six partitions |
| Inlet | totalPressure , totalTemperature , axial-direction velocity | Fixed , , U = (2, 0, 0) | Developed U, , mapped from a precursor channel; |
| Outlet | Zero gradient for , , U (30 kPa ambient not imposed) | Zero-gradient ; inletOutlet U, | Fixed gauge ; zero gradient for U, , |
| Other boundaries | Slip wall; wedge front/back; axis | Step: slip; top/bottom: symmetryPlane | Floor, roof (), side walls (), cube: no-slip with kqR/omega/nutUSpalding wall functions |
| Numerics | Kurganov flux [27], Minmod reconstruction, Euler time step, | Kurganov flux, van Leer (, ) and van Leer-V (U) reconstruction, Euler, | Backward time step, PIMPLE (2 outer, 2 pressure correctors), linear-upwind U, upwind , , , |
| Horizon | (30,471 steps) | (5,428 steps) | |
| Assessment basis | Quasi-1-D analytical consistency and registered numerical checks | Registered numerical checks and directional compression diagnostics | Registered stationarity/development gate |
Table 9. Simulation setup. All cases use OpenFOAM Foundation v14 through foamRun. The scheme, solution, thermophysical and mesh files quoted here match the SHA-256 digests recorded for the native cases in the field-evolution manifests; cube boundary types are taken from the preserved initial-condition audit of its predecessor pilot.

Figure 9. Step and cube meshes, plotted from the native OpenFOAM polyMesh files. (a) Forward-facing-step domain (every fourth grid line) with the step in gray and (b) every cell near the step corner; the mesh topology files are identical to those of the agent’s Mach-2 case. (c) Cube and floor boundary faces near the cube and (d) the cell layer starting at , showing the clustering around the cube and in the near wake.
The nozzle and step runs were executed by the agent from natural-language requests, and their model calls are recorded, except for one repair call disclosed in § 5.1. The cube campaign was executed outside the agent loop; afterwards we applied a diagnosis call in the style of the agent’s diagnosis stage to its archived evidence three times and ruled on each proposal with the stationarity gate, which was registered retrospectively, after the cube data existed (§ 5.6, Appendix § 10).
Archived-case replay is used only to check that recorded verdicts are reproduced, never as evidence of new execution.
Results
Agent Behavior Across Campaigns
Table 3 summarizes the registered outcomes. The archived campaigns comprise 19 agent sessions (8 nozzle, 11 step). These are 16 runs, because one step run was resumed across four sessions, and 11 distinct requests, because the nozzle requests were repeated while the nozzle pipeline was being developed (Appendix § 10). Across them the call records contain 97 model calls: 16 request interpretations, 8 mesh reviews, 28 diagnoses, 23 field observations, and 22 summaries. All 74 text calls succeeded on the first attempt, with median latencies between 1.9 and 4.9 s per stage; 5 of the 23 field-observation calls failed with a provider error (§ 2.3). Token counts were not logged in these campaigns. The 28 recorded diagnoses produced 28 recorded action proposals: 14 ACCEPT, 5 CONTINUE_RUN, 4 EXTEND_END_TIME, 3 FAIL_SAFELY, 1 REFINE_MESH, and 1 REQUEST_DIAGNOSTIC. The validator approved 25 and refused 3 (Figure 4). Table 4 lists representative decision points, and Figure 12 in Appendix § 9 shows one complete diagnosis record. These counts are taken from the call records. In one nozzle iteration (N4, second iteration) the diagnosis module, after the action validator refused its first proposal, made a second call with the refusal reasons and recorded only the second proposal; the refused proposal and the extra call are therefore not included in the counts above.
Figure 4. Model activity in the 19 archived agent sessions, counted from every call record in the session archive and deduplicated per run (Appendix § 10); the one unrecorded repair call is not included. (a) Model calls by stage; 5 of the 23 field-observation calls failed with a provider-side HTTP 503 error. (b) Action proposals by type and the action validator’s ruling.
| Evidence | Nozzle | Forward-facing step | Cube |
| Mesh | checkMesh OK | checkMesh OK; 2 solution directions | checkMesh OK |
| Solver health | Completed; , , at all saved times | Completed; positive at every step; no fatal signature | Completed; no warnings in final segments |
| Conservation | Window mismatch 0.055% (< 0.1%) | Closure residual (< ) | Volume-flux imbalance |
| Physical or reference | Canonical run: quasi-1-D differences | , , rise across front | Not assessed (no accepted reference data) |
| Stationarity or development | Drift 0.081%, field change 0.111% (< 0.2%) | Not required (transient family) | Lateral growth ratio 2.10 (> 1.25) |
| Registered outcome | ACCEPT (PASS_SINGLE_MESH) | ACCEPT (PASS_2D_FORWARD_STEP) | REJECT (STILL_DEVELOPING; retrospective gate) |
Table 3. Registered scientific assessment of the three studies.
| Run and state | Deterministic evidence | Model proposal | Validator | Verdict |
| Nozzle, ms | 17/20 checks; mass mismatch 1.35%, drift 2.0%, field change 1.2% | CONTINUE_RUN | Approved | FAIL (CORRECT_AND_RERUN) |
| Nozzle, ms | 20/20 checks | ACCEPT | Approved | PASS_SINGLE_MESH |
| Step, Mach 2, | 17/17 hard checks; compression rises measured | ACCEPT | Approved | PASS_2D_FORWARD_STEP |
| Step, Mach 3, of 4 (resumed) | Hard checks pass; registered horizon not reached | EXTEND_END_TIME (2 → 4) | Approved | Target not reached (CORRECT_AND_RERUN) |
| Step, Mach 3, | 17/17 hard checks | ACCEPT | Approved | PASS_2D_FORWARD_STEP |
| Step, Mach 3, | Compression front not measurable | FAIL_SAFELY | Approved | FAIL (preserved) |
| Step, Mach 3, sensitivity request, 4,032 cells | Hard checks pass; one grid cannot establish sensitivity | REFINE_MESH (×2) | Approved | PASS on one grid (CORRECT_AND_RERUN) |
| Same, 16,128 cells | Hard checks pass; no registered cross-grid tolerance | ACCEPT | Refused | STOPPED_ACTION_REFUSED (INCONCLUSIVE) |
Table 4. Recorded decision points with genuine LLM calls. “Approved” and “Refused” denote rulings of the deterministic action validator; the last column gives the archived family status computed by the scientific validator, with the decision of § 2.2 in parentheses.
diagnosis: UNCONVERGED confidence: high
evidence_used:
- mass imbalance is 1.35 percent, exceeding the steady balance criterion
- passes_stationarity is false
- mass flow range and drift indicate ongoing evolution
- no local mesh underresolution flagged by baseline metrics
competing_hypotheses:
- insufficient_run_time
for: monitors and fields are not yet stationary;
mass imbalance and drift are slowly decreasing
- local_mesh_underresolution
for: strong gradients present near throat
against: checkMesh passed cleanly; no candidate underresolved
regions flagged by feedback profile diagnostics
action: CONTINUE_RUN
action validator: APPROVED ("permitted for a healthy evolving solution")
scientific validator: FAIL (steady_mass_balance, monitors_stationary,
fields_stationary)Figure 12. Archived gemini-3.5-flash-lite diagnosis record for the nozzle continuation run at ms (abridged and reformatted from agent_decision.json). The model separates insufficient run time from local under-resolution using the evidence packet, and its proposal is executed only after the action validator approves it.
In the nozzle continuation, the model read the stationarity failures and proposed CONTINUE_RUN. In a Mach-3 step run that had reached only of the registered horizon, it proposed extending the end time, a bounded change () that the validator permitted before reassessment and acceptance. In a Mach-3 run with a taller step (), no compression front could be measured; the model attributed this to upstream migration of the shock system (§ 5.3) and proposed FAIL_SAFELY. That run was preserved and rejected rather than tuned.
The three recorded refusals show the validator correcting the model. In the iterative Mach-3 run, the model proposed CONTINUE_RUN after the requested horizon had been reached, which was refused because more physical time requires EXTEND_END_TIME; a later EXTEND_END_TIME was refused because the iteration budget was exhausted. That campaign was completed in supervised resumed sessions, after the restart-seam treatment in the mass-balance diagnostic had been corrected, so its final acceptance is not an unattended result. The clearest case is a Mach-3 request for a numerical-sensitivity assessment. The model proposed REFINE_MESH, which was approved under the registered bounded policy (linear refinement by a factor of 2, from 4,032 to 16,128 cells, as a fresh solve). Both grids passed their hard checks, and the model proposed ACCEPT. The validator refused it, because no cross-grid tolerance is registered for the step family, and the run ended as STOPPED_ACTION_REFUSED, which is INCONCLUSIVE under § 2.2: both solutions were healthy, but the requested sensitivity could not be certified.
One stop was caused by the deterministic layer itself. In the first step session, the validator reported a fatal solver error because it matched the OpenFOAM start-up line that enables floating-point trapping; the model, which is instructed to treat the checks as authoritative, proposed FAIL_SAFELY, which was approved. After the detector was corrected, a deterministic reanalysis of the unchanged run returned PASS_2D_FORWARD_STEP without a new solve. Deterministic authority is therefore only as reliable as the checks it applies.
In every recorded case the terminal verdict was computed by the validators. For the continuation, extension, and safe-stop decisions above, a rule keyed to the failed check would have chosen the same action, and the five failed observer calls changed no outcome.
Controller Comparison
The session records above show that the interface behaves as designed; they do not show what the deterministic layer contributes. We therefore replayed archived decision points through four controllers using the same model (gemini-3.5-flash-lite, temperature 0) and the current validators. (A) A fixed rule maps the failed checks to an action, with no model call. (B) CFD Forge: the model diagnoses the full evidence packet, including the deterministic check results, and proposes an action; the action gate screens the proposal and the validator decides. (B′) Gates off: the same model proposal is taken directly as the verdict, without the action gate or the validator. (C) Model only: the model returns a verdict (ACCEPT, NEEDS_MORE_RUNTIME, REJECT or INCONCLUSIVE) from a filtered diagnostic packet: the aggregate validator outcomes, pass/fail summaries and failed-check lists are removed, while the measured quantities, selected numerical-health and mesh flags (for example solver_completed or mesh_ok), and a one-sentence family description remain. Arm C therefore tests whether the model, given this filtered evidence, reaches the verdict the contract would reach. Arms B/B′ and C also differ in system instruction, response schema and decision vocabulary, so the comparison contrasts two configurations rather than isolating the check results alone. For the
cube, the diagnosis packet given to arm B also excludes the stationarity verdict and its threshold; there the arms differ in prompting, output interpretation and enforcement, not in access to the gate result. Each archived and defect point was queried five times and each fault three times; arms B and B′ share one model call per repeat.
The decision points are of three kinds. Sixteen archived points cover nine forward-facing-step states, six nozzle states and the cube (Table 5). The reference answer for each is the registered decision: ACCEPT when every check passes, CORRECT_AND_RERUN when only the target time or settling checks are unmet, and not-acceptable otherwise. Eighteen planted faults each alter one diagnostic of an accepted Mach-2 step run, for example marking the solver as not completed, setting a field minimum negative or adding a wall flux; none should be accepted. Two defect points reproduce historical diagnostic-extraction errors, a false-positive fatal-error flag and a pre-fix restart-seam closure, under which healthy runs appear to fail.
| Controller | Archived (16 points) | Planted faults (18) | Defects (2) |
| A: fixed rule | 16/16 (0) | 18/18 (0) | 0/2 (0) |
| B: CFD Forge | 79/79 (0) | 53/53 (0) | 0/10 (0) |
| B′: gates off | 74/79 (0) | 53/53 (0) | 0/10 (0) |
| C: model only, blind packet | 72/79 (7) | 3/53 (50) | 5/10 (0) |
Table 5. Controller comparison with gemini-3.5-flash-lite. Entries are correct decisions / decisions, with false accepts (a not-acceptable state accepted) in parentheses. A decision counts as correct when it equals the registered decision; where the reference is only “not acceptable” (planted faults and some archived states), any non-accepting decision counts as correct. Differences in correct counts between B and B′ therefore reflect the disposition (REJECT versus INCONCLUSIVE), not false acceptance. Arms A and B terminate at the same validator and so reach the same verdicts by construction; they differ in the actions proposed. Of 288 model calls, four failed and are excluded.
Without the check results, the model-only arm (C) often proposed accepting states that the contract rejects. It proposed accepting the Mach-3, step case in all five repeats, although its compression front could never be measured, and the flawed nozzle continuation in two of five, giving different answers to the same evidence. It did not, however, ask for any unnecessary reruns.
The planted faults tell a clearer story. Each was queried three times, and arm C proposed acceptance for 17 of the 18 in every completed repeat (one call failed, on a fault the model could not see); only the explicit fatal-error flag stopped it. We call a fault detectable when the field it changes appears in the model-only packet. Thirteen were detectable, such as solver_completed: false, and the model still proposed accepting 12 of them in all three repeats, usually reasoning that the run had reached its target time of . The other five (an edited recipe, a subsonic inlet, initial-state drift, a missing boundary patch, and a cyclic patch) changed only fields outside the packet, so their acceptance says more about the packet than about the model.
With the deterministic results (arm B′), the same model proposed acceptance only when the checks passed: no false accept occurred in the 93 decisions on states that should not be accepted. Its five errors on archived points are all on the no-front step case, where it proposed FAIL_SAFELY, which maps to INCONCLUSIVE rather than REJECT. Because the model never proposed acceptance contrary to a failed check, enforcement (arm B) changed no acceptance outcome relative to arm B′. It changed the disposition in 66 of the 142 decisions, turning 50 INCONCLUSIVE and 16 CORRECT_AND_RERUN outcomes into REJECT, and the action gate refused two proposals, both REFINE_MESH on faults whose failed checks (mesh_ok, two_solution_directions) are not resolution problems. Enforcement of the registered checks held in every case but was not exercised against a model that proposed an unjustified acceptance.
The defect points show the limit of every evidence-dependent controller. With the false fatal-error flag, all arms withheld acceptance of a healthy run. With the pre-fix seam closure, arms A, B and B′ stopped a run that needed only more time, whereas arm C, which did not see the faulty closure verdict, correctly asked for more runtime. A contract protects against agent model error, not against an error in its own diagnostics; here its failures were conservative, and neither defect produced a false accept.
Repeat consistency was also measured. Arm B gave the same diagnosis and action in all repeats at 16 of 16 archived points, including five of five on the cube evidence, and at 13 of 18 faults; at the other five faults the proposed corrective action varied (FAIL_SAFELY, REBUILD_FROM_VALIDATED_SPEC, REFINE_MESH, REJECT_UNSUPPORTED) but the verdict did not. The run made 288 model calls, of which 284 succeeded, using tokens at a median latency of 1.27 s per call. The script (controller_comparison.py in paper/cfd_forge/scripts/), which also contains the prompts and the list of blinded keys, and the per-call records under evidence/controller_comparison/ are in the repository. The comparison uses one small, low-latency model, archived rather than new runs, and faults planted in one family; it is not a held-out benchmark, and a stronger model may perform better in arm C.
The comparison also bounds what the model contributes. At these decision points the tested fixed-rule controller reached the same verdicts as CFD Forge, and at every archived point it proposed the same action as the model. The two differed only on planted faults, where the rule always failed safely and the model, at 8 of 18 faults, proposed a correction other than a safe stop in at least one repeat, such as REDUCE_MAX_CO for a non-finite Courant number or REBUILD_FROM_VALIDATED_SPEC for a cell-count mismatch; whether those corrections would have succeeded was not tested. The model’s role is therefore not to improve acceptance decisions but to do the open-ended work that the tested rule cannot: interpret a free-text request into a registered specification, construct new cases within a family (§ 5.3), explain the evidence, and propose among several admissible corrections. The comparison does not measure those contributions.
New Cases Within the Registered Families
Within each registered family, the agent constructed, ran, and assessed new cases from natural-language requests that changed the geometry and the operating conditions (Table 6). In each case the model extracted the stated quantities, the family builder produced a new mesh and case, and the same contract assessed the result. Boundary-condition types are fixed by the contract, so the requests changed boundary-condition values (, the inlet Mach number), not their formulation; a request outside the registered envelope would have been refused by the scope gate. These were development runs, not a held-out evaluation (Appendix § 10).
| Converging–diverging nozzle | |||
| Request | Exit | Exit (kPa) | (kg s) |
| Reference: mm, kPa | 1.513 (+0.59%) | 53.14 (−1.83%) | 1.541 (−1.11%) |
| Exit radius mm | 1.652 (+0.39%) | 43.29 (−1.57%) | 1.541 (−1.10%) |
| Inlet total pressure kPa | 1.513 (+0.58%) | 58.46 (−1.83%) | 1.695 (−1.11%) |
| Forward-facing step | |||
| Request decision | Front | rise (normal shock) | vs. |
| 2.0, 0.20, 0.6 ACCEPT | 0.113 | 5.18 (4.50) | 0.822 > 0.80, choked |
| 2.5, 0.15, 0.6 archived REJECT | 0.341 | 7.49 (7.12) | 0.760 < 0.85 |
| corrected reanalysis PASS | |||
| 3.0, 0.10, 0.6 ACCEPT | 0.450 | 11.11 (10.33) | 0.719 < 0.90 |
| 3.0, 0.20, 0.6 ACCEPT | 0.313 | 10.82 (10.33) | 0.719 < 0.80 |
| 3.0, 0.30, 0.6 REJECT | 0.025 | not measurable | 0.719 > 0.70, choked |
| 3.0, 0.30, 1.0 ACCEPT | 0.425 | 11.00 (10.33) | 0.719 > 0.70, choked |
| 3.5, 0.20, 0.6 ACCEPT | 0.338 | 14.76 (14.12) | 0.692 < 0.80 |
Table 6. New cases built and run by the agent from text requests. Nozzle values are at ms on the 2,112-cell wedge, with differences from quasi-one-dimensional theory in parentheses. Step values are at on the family mesh (; the cell count varies with and ): the detected front position below the step height, the pressure rise across it with the stationary normal-shock ratio in parentheses, and the post-shock sonic area compared with the opening above the step (choked when ).
The results behave as the physics requires. Raising by 10% at fixed geometry left the exit Mach number unchanged (1.513) and scaled the exit pressure and the mass flow by 1.100, as expected for a choked perfect-gas nozzle; enlarging the exit raised the exit Mach number to 1.652, within 0.39% of quasi-one-dimensional theory. All three nozzle variants passed the twenty registered checks, with exit Mach number, exit pressure, and mass flow within 2% of theory. In the step family, the pressure rise across the detected front exceeded the stationary normal-shock ratio at every Mach number by 4–15%, which is consistent with fronts that are still moving upstream, and the storage-aware mass closure stayed between and in every run. The quasi-one-dimensional choking estimate of § 5.5 separates the configurations. Where the post-shock sonic area exceeds the opening above the step (Mach 2 with , and Mach 3 with ), the front was displaced toward the inlet; with the step at and it reached , no front could be measured, and the model proposed FAIL_SAFELY. With the same step moved to , the front had not yet reached the inlet at and the run passed its contract, which for this transient family includes no stationarity criterion. The Mach-2.5 run was first stopped by the false-positive fatal-error check of Sec. 5.1 and passes after the corrected reanalysis.
| Run (sessions) | Request | Proposals (ruling) | Final status → decision |
| Nozzle, 21 September 2026 | |||
| N1 e2e/A (1) | Reference nozzle, kPa, 6 ms | ACCEPT (A) | PASS_SINGLE_MESH → ACCEPT (canonical run) |
| N2 e2e/B (1) | Exit radius 37 mm | ACCEPT (A) | PASS_SINGLE_MESH → ACCEPT |
| N3 e2e/C (1) | kPa | ACCEPT (A) | PASS_SINGLE_MESH → ACCEPT |
| N4 feedback/A (1) | Repeat of N1, 1 ms horizon | CONTINUE_RUN (A); REQUEST_DIAGNOSTIC (A, not executed) | UNEXECUTED_ACTION_REQUEST_DIAGNOSTIC → not accepted |
| N5 feedback_v2/A (1) | Repeat of N1, 1 ms horizon | CONTINUE_RUN (A); session ended before the continuation | FAIL at 1 ms, continuation not run → not accepted |
| N6 v2_hotfix/A (1) | Repeat of N1, 1 ms horizon | CONTINUE_RUN (A); CONTINUE_RUN (A); ACCEPT (A) at 6 ms | PASS_SINGLE_MESH → ACCEPT (continuation run, Sec. 5.4) |
| N7 feedback_final/B (1) | Repeat of N2 | ACCEPT (A); ACCEPT (A) | PASS_SINGLE_MESH → ACCEPT |
| N8 feedback_final/C (1) | Repeat of N3 | ACCEPT (A); ACCEPT (A) | PASS_SINGLE_MESH → ACCEPT |
| Forward-facing step, 22 September 2026 | |||
| S1 live_run_01 (1) | Mach 2.5, | FAIL_SAFELY (A) | FAIL (false-positive fatal check) → REJECT; reanalysis after the fix: PASS_2D_FORWARD_STEP |
| S2 case_B (1) | Mach 2, | ACCEPT (A) | PASS_2D_FORWARD_STEP → ACCEPT (walkthrough, Sec. 3) |
| S3 case_C (1) | Mach 3.5, | ACCEPT (A) | PASS_2D_FORWARD_STEP → ACCEPT |
| S4 case_E (1) | Mach 3, | ACCEPT (A) | PASS_2D_FORWARD_STEP → ACCEPT |
| S5 case_F (1) | Mach 3, , | FAIL_SAFELY (A) | FAIL (no measurable front) → REJECT |
| S6 case_G (1) | Mach 3, , | ACCEPT (A) | PASS_2D_FORWARD_STEP → ACCEPT |
| S7 case_H (4, resumed) | Mach 3, , staged horizon to | EXTEND_END_TIME (A); CONTINUE_RUN (R); EXTEND_END_TIME (A); FAIL_SAFELY (A); EXTEND_END_TIME (R, budget); EXTEND_END_TIME (A); ACCEPT (A) | PASS_2D_FORWARD_STEP → ACCEPT after supervised resumption and a mass-closure fix |
| S8 case_I (1) | Mach 3, , sensitivity request | REFINE_MESH (A); ACCEPT (R) | STOPPED_ACTION_REFUSED → INCONCLUSIVE |
Table 12. Ledger of the archived agent sessions. A = approved, R = refused. “Repeat” marks a request repeated during development of the same pipeline.
Converging–Diverging Nozzle
The canonical nozzle run completed to ms in 30,471 adaptive steps (maximum Courant number 0.400) and passed all twenty registered checks, yielding PASS_SINGLE_MESH and a deterministic ACCEPT. Figure 5 compares radially volume-weighted axial profiles with the isentropic quasi-one-dimensional solution for the same area distribution. The flow accelerates from in the inlet section, reaches in the throat, and leaves the nozzle at , while static pressure and temperature fall to and . The minimum slab-averaged Mach number downstream of the throat is 1.17 and the minimum face-normal outlet Mach number is 1.46, so no internal normal shock forms and the entire exit plane is supersonic. The exit static pressure, 53.1 kPa, exceeds the 30 kPa nominal ambient pressure, which is consistent with an underexpanded nozzle.
Figure 5. Nozzle results. (a,b) Axial profiles of the canonical run at ms (solid) and the isentropic quasi-one-dimensional solution for the registered area distribution (dashed). (c) The three checks that failed at 1 ms in the separate continuation run (mass balance, monitor drift, field change), expressed as measured value over registered limit, at the initial 1 ms endpoint (failed) and after the approved continuation to 6 ms (passed).
The agent-constructed canonical run reproduces the coarsest mesh of the LLM-free reference campaign exactly: every reported quantity, the 30,471 time steps, and the stationarity metrics agree to machine precision. The reference refinement study (Table 10, Appendix § 8) passed its registered criteria, with last-pair changes of at most 0.41% (throat Mach number) and 0.27% (exit pressure). Refinement increases the exit Mach number from 1.513 to 1.524 and moves the solution slightly further from quasi-one-dimensional theory, to −3.16% in exit pressure on the finest mesh, which is still within the 5% limit. This trend may reflect multidimensional corner effects that the one-dimensional model omits; we have not established the cause. No formal grid-convergence index is reported.
| Mesh (axial radial) | Cells | Throat | Exit | Exit (kPa) | (kg s) |
| 132 16 | 2,112 | 1.0290 | 1.5133 | 53.14 | 1.5409 |
| 198 24 | 4,752 | 1.0432 | 1.5189 | 52.78 | 1.5378 |
| 264 32 | 8,448 | 1.0512 | 1.5221 | 52.57 | 1.5361 |
| 330 40 | 13,200 | 1.0555 | 1.5244 | 52.43 | 1.5349 |
| Last-pair change | 0.41% | 0.15% | 0.27% | 0.07% |
Table 10. Frozen LLM-free nozzle reference campaign: mesh refinement at ms. Mesh 1 is identical to the agent’s canonical run. Coarse-mesh controls (halved Courant number, halved wedge angle, 2% startup perturbation) changed all reported quantities by at most 0.036%.
Table 7 lists the deterministic comparison with theory. The percentage differences for the exit Mach number, exit static pressure, exit temperature, exit velocity, and mass flow are all below 2%; the largest is the exit static pressure (, limit 5%), and the mass flow is 1.11% below the ideal choked value. The throat Mach number, 1.029, is assessed against its registered band () rather than as a percentage difference. These differences are consistent with a two-dimensional axisymmetric solution that departs from strictly one-dimensional flow near the conical corners. The inlet total conditions are reproduced to a relative error of in and in . Over the final 2 ms, the maximum steady mass-flow mismatch is 0.055%, the largest monitor drift is 0.081%, the largest relative field change is 0.111%, and the maximum transient continuity error is %.
| Quantity | CFD | Quasi-1-D | Difference | Registered limit |
| Inlet Mach number | 0.2528 | 0.2558 | — | |
| Throat Mach number | 1.029 | 1 | — | |
| Exit Mach number | 1.5133 | 1.5044 | ||
| Exit static pressure (kPa) | 53.14 | 54.13 | ||
| Exit static temperature (K) | 205.76 | 206.52 | ||
| Exit velocity (m s) | 435.09 | 433.36 | ||
| Mass flow (kg s) | 1.541 | 1.558 |
Table 7. Canonical nozzle: CFD versus isentropic quasi-one-dimensional theory at ms. Exit values are area averages on the outlet patch; throat and inlet values are slab averages. Mass flow is scaled from the wedge to the full nozzle. Not a registered check; theory value computed from the inlet area ratio.
A separate archived run of the same specification illustrates the corrective loop (Figure 5c). Executed initially only to ms, it passed 17 of 20 checks but failed the steady mass-balance (1.35% against 0.1%), monitor-stationarity (2.0% against 0.2%), and field-stationarity (1.2% against 0.2%) criteria. At this endpoint the exit-state differences from quasi-one-dimensional theory were already below 0.7%. Agreement with the reference therefore did not establish that the flow had settled, and the stationarity evidence determined the outcome. After an approved continuation to 6 ms, all three metrics fell below their limits (ratios 0.59, 0.41, and 0.66) and the run was accepted. Figure 6 shows the accepted canonical fields.
Figure 6. Canonical agent nozzle run at ms: Mach number, static pressure, and static temperature from the archived ParaView renderings of the native fields (fixed color ranges recorded in the field-evolution manifest), with new axes, from the recorded camera view. The axisymmetric wedge solution is mirrored about the axis (dashed). The sonic line sits at the throat entrance and the diverging section is supersonic throughout.
Mach-2 Forward-Facing Step
The canonical step run completed to in 5,428 steps and 102 s of wall time, passing all 17 hard checks and the three compression checks (PASS_2D_FORWARD_STEP, deterministic ACCEPT). The realized inlet Mach number was 2.000006, and the maximum Courant number was 0.202 against the 0.2 controller target. Figure 7 shows the flow at the registered horizon. A detached compression front spans the channel ahead of the step, an expansion fan forms at the step shoulder, and an oblique shock from the shoulder region reflects from the upper symmetry plane near .
Figure 7. Mach-2 forward-facing step. (a) Mach number and (b) density contours at , reproduced from the archived pipeline renderings of the native fields with new axes. (c) Position of the detected compression front below the step height. (d) Normalized discrete closure residual of Eq. (1) at every time step, with the registered limit.
Across the detected front, pressure, density, and temperature rise by factors of 5.18, 2.87, and 1.81. These values exceed the stationary normal-shock ratios for Mach 2 (4.50, 2.67, and 1.69); the difference is qualitatively consistent with a front that is moving upstream, but these gradient-based regional measurements are not grid-converged and are not used as acceptance bands.
The detected front moves upstream monotonically, from at to at (Figure 7c; snapshots in Figure 10, Appendix § 8). A quasi-one-dimensional estimate explains this behavior. Behind a normal shock at Mach 2 the flow has , whose sonic area is 0.822 of the channel height. This exceeds the 0.8 opening above the step, so the subsonic post-shock flow cannot pass the contraction and the front is displaced upstream. At Mach 3 the corresponding sonic area is 0.719, which is why a standing detached shock is possible in the classical Mach-3 configuration. The canonical Mach-2 solution is therefore genuinely transient at . The registered contract evaluates health, conservation, and compression structure at that horizon and applies no stationarity criterion to this family.
Figure 10. Evolution of the agent’s Mach-2 step solution: Mach number at , 1, 2, and 4 from the archived ParaView renderings of the native fields, on one fixed color range. The detached front moves upstream throughout, while the shoulder expansion and the reflected oblique shock reorganize behind it.
Mass conservation closes to round-off in the storage-aware form of Eq. (1). The maximum normalized closure residual is (99th percentile ), against the registered limit (Figure 7d). The cumulative defect is of the initial mass, and the largest flux through the impermeable boundaries is . At the instantaneous outlet mass flux is 16% below the inlet flux, a difference balanced by mass accumulating behind the advancing front. A test based on inlet–outlet equality would have rejected a correctly conservative transient solution. The closure is a discrete conservation identity (Appendix § 8.§ 2): it confirms that mass is fully accounted for, not that the solution is accurate.
Turbulent Cube Diagnostic Study
The cube calculation completed its bounded extension to without numerical failure. In the final two segments the maximum Courant number was 0.79, the largest reported continuity error was , and the outlet and inlet volume fluxes balanced to a relative . Instantaneous fields at show a physically plausible horseshoe region, separated shear layers from the leading edges, and a recirculating wake (Figure 8a). The streamwise force also appears settled. Over the retrospectively registered window , the mean drag coefficient is and its drift is 0.075% of the mean, well within the 2% limit, and the mean lateral force is 0.063% of the drag (limit 5%).
Figure 8. Turbulent cube diagnostic study. (a) Velocity magnitude on the plane at , from the archived ParaView rendering of the native field with new axes. (b) Drag coefficient history; the shaded band is the retrospectively registered 20-unit window. (c) Lateral force, with the two half-windows of the retrospectively registered growth test shaded and the mean of each labeled; dotted lines mark the upward zero crossings that bound complete cycles. (d) Complete-cycle amplitudes from Eq. (2) and their successive changes.
The lateral force shows that the flow has not developed (Figure 8c). oscillates with an almost constant period of about 10.15 time units (), while its envelope grows: the mean of rises from in the first half of the window to in the second, a ratio of 2.10 against the registered limit of 1.25. The gate therefore returns STILL_DEVELOPING, and the run is rejected. The supplementary complete-cycle audit agrees (Figure 8d). Successive complete-cycle amplitudes grow by 209%, 137%, and 113%, and the last comparable pair exceeds the 10% audit limit by an order of magnitude. The growth rate is declining but the mode has not saturated. The two diagnostics are different measurements and are reported separately. Only the half-window ratio is part of the registered gate.
The result illustrates why the assessment cannot rely on a single signal. Solver completion, small continuity errors, a stable mean drag, and plausible instantaneous contours all coexist here with a lateral mode whose amplitude more than doubles every cycle. Block averages hide it as well: between the –70 and 70–80 averages the mean drag changes by only 0.04% and wake-probe means by at most , while the root-mean-square lateral force increases by 110%. Instantaneous lateral-velocity fields on the plane at , 40, 60, and 80 are almost indistinguishable on a common color range (only is shown, in Figure 1c), so contours alone would not reveal the growing mode that the force history exposes.
Agent diagnosis of the cube evidence. Because the cube campaign ran outside the agent loop, we applied a diagnosis call written for this replay, in the style of the agent’s diagnosis stage, to its archived evidence afterwards, without running any CFD. Its system instruction states that solver completion does not prove a developed flow and asks the model to consider every force component, not only the drag. The evidence packet contained solver health from the seven run segments (all ended normally; maximum Courant number 0.80; maximum global continuity error ), force statistics in six 10-unit blocks, and the half-cycle extrema of , but no gate verdict and no threshold. The model was called three times with the same packet at temperature 0 (Table 8). Twice it diagnosed STILL_DEVELOPING and proposed CONTINUE_RUN, noting that and had settled while the extrema grew in every half-cycle; this agrees with the registered gate, which the model never saw, although its instruction pointed to all force components. Once it read the same growth as a numerical instability, diagnosed NUMERICALLY_UNHEALTHY, and proposed FAIL_SAFELY, although the solver-health evidence was clean; the six warning messages counted in the packet are routine OpenFOAM time-precision notices, but the packet reported only their number. No call proposed ACCEPT, so the validator, which restricts ACCEPT but permits stopping or continuing a run, approved all three, and no action was executed in this replay. Each call took about 2 s and used about 4,800 tokens. Temperature 0 therefore did not make the output repeatable: identical inputs produced two different diagnoses, one of which misread clean solver health as instability. Acceptance is decided by the registered gate, not by these diagnoses.
LLM diagnosis of the archived cube evidence: all three calls with an identical packet (temperature 0). The registered gate returns STILL_DEVELOPING (lateral-force growth ratio 2.10 against 1.25). No action was executed.
| Call | Diagnosis | Proposed action | Validator | Latency (s) | Tokens |
| 1 | STILL_DEVELOPING | CONTINUE_RUN | Approved | 2.5 | 4,805 |
| 2 | NUMERICALLY_UNHEALTHY | FAIL_SAFELY | Approved | 2.2 | 4,709 |
| 3 | STILL_DEVELOPING | CONTINUE_RUN | Approved | 1.7 | 4,764 |
Table 8.
Limitations
The demonstration covers three CFD studies. Nozzle and forward-facing-step flows are the routable families; their accepted runs pass the registered checks, which is narrower than physical validation. The cube is supporting diagnostic evidence and is not routable. Each new physics family requires its own scientific contract, and acceptance under a family contract is not a general statement of CFD correctness. The accepted runs are single-mesh verifications. The nozzle family rests on a frozen four-mesh reference campaign, but no grid-convergence index is reported, and the step family has neither a registered cross-grid criterion nor a quantitative reference-field comparison. The cube wall treatment is uncertain: at the cube-surface has a median of 24.7 and a range of 2.8–96.5, with 67% of the area below . Its 20-unit gate window contains only about two periods of the lateral oscillation, enough to show continued growth but too short for a statistical stationarity claim. A provisional comparison of its evolving mean wake with ERCOFTAC centerline profiles is not satisfactory, so no experimental validation is claimed. The model’s diagnoses are not guaranteed to be repeatable: in the cube diagnosis (§ 5.6) one of three identical calls gave a different diagnosis, whereas all five arm-B repeats on the same cube evidence agreed in the controller comparison, and the proposed corrective action varied across repeats at five of 18 planted faults (§ 5.2). General CAD/STEP-to-CFD execution is not demonstrated. All archived agent sessions are development cases, run while the corresponding pipeline was being built, and the cube gate was registered after the cube data existed (Appendix § 10); no request was held out. Finally, the controller comparison (§ 5.2) uses one model, replays archived states rather than new runs, and plants faults in one family. In the check-informed configuration the model never proposed acceptance contrary to a failed check, so the enforcement layer was not tested against a model that proposes an unjustified acceptance. Nor does the comparison establish an incremental benefit of the model over a fixed rule (§ 5.2), its two configurations also differ in prompting, and the corrections the model proposed for planted faults were not executed. In the agent sessions, one repair call (N4) was not recorded, and one accepted step run (S7) required supervised resumption after a mid-campaign validator fix. Comparisons across models, on held-out requests, and with executed corrections remain future work.
Conclusion
The aim of this work is CFD that can be automated from request to report and still be trusted. CFD Forge links engineering requests to OpenFOAM case construction, execution, diagnosis, correction, and reporting, while keeping scientific acceptance in deterministic, family-specific contracts. Language-model reasoning interprets requests and evidence and proposes bounded actions; validators decide whether those actions are admissible and whether a result is accepted. Under this division, a converging–diverging nozzle was accepted with exit-state and mass-flow differences from quasi-one-dimensional theory below 2% after its stationarity evidence, not its reference agreement, determined when the run was complete. A transient Mach-2 forward-facing-step flow was accepted with storage-aware mass closure at round-off. Within both families, the agent also built and assessed new cases from text requests that changed the geometry and the operating conditions, and their results followed the expected physical trends. For a three-dimensional turbulent cube run outside the agent loop, a retrospectively registered stationarity gate withheld acceptance because a growing lateral mode showed that solver completion and a settled mean drag did not establish a developed flow. In a controller comparison of two configurations of the same model, a model-only configuration given a filtered evidence packet accepted most of the planted faults, whereas the CFD Forge configuration, with the check results and the validators, accepted none; because the configurations also differ in prompting, this does not isolate the effect of the check results. A fixed rule reached the same verdicts as CFD Forge, so these results do not establish an incremental benefit of the model in acceptance decisions. Case files, recorded model calls, action rulings, and field-evolution records keep each decision auditable. These elements provide a basis for high-throughput simulation, active learning, and design-optimization loops in which automated evaluations must remain scientifically accountable.
Detailed Simulation Setup and Acceptance Criteria
Converging–Diverging Nozzle
The nozzle has inlet, throat, and exit radii of 0.0500, 0.0326, and 0.0354 m over a length of 0.33 m (, nominal ); the remaining setup is listed in Table 9, and the wedge mesh is shown in Figure 3a. The 30 kPa ambient pressure is used only in the operating-regime assessment; it is not imposed at the outlet, and the external jet is not simulated. Quasi-one-dimensional theory supplies the initial fields and the analytical comparison but does not constrain the exit state.
The twenty registered checks cover mesh validity, solver completion, positive and finite thermodynamic fields, inlet total conditions, a sonic throat (), a supersonic outlet (minimum face-normal Mach number above 1.05), stagnation enthalpy, and flux consistency. Over the final 2 ms they require a steady mass-flow mismatch below 0.1%, a normalized transient continuity error below 0.01%, and monitor drift and relative field changes below 0.2%; the exit-pressure difference from theory must stay below 5% and the other theory comparisons below 3%. A passing run is PASS_SINGLE_MESH, not a grid-convergence study. The recipe was frozen beforehand from an LLM-free reference campaign on four refined wedge meshes and three controls (halved Courant number, halved wedge angle, and a 2% startup perturbation), which required last-pair changes below 0.5% and control changes below 0.2% (Table 10). The theory tolerances are screening bounds for a finite-angle conical flow.
Mach-2 Forward-Facing Step
The channel has length 3 and height 1, with a step of height 0.2 at , meshed with 16,128 cells and one empty spanwise layer (Figure 9a,Figure 9b; Table 9). The normalized gas has unit sound speed, so the inlet state , is Mach 2. The numerical recipe is copied unchanged from the Foundation v14 shockFluid/forwardStep tutorial and hash-checked at run time; it was frozen after a manual reproduction of the Mach-3 tutorial on the same mesh, whose shock structure is qualitatively consistent with the classical problem [28] but is not a quantitative reference. The case differs from that Mach-3 problem and is not presented as a reproduction of it.
The checks cover planar mesh topology, the initial state, realized supersonic inflow, field positivity, solver health, wall impermeability, completion of the horizon (), and measurable increases of pressure, density, and temperature across the detected front. Conservation is tested with the transient balance
evaluated from two records written at every time step: the domain mass and the net boundary mass flux summed from the face fluxes. The residual , normalized by the larger of the inlet and outlet fluxes, must stay below ; sample pairs that straddle a restart are never differenced. Because the solver advances a conservative finite-volume update with explicit Euler time integration, this identity holds to round-off when every term is included, so it detects accounting errors—a missing boundary flux, a spurious source, or a broken restart—but not discretization error. Unequal instantaneous inlet and outlet fluxes are therefore not a conservation failure when they are balanced by a change in stored mass. The observed residuals are near . The compression checks are directional, not a quantitative reference-field comparison.
Turbulent Cube Diagnostic Study
The cube () sits in a channel of height spanning and , at , comparable to the configuration of Martinuzzi and Tropea [29]. The mesh has 567,360 cells (Figure 9c,Figure 9d), and the inflow is mapped from a precursor channel (Table 9). The campaign continues a predecessor pilot to , and force histories are analyzed from .
Forces are the pressure-plus-viscous forces on the cube in units with , so , and is plotted in these units. The stationarity gate, registered retrospectively (Appendix § 10), is applied over the final 20 time units: the least-squares drift of each force component must stay below 2% of the mean streamwise force, the mean lateral force below 5% of it, and the mean of over the second half of the window must not exceed 1.25 times its first-half value. A supplementary audit, which is not part of the registered gate, compares complete lateral-force cycles between successive upward zero crossings of , with amplitude
and requires successive comparable amplitudes to change by less than 10%; incomplete cycles are excluded. Mean drag, six wake probes, block-mean fields, and fluctuation measures provide complementary evidence. The cube is a diagnostic stress test, not an accepted turbulent reference solution.
Model Records
Figures 11 and 12 reproduce two archived model outputs referred to in the main text, and Table 11 gives the timeline of the walkthrough session.
model output (gemini-3.5-flash-lite, schema-constrained, temperature 0)
case_name: mach2p0_step0p20 mach: 2.0 step_height: 0.2 step_x: 0.6
length, height, pressure, temperature, end_time, max_co, nx, ny: null
requests_unsupported_physics: false
reporting_objectives:
- inspect the transient shock/compression structure
- determine whether the final result passes deterministic scientific validation
resolved specification
length 3.0 height 1.0 nx 240 ny 80 pressure 1.0 temperature 1.0
end_time 4.0 max_co 0.2 write_interval 0.1 physics: inviscid_euler
field provenance
stated_by_user: mach, step_height, step_x
inferred_from_family_defaults: end_time, height, length, max_co, nx, ny,
pressure, temperature, write_interval
diagnosis: UNCONVERGED confidence: high
evidence_used:
- mass imbalance is 1.35 percent, exceeding the steady balance criterion
- passes_stationarity is false
- mass flow range and drift indicate ongoing evolution
- no local mesh underresolution flagged by baseline metrics
competing_hypotheses:
- insufficient_run_time
for: monitors and fields are not yet stationary;
mass imbalance and drift are slowly decreasing
- local_mesh_underresolution
for: strong gradients present near throat
against: checkMesh passed cleanly; no candidate underresolved
regions flagged by feedback profile diagnostics
action: CONTINUE_RUN
action validator: APPROVED ("permitted for a healthy evolving solution")
scientific validator: FAIL (steady_mass_balance, monitors_stationary,
fields_stationary)
Reproducibility, Session Ledger, and Development History
Models and calls. All recorded text calls used gemini-3.5-flash-lite through the Google Gemini API (google-genai SDK) at temperature 0, with a Pydantic response schema for every stage except the plain-text summary. The field observer’s model is inferred from the provider’s usage records (Sec. 2.3). The nozzle sessions ran on 21 September 2026, the step sessions on 22 September, the cube calculation on 23–24 September, and the cube diagnosis (Sec. 5.6) and controller comparison (Sec. 5.2) on 1 October 2026. System instructions and schemas are in src/agents/, src/reasoning/forward_step_diagnosis.py, and paper/cfd_forge/scripts/cube_llm_diagnosis.py. Each run allowed at most four iterations of solve, diagnosis, and action. Token counts were recorded for the cube diagnosis and the controller comparison only.
Action vocabularies. The nozzle family admits ACCEPT, CONTINUE_RUN, REQUEST_DIAGNOSTIC, REFINE_THROAT, REFINE_GRADIENT_REGION, REPAIR_MESH, RESTART_CLEAN, and REJECT_OUTSIDE_DOMAIN. The step family admits ACCEPT, CONTINUE_RUN, EXTEND_END_TIME, REDUCE_MAX_CO, REFINE_MESH, REBUILD_FROM_VALIDATED_SPEC, REQUEST_CLARIFICATION, REJECT_UNSUPPORTED, and FAIL_SAFELY. REFINE_MESH is refused unless the current solution is healthy.
Counting. Model calls were counted from every call record in the session archive—the per-session call logs and the per-iteration decision, mesh-review, and report records—and deduplicated within each run by stage and latency, because records are copied between session and iteration folders. Field-observation calls were counted from the per-iteration observation records. An earlier count taken from the event logs alone (82 calls, 23 proposals) missed the iterations of the nozzle feedback loop and is superseded by the numbers in § 5.1.
What is reproducible. The archive reproduces the analyses, figures, and tables from the recorded evidence, and the native case files (initial or restart state, mesh, settings, and logs) allow each CFD run to be repeated with OpenFOAM Foundation v14. The historical agent sessions ran from uncommitted development trees, so the release does not reproduce the historical agent execution byte for byte. Model outputs are not reproducible either: temperature 0 does not make the provider deterministic, as the cube diagnosis shows (§ 5.6). Reproducibility here means reproducibility of the artifacts and the workflow, not of the exact model outputs.
Hardware and software. All calculations ran on one Windows laptop with an Intel Core i5-11400H processor (six cores), under OpenFOAM Foundation version 14 (build 14-7b05503f98a8) in WSL 2. The nozzle and step runs were serial; the cube ran on six MPI ranks. The nozzle sessions ran from the uncommitted development tree between commits 2d86e7b and 007a71d, and the step sessions between 3bd128a and 7f9126a. The consolidated repository is tagged v0.1-review-baseline.
Development history and threshold registration. All archived agent sessions are development cases, run while the corresponding pipeline was being built; no request was held out. The nozzle thresholds were committed on 20 September 2026 with the LLM-free reference campaign, before the first nozzle session, as declared engineering tolerances that may not be relaxed to pass a run; the nozzle requests were then repeated as the feedback loop was revised, which is why the reference request appears in four sessions. The step validator was committed on 22 September 2026, before the first step session, and changed twice during that campaign: to remove the false-positive fatal-error check (§ 5.1) and to form the mass-closure residual only within a restart segment. The cube gate (cube-stationarity/1.0.0) was registered on 28 September 2026, after the cube calculation had been run. The measured growth ratio is 2.10, so the gate returns the same verdict for any growth limit below 2.10, including the registered 1.25; the gate was nonetheless not frozen before the data existed.
Prototype before the registered contracts. The registered nozzle family replaced an earlier, less constrained prototype, preserved in the archive. Given the same nozzle as text, it built the geometry through a CADGmsh path, and the model chose the meshing strategy (Figure 3b); the resulting 63,747-tetrahedron mesh met its quality constraint and was accepted. The model’s solver setup, however, was inconsistent for the inviscid request: it selected laminar flow with Sutherland viscosity while its rationale cited – SST, and it recorded the 30 kPa back pressure as the outlet. static pressure. After two continuations the run ended at ms as STABLE_UNCONVERGED with a 50.8% mass-flow imbalance. In the registered family the physical model and boundary conditions are fixed by the contract, and the model supplies only case parameters. Carrying the Gmsh path through to a passing solution is left to future work.
Session ledger. Table 12 lists all 19 sessions. Proposals are given in order with the action validator’s ruling; the final column gives the archived family status and the resulting decision under Sec. 2.2; runs that ended before an approved correction was carried out are marked “not accepted”.
Acknowledgements
AI assistance was used for drafting, language editing, parts of the analysis scripts, and the conceptual illustration in Figure 1.
Code and Data Availability
The CFD Forge source code, family recipes, validators, prompts, response schemas, controller-comparison records, figure files, and the scripts that produce the data figures and tables of this paper are available at https://github.com/aakashoza31/physics-constrained-cfd-agent.
The archived session records, the native case files of every run (including the precursor channel case that supplies the cube inflow), source snapshots, solver logs, evidence packets, field-evolution videos, and the provider usage records are deposited on Zenodo at https://doi.org/10.5281/zenodo.23148676.
References
- [1]J. P. Slotnick, A. Khodadoust, J. Alonso, D. Darmofal, W. Gropp, E. Lurie, and D. J. Mavriplis, CFD Vision 2030 Study: A Path to Revolutionary Computational Aerosciences. NASA, Technical Report NASA/CR-2014-218178, 2014. https://ntrs.nasa.gov/citations/20140003093.
- [2]A. I. J. Forrester and A. J. Keane, “Recent advances in surrogate-based optimization,” Progress in Aerospace Sciences, vol. 45, nos. 1–3, pp. 50–79, 2009. DOI: https://doi.org/10.1016/j.paerosci.2008.11.001.
- [3]S. L. Brunton, B. R. Noack, and P. Koumoutsakos, “Machine learning for fluid mechanics,” Annual Review of Fluid Mechanics, vol. 52, pp. 477–508, 2020. DOI: https://doi.org/10.1146/annurev-fluid-010719-060214.
- [4]Y. Chen, L. Zhang, X. Zhu, H. Zhou, and Z. Ren, “Large language model-assisted sensitivity analysis and parameter optimization in computational fluid dynamics,” Theoretical and Applied Mechanics Letters, vol. 16, no. 5, Article 100660, 2026. DOI: https://doi.org/10.1016/j.taml.2026.100660.
- [5]S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, “ReAct: Synergizing reasoning and acting in language models,” in The Eleventh International Conference on Learning Representations (ICLR), 2023. Available at https://arxiv.org/abs/2210.03629.
- [6]T. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer, N. Cancedda, and T. Scialom, “Toolformer: Language models can teach themselves to use tools,” in Advances in Neural Information Processing Systems, vol. 36, pp. 68539–68551, 2023. DOI: https://doi.org/10.52202/075280-2997.
- [7]P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W.-t. Yih, T. Rocktäschel, S. Riedel, and D. Kiela, “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in Advances in Neural Information Processing Systems, vol. 33, 2020. Available at https://arxiv.org/abs/2005.11401.
- [8]H. G. Weller, G. Tabor, H. Jasak, and C. Fureby, “A tensorial approach to computational continuum mechanics using object-oriented techniques,” Computers in Physics, vol. 12, no. 6, pp. 620–631, 1998. DOI: https://doi.org/10.1063/1.168744.
- [9]Y. Chen, X. Zhu, H. Zhou, and Z. Ren, “MetaOpenFOAM: An LLM-based multi-agent framework for CFD,” arXiv preprint arXiv:2407.21320, 2024. DOI: https://doi.org/10.48550/arXiv.2407.21320.
- [10]Y. Chen, X. Zhu, H. Zhou, and Z. Ren, “MetaOpenFOAM 2.0: Large language model driven chain of thought for automating CFD simulation and post-processing,” arXiv preprint arXiv:2502.00498, 2025. DOI: https://doi.org/10.48550/arXiv.2502.00498.
- [11]S. Pandey, R. Xu, W. Wang, and X. Chu, “OpenFOAMGPT: A retrieval-augmented large language model (LLM) agent for OpenFOAM-based computational fluid dynamics,” Physics of Fluids, vol. 37, no. 3, Article 035120, 2025. DOI: https://doi.org/10.1063/5.0257555.
- [12]J. Feng, R. Xu, and X. Chu, “OpenFOAMGPT 2.0: End-to-end, trustworthy automation for computational fluid dynamics,” International Journal of Heat and Fluid Flow, vol. 120, Article 110399, 2026. DOI: https://doi.org/10.1016/j.ijheatfluidflow.2026.110399.
- [13]Z. Dong, Z. Lu, and Y. Yang, “Fine-tuning a large language model for automating computational fluid dynamics simulations,” Theoretical and Applied Mechanics Letters, vol. 15, no. 3, Article 100594, 2025. DOI: https://doi.org/10.1016/j.taml.2025.100594.
- [14]L. Yue, N. Somasekharan, T. Zhang, Y. Cao, Z. Chen, S. Di, and S. Pan, “Foam-Agent: A large language model-based multi-agent framework for automating computational fluid dynamics workflows,” Computer Methods in Applied Mechanics and Engineering, vol. 461, Article 119271, 2026. DOI: https://doi.org/10.1016/j.cma.2026.119271.
- [15]E. Fan, K. Hu, Z. Wu, J. Ge, J. Miao, Y. Zhang, H. Sun, W. Wang, and T. Zhang, “ChatCFD: A large language model-driven agent for end-to-end computational fluid dynamics automation with structured knowledge and reasoning,” Advanced Intelligent Discovery, vol. 2, no. 3, Article e202500174, 2026. DOI: https://doi.org/10.1002/aidi.202500174.
- [16]Z. Xu, L. Wang, C. Wang, Y. Chen, Q. Luo, H. Yao, S. Wang, and G. He, “CFDAgent: A language-guided, zero-shot multi-agent system for complex flow simulation,” Physics of Fluids, vol. 37, no. 11, Article 117124, 2025. DOI: https://doi.org/10.1063/5.0294696.
- [17]E. Fan, L. Shi, Z. Li, and C.-y. Wen, “PhyNiKCE: A neurosymbolic agentic framework for autonomous computational fluid dynamics,” arXiv preprint arXiv:2602.11666, 2026. DOI: https://doi.org/10.48550/arXiv.2602.11666.
- [18]N. Somasekharan, R. Pathak, M. Dhanakoti, T. Zhang, L. Yue, A. Zhu, and S. Pan, “AI CFD Scientist: Toward open-ended computational fluid dynamics discovery with physics-aware AI agents,” arXiv preprint arXiv:2605.06607, 2026. DOI: https://doi.org/10.48550/arXiv.2605.06607.
- [19]Y. Jadhav and A. Barati Farimani, “Large language model agent as a mechanical designer,” Journal of Engineering Design, vol. 37, no. 8, pp. 2904–2940, 2026. DOI: https://doi.org/10.1080/09544828.2026.2624356.
- [20]O. Barati Farimani, A. Chandrasekhar, and A. Barati Farimani, “Automating MD simulations for proteins using large language models: NAMD-Agent,” arXiv preprint arXiv:2507.07887, 2025. DOI: https://doi.org/10.48550/arXiv.2507.07887.
- [21]J. Ock, R. S. Meda, T. Vinchurkar, Y. Jadhav, and A. Barati Farimani, “Adsorb-Agent: Autonomous identification of stable adsorption configurations via a large language model agent,” Digital Discovery, vol. 5, no. 2, pp. 617–629, 2026. DOI: https://doi.org/10.1039/D5DD00298B.
- [22]A. Zhao, A. Chandrasekhar, and A. Barati Farimani, “PolyJarvis: An LLM-orchestrated agent for automated all-atom molecular dynamics of amorphous homopolymers,” arXiv preprint arXiv:2604.02537, 2026. DOI: https://doi.org/10.48550/arXiv.2604.02537.
- [23]C. Lorsung and A. Barati Farimani, “Mesh deep Q network: A deep reinforcement learning framework for improving meshes in computational fluid dynamics,” AIP Advances, vol. 13, no. 1, Article 015026, 2023. DOI: https://doi.org/10.1063/5.0183039.
- [24]W. L. Oberkampf and T. G. Trucano, “Verification and validation in computational fluid dynamics,” Progress in Aerospace Sciences, vol. 38, no. 3, pp. 209–272, 2002. DOI: https://doi.org/10.1016/S0376-0421(02)00005-2.
- [25]I. B. Celik, U. Ghia, P. J. Roache, C. J. Freitas, H. Coleman, and P. E. Raad, “Procedure for estimation and reporting of uncertainty due to discretization in CFD applications,” Journal of Fluids Engineering, vol. 130, no. 7, Article 078001, 2008. DOI: https://doi.org/10.1115/1.2960953.
- [26]F. R. Menter, “Two-equation eddy-viscosity turbulence models for engineering applications,” AIAA Journal, vol. 32, no. 8, pp. 1598–1605, 1994. DOI: https://doi.org/10.2514/3.12149.
- [27]A. Kurganov and E. Tadmor, “New high-resolution central schemes for nonlinear conservation laws and convection–diffusion equations,” Journal of Computational Physics, vol. 160, no. 1, pp. 241–282, 2000. DOI: https://doi.org/10.1006/jcph.2000.6459.
- [28]P. Woodward and P. Colella, “The numerical simulation of two-dimensional fluid flow with strong shocks,” Journal of Computational Physics, vol. 54, no. 1, pp. 115–173, 1984. DOI: https://doi.org/10.1016/0021-9991(84)90142-6.
- [29]R. Martinuzzi and C. Tropea, “The flow around surface-mounted, prismatic obstacles placed in a fully developed channel flow,” Journal of Fluids Engineering, vol. 115, no. 1, pp. 85–92, 1993. DOI: https://doi.org/10.1115/1.2910118.








