MOOSEnger: A Simulation-Aware AI Agent Framework for the MOOSE Ecosystem
Organizations: Idaho National Laboratory, 995 MK Simpson Blvd, Idaho Falls, 83401, ID, USA
Abstract
MOOSEnger is a modeling and simulation AI agent framework for the Multiphysics Object-Oriented Simulation Environment (MOOSE) ecosystem, built around a simulation-aware harness that combines an interchangeable reasoning model with grounded domain knowledge, revised simulation artifacts, MOOSE-specific validation, and executable solver feedback. This surrounding system addresses a central limitation of one-shot large language model generation: small syntax, schema, reference, or solver-configuration errors can prevent a plausible input from executing, while successful execution alone does not establish scientific correctness. MOOSEnger's simulation-aware harness integrates MOOSE knowledge retrieval, Hierarchical Input Text (HIT)-aware parsing, syntax metadata, language-server diagnostics, revision-controlled authoring, and local or MCP-backed validation and execution in a generate-check-repair-run workflow that binds evidence to each input revision and guides bounded repair before acceptance. Across 200 prompts spanning eight simulation families, the MOOSEnger harness increases executable success from 10/200 (5%) to 179/200 (89.5%) with GPT 5.2 API and from 0/200 to 153/200 (76.5%) with Gemma 4 31B. A complementary ten-case Method of Manufactured Solutions benchmark moves beyond executability: all ten generated inputs satisfy the semantic-alignment criterion, and eight execute successfully while meeting the prescribed single-mesh numerical-accuracy criterion. These results show that executable reliability depends on the complete agent system rather than on the reasoning model alone, and that simulation-aware harnessing provides a path toward physics-informed verification and future full application-level and engineering verification and validation implementation.
Figures & tables
| Design requirement | MOOSEnger mechanism |
| Domain grounding | Retrieval over documentation and examples, MOOSE-native object and parameter metadata, and task-local artifacts |
| Artifact identity | Revisioned drafts, immutable validation candidates, and a single accepted input |
| Repair authority | The model proposes revisions, and the harness binds evidence to the inspected revision and controls candidate acceptance and promotion |
| Deterministic validation | HIT structure, block and object schemas, and parameter, cross-link, symbol, reference, and language-server checks |
| Executable evidence | Authoritative validation by the target MOOSE application, bounded probes, mesh generation, and full simulation execution |
| Recovery control | Structured diagnostics, failure-progress checks, finite repair budgets, and controlled replanning, escalation, or termination |
| Assurance gate | Evidence examined | Supported claim |
| Structural validity | HIT structure; object and parameter schemas; symbol, reference, and language-server findings | Internally consistent under the implemented syntax, schema, and reference checks. |
| Requirement alignment | Explicit task constraints and their assessed representations in the candidate | Represents the assessed user requirements within the declared evaluation scope. |
| Configuration validity | Authoritative validation by the target MOOSE application | Accepted by the target executable at the configuration stage. |
| Bounded execution | Harness-controlled execution within prescribed limits | Initializes and advances within the configured probe limits. |
| Requested operation | Exit status, logs, outputs, and artifact manifest for the requested mesh, probe, or simulation | Successfully completes the requested operation using the accepted revision. |
| Application-specific verification | Manufactured-solution results or other explicitly defined application evidence | Satisfies the specified numerical or V&V criterion within its defined scope. |
| Surface | Primary use | Capability |
| Command-line interface and evaluation harness | Interactive and batch workflows | Direct access to MOOSE question answering, input authoring, validation, and execution. |
| MCP server | Tool-enabled editors and agents | Callable MOOSE validation, mesh generation, and execution services, including local or remote execution. |
| A2A server | Other software agents | Discoverable delegation of complete MOOSE tasks with streamed progress and optional session continuity. |
| Claude Code plugin | Assistant and integrated development environment users | Interactive MOOSE authoring, revision, validation, and execution within a persistent conversation. |
| Problem family | Prompt coverage |
| Diffusion | Steady and transient diffusion on 1D and 2D domains, with standard boundary conditions and lightweight solution outputs. |
| Transient heat conduction | Time-dependent conduction with explicit material properties, time-varying boundary conditions, and transient execution requirements. |
| Solid mechanics | Small-strain elasticity in one, two, and three dimensions, with displacement or traction constraints and stress or reaction outputs. |
| Porous flow | Darcy and pressure-diffusion problems with permeability, viscosity, porosity, mixed boundary conditions, and selected verification quantities. |
| Navier–Stokes | Steady and transient incompressible-flow problems requiring coupled velocity–pressure formulations and appropriate solver configurations. |
| Phase field | Allen–Cahn and Cahn–Hilliard interface-evolution or coarsening problems with varied initial conditions, boundary conditions, and free-energy outputs. |
| Problem | Final absolute error | Physics | Align. |
| Steady diffusion (Dirichlet) | Pass | Pass | |
| Steady diffusion (Neumann) | —execution failed | Fail | Pass |
| Transient diffusion (Dirichlet) | Pass | Pass | |
| Transient diffusion (Neumann) | Pass | Pass | |
| Allen–Cahn phase field | Pass | Pass | |
| Single-phase Darcy pressure | Pass | Pass |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Governing model and manufactured solution | Boundary and initial conditions |
|---|---|
| 1. Steady diffusion—Dirichlet | |
| The governing equation is The manufactured solution is which gives | BC: IC: None. |
| 2. Steady diffusion—Neumann | |
| The governing equation is with the domain-average constraint The manufactured solution is which gives | BC: on . The mean constraint removes the constant nullspace. No Dirichlet condition is applied. IC: None. |
| 3. Transient diffusion—Dirichlet | |
| The governing equation is with The manufactured solution is which gives | BC: IC: |