LLM-Assisted Generation of Transparent, Open-Source Multiphysics Models of Electrochemical Devices
Sebastian Castro, Maya F. Schuchert, Spencer A. McCluskey, Eric W. Lees, Justin C. Bui
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.
Create a lesson
Related papers
Spin Migration in the Argon Dimer
Stefanos Carlström, Serguei Patchkovskii, Misha Yu Ivanov
Accuracy of Vibrational Properties of Machine-Learning Force Fields for Molecular Crystal Transformations
Natalia Goncharova, Oskar Schweighofer, Johannes Hoja
Electron-Density-Informed Molecular Property Prediction Using Surrogate Functionals
Manuel V. Klockow, Simon Wagner, Roman Remme et al.
Unveiling the Influence of Graphitic Nanocarbon Structures, Defects, and Surface Functional Groups on Supercapacitive Performance in LiTFSI Electrolyte
Phongphot Sakulaue, Bénédicte Réty, Takafumi Ishii et al.
Quantum dynamics of an ion in an RF quadrupole trap with weak octupolar anharmonicity
Sukanya Jana, Anushree Dey, Pintu Manadal et al.
Quantitative modeling of acid-base equilibria
Qianjun Xu, Simin Liu, Cesare Malosso et al.