Search papers, labs, and topics across Lattice.
This paper details the agentic porting of OpenFOAM libraries into Rust for the Open-source Unified TRAnsient Multi-Phase Advanced Reactor simulation Kit (Outram Park), emphasizing a human-in-the-loop approach to enhance reliability in simulation code development. The authors conducted preliminary verification and validation (V&V) of the Outram-Foam libraries, demonstrating reasonable agreement with established literature for various test cases, including the cavity and Sod shock tube scenarios. Notably, the development of the tampines-steam-tables showed strong alignment with Moody's HEM charts, indicating the effectiveness of the agentic coding methodology in accelerating the creation of robust open-source libraries while still relying on human expertise for critical validation tasks.
Human expertise remains essential in the agentic coding process, even as productivity in simulation library development accelerates significantly.
Agentic porting of multiple open-source libraries into Rust, with human in the loop, has been performed for construction of modules within the Open-source Unified TRAnsient Multi-Phase Advanced Reactor simulation Kit (Outram Park). With this new methodology, verification and validation with human expertise, rather than code generation has become the bottleneck in developing reliable simulation codes. In this work, we present the porting of OpenFOAM libraries into the Outram-Foam Rust libraries, their preliminary verification and validation (V\&V) efforts, and their subsequent use in the development of open-source two-phase homogeneous-equilibrium (HEM) choked-flow solvers for the Thermo-hydraulic AI Multi-Phase INtegrated Emulator System (TAMPINES) libraries within Outram Park such as tampines-steam-tables. Preliminary V\&V efforts of Outram-Foam show that the cavity and Sod shock tube cases agree reasonably well with literature values. Moreover, the preliminary development of tampines-steam-tables shows good agreement with Moody's HEM charts. Thereafter, the 1D HEM solver, developed agentically, is presented and preliminarily validated against the Edwards blowdown case. Productivity increases were observed with the use of Claude Code, but domain expertise supplied by human experts remains critically required to ensure the generated code can solve the problem effectively. Further work remains to be done in V\&V, but the agentic coding methodology in this paper demonstrates great potential to speed up production and development of open-source libraries such as Outram Park.