🤖 AI Summary
This study addresses the reliance of electrochemical multiphysics modeling on proprietary software and its high barrier to numerical computation by proposing an automated, open-source modeling framework driven by large language model (LLM) agents. Taking physical equation descriptions and logical checkpoints as core inputs, the method directs agents to autonomously generate Julia code, thereby enabling transparent modeling. This work establishes a novel multiphysics paradigm that substitutes specialized code with physical descriptions, integrating machine-readable frameworks with open-source programming languages to substantially enhance reproducibility. Experimental results demonstrate that the generated models achieve less than 0.7% error relative to COMSOL simulations, while independent models exhibit a consistency of 0.04%.
📝 Abstract
Multiphysics continuum models are powerful tools for studying electrochemical devices, enabling in silico reactor design and resolution of local pH, potential, and concentration fields that govern device performance but are difficult to measure experimentally. However, constructing such models requires substantial numerical expertise or reliance on proprietary software. Here, we show that frontier large language model agents can remove this implementation burden while keeping the underlying physics under researcher control. Using one-dimensional electrochemical CO2 reduction to CO in a porous gas diffusion electrode as a test case, we develop a machine-readable, human-specified modeling harness containing governing equations, parameters, numerical methods, logical build stages, and human-verifiable checkpoints. From this specification, the agent reproducibly constructs complete multiphysics models in open-source Julia. Independently built models, including fully autonomous agent-built models, agree with an equivalent COMSOL implementation to within 0.7% of the peak CO partial current density, and with one another to within 0.04%. Systematically planted errors demonstrate the importance of explicit specifications for reproducibility and reveal the agent's capabilities and limitations in debugging model physics. This framework establishes a more transparent approach to multiphysics modeling in which physical descriptions and governing equations, rather than specialized code, become the primary inputs for computational model development.