LPC3D: An Enhanced Parallel Software for Large-Scale Simulation of Adsorption in Porous Carbons and Supercapacitors

El Hassane Lahrar, Mathieu Salanne, Rudolf Weeber, Céline Merlet · 2026

Read LPC3D: An Enhanced Parallel Software for Large-Scale Simulation of Adsorption in Porous Carbons and Supercapacitors by El Hassane Lahrar, Mathieu Salanne, Rudolf Weeber, Céline Merlet (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-22553.txt.

Introduction

Lahrar and co-authors release a rebuilt version of LPC3D, a tool for simulating adsorption in porous carbons. Such carbons sit inside supercapacitors, which store charge by drawing ions onto electrode surfaces. Molecular simulations capture the physics but only for tiny systems. LPC3D works at a larger scale and reports ion uptake, diffusion, and NMR spectra. The new code, written in Python, generates C++ and CUDA kernels and runs in parallel on CPUs and GPUs. It can now model anything from one particle to a device.

Catalog record

CREATOREl Hassane Lahrar, Mathieu Salanne, Rudolf Weeber, Céline Merlet
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE44043
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.22553

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

LPC3D: An Enhanced Parallel Software for Large-Scale Simulation of Adsorption in Porous Carbons and Supercapacitors El Hassane Lahrar, Mathieu Salanne, Rudolf Weeber, Céline Merlet Abstract Simulations of electrochemical double layer capacitors based on porous carbon electrodes, energy storage systems which accumulate and release energy through reversible ion adsorption at electrode/electrolyte interfaces, are often performed at the microscopic scale, using molecular dynamics. Such simulations provide crucial information to understand the adsorption of ions and the effect of confinement on some electrochemical properties. However, their computational cost limits the size of the systems studied to a few nanometers and a few pores while experimental materials are highly heterogeneous with a distribution of particle and pore sizes. LPC3D is a software designed for mesoscopic simulations of porous carbon particles and carbon-based supercapacitors which allow for the inclusion of such heterogeneity. The code calculates quantities of adsorbed ions, diffusion coefficients and NMR spectra of ions / molecules adsorbed in porous carbon matrices. In this work, we report on a new implementation of LPC3D, written in Python using the PyStencils module which can generate optimized C++ and CUDA code. This implementation is parallel, can be run on CPU and GPU, and allows one to simulate systems going from a single carbon particle to a supercapacitor with hundreds of micrometers in length. Here, we apply the new implementation of LPC3D to the simulation of supercapacitors with porous carbon electrodes represented as monoliths or carbon films to investigate the influence of the microstructure on the resulting adsorption and spectroscopic properties. keywords Adsorption, Porous carbons, Confinement, Energy storage † † affiliation: Sorbonne Université, CNRS, Physicochimie des Électrolytes et Nanosystèmes Interfaciaux, F-75005 Paris, France † † affiliation: Université de Toulouse, Toulouse INP, CNRS, CIRIMAT, Toulouse, France † † affiliation: Réseau sur le Stockage Électrochimique de l’Énergie (RS2E), Fédération de Recherche CNRS 3459, HUB de l’Énergie, Rue Baudelocque, 80039 Amiens, France † † email: [email protected] † † affiliation: Sorbonne Université, CNRS, Physicochimie des Électrolytes et Nanosystèmes Interfaciaux, F-75005 Paris, France † † affiliation: Réseau sur le Stockage Électrochimique de l’Énergie (RS2E), Fédération de Recherche CNRS 3459, HUB de l’Énergie, Rue Baudelocque, 80039 Amiens, France † † affiliation: Institute for Computational Physics, University of Stuttgart, Allmandring 3, 70569 Stuttgart, Germany † † affiliation: Université de Toulouse, Toulouse INP, CNRS, CIRIMAT, Toulouse, France † † affiliation: Réseau sur le Stockage Électrochimique de l’Énergie (RS2E), Fédération de Recherche CNRS 3459, HUB de l’Énergie, Rue Baudelocque, 80039 Amiens, France † † email: [email protected] 1 Introduction Electrochemical double-layer capacitors (EDLCs), also known as supercapacitors, are energy storage systems characterized by their high power densities, long cycle lifetimes, and wide operating temperature range ( Zhong et al. 2015 ; Béguin et al. 2014 ; Brandt et al. 2013 ; Lewandowski et al. 2010 ) . In these systems, charge storage is based on the voltage-driven electrosorption of ions from an electrolyte onto the electrode surfaces ( Simon and Gogotsi 2008 ; Forse et al. 2016 ; Salanne et al. 2016 ) . Owing to their exceptionally high specific surface area, good electronic conductivity, chemical stability, and ease of synthesis, porous carbon materials are the electrodes of choice ( Simon and Gogotsi 2013 ) . Numerous studies have been conducted to better understand the parameters influencing the capacitance and, subsequently, the energy stored in these systems. Key features include pore size and its correlation with ion size, the curvature of the electrodes, the degree of ordering and the potential of zero charge ( Chmiola et al. 2006 ; Raymundo-Piñero et al. 2006 ; Merlet et al. 2012 ; Feng et al. 2012 ; Liu et al. 2024 ; Ge et al. 2025 ) . Given the pivotal role of carbon structure in supercapacitor performance, understanding ion behavior under confinement within these porous structures is essential. In this regard, Nuclear Magnetic Resonance (NMR) emerges as a powerful technique for investigating the interactions and dynamics of ions within pores ( Forse et al. 2021 ; Asres et al. 2025 ) . The non-invasive and nucleus specific nature of NMR makes it particularly valuable for studying confined species. As a quantitative method and thanks to the distinct chemical shifts exhibited by species in the bulk (‘ex-pore’) versus those adsorbed within pores (‘in-pore’), NMR allows for the determination of the quantities of adsorbed ions and solvent molecules, at various potentials and regardless of their charge ( Griffin et al. 2014 ; Griffin et al. 2016 ) . While NMR is a very powerful technique in this regard, dynamic exchange between environments can lead to peak merging and complex lineshapes in NMR spectra ( Lyu et al. 2024 ) , difficult to interpret without complementary theoretical approaches. On the theoretical side, most simulations of supercapacitors have been performed at the microscopic scale, ( Jeanmairet et al. 2022 ) using molecular dynamics software such as LAMMPS ( Plimpton 1995 ) , MetalWalls ( Marin-Laflèche et al. 2020 ; Coretti et al. 2022 ) and ESPResSo ( Limbach et al. 2006 ; Weik et al. 2019 ) . Such simulations aim at understanding the adsorption of ions and the effect of porosity on some electrochemical properties ( Merlet et al. 2012 ; Feng and Cummings 2011 ; Janssen et al. 2023 ; Nesterova et al. 2025 ; Lin et al. 2024 ) . One challenge associated with molecular dynamics simulations of supercapacitors is the generation of accurate atomistic models of complex, disordered carbons used as electrodes. A number of methods have been proposed in the past to obtain such disordered structures, including Reverse Monte Carlo Thomson and Gubbins 2000 , Hybrid Reverse Monte Carlo ( Farmahini et al. 2013 ; Palmer et al. 2009 ) , Quench Molecular Dynamics ( Palmer et al. 2010 ; Thompson et al. 2017 ; Deringer et al. 2018 ) , and mimetic approaches related to experimental conditions ( de Tomas et al. 2017 ; Schweizer et al. 2017 ; Vallejos-Burgos et al. 2023 ) . The atomistic carbon structures generated in such ways are of great value, as they permit the investigation of microscopic phenomena at the molecular level. However, this increased accuracy comes at the expense of a significantly higher computational cost and more difficult characterization compared to slit pore models ( Bhatia 2017 ; Farmahini and Bhatia 2015 ) , which prevents the use of molecular simulations to screen porous carbons for supercapacitor applications. Another limitation of molecular simulations is the restricted range of time and length scales that can be probed, typically in the order of a few nanoseconds and a few nanometers, which is considerably smaller than the typical experimental values of several micrometers for the electrode width and of milliseconds to seconds for the charging time. It is also well known from experiments that materials are highly inhomogeneous, exhibiting broad pore size and particle size distributions. While studies on the effect of particle size are rare, it was shown for example that sieving influences the NMR spectra measured ( Cervini et al. 2019 ) and that particle sizes influence density, surface morphology, and specific capacitance ( Macías-García et al. 2019 ; Taer et al. 2018 ) . Molecular simulations, where electrode sizes are a few nanometers, only allow for the inclusion of a

Read the complete text