Search arXiv⌕ 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

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↗

Resolving molecular biexcited states using classical leading-order triples corrections to quantum equation-of-motion UCCSD

Excited electronic states are difficult to accurately and tractably model, particularly those exhibiting multiexcitonic character. Scalable single-reference excited state methods typically fail to describe such states as they suffer from the defects of the mean-field approximation and/or neglect higher-rank excitation operators. To address this, we derive the [T] perturbative correction to the quantum self-consistent equation-of-motion unitary coupled cluster singles and doubles (q-sc-EOM-UCCSD) method. The method captures triple excitation effects through a classical step of second-order in many-body perturbation theory following a q-sc-EOM-UCCSD calculation on a quantum computer. The perturbative correction developed has a $\mathcal{O}(N^7)$ classical computational time scaling. We incorporate [T] into a hybrid compute strategy wherein eigenvectors of the effective Hamiltonian from the hybrid quantum-classical q-sc-EOM-UCCSD algorithm are relayed to a classical computer which performs the postprocessing required for the [T] correction. The benefits of [T] are quantified in a benchmark covering a variety of electronically excited states of the isoelectronic CH$^+$ and BH molecules. We find that the addition of the [T] correction to both trotterized and full operator variants of q-sc-EOM-CCSD can offer dramatic improvements over baseline q-sc-EOM-UCCSD. Our assessment clearly demonstrates the importance of considering higher-rank excitation operators in q-sc-EOM-UCCSD, quantifies the overall success of the [T] correction, and discusses some of its limitations.

physics.chem-ph↗