arXiv Science⌕ Search

arXiv · 2610.10320

LLM-Assisted Generation of Transparent, Open-Source Multiphysics Models of Electrochemical Devices

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Sebastian Castro, Maya F. Schuchert, Spencer A. McCluskey, Eric W. Lees, Justin C. Bui. 2026-10-07. LLM-Assisted Generation of Transparent, Open-Source Multiphysics Models of Electrochemical Devices. https://arxiv.org/abs/2610.10320

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Isotope Effects at Classical Cost through Mass-Differentiable Machine Learning

Isotope effects govern fractionation and modulate reactivity, with applications from hydrogen energy to environmental science and catalysis, yet predicting them requires resolving small isotope-dependent free-energy differences that remain very challenging for conventional path-integral simulations in complex systems. Here we introduce iso-EPIGS, a path-integral coarse-graining framework built on a mass-differentiable neural network that reconstructs the mass- and temperature-dependent path integral centroid free-energy surface. Classical molecular dynamics on the learned surface yields rigorous isotope-resolved thermodynamics without explicit path-integral sampling. Benchmarks spanning gas, liquid, and crystalline phases, including liquid water and oxalic acid crystal, reproduce reference path-integral isotope free-energy differences, enthalpies, and lattice parameters at near classical computational cost. Crucially, iso-EPIGS trained solely on all-H and all-D isotopologues retains high accuracy for unseen partially deuterated isotopologues, demonstrating robust transferability across nuclear masses. Iso-EPIGS makes accurate isotope-effect simulations feasible for complex systems and lays the groundwork for foundation models of isotope effects across chemical space.

physics.chem-ph↗

A direct approach to computing the non-interacting kinetic energy functional

The non-interacting kinetic energy functional, $T_{KS}(ρ)$, plays a fundamental role in Density Functional Theory (DFT), but its explicit form remains unknown for arbitrary $N$-representable densities. Although it can, in principle, be evaluated by solving a constrained optimization problem, the associated adjoint problem is not always well-posed; moreover, even when it is, the corresponding adjoint operator may be singular. To the best of our knowledge, none of the existing approaches in the literature precisely determines the non-interacting kinetic energy functional for a given $N$-representable electron density, $ρ$. In this work, we present a variational framework for computing an extension of $T_{KS}(ρ)$ using an exact trigonometric reparametrization of the density that eliminates the need for an adjoint equation. We present a proof-of-concept numerical validation of the variational principle for the special case of one-dimensional Kohn-Sham systems. Our method, however, is general and provides a systematic foundation for computing $T_{KS}(ρ)$ in higher dimensions too, paving the way for improved kinetic energy functionals in DFT.

physics.chem-ph↗

Optimizing the Optimizer: Language Models Discover Faster Molecular Relaxation Algorithms

Geometry optimization is a major cost in many quantum-chemical workflows: each optimization step requires one force evaluation, and at the density-functional level that evaluation dominates the wall time. Research in this area has produced a broad range of optimization methods, and we ask whether a language model can improve on the best of them through autoresearch. An agent rewrites the optimizer itself to minimize force-call counts, restrained by two admission gates that reject premature stopping and improvements that do not generalize to unseen molecules. Starting from Sella, the fastest open-source optimizer available, the search produces AutoSella, a family of two optimizers. Both of them deliver consistent force-call reductions relative to Sella across held-out molecular benchmarks and potentials not used during the search. Most notably, at the r2SCAN-3c DFT level, the best variant requires only 40.2-77.2% of Sella's force calls while achieving the same energy reduction, even though agent used no DFT gradients.

physics.chem-ph↗