Structure Matters: A Scale-Resolved Numerical Operando Approach for Lithium-Sulfur Batteries

Max Okraschevski Torben Prill Paul Maidl Arnulf Latz Timo Danner
Abstract

Lithium-Sulfur batteries (LSBs) are believed to have a high potential for aerospace applications due to their high gravimetric energy density. However, despite decades of research and advances, they still suffer from poor rate capability and low power output, eventually preventing their practical implementation. One particular aspect we want to shed light on is the influence of the porous cathode structure on the rate performance during discharge. Therefore, we present a scale-resolved simulation methodology that aims to provide structural insights into the electrochemical cell behavior that are experimentally hardly accessible even for modern operando methods. Our numerical operando approach employs high-performance computing (HPC) and is based on a coarse-grained continuum model. The latter is spatially discretized with a Discontinuous Galerkin (DG) method and advanced in time by an adaptive controller. The models and methods as well as HPC aspects of our toolbox will be critically discussed, finally showcasing the capabilities of our workflow to improve LSBs.

keywords:
Lithium-Sulfur Batteries , Scale-Resolved Simulation , Firedrake , Spatial Coarse-Graining , Scaling Analysis
\affiliation

[label1]organization=Institute of Engineering Thermodynamics, German Aerospace Center (DLR), addressline=Wilhelm-Runge-Straße 10, city=Ulm, postcode=89081, country=Germany

\affiliation

[label2]organization=Helmholtz Institute Ulm for Electrochemical Energy Storage (HIU), addressline=Helmholtzstraße 11, city=Ulm, postcode=89081, country=Germany

\affiliation

[label3]organization=Institute of Engineering Thermodynamics, German Aerospace Center (DLR), addressline=Pfaffenwaldring 38-40, city=Stuttgart, postcode=70569, country=Germany

\affiliation

[label4]organization=Institute of Electrochemistry, University of Ulm, addressline=Albert-Einstein-Allee 47, city=Ulm, postcode=89081, country=Germany

1 Introduction

It had been more than 60 years now that a Lithium-Sulfur battery was patented for the first time [Gueye_2024]. Yet, this type of conversion battery is still not commercially established, although many efforts have been made such that a technology readiness level (TRL) between 5-7 is nowadays reached [Stephan_2023]. These efforts are detailed in several recent reviews and perspectives published in the last five years, e.g. [Doerfler_2020, Zhao_2020, Doerfler_2021, Liu_2021, Parke_2021, Robinson_2021, Wang_2022, Shao_2023, Zhao_2023, Leckie_2024, Santos_2024].

Most likely, the recent interest and advances are rooted in the exceptionally high gravimetric energy density Δhchem\Delta h_{chem} stored in the global net reaction

S8+16Li8Li2SΔhchem9MJ/kg,S_{8}+16~Li\to 8~Li_{2}S\qquad\Delta h_{chem}\approx 9~MJ/kg~, (1)

raising hopes for sustainable aerospace applications [Doerfler_2020, Doerfler_2021, Robinson_2021, Stephan_2023]. Considering that the standard chemical energy storage in civil aerospace, namely kerosene, reaches a value of Δhchem43MJ/kg\Delta h_{chem}\approx 43~MJ/kg [Rachner_1998], the electrochemical competitor in Eq. (1) seems promising. However, the often stated value for the gravimetric energy density in Eq. (1) is rather overoptimistic as it neglects other gravimetrically contributing components of the assembled cell besides the reactants. These are the current collectors (CC), the tabs, the housing, the electrolyte, the separator and the conductive support material [Doerfler_2020], the latter often being a porous carbon structure to overcome the insulating nature of pure sulfur [Zhao_2020, Wang_2022]. All in all, the current consensus is that for highly optimized LSB pouch cells an effective value of Δhchem2MJ/kg\Delta h_{chem}\approx 2~MJ/kg can be targeted [Stephan_2023, Robinson_2021, Zhao_2023]. This is more than an order of magnitude less than kerosene but roughly twice as large as for modern Lithium-Ion Batteries (LiBs) [Liu_2021, Stephan_2023]. Hence, LSBs are far off from being a competitor to kerosene burned in jet engines but should be considered a serious alternative in aerospace systems where LiBs are already established or currently believed to be a viable option. Examples include high-altitude platforms (HAPS), drones, electric vertical take-off and landing (eVTOL) aircrafts [Doerfler_2021, Robinson_2021] or civil more-electric aircrafts (MEA), with the Boeing 787 as most prominent representative [Tariq_2017, Buticchi_2023, Su-ungkavatin_2023].

Nevertheless, in order to be a serious competitor to LiBs, one of the main drawbacks in LSBs has to be overcome, which is the poor rate capability for high energy density. This energy-power-dilemma is mutually attributed to the slow ionic transport in the electrolyte and the sluggish reaction kinetics in the cathode, strongly limiting the effective capacity and, thus, the maximal power output [Doerfler_2021, Robinson_2021, Zhao_2023]. Naturally, this optimization problem is an active research topic in the community and almost all approaches to address this dilemma are on the material level dominantly altering the cell chemistry. The most relevant options are:

  1. 1.

    the usage of different nano-scaled carbon host materials [Li_2018, Zhao_2023],

  2. 2.

    the addition/replacement of the conductive carbon structure by metal compounds or polymers [Zhao_2023],

  3. 3.

    the usage of catalysts, e.g. redox mediators [Robinson_2021, Song_2025] and

  4. 4.

    the optimization of the electrolyte system [Liu_2021, Song_2025].

Lately, the number of publications covering these aspects is rapidly growing and for more details we advise to consult the recent book by Gueye & Thomas [Gueye_2024] spanning roughly 700 pages in this context.

Another route to approach the optimization problem is to switch the perspective from chemistry to engineering. By that we understand to systemically focus on much larger scales for fixed chemistry, namely at the level of the porous cathode structure and the whole cell. This is in contrast to the aforementioned material level addressing the nanoscale and below. We believe that these aspects are by far less well studied, although they are essential for the cell commercialization and practical implementation. Generally, it is agreed upon the fact that the overall porosity of the cathode ϵcat\epsilon_{cat} [Kang_2019], its tortuosity τcat\tau_{cat} [Han_2022, Feng_2022] as well as the electrolyte-sulfur-ratio rE/Sr_{E/S} [Doerfler_2020, Guo_2021], as integral properties, affect the energy-power-dilemma. On the one hand, this is due to the fact that for a fixed amount of sulfur with low ϵcat\epsilon_{cat} resp. rE/Sr_{E/S} the amount of heavy electrolyte is reduced. Although being beneficial for the energy density of the cell, it simultaneously leads to an enrichment of dissolved sulfur species in the available electrolyte with serious outcome. It may cause up to two orders of magnitude higher dynamics viscosity [Boenke_2023] even resulting in gelification of the electrolyte [Song_2024], naturally impeding the mass transfer and power output. On the other hand, it is quite obvious that low tortuosities can be targeted to compensate for the deteriorated mass transfer by shortening ionic transport paths and increasing the power output again. Unfortunately, in porous media the two structural parameters ϵcat\epsilon_{cat} and τcat\tau_{cat} are inevitably linked with the sensitivity depending on the exact structure [Tjaden_2016, Fu_2021], which means that ”Structure matters!” As a consequence, the identification of an optimal structure is of greatest relevance with respect to the energy-power-dilemma.

Here, we see a significant potential in continuum simulations to tackle such structural optimization problems. Most continuum models for LSBs are based on the pioneering work of Kumaresan et al. [Kumaresan_2008]. They were the first to present an empirical, homogenized 1D model considering the whole electrochemical conversion process in the cathode by means of a consecutive reaction cascade. The authors were able to demonstrate that their model qualitatively captures the characteristic galvanostatic (constant current) voltage profiles during discharge. Probably, this constitutes the success of the model and why it has been taken up by others. The sensitivity of the model parametrization was extensively studied by Ghaznavi & Chen [Ghaznavi_2014_1, Ghaznavi_2014_2, Ghaznavi_2014_3]. Evidently, they could identify that the model of Kumaresan et al. [Kumaresan_2008] must be augmented by the following means to better match experimental observations:

  1. 1.

    more sophisticated models for dissolution and precipitation processes,

  2. 2.

    physics that not only allow one to discharge but also charge the model battery,

  3. 3.

    non-ideal transport effects affecting cell performance and cycle life.

Most works focused on (1), while simultaneously improving (2). In the work of Danner et al. [Danner_2015] dissolution and precipitation in the hierarchically porous carbon support materials is considered by using a pseudo-two-dimensional (p2D) model, however, without the important shuttle effect of dissolved polysulfide species [Mistry_2018_2]. The p2D model is commonly employed in LiBs [BrosaPlanella_2022, Richardson_2022] and allows for qualitative correct charging in the LSB context [Danner_2015]. The model was soon adapted by Thangavel et al. [Thangavel_2016] to also include the shuttle effect. Moreover, Mistry & Mukherjee [Mistry_2017] used interfacial energy principles in virtual 3D carbon support structures to derive improved correlations for the active surface as a function of transient porosity in homogenized 1D models. Kinetic modelling of the nucleation phenomena was explored by Ren et al. [Ren_2016] as well as Andrei et al. [Andrei_2018] in a fully homogenized 1D model and Danner & Latz [Danner_2019] within a p2D model. It is interesting to note that an improvement in charging behaviour (2) can be achieved by much simpler means than highly sophisticated dissolution and precipitation models as demonstrated in [Fronczek_2013, Hofmann_2014]. There, the major difference compared to the Kumaresan et al. [Kumaresan_2008] model is the use of mass-action law kinetics instead of the established Butler-Volmer kinetics in electrochemistry. Some of the aforementioned works also empirically address the aspect of non-ideal transport effects (3). In [Ren_2016, Andrei_2018, Danner_2019], concentration dependent transport properties, based on experimental data, are incorporated in the Nernst-Planck framework. However, to our knowledge, only the works of Mistry & Mukherjee [Mistry_2018_1, Mistry_2018_2] consider the full Onsager-Stefan-Maxwell relations in LSBs theoretically required for concentrated solutions [Donev_2015, Schammer_2021].

Although the aforementioned homogenized 1D models reached a certain maturity and are valuable for a quick and qualitative analysis of the global effects of structural properties on the cell performance, they are not scale-resolving by construction. As a result, they will neither shed light on how the cathode structure must be designed to be dense and performant (low ϵcat\epsilon_{cat} & τcat\tau_{cat}) nor support to unravel new local correlations within the structure complementary to cutting-edge operando methods, e.g. [Prehal_2022, Müller_2022, Müller_2025, Leckie_2024, Santos_2024]. In the following, we want to tackle exactly these issues. Therefore, we present the development of a 3D scale-resolved numerical operando approach for LSBs to address the energy-power-dilemma and support the commercialization of LSBs in the aerospace sector. Scientifically, this is an unexplored territory and we are only aware of four works in which 3D scale-resolved simulations are used in the LSB context. In the first two, scale-resolved simulations are performed to compute effective transport parameters for homogenized 1D models either based on virtual microstructures [Mistry_2017] or on data from X-ray tomography [Tan_2019]. In the last two, adapations of the Kumaresan et al. [Kumaresan_2008] model are used within the commercial solver COMSOL to successfully showcase and explore the effect of the cathode structure on the cell performance [Dai_2022, Gao_2024]. None of these works, however, discussed modelling and numerical aspects in detail, which are essential for a model to be reliable, predictive and efficient. To our opinion the subsequent topics deserve special attention and are covered in our work for the first time in the LSB context:

  1. 1.

    Which theoretical framework is able describe models of different spatial fidelity, i.e. 3D scale-resolved models but also homogenized 1D models?

  2. 2.

    Under which conditions can parameters from models of different spatial fidelity be transferred? Is it possible to calibrate homogenized 1D models to experimental data and use the resulting parameters in scale-resolved 3D models?

  3. 3.

    How should the models be spatially discretized in the presence of physical jumps in the domain without sacrificing local and global conservation properties?

  4. 4.

    Can we build an efficient and stable time stepping scheme for complete discharge simulations spanning physical time ranges of up to a day?

  5. 5.

    Is the numerical solver performant and does it scale properly with the number of processes? High-performance computing (HPC) aspects are an inherent part of 3D scale-resolved simulations and must be discussed.

In order to progressively address these topics, the paper is structured as follows: In Sec. 2, we will first approach the aforementioned topics theoretically. Then, we will demonstrate the capabilities of our framework and the reliability of the underlying theory in Sec. 3. Finally, we will close the work in Sec. 4 also with a short perspective.

2 Methodology

In this section, we will describe the methodology of our scale-resolved numerical operando approach for LSBs. First, the herein considered LSB and its chemistry (Sec. 2.1) as well as the physical assumptions made to postulate the underlying continuum model (Sec. 2.2) are introduced. In Sec. 2.4 these equations will be nondimensionalized to rationalize under which conditions upscaling to larger spatial scales is possible. The upscaling technique of spatial coarse-graining will be presented in Sec. (2.3). The spatial discretization of the resulting system of partial differential equations (PDE) will be part of Sec. 2.7, followed by the time stepping in Sec. 2.8. Finally, we will comment on the solver in Sec. 2.9 and the initialization of the system in Sec. 2.10.

2.1 Reference Cell & Chemistry

The reference LSB studied and modelled in this work is a multilayer-pouch cell from the Fraunhofer IWS in Dresden and similar to the one considered in [Doerfler_2020]. Henceforth in the model, we will focus on one specific layer of the pouch cell consisting of the current collector on the cathode side, the porous cathode, the separator and a Lithium anode surface as depicted in Fig. 1 (a) and Fig. 1 (b).

Refer to caption
Figure 1: Illustrative perspective on the spatial modelling: (a) Schematic of the LSB including the modelling domain. (b) Detailed sketch of the modelling domain. (c) Porous cathode model created with the open-source tool Blender and the corresponding SEM/TEM images of the dominant carbon support material Printex XE2-B at different spatial resolutions. The SEM/TEM images were provided by Fraunhofer IWS in Dresden.
Table 1: Absolute dimensions of the cell.
LCCL_{CC} [μm\mu m] LCatL_{Cat} [μm\mu m] LSepL_{Sep} [μm\mu m] LAnoL_{Ano} [μm\mu m] ALSB=W×HA_{LSB}=W\times H [mm2mm^{2}]
14 105 11 50 46 ×\times 71

The modelling domain is highlighted as a dashed box, is a compartment of the whole cell and in the spirit of the model of Kumaresan et al. [Kumaresan_2008]. The absolute dimensions of the cell, which are important for the modelling, e.g. the lenghts/thicknesses of the aluminum current collector LCCL_{CC}, the cathode LCatL_{Cat}, the separator LSepL_{Sep}, the anode LAnoL_{Ano} and the cross-sectional area ALSBA_{LSB}, are summarized in Tab. 1. As usual in batteries, the lengths in the main transport direction are much shorter than in the perpendicualar plane. This is rooted in the diffusive nature of the driving transport mechanisms. Hence, short transport paths and large surfaces are beneficial for the overall yield.

The cathode, which is in the focus of this study, is a highly porous material composed of elementary sulfur S8S_{8}, aggregated carbon black nanoparticles (Printex XE2-B), multi-walled carbon nanotubes (MWCNT) and binder, connecting and stabilizing the former components. The exact composition is listed in Tab. 2. Mass fractions ξk\xi_{k} of the components can be transferred to volume fractions xkx_{k} with the listed individual component densities ρk\rho_{k} and effective density of the cathode ρCat\rho_{Cat} using xk=ξkρCat/ρkx_{k}=\xi_{k}\rho_{Cat}/\rho_{k}. Moreover, in the last row, shares of the components without sulfur in the so-called carbon binder domain (CBD) are listed as sks_{k}. There are two interesting points to note: First, even with infiltrated sulfur, the overall cathode porosity is ϵCat=1kxk=0.832\epsilon_{Cat}=1-\sum_{k}x_{k}=0.832, emphasizing how porous the cathode is. Second, the Printex XE2-B is the dominant component in the CBD in terms of volume fraction roughly making up 60%60~\%. As communicated by Fraunhofer IWS and shown in the scanning/transmission electron microscopy (SEM/TEM) images in Fig. 1 (c), the primary carbon black particles (50nm\approx 50~nm) aggregate to larger secondary particles. These have a mean particle size of 10μm10~\mu m in terms of the volume-based particle size distribution and will be subsequently assumed to define the largest structures in the porous cathode.

Table 2: Cathode composition.
Measure Sulfur Printex XE2-B MWCNT Binder Cathode
ξk\xi_{k} [kgk/kgCat\text{kg}_{k}/\text{kg}_{Cat}] 0.6 0.25 0.1 0.05 1
ρk\rho_{k} [kgk/mk3\text{kg}_{k}/\text{m}^{3}_{k}] 2070 2000 1660 1500 330
xkx_{k} [mk3/mCat3\text{m}^{3}_{k}/\text{m}^{3}_{Cat}] 0.0956 0.0413 0.0199 0.011 0.168
sks_{k} [mk3/mCBD3\text{m}^{3}_{k}/\text{m}^{3}_{CBD}] - 0.572 0.276 0.152 -

Since to date no 3D scan of the electrode is available for the scale-resolved modelling, the above information was used to create a virtual, porous 3D cathode structure in Blender as shown in Fig. 1 (c). Therefore, a Voronoi texture node in Blender was employed, which is methodologically based on Worley noise [Blender_2025]. Spherical particles with a diameter of 10μm10~\mu m were first placed on a Cartesian grid, then randomized and finally smoothed to obtain the result in Fig. 1 (c). In order to match the absolute dimensions of the cathode according to Tab. 1, the excess of the porous structure in Fig. 1 (c) was cropped. The visible macroscopic porosity without the inner porosity of the structure was ensured to match the experimental value of ϵmacro=0.587\epsilon_{macro}=0.587, leaving an inner microscopic porosity of ϵmicro=ϵCatϵmacro=0.245\epsilon_{micro}=\epsilon_{Cat}-\epsilon_{macro}=0.245 as rest. Eventually, by means of the virtual porous cathode structure, we aim to resolve the secondary particles and model the effects on the primary particle scale (Fig. 1 (c)).

The separator has a porosity of ϵSep=0.4\epsilon_{Sep}=0.4 and is made of polyethylene (PE) [Doerfler_2020]. Throughout this work, the separator domain will always be treated as homogeneous regardless of the dimensionality. Hence, only scales in the cathode will be resolved.

Refer to caption
Figure 2: Reaction mechanisms of LSBs with moderately solvating electrolytes (MSE). (a) Detailed Chemistry as reported in [Liu_2021]. (b) Reduced Chemistry usually employed in LSB models. (c) Tradeoff Chemistry developed and used within this work.

The utilized electrolyte in the investigated LSB is a 1M LiTFSI + 0.5M LiNO3 in DME/DOL (v:v = 1:1) solution [Doerfler_2020] and determines, in combination with the active material, the chemistry of the cell. Fortunately, the electrolyte is related to the class of moderately solvating electrolytes (MSE) and kinetically among the best understood ones. In a recent review by Liu et al. [Liu_2021], the currently anticipated reaction mechanism in LSBs with MSE was summarized. This Detailed Chemistry mechanism is visualized in Fig. 2 (a) showing how species of different phases are connected. Usually, in all numerical works mentioned in Sec. 1, this mechanism is heavily simplified and assumed to be a cascade of consecutive reactions as depicted in Fig. 2 (b). The Reduced Chemistry scheme may contain more or less intermediate species, but an important difference to the Detailed Chemistry scheme is that the direct nucleation reaction 2Li+(L)+S2(L)Li2S(S)2Li^{+}~(L)+S^{2-}~(L)\rightleftharpoons Li_{2}S~(S), with the phases α{L,S}\alpha\in\{L,S\}, is not experimentally ascertained [Liu_2021]. Since we were not able with this simplification to satisfactorily match experimental discharge profiles in Sec. 3, also taking the slopes of the profiles into account, we developed a new Tradeoff Chemistry scheme within this work (Fig. 2 (c)). It constitutes a compromise between (a) & (b), encompasses the aforementioned experimentally non-ascertained nucleation reaction and will be used in the following. The considered reactions are summarized in Tab. 3. Chemical bulk and electrochemical surface reactions are distinguished with type C & E and denoted such that they are thermodynamically consistent with tabulated solubility products KspK_{sp} and standard reduction potentials Ured0U_{red}^{0}.

Table 3: Reactions considered in the Tradeoff Chemistry scheme.
Type Index Reaction
C 1
S8(S)S8(L)Li2S(S)2Li+(L)+S2(L)1/2S8(L)+e(S)1/2S82(L)3/2S82(L)+e(S)2S62(L)S62(L)+e(S)3/2S42(L)1/6S42(L)+e(S)2/3S2(L)1/2S82(L)+e(S)S42(L)1/6S42(L)+4/3Li+(L)+e(S)2/3Li2S(S)\begin{aligned} &S_{8}~(S)&&\rightleftharpoons~&S_{8}~(L)\\ &Li_{2}S~(S)&&\rightleftharpoons~&2Li^{+}~(L)+S^{2-}~(L)\\ &1/2~S_{8}~(L)&+~e^{-}~(S)&\rightleftharpoons~&1/2~S_{8}^{2-}~(L)\\ &3/2~S_{8}^{2-}~(L)&+~e^{-}~(S)&\rightleftharpoons~&2~S_{6}^{2-}~(L)\\ &S_{6}^{2-}~(L)&+~e^{-}~(S)&\rightleftharpoons~&3/2~S_{4}^{2-}~(L)\\ &1/6~S_{4}^{2-}~(L)&+~e^{-}~(S)&\rightleftharpoons~&2/3~S^{2-}~(L)\\ &1/2~S_{8}^{2-}~(L)&+~e^{-}~(S)&\rightleftharpoons~&S_{4}^{2-}~(L)\\ 1/6~S_{4}^{2-}~(L)~+~&4/3~Li^{+}~(L)&+~e^{-}~(S)&\rightleftharpoons~&2/3~Li_{2}S~(S)\end{aligned}
C 2
E 1
E 2
E 3
E 4
E 5
E 6

2.2 Continuum Model

Although the final continuum model as presented in Sec. 2.3 will be very similar to our predecessor works [Danner_2015, Danner_2019, Richter_2020], in which homogenized 1D models had been presented, we will follow a different route here. We start by postulating a microscopic continuum model, which we assume to be a result of a rigorous statistical mechanics approach, e.g. the Irving-Kirkwood or Hardy formalism [Irving_1950, Hardy_1982]. Although we are aware that this postulated model is likely incomplete and probably a crude approximation of the system, it allows us to apply the concept of scaling analysis (Sec. 2.4). The latter concept is an established method in fluid dynamics and covered in standard textbooks [Regev_2016, Durst_2022]. In the battery context, however, it is rarely used, e.g. [Richardson_2012, Arunachalam_2015], although it allows one to illustratively understand under which conditions coarse-graining can be successfully performed (Sec. 2.3). In the following, we will focus on electrochemistry and neglect coupling to mechanics and thermal effects. Hence, our model takes mass transport of individual species i{1,,Nα}i\in\{1,...,N_{\alpha}\} and charge transport in different phases α{L,S}\alpha\in\{L,S\} according to Fig. 2 & Tab. 3 into account.

In the liquid phase α=L\alpha=L, the species mass transport is assumed to be governed by Nernst-Planck fluxes 𝒋i\boldsymbol{j}_{i} and volumetric source terms R˙C,i\dot{R}_{C,i} for the nucleation & dissolution processes. The latter scale with the maximum reaction rate coefficient kC:=maxk{kC,k}k_{C}:=\text{max}_{k}\{k_{C,k}\} of the k{1,,NC}k\in\{1,...,N_{C}\} reactions and will be detailed in Sec. (2.5). Using this notation, the transport equations for the individual molar species concentrations read

i{1,,NL}:tciL=(Dm,iciL+ziFR¯TDm,iciLΦL)=𝒋i+kCR˙C,i,\forall i\in\{1,...,N_{L}\}:\quad\partial_{t}c_{i}^{L}=\nabla\cdot\underbrace{\left(D_{m,i}\nabla c_{i}^{L}+\frac{z_{i}F}{\overline{R}T}D_{m,i}c_{i}^{L}\nabla\Phi^{L}\right)}_{=-\boldsymbol{j}_{i}}+k_{C}\dot{R}_{C,i}~, (2)

with ziz_{i} as charge number, F=96485.332C/molF=96485.332~\text{C}/\text{mol} the Faraday constant, R¯=8.3145J/(molK)\overline{R}=8.3145~\text{J}/(\text{mol}\,\text{K}) the molar gas constant and T=298KT=298~\text{K} as room temperature. Note, that we do not explicitly consider the solvent herein. Although the Nernst-Planck fluxes are strictly valid only in the dilute limit [Richardson_2022, Fosbol_2024], we believe that they can empirically account for moderate concentration effects. Therefore, we interpret the diffusion coefficients Dm,iD_{m,i} as functions of the local concentrations ciLc_{i}^{L} as in [Ren_2016, Andrei_2018, Danner_2019]. Specifically, we use the data published by Boenke et al. [Boenke_2023] to correlate the dynamic viscosity η\eta of the electrolyte with the local dissolved sulfur concentration cSL:=cS2L+4cS42L+6cS62L+8cS82L+8cS8Lc_{S}^{L}:=c_{S^{2-}}^{L}+4c_{S_{4}^{2-}}^{L}+6c_{S_{6}^{2-}}^{L}+8c_{S_{8}^{2-}}^{L}+8c_{S_{8}}^{L} using an exponential as in [Danner_2019]. This results in

η(cSL):=1.7103Pa sexp(7.76104m3molcSL).\eta(c_{S}^{L}):=1.7\cdot 10^{-3}~\text{Pa\,s}\cdot exp(7.76\cdot 10^{-4}~\frac{\text{m}^{3}}{\text{mol}}~c_{S}^{L})~. (3)

and by means of the Stokes-Einstein relation one obtains

Dm,i(cSL)=Dm,i(cSL=0)η(cSL=0)η(cSL),D_{m,i}(c_{S}^{L})=D_{m,i}(c_{S}^{L}=0)\frac{\eta(c_{S}^{L}=0)}{\eta(c_{S}^{L})}~, (4)

with the individual Diffusion coefficients Dm,i(cSL=0)D_{m,i}(c_{S}^{L}=0) at infinite dilution, to be specified later. By using this approach, we heuristically interpret the diffusion coefficients Dm,iD_{m,i} as mixture-averaged approximations of binary diffusion coefficients DijD_{ij}. In combustion modelling of multicomponent gas mixtures such a procedure is often successfully employed, e.g. [Naud_2020, Fillo_2021], and based on an analytical expression for Dm,i=f(cj,Dij)D_{m,i}=f(c_{j},D_{ij}) derived and verified in [Curtiss_1949, Fairbanks_1950]. Only recently such an analytical expression was also developed for multicomponent electrolytes at low currents [Fosbol_2024].

The electric charge transport in the liquid phase α=L\alpha=L, which determines the liquid potential ΦL\Phi^{L} in Eq. (2), results from the temporal derivative of the charge density ρelL:=jzjFcjL\rho_{el}^{L}:=\sum_{j}z_{j}Fc_{j}^{L} together with Eq. (2). The transport equation reads

tρelL=j=1NLzjFtcjL=(j=1NLzjFDm,jcjL+zj2F2R¯TDm,jcjLΦL),\partial_{t}\rho_{el}^{L}=\sum_{j=1}^{N_{L}}z_{j}F\partial_{t}c_{j}^{L}=\nabla\cdot\left(\sum_{j=1}^{N_{L}}z_{j}FD_{m,j}\nabla c_{j}^{L}+\frac{z_{j}^{2}F^{2}}{\overline{R}T}D_{m,j}c_{j}^{L}\nabla\Phi^{L}\right)~, (5)

and is free from the volumetric source terms R˙C,j\dot{R}_{C,j} of the chemical bulk reactions since these are electroneutral in the individual phases according to Tab. 3. From the second term in Eq. (5), an electrical conductivity can be identified

κL:=j=1NLzj2F2R¯TDm,jcjL.\kappa_{L}:=\sum_{j=1}^{N_{L}}\frac{z_{j}^{2}F^{2}}{\overline{R}T}D_{m,j}c_{j}^{L}~. (6)

The liquid phase α=L\alpha=L couples to the solid phase α=S\alpha=S not only by means of the volumetric source terms R˙C,i\dot{R}_{C,i} in Eq. (2), but also due to the mass-transfer boundary conditions at the liquid-solid-interface (L/SL/S). There, the individual Nernst-Planck fluxes must balance the source terms due to the surface electrochemical reaction rates R˙E,i\dot{R}_{E,i}. The latter scale with the maximum reaction rate coefficient kE:=maxk{kE,k}k_{E}:=\text{max}_{k}\{k_{E,k}\} of the k{1,,NE}k\in\{1,...,N_{E}\} reactions and will also be detailed in Sec. (2.5). Then, the boundary conditions take the form

i{1,,NL}:(Di,mciL+ziFR¯TDi,mciLΦL)𝒏L/S=kER˙E,iF\forall i\in\{1,...,N_{L}\}:\quad\left(D_{i,m}\nabla c_{i}^{L}+\frac{z_{i}F}{\overline{R}T}D_{i,m}c_{i}^{L}\nabla\Phi^{L}\right)\cdot\boldsymbol{n}_{L/S}=k_{E}\frac{\dot{R}_{E,i}}{F}~ (7)

with 𝒏L/S\boldsymbol{n}_{L/S} as outward unit normal vector at the interface pointing from LSL\to S. This completes the physical description of the liquid phase dynamics as the remaining boundary condition for the electric current at the interface follows from summation of Eq. (7) with the zjFz_{j}F as prefactor

j=1NLzjF𝒋j𝒏L/S=j=1NLzjkER˙E,j.\sum_{j=1}^{N_{L}}-z_{j}F\boldsymbol{j}_{j}\cdot\boldsymbol{n}_{L/S}=\sum_{j=1}^{N_{L}}z_{j}k_{E}\dot{R}_{E,j}~. (8)

In the solid phase α=S\alpha=S we assume that the situation is much less intricate. For the species balance we only consider reactive contributions due to nucleation and dissolution. Hence, the transport equations are

i{1,,NS}:tciS=kCR˙C,i.\forall i\in\{1,...,N_{S}\}:\quad\partial_{t}c_{i}^{S}=k_{C}\dot{R}_{C,i}~. (9)

The electric charge transport of electrons ee^{-} in the solid phase is considered to be driven by an electronic flux 𝒋S\boldsymbol{j}_{S} determined by Ohm’s law. With the electrical conductivity κS\kappa_{S} in the carbon structure this results in

tρelS=𝒋S=(κSΦS).\partial_{t}\rho_{el}^{S}=-\nabla\cdot\boldsymbol{j}_{S}=\nabla\cdot\left(\kappa_{S}\nabla\Phi^{S}\right)~. (10)

In order to complete our system description, the boundary condition for the charge transfer at the liquid-solid-interface is left to be specified. Since we are interested in the dynamics of ee^{-}, we get

κSΦS𝒏S/L=zekER˙E,e,\kappa_{S}\nabla\Phi^{S}\cdot\boldsymbol{n}_{S/L}=z_{e^{-}}k_{E}\dot{R}_{E,e^{-}}~, (11)

in which 𝒏S/L\boldsymbol{n}_{S/L} is the outward unit normal vector at the interface pointing from SLS\to L.

2.3 Spatial Coarse-Graining

Although one might be interested in the solution of the postulated continuum model in Sec. 2.2 for a practical battery design, resolving all scales becomes quickly infeasible. Considering that the smallest pores are in the order of nanometers (109m10^{-9}\,\text{m}) and the cell scale in the order of centimeters (102m10^{-2}\,\text{m}), for uniform spatial resolution, care of (107)3=1021\sim(10^{7})^{3}=10^{21} spatial degrees of freedom must be taken in 3D. This is even out of scope for the largest supercomputer to date and why usually in the battery community effective, homogenized continuum models are employed, either obtained via asymptotic multiscale expansion [Richardson_2012, Arunachalam_2015, Arunachalam_2019, Richardson_2022, BrosaPlanella_2022] or volume-averaging [Wang_1998, Jakobsen_2014, Schmitt_2020]. Eventually, both techniques lead to the same result [Davit_2013], but impose lower and upper bounds on the homogenization scale ll. The lower bound is often rationalized to theoretically justify effective transport closures, obtain a mixture of phases in each homogenization volume [Richardson_2012, Arunachalam_2015, Schmitt_2020] and to define a representative elementary volume [Wang_1998]. By these arguments, however, the homogenized continuum model is not scale-resolving by construction anymore (cp. Fig. 2 in [BrosaPlanella_2022]). There is a whole continuous spectrum of spatial scales in between worth to be resolved as long as it can be computationally afforded. Therefore, we generalize the concept of local volume-averaging using arbitrary ll as illustrated in Fig. 3. This is equivalent to the spatial coarse-graining performed for large eddy simulation of turbulence, e.g. [Sagaut_2006, Okraschevski_2021], and motivates us to adopt this naming convention. Under proper scaling conditions to be defined below, it allows us to arrive at a unified framework spanning scale-resolved 3D models (as in Fig. 1 (b)) and homogenized 1D models.

Refer to caption
Figure 3: Illustration on spatial coarse-graining in a porous multiphase system with liquid-solid-interface (L/SL/S). The arbitrary coarse-graining scale ll is highlighted in red.

The spatial coarse-graining is performed locally on continuum elements at the coordinate 𝐲3\mathbf{y}\in\mathbb{R}^{3} in the phase α{L,S}\alpha\in\{L,S\}, localized by an indicator Iα:3×0+I_{\alpha}:\mathbb{R}^{3}\times\mathbb{R}^{+}_{0}\to\mathbb{R}, with a spherical, positive, and monotonously decaying kernel G:3G:\mathbb{R}^{3}\to\mathbb{R} having a compact support domain V𝐱V_{\mathbf{x}} and being centered in the coarse-grained elements at 𝐱3\mathbf{x}\in\mathbb{R}^{3}. Moreover, we require a normalized kernel

V𝐱G(𝐱𝐲)d𝐲=1\int_{V_{\mathbf{x}}}G(\mathbf{x}-\mathbf{y})~\mathrm{d}\mathbf{y}=1 (12)

and an indicator, which is

Iα(𝐲,t)={1,𝐲Ωα0,𝐲ΩαI_{\alpha}(\mathbf{y},t)=\begin{cases}1,\quad\forall\mathbf{y}\in\Omega_{\alpha}\\ 0,\quad\forall\mathbf{y}\not\in\Omega_{\alpha}\end{cases} (13)

in the temporally evolving subdomain Ωα\Omega_{\alpha} (due to chemical conversion) containing the phase α\alpha. Then, for a scalar transport field ψα:3×0+\psi^{\alpha}:\mathbb{R}^{3}\times\mathbb{R}^{+}_{0}\to\mathbb{R}, the following coarse-grained field, simply termed as average in the following, can be defined

ψα¯(𝐱,t):=V𝐱ψα(𝐲,t)Iα(𝐲,t)G(𝐱𝐲)d𝐲=V𝐱α(t)ψα(𝐲,t)G(𝐱𝐲)d𝐲,\overline{\psi^{\alpha}}(\mathbf{x},t):=\int_{V_{\mathbf{x}}}\psi^{\alpha}(\mathbf{y},t)I_{\alpha}(\mathbf{y},t)G(\mathbf{x}-\mathbf{y})~\mathrm{d}\mathbf{y}=\int_{V_{\mathbf{x}}^{\alpha}(t)}\psi^{\alpha}(\mathbf{y},t)G(\mathbf{x}-\mathbf{y})~\mathrm{d}\mathbf{y}~, (14)

with the local phase volume V𝐱α(t)V_{\mathbf{x}}^{\alpha}(t) that changes over time in conversion type batteries. Additionally, another average ψα\langle\psi^{\alpha}\rangle, known as intrinsic average, can be defined by compensating for the missing support of phase α\alpha in V𝐱V_{\mathbf{x}} due to the other phases. The averages are linked via

ψα¯(𝐱,t)=(V𝐱Iα(𝐲,t)G(𝐱𝐲)d𝐲):=ϵα(𝐱,t)ψα(𝐱,t),\overline{\psi^{\alpha}}(\mathbf{x},t)=\underbrace{\left(\int_{V_{\mathbf{x}}}I_{\alpha}(\mathbf{y},t)G(\mathbf{x}-\mathbf{y})~\mathrm{d}\mathbf{y}\right)}_{:=\epsilon^{\alpha}(\mathbf{x},t)}\langle\psi^{\alpha}\rangle(\mathbf{x},t)~, (15)

where ϵα\epsilon^{\alpha} denotes the local volume fraction of phase α\alpha. With these definitions, the coarse-graining of the continuum model in Sec. 2.2 can be performed using the operation in Eq. (14). The procedure is mathematically equivalent to the volume-averaging [Wang_1998, Schmitt_2020] up to the point were a constitutive closure for the nonlinear correlation terms has to be provided. Hence, we refer for details concerning the derivation to [Wang_1998, Schmitt_2020]. Instead, we will focus on the discussion of the closure model for the nonlinear correlation terms after providing the coarse-grainded PDE system in the species diffusion dominant limit to be explained below.

From Eqs. (2) & (5) in the liquid phase α=L\alpha=L, we obtain, i{1,,NL}\forall i\in\{1,...,N_{L}\}, under the assumption of local charge neutrality

t(ϵLciL)=(Dm,ieffciL+ziFR¯TDm,ieffciLΦL)+kCR˙¯C,i+aVkER˙¯E,iF\displaystyle\partial_{t}(\epsilon^{L}\langle c_{i}^{L}\rangle)=\nabla\cdot\left(D_{m,i}^{eff}\nabla\langle c_{i}^{L}\rangle+\frac{z_{i}F}{\overline{R}T}D_{m,i}^{eff}\langle c_{i}^{L}\rangle\nabla\langle\Phi^{L}\rangle\right)+k_{C}\overline{\dot{R}}_{C,i}+a_{V}k_{E}\frac{\overline{\dot{R}}_{E,i}}{F} (16)
0=(j=1NLzjFDm,jeffcjL+zj2F2R¯TDm,jeffcjLΦL)+j=1NLzjaVkER˙¯E,j\displaystyle 0=\nabla\cdot\left(\sum_{j=1}^{N_{L}}z_{j}FD_{m,j}^{eff}\nabla\langle c_{j}^{L}\rangle+\frac{z_{j}^{2}F^{2}}{\overline{R}T}D_{m,j}^{eff}\langle c_{j}^{L}\rangle\nabla\langle\Phi^{L}\rangle\right)+\sum_{j=1}^{N_{L}}z_{j}a_{V}k_{E}\overline{\dot{R}}_{E,j} (17)

with the effective diffusion coefficient Dm,ieff:=(ϵL/τL)Dm,iD_{m,i}^{eff}:=(\epsilon^{L}/\tau^{L})D_{m,i} and the tortuosity τL\tau^{L} expressed by the standard Bruggeman correlation, τL=(ϵL)1/2\tau^{L}=(\epsilon^{L})^{-1/2} [Tjaden_2016, Fu_2021]. Note that by means of the spatial coarse-graining the boundary conditions in Eq. (7) & Eq. (8) can be absorbed into the transport equations and are rescaled by the specific surface aVa_{V} of the interface.

In a similar fashion one obtains from Eqs. (10) & (11), i{1,,NS}\forall i\in\{1,...,N_{S}\}, in the solid phase α=S\alpha=S

ρi0M¯itϵiS=kCR˙¯C,i+aVkER˙¯E,iF\displaystyle\frac{\rho_{i}^{0}}{\overline{M}_{i}}\partial_{t}\epsilon_{i}^{S}=k_{C}\overline{\dot{R}}_{C,i}+a_{V}k_{E}\frac{\overline{\dot{R}}_{E,i}}{F} (18)
0=(κSeffΦS)+zeaVkER˙¯E,e\displaystyle 0=\nabla\cdot\left(\kappa_{S}^{eff}\nabla\langle\Phi^{S}\rangle\right)+z_{e^{-}}a_{V}k_{E}\overline{\dot{R}}_{E,e^{-}} (19)

with the density of the pure substance ρi0\rho_{i}^{0}, the molar weight M¯i\overline{M}_{i} and the effective electrical conductivity κSeff\kappa_{S}^{eff}. For simplicity, we will assume the latter to be a constant, although one could also use the Bruggeman correlation [Tjaden_2016, Fu_2021]. In order to complete the system description and close the resulting PDE sytem in Eqs. (16-19), constitutive relations for the specific surface aVa_{V} and the averaged reaction rates R˙¯C,i\overline{\dot{R}}_{C,i} & R˙¯E,i\overline{\dot{R}}_{E,i} have to be provided. Additionally, boundary conditions must be specified. These two aspects will be covered in Sec. 2.5 and Sec. 2.6.

However, before we proceed with these two aspects, we highlight how the correlation terms emerging from the average of the nonlinear Nernst-Planck fluxes 𝒋¯i\overline{\boldsymbol{j}}_{i} were closed. Please note such closure modelling is just required in the liquid phase α=L\alpha=L as the transport in the solid phase α=S\alpha=S is assumed to be linear in the continuum model, see Eq. (9) & (10). Therefore, we compute the average of the Nernst-Planck fluxes with Eq. (15) as

𝒋¯i=ϵLDm,i(cSL)ciLziFR¯TϵLDm,i(cSL)ciLΦL.\overline{\boldsymbol{j}}_{i}=-\epsilon^{L}\langle D_{m,i}(c_{S}^{L})\nabla c_{i}^{L}\rangle-\frac{z_{i}F}{\overline{R}T}\epsilon^{L}\langle D_{m,i}(c_{S}^{L})c_{i}^{L}\nabla\Phi^{L}\rangle~. (20)

Assuming that species diffusion, as homogenizing process, is dominant on the coarse-graining scale ll, which locally implies ciLciL=const.c_{i}^{L}\approx\langle c_{i}^{L}\rangle=const., the correlations can be circumvented

𝒋¯iϵLDm,i(cSL)ciLziFR¯TϵLDm,i(cSL)ciLΦL.\overline{\boldsymbol{j}}_{i}\approx-\epsilon^{L}D_{m,i}(\langle c_{S}^{L}\rangle)\langle\nabla c_{i}^{L}\rangle-\frac{z_{i}F}{\overline{R}T}\epsilon^{L}D_{m,i}(\langle c_{S}^{L}\rangle)\langle c_{i}^{L}\rangle\langle\nabla\Phi^{L}\rangle~. (21)

Then, by comparison with Eq. (16), one can observe that the intrinsic average of a gradient is the gradient of an intrinsic average rescaled by the inverse tortuosity factor (τL)1=(ϵL)1/2(\tau^{L})^{-1}=(\epsilon^{L})^{1/2}. Finally, this gives the closure model used in Eq. (16) & (17), which is

𝒋¯iϵLDm,i(cSL)ciLτLziFR¯TϵLDm,i(cSL)ciLΦLτL.\overline{\boldsymbol{j}}_{i}\approx-\epsilon^{L}D_{m,i}(\langle c_{S}^{L}\rangle)\frac{\nabla\langle c_{i}^{L}\rangle}{\tau^{L}}-\frac{z_{i}F}{\overline{R}T}\epsilon^{L}D_{m,i}(\langle c_{S}^{L}\rangle)\langle c_{i}^{L}\rangle\frac{\nabla\langle\Phi^{L}\rangle}{\tau^{L}}~. (22)

Note that for a coarse-graining performed over pure electrolyte, i.e. ϵL=1\epsilon^{L}=1, the relations ciL=ciL\langle\nabla c_{i}^{L}\rangle=\nabla\langle c_{i}^{L}\rangle and ΦL=ΦL\langle\nabla\Phi^{L}\rangle=\nabla\langle\Phi^{L}\rangle are analytically exact.

Considering the prior reasoning, the closure model in Eq. (22) is arguably a good choice if species diffusion is dominant on the coarse-graining scale ll. Simultaneously though, the numerical solution of the discretized system in Sec. 2.7 must compare well with experimental results. Consequently, we justify the closure model based on a posteriori heuristics instead of the usual a priori rationale used in the porous media community [Davit_2013]. This is once again in the spirit of spatial coarse-graining as used in the turbulence community in the context of large eddy simulation, e.g. [Sagaut_2006, Okraschevski_2021]. Although optimally, the outcome should be the same, we believe the former conceptually also accentuates the difference between spatial coarse-graining and spatial discretization to be introduced in Sec. 2.7. Note that spatial discretization errors can have a significant physical effect when the spatial resolution scale hh is not well below the coarse-graining scale ll.

To continue with our a posteriori heuristics, we will conduct a scaling analysis in the liquid phase α=L\alpha=L of the continuum model introduced in Sec. 2.2. The goal will be to gain a qualitative understanding for which conditions species diffusion in α=L\alpha=L is dominant on the coarse-graining scale ll. As a key result, it will be argued that under these conditions scale-resolved 3D models and homogenized 1D models can be both described by our spatial coarse-graining framework. This enables computationally cheap calibration of the 1D models with subsequent parameter transfer to the costly 3D models.

2.4 Scaling Analysis

In this section a scaling analysis in the liquid phase α=L\alpha=L of the continuum model in Sec. 2.2 will be performed, which leads to a central result of our work. Scaling analysis is a standard technique in fluid dynamics, e.g. [Regev_2016, Durst_2022], and requires the nondimensionalization of the PDE systems. Therefore, we introduce the following nondimensionalized variables and operators

ciα,:=ciαcref,Φα,:=ΦαΔΦrefα,𝐲:=𝐲l,t:=ttref,:=l,t:=treftc_{i}^{\alpha,*}:=\frac{c_{i}^{\alpha}}{c_{ref}},~\Phi^{\alpha,*}:=\frac{\Phi^{\alpha}}{\Delta\Phi_{ref}^{\alpha}},~\mathbf{y}^{*}:=\frac{\mathbf{y}}{l},~t^{*}:=\frac{t}{t_{ref}},~\nabla^{*}:=l\nabla,~\partial_{t^{*}}:=t_{ref}\partial_{t} (23)

with cref=1000mol/m3c_{ref}=1000\,\text{mol}/\text{m}^{3} as usual for electrolyte systems and with references ΔΦrefα\Delta\Phi_{ref}^{\alpha} & treft_{ref}, which will be reasonably chosen below. Introduced in the species transport equation in the liquid phase α=L\alpha=L, i.e. Eq. (2), one finds after some algebra

tciL,=(Dm,itrefl2ciL,+ziFΔΦrefLR¯TDm,itrefl2ciL,ΦL,)+kCtrefcrefR˙C,i.\partial_{t^{*}}c_{i}^{L,*}=\nabla^{*}\cdot\left(\frac{D_{m,i}t_{ref}}{l^{2}}\nabla^{*}c_{i}^{L,*}+\frac{z_{i}F\Delta\Phi_{ref}^{L}}{\overline{R}T}\frac{D_{m,i}t_{ref}}{l^{2}}c_{i}^{L,*}\nabla^{*}\Phi^{L,*}\right)+\frac{k_{C}t_{ref}}{c_{ref}}\dot{R}_{C,i}~. (24)

Since we are interested in a comparison of transport processes relative to the slowest species diffusion process, we will choose tref:=l2/mini{Dm,i}=l2/Dm,reft_{ref}:=l^{2}/\text{min}_{i}\{D_{m,i}\}=l^{2}/D_{m,ref} as reference time scale. With the nondimensional diffusion coefficients Dm,i:=Dm,i/Dm,ref1D_{m,i}^{*}:=D_{m,i}/D_{m,ref}\geq 1, this gives

tciL,=(Dm,iciL,+ziFΔΦrefLR¯TDm,iciL,ΦL,)+kCl2Dm,refcrefR˙C,i.\partial_{t^{*}}c_{i}^{L,*}=\nabla^{*}\cdot\left(D_{m,i}^{*}\nabla^{*}c_{i}^{L,*}+\frac{z_{i}F\Delta\Phi_{ref}^{L}}{\overline{R}T}D_{m,i}^{*}c_{i}^{L,*}\nabla^{*}\Phi^{L,*}\right)+\frac{k_{C}l^{2}}{D_{m,ref}c_{ref}}\dot{R}_{C,i}~. (25)

We could repeat the procedure for the electric charge transport in Eq. (5), but as this reflects the dynamics of the species transport due to the definition of the local charge density, we would not expect to find new nondimensional groups. Instead, we proceed with the species boundary conditions in Eq. (7) at the L/SL/S interface, in which the electrochemical reaction terms are involved. We arrive at

(Dm,iciL,+ziFΔΦrefLR¯TDm,iciL,ΦL,)𝒏L/S=kElDm,refcrefR˙E,iF.-\left(D_{m,i}^{*}\nabla^{*}c_{i}^{L,*}+\frac{z_{i}F\Delta\Phi_{ref}^{L}}{\overline{R}T}D_{m,i}^{*}c_{i}^{L,*}\nabla^{*}\Phi^{L,*}\right)\cdot\boldsymbol{n}_{L/S}=\frac{k_{E}l}{D_{m,ref}c_{ref}}\frac{\dot{R}_{E,i}}{F}~. (26)

From Eq. (25) & (26) we can extract three dimensionless numbers, which govern the dynamics in the liquid phase. Under galvanostatic current jelκLΔΦrefL/lj_{el}\sim\kappa_{L}\Delta\Phi_{ref}^{L}/l, these are

A:=FΔΦrefLR¯T=FjellR¯TκL,B:=kCl2Dm,refcref,C:=kElDm,refcrefA:=\frac{F\Delta\Phi_{ref}^{L}}{\overline{R}T}=\frac{Fj_{el}l}{\overline{R}T\kappa_{L}},\quad B:=\frac{k_{C}l^{2}}{D_{m,ref}c_{ref}},\quad C:=\frac{k_{E}l}{D_{m,ref}c_{ref}} (27)

and determine the influence of species migration, of chemical reactions and electrochemical reactions to species diffusion. The last both are known as Damköhler numbers. Qualitatively, this implies that species diffusion in α=L\alpha=L will be dominant for A,B,C1A,B,C\ll 1. Since the nondimensional numbers in Eq. (27) depend on the coarse-graining scale ll and the applied galvanostatic current density jelj_{el}, the upscaling with the standard closure in Eq. (22) is likely to be successful for sufficiently small ll and jelj_{el}.

Thus, as long as the conditions A,B,C1A,B,C\ll 1 are satisfied, the model can be upscaled to larger ll, conceivably reaching a point at which gradients at the coarse-graining scale ll and perpendicular to the main transport direction become irrelevant. Then, the spatial-coarse graining framework spans fully homogenized 1D models as well as scale-resolved 3D models and enables the parameter identification and model calibration based on the homogenized 1D model. This is one of the key results of this work and a novelty in the LSB context and will be shown to hold following our a posteriori heuristics in Sec. 3.

2.5 Constitutive Modelling

In order to finalize our coarse-grained continuum model in Sec. 2.3, we will discuss the constitutive modelling of the reactions terms in the averaged Eqs. (16)-(19).

For the specific surface aVa_{V} we choose an empirical expression, which is a modified version of the one suggested by Kumaresan et al. [Kumaresan_2008]. It reads

aV:=aV,0(1(ϵS8S1.2ϵS8,0S)3/2(ϵLi2SSaexp(bfC))3/2),a,b+.a_{V}:=a_{V,0}\left(1-\left(\frac{\epsilon_{S_{8}}^{S}}{1.2\epsilon_{S_{8},0}^{S}}\right)^{3/2}-\left(\frac{\epsilon_{Li_{2}S}^{S}}{a\,exp(-bf_{C})}\right)^{3/2}\right),\quad a,b\in\mathbb{R}^{+}~. (28)

This constitutive relation accounts for the fact that the initial electrochemically active specific surface aV,0a_{V,0} is locally reduced by the insulating solid species S8(S)S_{8}~(S) and Li2S(S)Li_{2}S~(S). The quantity ϵS8,0S\epsilon_{S_{8},0}^{S} denotes the initial S8(S)S_{8}~(S) volume fraction. Since we are interested in the rate performance of the battery and the discharge is terminated by the large overpotential introduced by Li2S(S)Li_{2}S~(S), the influence of the discharge current on the Li2S(S)Li_{2}S~(S) precipitation must be incorporated. Since we anticipate stronger supersaturation with higher applied currents jelj_{el} and C-rate fCf_{C}, which is likely to produce more nuclei and block more surface, we refer the Li2S(S)Li_{2}S~(S) term in Eq. (28) to an exponential depending on fCf_{C} with parameters that will be calibrated in Sec. 3. The proposed model in Eq. (28) should be understood as a qualitative guess compliant with literature standards and sufficient for the demonstration of our numerical operando approach. Yet, it is empirical as stated above. This is why we currently perform scale-resolved nucleation simulations based on the Lattice Boltzmann (LBM) framework developed by Weinmiller et al. [Weinmiller_2024]. The results will likely be helpful in developing new improved constitutive models for aVa_{V}, but reported elsewhere.

The averaged reaction rates emerging from the chemical bulk reactions will be modelled by

R˙¯C,i=k=1NCνi,kϵkSkC,kkCr˙V,k,\overline{\dot{R}}_{C,i}=\sum_{k=1}^{N_{C}}\nu_{i,k}\epsilon_{k}^{S}\frac{k_{C,k}}{k_{C}}\dot{r}_{V,k}~, (29)

with νi,k\nu_{i,k} as stoichiometric coefficient of species ii in reaction k{1,,NC}k\in\{1,...,N_{C}\}, kC,kk_{C,k} as reaction rate coefficient of reaction kk normalized by kC:=maxk{kC,k}k_{C}:=\text{max}_{k}\{k_{C,k}\} and the individual reaction rate expressions r˙V,k\dot{r}_{V,k} defined below. Please note, that the reaction rates scale with the volume fractions ϵkS\epsilon_{k}^{S} of the corresponding solid species, which leads to a physical inconsistency for the limit ϵkS0\epsilon_{k}^{S}\to 0, although it is the current literature standard [Kumaresan_2008, Parke_2021]. Likewise the averaged surface electrochemical reaction rates read

R˙¯E,i=k=1NEνi,kFkE,kkEr˙A,k,\overline{\dot{R}}_{E,i}=\sum_{k=1}^{N_{E}}\nu_{i,k}F\frac{k_{E,k}}{k_{E}}\dot{r}_{A,k}~, (30)

with similar rational behind the notation as in Eq. (29) for the k{1,,NE}k\in\{1,...,N_{E}\} reactions, except that r˙A,k\dot{r}_{A,k} represent area-related electric currents. For the reaction rate expressions r˙V,k\dot{r}_{V,k} and r˙A,k\dot{r}_{A,k} the established Butler-Volmer kinetics [Bazant_2013, Latz_2013, Dreyer_2016] will be used. This gives for the chemical reactions

r˙V,k=areac,k1αsaprod,kαs(exp(αsΔRGC,kR¯T)exp((1αs)ΔRGC,kR¯T)).\dot{r}_{V,k}=\langle a\rangle_{reac,k}^{1-\alpha_{s}}\langle a\rangle_{prod,k}^{\alpha_{s}}\left(exp\left(-\alpha_{s}\frac{\Delta_{R}G_{C,k}}{\overline{R}T}\right)-exp\left((1-\alpha_{s})\frac{\Delta_{R}G_{C,k}}{\overline{R}T}\right)\right)~. (31)

with a symmetry factor αs=1/2\alpha_{s}=1/2, such that Eq. (31) can be simplified to

r˙V,k=2areac,kaprod,ksinh(ΔRGC,k2R¯T).\dot{r}_{V,k}=-2\sqrt{\langle a\rangle_{reac,k}\langle a\rangle_{prod,k}}~sinh\left(\frac{\Delta_{R}G_{C,k}}{2\overline{R}T}\right)~. (32)

The net activities of the reactants and the products with n{reac,prod}n\in\{reac,~prod\} are defined as

an,k:=m=1Nn,kamαm|νm,k|\langle a\rangle_{n,k}:=\prod_{m=1}^{N_{n,k}}\langle a_{m}^{\alpha_{m}}\rangle^{|\nu_{m,k}|} (33)

with αm\alpha_{m} as phase of species mm, the usual convention for pure solids, i.e. amS:=1\langle a_{m}^{S}\rangle:=1, and amL:=cmLcref\langle a_{m}^{L}\rangle:=\langle\frac{c_{m}^{L}}{c_{ref}}\rangle in the liquid phase. The reaction- and species-independent reference concentration will be set to cref=1000mol/m3c_{ref}=1000~\text{mol}/\text{m}^{3}, which is a standard for electrolyte solutions. The change in the Gibbs free energy due to the chemical reaction at p,T=const.p,T=const. is given by

ΔRGC,k=R¯Tln(aprod,kareac,kKsp,k1)=R¯Tln(QR,kKsp,k).\Delta_{R}G_{C,k}=\overline{R}T~ln\left(\frac{\langle a\rangle_{prod,k}}{\langle a\rangle_{reac,k}}K_{sp,k}^{-1}\right)=\overline{R}T~ln\left(\frac{Q_{R,k}}{K_{sp,k}}\right)~. (34)

The reaction rate expressions r˙V,k\dot{r}_{V,k} in Eq. (32), together with Eq. (33) & Eq. (34), are consistent with Le Chatelier’s principle, considering the definitions of the chemical reactions in Tab. 3. Combing the equations one finds r˙V,k=Ksp,k(QR,k/Ksp,k1)\dot{r}_{V,k}=-\sqrt{K_{sp,k}}\left(Q_{R,k}/K_{sp,k}-1\right), which corresponds to the literature standard [Parke_2021]. Arguably, any perturbation from equilibrium, quantified by the reaction quotient QR,kQ_{R,k} with respect to the solubility product Ksp,kK_{sp,k}, will drive the system back to equilibrium. For the electrochemical reactions, the reaction rate expressions are similar to Eq. (32) and read

r˙A,k=2areac,kaprod,ksinh(ΔRGE,k2R¯T).\dot{r}_{A,k}=-2\sqrt{\langle a\rangle_{reac,k}\langle a\rangle_{prod,k}}~sinh\left(\frac{\Delta_{R}G_{E,k}}{2\overline{R}T}\right)~. (35)

The main difference lies in the final expression of the change in the Gibbs free energy due to the electrochemical reaction at p,T=const.p,T=const., which is

ΔRGE,k=ne,kF(ΦSΦLUeq,k).\Delta_{R}G_{E,k}=n_{e^{-},k}F\left(\langle\Phi^{S}\rangle-\langle\Phi^{L}\rangle-U_{eq,k}\right)~. (36)

Here, ne,kn_{e^{-},k} is the number of transferred electrons per reaction according to Tab. 3. The equilibrium voltage Ueq,kU_{eq,k} depends on the standard reduction potential Ured,k0U_{red,k}^{0} and the reaction quotient QR,kQ_{R,k} according to the Nernst equation

Ueq,k=Ured,k0R¯Tne,kFln(QR,k).U_{eq,k}=U_{red,k}^{0}-\frac{\overline{R}T}{n_{e^{-},k}F}ln\left(Q_{R,k}\right)~. (37)

2.6 Boundary Conditions

For the boundary conditions, we will restrict ourselves to galvanostatic discharge like in the work of Kumaresan et al. [Kumaresan_2008], since we want to optimize the rate performance of the cell. Hence, we will apply a constant current density jel+j_{el}\in\mathbb{R}^{+} at the current collector surface ACCA_{CC} with normal 𝒏ACC\boldsymbol{n}_{A_{CC}} on the cathode side (Fig. 1 (b)). The Neumann boundary condition corresponding to Eq. (19) is

κSeffΦS𝒏ACC=jel.\kappa_{S}^{eff}\nabla\langle\Phi^{S}\rangle\cdot\boldsymbol{n}_{A_{CC}}=-j_{el}~. (38)

The Lithium metal anode will be treated as a reference electrode. Due to that, we will set the solid potential at the anode surface AAnoA_{Ano} to ΦSAno=0\langle\Phi^{S}\rangle_{Ano}=0 and, additionally, Ured,Ano0=0U_{red,Ano}^{0}=0. This Dirichlet boundary condition will force the anode reaction

Li+(L)+e(S)Li(S)Li^{+}~(L)+e^{-}~(S)\rightleftharpoons Li~(S) (39)

to produce a Li+Li^{+} flux leading to a current density equivalent to the one applied by Eq. (38). The resulting boundary conditions, corresponding to Eq. (18) and Eq. (19), are

𝒋Li+𝒏Ano=νLi+,AnokE,Anor˙A,Ano\displaystyle-\boldsymbol{j}_{Li^{+}}\cdot\boldsymbol{n}_{Ano}=\nu_{Li^{+},Ano}k_{E,Ano}\dot{r}_{A,Ano} (40)
j=1NLzjF𝒋¯j𝒏Ano=zLi+FνLi+,AnokE,Anor˙A,Ano\displaystyle\sum_{j=1}^{N_{L}}-z_{j}F\overline{\boldsymbol{j}}_{j}\cdot\boldsymbol{n}_{Ano}=z_{Li^{+}}F\nu_{Li^{+},Ano}k_{E,Ano}\dot{r}_{A,Ano} (41)

Remaining boundaries are exposed to no-flux conditions.

Table 4: Summary of the spatially coarse-grained PDE system with boundary conditions for the galvanostatic operation.
Transport Equations: Liquid Phase α=L\alpha=L
t(ϵLciL)=(Dm,ieffciL+ziFR¯TDm,ieffciLΦL)+kCR˙¯C,i+aVkER˙¯E,iF\partial_{t}(\epsilon^{L}\langle c_{i}^{L}\rangle)=\nabla\cdot\left(D_{m,i}^{eff}\nabla\langle c_{i}^{L}\rangle+\frac{z_{i}F}{\overline{R}T}D_{m,i}^{eff}\langle c_{i}^{L}\rangle\nabla\langle\Phi^{L}\rangle\right)+k_{C}\overline{\dot{R}}_{C,i}+a_{V}k_{E}\frac{\overline{\dot{R}}_{E,i}}{F}
0=(j=1NL1zjF(Dm,jeffDm,NLeff)cjL+zjF2R¯T(zjDm,jeffzNLDm,NLeff)cjLΦL)+j=1NL1zjaVkER˙¯E,j0=\nabla\cdot\left(\sum_{j=1}^{N_{L}-1}z_{j}F(D_{m,j}^{eff}-D_{m,N_{L}}^{eff})\nabla\langle c_{j}^{L}\rangle+\frac{z_{j}F^{2}}{\overline{R}T}(z_{j}D_{m,j}^{eff}-z_{N_{L}}D_{m,N_{L}}^{eff})\langle c_{j}^{L}\rangle\nabla\langle\Phi^{L}\rangle\right)+\sum_{j=1}^{N_{L}-1}z_{j}a_{V}k_{E}\overline{\dot{R}}_{E,j}
Transport Equations: Solid Phase α=S\alpha=S
ρi0M¯itϵiS=kCR˙¯C,i+aVkER˙¯E,iF\frac{\rho_{i}^{0}}{\overline{M}_{i}}\partial_{t}\epsilon_{i}^{S}=k_{C}\overline{\dot{R}}_{C,i}+a_{V}k_{E}\frac{\overline{\dot{R}}_{E,i}}{F}
0=(κSeffΦS)+zeaVkER˙¯E,e0=\nabla\cdot\left(\kappa_{S}^{eff}\nabla\langle\Phi^{S}\rangle\right)+z_{e^{-}}a_{V}k_{E}\overline{\dot{R}}_{E,e^{-}}
Boundary Conditions: Liquid Phase α=L\alpha=L
𝒋Li+𝒏Ano=νLi+,AnokE,Anor˙A,Ano-\boldsymbol{j}_{Li^{+}}\cdot\boldsymbol{n}_{Ano}=\nu_{Li^{+},Ano}k_{E,Ano}\dot{r}_{A,Ano}
j=1NLzjF𝒋¯j𝒏Ano=zLi+FνLi+,AnokE,Anor˙A,Ano\sum_{j=1}^{N_{L}}-z_{j}F\overline{\boldsymbol{j}}_{j}\cdot\boldsymbol{n}_{Ano}=z_{Li^{+}}F\nu_{Li^{+},Ano}k_{E,Ano}\dot{r}_{A,Ano}
Boundary Conditions: Solid Phase α=S\alpha=S
κSeffΦS𝒏ACC=jel\kappa_{S}^{eff}\nabla\langle\Phi^{S}\rangle\cdot\boldsymbol{n}_{A_{CC}}=-j_{el}
ΦSAno=0\langle\Phi^{S}\rangle_{Ano}=0

2.7 Spatial Discretization

The complete spatially coarse-grained PDE system, presented in Sec. 2.3, Sec. 2.5 and Sec. 2.6, must be discretized and solved numerically due to its complexity. For convenience, the PDE system is summarized in Tab. 4. Note two things: (i) For the charge transport in the liquid phase α=L\alpha=L, we use a modification which accounts for linear dependency of species due to local charge neutrality [Roy_2023]. Identifying the species i=NLi=N_{L} as collective of not actively participating anions in our reaction scheme, namely TFSITFSI^{-} & NO3NO_{3}^{-} (Sec. 2.1), it can be eliminated from the system with cNLL=j=1NL1zjcjL/zNL\langle c_{N_{L}}^{L}\rangle=-\sum_{j=1}^{N_{L}-1}z_{j}\langle c_{j}^{L}\rangle/z_{N_{L}}. (ii) The relation ϵL=1j=1NSϵjS\epsilon^{L}=1-\sum_{j=1}^{N_{S}}\epsilon_{j}^{S} for volume conservation will be explicitly used to determine the liquid volume fraction.

In this section, we will sketch our spatial discretization scheme based on the Discontinuous Galerkin (DG) method [Cockburn_2003, van_Leer_2005, Uzunca_2016, Roy_2019, Roy_2023]. The given references target a broader, applied audience and we subsequently adapt this philosophy. We opt for DG because the methodology is locally conservative by construction even in the presence of jumps in the transport and reaction parameters. These are inherent in our battery model because of the different subdomains considered. The most prominent examples are that the reactions in Fig. 2 & Tab. 3 as well as the electric charge transport in the solid phase α=S\alpha=S take only place in the cathode subdomain. Hence, kC,kE,κSeff0k_{C},k_{E},\kappa_{S}^{eff}\neq 0 inside this subdomain and kC,kE,κSeff=0k_{C},k_{E},\kappa_{S}^{eff}=0 vice versa.

Taking a closer look at the transport equations in Tab. 4, a coupled system of nonlinear, transient reaction-diffusion equations can be identified. For a scalar transport field ψ\psi, the simplest representative would be

tψ=(D(ψ)ψ)+R˙ψ,\partial_{t}\psi=\nabla\cdot\left(D(\psi)\nabla\psi\right)+\dot{R}_{\psi}~, (42)

with a ψ\psi-dependent diffusion coefficient D(ψ)D(\psi) and a reaction term R˙ψ\dot{R}_{\psi}. In order to spatially discretize Eq. (42) on the domain Ω3\Omega\subset\mathbb{R}^{3}, we decompose the latter into a set of non-overlapping, hexahedral cells Ω=iΩi\Omega=\bigcup_{i}\Omega_{i} with boundaries Ωi\partial\Omega_{i}, on which local polynomials of degree p0p\in\mathbb{N}_{0} live. By that we restrict ourselves to Cartesian grids, which practically is not a drawback as 3D scans of LSB electrodes are to date always based on voxelized data, e.g. [Yermukhambetova_2016, Tan_2018, Tan_2019]. Multiplying Eq. (42) with local polynomial testfunctions vv and integrating over the whole domain gives the following semi-discrete weak form [Cockburn_2003]

Ω(tψ)v𝑑𝐱+iNΩi(𝐟^ψv)𝐧𝑑oΩ𝐟ψvd𝐱=ΩR˙ψv𝑑𝐱,\int_{\Omega}(\partial_{t}\psi)v~d\mathbf{x}+\sum_{i}^{N}\int_{\partial\Omega_{i}}(\mathbf{\widehat{f}}_{\psi}v)\cdot\mathbf{n}~do-\int_{\Omega}\mathbf{f}_{\psi}\cdot\nabla v~d\mathbf{x}=\int_{\Omega}\dot{R}_{\psi}v~d\mathbf{x}~, (43)

in which 𝐟^ψ\mathbf{\widehat{f}}_{\psi} is a stabilizing, dissipative approximation of the diffusive flux 𝐟ψ:=D(ψ)ψ\mathbf{f}_{\psi}:=-D(\psi)\nabla\psi. The main challenges lies now in the choice of an appropriate numerical flux 𝐟^ψ\mathbf{\widehat{f}}_{\psi}. Denoting the interior of a cell Ωi\Omega_{i} with (-) and the exterior with (++), one can introduce the average and jump operator at the cell interfaces SkS_{k}. Exemplary for ψ\psi they read

{ψ}:=ψ+ψ+2,ψ:=(ψ𝐧)+(ψ𝐧)+.\{\psi\}:=\frac{\psi^{-}+\psi^{+}}{2},\quad\llbracket\psi\rrbracket:=(\psi\mathbf{n})^{-}+(\psi\mathbf{n})^{+}~. (44)

By means of energy principles it can be shown that 𝐟^ψ:={𝐟ψ}+{D(ψ)}Hψh\mathbf{\widehat{f}}_{\psi}:=\{\mathbf{f}_{\psi}\}+\{D(\psi)\}_{H}\frac{\llbracket\psi\rrbracket}{h} is dissipative [Cockburn_2003], with a characteristic cell width hh and the harmonic average of the diffusion coefficient 111In principle one can also use the standard average, namely {D(ψ)}\{D(\psi)\} instead of {D(ψ)}H\{D(\psi)\}_{H}. However, by this choice electric charge transport in the solid phase α=S\alpha=S of the separator subdomain can directly by prevented without an additional boundary condition.

{D(ψ)}H:=2D(ψ)D(ψ+)D(ψ)+D(ψ+).\{D(\psi)\}_{H}:=2\frac{D(\psi^{-})D(\psi^{+})}{D(\psi^{-})+D(\psi^{+})}~. (45)

This gives the so-called Interior Penality Method (IP) [Cockburn_2003, van_Leer_2005, Uzunca_2016] and results for the flux terms in Eq. (43) in

i\displaystyle\sum_{i} Ωi(𝐟^ψv)𝐧do=kSk𝐟^ψvdo\displaystyle\int_{\partial\Omega_{i}}(\mathbf{\widehat{f}}_{\psi}v)\cdot\mathbf{n}~do=\sum_{k}\int_{S_{k}}\mathbf{\widehat{f}}_{\psi}\cdot\llbracket v\rrbracket~do
=kSk{D(ψ)ψ}vdo+kSk{D(ψ)}Hψvhdo.\displaystyle=-\sum_{k}\int_{S_{k}}\{D(\psi)\nabla\psi\}\cdot\llbracket v\rrbracket~do+\sum_{k}\int_{S_{k}}\{D(\psi)\}_{H}\frac{\llbracket\psi\rrbracket\cdot\llbracket v\rrbracket}{h}~do~. (46)

Since we have to incorporate Neumann boundary condition 𝐟^ψ𝐧|SkΩ=fψN\mathbf{\widehat{f}}_{\psi}\cdot\mathbf{n}|_{S_{k}\subset\partial\Omega}=f_{\psi}^{N} according to Tab. 4, we can rewrite the IP flux terms of the semi-discrete weak form in Eq. (46) to

i\displaystyle\sum_{i} Ωi(𝐟^ψv)𝐧do=kSkΩ𝐟^ψvdo+kSkΩfψNvdo\displaystyle\int_{\partial\Omega_{i}}(\mathbf{\widehat{f}}_{\psi}v)\cdot\mathbf{n}~do=\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\mathbf{\widehat{f}}_{\psi}\cdot\llbracket v\rrbracket~do+\sum_{k}\int_{S_{k}\subset\partial\Omega}f_{\psi}^{N}v~do
=\displaystyle= kSkΩ{D(ψ)ψ}vdo+kSkΩ{D(ψ)}Hψvhdo\displaystyle-\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\{D(\psi)\nabla\psi\}\cdot\llbracket v\rrbracket~do+\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\{D(\psi)\}_{H}\frac{\llbracket\psi\rrbracket\cdot\llbracket v\rrbracket}{h}~do
+kSkΩfψNv𝑑o.\displaystyle+\sum_{k}\int_{S_{k}\subset\partial\Omega}f_{\psi}^{N}v~do. (47)

We tested the resulting DG formalism of Eq. (43) & Eq. (47) for several representative canonical systems and polynomials with order p{0,1}p\in\{0,1\} as detailed in the A. However, we observed for p=1p=1 that the formalism is not positivity-preserving per se. This is highly problematic with our reaction rate expressions in Eq. (32) & Eq. (35) involving roots of the transported fields, intuitively suffering from robustness issues. Although it would be interesting to develop such a positivity-preserving scheme with proper slope- and flux-limiting, generalizing our toolbox to unstructured grids, we postpone this to future work. Hence, we will only consider p=0p=0 in the following, in which the DG scheme reduces to a finite volume formulation with central flux approximation [van_Leer_2005, Roy_2019]. Then, considering that the gradient terms Eq. (43) & Eq. (47) vanish, the overall semi-discrete weak form corresponding to Eq. (42) becomes

Ω(tψ)v𝑑𝐱\displaystyle\int_{\Omega}(\partial_{t}\psi)v~d\mathbf{x} +kSkΩ{D(ψ)}Hψvh𝑑o\displaystyle+\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\{D(\psi)\}_{H}\frac{\llbracket\psi\rrbracket\cdot\llbracket v\rrbracket}{h}~do
+kSkΩfψNv𝑑o=ΩR˙ψv𝑑𝐱.\displaystyle+\sum_{k}\int_{S_{k}\subset\partial\Omega}f_{\psi}^{N}v~do=\int_{\Omega}\dot{R}_{\psi}v~d\mathbf{x}~. (48)

In A we demonstrate that this scheme is first-order accurate even in the presence of discontinuities in the domain. It is straightforward to apply the formalism in Eq. (48) component-wise to the spatially coarse-grained PDE system in Tab. 4.

2.8 Time Stepping

Abstractly, the semi-discrete weak form emerging from Eq. (48) and Tab. 4 can be written as a nonlinear ordinary differential equation (ODE) of the form

d𝐳dt=𝐅(𝐳),\frac{\text{d}\mathbf{z}}{\text{d}t}=\mathbf{F}(\mathbf{z})~, (49)

with the mapping 𝐅:NDoFNDoF\mathbf{F}:\mathbb{R}^{N_{DoF}}\to\mathbb{R}^{N_{DoF}} and the state vector 𝐳NDoF\mathbf{z}\in\mathbb{R}^{N_{DoF}}. The latter contains all variables NvarN_{var} for all cells NcellN_{cell}, which in turn determine the degrees of freedom (DoF) of this system NDoF=NvarNcellN_{DoF}=N_{var}N_{cell}. Equation (49) requires temporal discretization and we will contrast three different time stepping strategies in the following.

The first and simplest time stepping in this study is the first-order implicit Euler scheme with constant time step Δt\Delta t, which is given by

𝐳n+1𝐳nΔt=𝐅(𝐳n+1).\frac{\mathbf{z}^{n+1}-\mathbf{z}^{n}}{\Delta t}=\mathbf{F}(\mathbf{z}^{n+1})~. (50)

It will be the reference scheme on which the other two time stepping strategies are based and directly maps the old state 𝐳n\mathbf{z}^{n} to the new state 𝐳n+1\mathbf{z}^{n+1}. Since we are interested in whole discharge cycles, an implicit procedure enabling larger time steps seems inevitable. Considering the explicit time step restriction imposed by diffusion, i.e. Δtmaxh2/D\Delta t_{max}\sim h^{2}/D, 3D scale-resolved simulations would quickly become unaffordable. The last point also motivated the development of adaptive time stepping strategies to efficiently simulate through whole discharge cycles. We employ control theory based adaptivity strategies [Soderlind_2002, Soderlind_2006], which are however similar to approaches presented in the context of electrochemistry [Yan_2021] and porous media [Belfort_2007].

In this light, our second time stepping scheme is a naive controller based on the implicit Euler scheme in Eq. (50) with feedback on the convergence of the solver (Sec. 2.9). It is illustrated in Fig. 4. If the solver converges, a sucsess-counter (sct) is updated. In case sct=3\text{sct}=3, the time step is increased by a factor of 1.2 and sct=0\text{sct}=0 reset. If the solver fails to converge, the time step is halved and fed back to the solver until convergence is reached.

Refer to caption
Figure 4: Adaptive time stepping strategy based on a naive feedback-controller with respect to successful convergence of the solver.

This can be repeated up to 30 times until the simulation is stopped and discarded.

Two main drawbacks of the former strategy are that there is no error control on the time step width Δt\Delta t and that the Euler scheme is only first-order accurate. In order to account for these two drawbacks, another controller was developed which is sketched in Fig. 5 and summarizes our third time stepping scheme. The relevant time step adaption is realized within a new feedback loop according to the H211b digital filter controller of [Soderlind_2006], which reads

Δtn+1Δtn=(tolerrn)1/4(tolerrn1)1/4(ΔtnΔtn1)1/4\frac{\Delta t^{n+1}}{\Delta t^{n}}=\left(\frac{\text{tol}}{\text{err}^{n}}\right)^{1/4}\left(\frac{\text{tol}}{\text{err}^{n-1}}\right)^{1/4}\left(\frac{\Delta t^{n}}{\Delta t^{n-1}}\right)^{-1/4} (51)

and whose result is smoothly limited by

limn+1:=Δtn+1Δtn~=1+arctan(Δtn+1Δtn1).\text{lim}^{n+1}:=\widetilde{\frac{\Delta t^{n+1}}{\Delta t^{n}}}=1+\text{arctan}(\frac{\Delta t^{n+1}}{\Delta t^{n}}-1)~. (52)

As shown in Fig. 5, the digital filter is called when the current error estimate for the time integration of a converged solution exceeds errn+1>1.02tol\text{err}^{n+1}>1.02\,\text{tol} or the limited step size change is too small, i.e. limn+1<0.9\text{lim}^{n+1}<0.9. At the beginning of each time step limn+1=0\text{lim}^{n+1}=0 is initialized to force at least one call of the digital filter.

Refer to caption
Figure 5: Adaptive time stepping strategy with the H211b controller using error control on the time step width Δt\Delta t.

According to Eq. (51), the controller depends on the error and time step evolution as well as on a user-specified tolerance tol that will be varied in Sec. 3. The error estimate is computed by

errn:=(𝐳Fn𝐳Cn)2(𝐳Fn)2\text{err}^{n}:=\sqrt{\frac{(\mathbf{z}_{F}^{n}-\mathbf{z}_{C}^{n})^{2}}{(\mathbf{z}_{F}^{n})^{2}}} (53)

and describes a domain-averaged, relative error between a solution 𝐳Fn\mathbf{z}_{F}^{n}, obtained by fine time stepping according to Eq. (50) with ΔtF:=Δt/2\Delta t_{F}:=\Delta t/2, and a solution 𝐳Cn\mathbf{z}_{C}^{n}, obtained by coarse time stepping with ΔtC:=Δt\Delta t_{C}:=\Delta t accordingly. Keeping track of such a fine and coarse solution, gives not only access to error control on the adaptive time step width but also to a second-order time stepping using Richardson extrapolation [Belfort_2007]. By combining

𝐳n=2𝐳Fn𝐳Cn,\mathbf{z}^{n}=2\mathbf{z}_{F}^{n}-\mathbf{z}_{C}^{n}~, (54)

the leading order error term of the implicit Euler scheme can be eliminated. Please note that in case of convergence issues of the solver, the step-halving strategy of the first naive controller in Fig. 4 was retained.

In Sec. 3, we will study and compare these three time stepping schemes in terms of performance, accuracy and memory footprint.

2.9 Solver

The fully discrete, nonlinear algebraic system, emerging from the coarse-grained PDE system in Tab. 4 after spatial and temporal discretization in Sec. 2.7 & Sec. 2.8, will be solved in monolithic fashion using Firedrake [Rathgeber_2016, Ham_2023, Luporini_2016, Homolya_2017_1, Homolya_2017_2]. The aforementioned is a parallelized and performant open source finite element solver with Python interface strongly coupled to PETSc [Balay_1997, Balay_2024, Dalcin_2011] and able to directly interpret our DG weak form in Eq. (48) thanks to the Unified Form Language (UFL) [Alnaes_2014]. The required grid for the spatial discretization in 1D and 3D is build with the utility meshes RectangleMesh and ExtrudedMesh [Lange_2015, Homolya_2016, McRae_2016, Bercea_2016]. For the solution of the nonlinear algebraic system in each time step, PETSc’s nonlinear Newton solver newtonls with line search is employed together with the linear Generalized Minimal Residual (GMRES) solver gmres [Saad_1986]. Only standard options and tolerances are used. As preconditioner for the linearized system HYPRE’s algebraic multigrid method boomeramg is used [Falgout_2006], which in principle can be strongly adjusted towards a specific problem. For the 3D scale-resolved simulation we deviate from HYPRE’s standard settings closely following [Roy_2023], which gives

pc_hypre_boomeramg_strong_threshold

0.7

pc_hypre_boomeramg_coarsen_type

HMIS

pc_hypre_boomeramg_agg_nl

3

pc_hypre_boomeramg_interp_type

ext+i

pc_hypre_boomeramg_num_paths

4

and has strong implications on the memory footprint and performance.

2.10 Initialization

The evolution of the Lithium-Sulfur battery model, emerging from the numerical solution of the PDE system in Tab. 4, requires a consistent initial state. Herein, this state is defined by the following two step procedure.

Table 5: Analytical initial state dependencies emerging from thermodynamic equilibrium before galvanostatic dicharge.
cS8L0=Ksp,1crefcS2L0=Ksp,2cref3cLi+L02ΔΦ0:=ΦS0ΦL0=16(34Ured,10+14Ured,20)+112Ured,30+34Ured,40+R¯TFln((cS8L0/cref)1/16(cS2L0/cref)1/2)cS82L0=cS8L0exp(2F(ΔΦ0Ured,10)R¯T)cS62L0=cref(cS8L0cref)3/4exp(2F(ΔΦ0(34Ured,10+14Ured,20)))R¯T)cS42L0=cref(cS2L0cref)4exp(6F(ΔΦ0Ured,40)R¯T)Ured,50=ΔΦ0R¯TFln((cS82L0/cref)1/2(cS42L0/cref))Ured,60=ΔΦ0R¯TFln((cS42L0/cref)1/6(cLi+L0/cref)4/3)\begin{aligned} &\langle c_{S_{8}}^{L}\rangle_{0}=K_{sp,1}c_{ref}\\ &\langle c_{S^{2-}}^{L}\rangle_{0}=\frac{K_{sp,2}c_{ref}^{3}}{\langle c_{Li^{+}}^{L}\rangle_{0}^{2}}\\ &\Delta\Phi_{0}:=\langle\Phi^{S}\rangle_{0}-\langle\Phi^{L}\rangle_{0}\\ &=\frac{1}{6}\left(\frac{3}{4}U_{red,1}^{0}+\frac{1}{4}U_{red,2}^{0}\right)+\frac{1}{12}U_{red,3}^{0}+\frac{3}{4}U_{red,4}^{0}+\frac{\overline{R}T}{F}ln\left(\frac{(\langle c_{S_{8}}^{L}\rangle_{0}/c_{ref})^{1/16}}{(\langle c_{S^{2-}}^{L}\rangle_{0}/c_{ref})^{1/2}}\right)\\ &\langle c_{S_{8}^{2-}}^{L}\rangle_{0}=\langle c_{S_{8}}^{L}\rangle_{0}exp\left(\frac{-2F(\Delta\Phi_{0}-U_{red,1}^{0})}{\overline{R}T}\right)\\ &\langle c_{S_{6}^{2-}}^{L}\rangle_{0}=c_{ref}\,\left(\frac{\langle c_{S_{8}}^{L}\rangle_{0}}{c_{ref}}\right)^{3/4}exp\left(\frac{-2F(\Delta\Phi_{0}-(\frac{3}{4}U_{red,1}^{0}+\frac{1}{4}U_{red,2}^{0})))}{\overline{R}T}\right)\\ &\langle c_{S_{4}^{2-}}^{L}\rangle_{0}=c_{ref}\,\left(\frac{\langle c_{S^{2-}}^{L}\rangle_{0}}{c_{ref}}\right)^{4}exp\left(\frac{6F(\Delta\Phi_{0}-U_{red,4}^{0})}{\overline{R}T}\right)\\ &U_{red,5}^{0}=\Delta\Phi_{0}-\frac{\overline{R}T}{F}ln\left(\frac{(\langle c_{S_{8}^{2-}}^{L}\rangle_{0}/c_{ref})^{1/2}}{(\langle c_{S_{4}^{2-}}^{L}\rangle_{0}/c_{ref})}\right)\\ &U_{red,6}^{0}=\Delta\Phi_{0}-\frac{\overline{R}T}{F}ln\left((\langle c_{S_{4}^{2-}}^{L}\rangle_{0}/c_{ref})^{1/6}(\langle c_{Li^{+}}^{L}\rangle_{0}/c_{ref})^{4/3}\right)\\ \end{aligned}

In the first step, before a galvanostatic current jel0j_{el}\neq 0 is applied, the battery must be in a thermodynamic equilibrium. This implies that no reaction takes place in the beginning or, equivalently, that the change in the Gibbs free energy of the reactions in Eq. (34) & Eq. (36) is ΔRGC,k=0\Delta_{R}G_{C,k}=0 & ΔRGE,k=0\Delta_{R}G_{E,k}=0. This leads to an algebraic system that inherently links initial values of the fields in the PDE system and its parameters, eventually defining the initial state in thermodynamic equilibrium. The analytical solution which will be used in Sec. 3 is listed in Tab. 5 and contains only known quantities on the right hand side if the expressions are understood as a consecutive sequence from top to bottom.

In the second step, with the initial state defined by Tab. 5 and the arbitrary choice of the potentials ΦS0=ΔΦ0ΦL0=0\langle\Phi^{S}\rangle_{0}=\Delta\Phi_{0}\to\langle\Phi^{L}\rangle_{0}=0 (gauge invariance), we perform short presimulations to adapt the potential fields to the applied galvanostatic current jelj_{el}. This is inspired by the work of Lawder et al. [Lawder_2015] as well as Rüter et al. [Ruter_2018] and we call this procedure parabolic relaxation. Therefore, we fix the species concentrations and modify the steady elliptic equations for the potential fields ΦL,ΦS\langle\Phi^{L}\rangle,~\langle\Phi^{S}\rangle in the PDE system of Tab. 4 by transient terms on the left hand side, namely tΦL=\partial_{t}\langle\Phi^{L}\rangle=\dots and tΦS=\partial_{t}\langle\Phi^{S}\rangle=\dots. Moreover, we ramp up the current jelTHjelj_{el}\to T_{H}j_{el}, imposed as boundary condition in the solid phase α=S\alpha=S, by the prefactor

TH(t)=12(1+tanh(61s(t1s))),T_{H}(t)=\frac{1}{2}(1+tanh(6\,\frac{1}{\text{s}}(t-1\,\text{s})))~, (55)

which is a smoothed Heaviside step function around t=1t=1. We empirically verified for the experiments in Sec. 3 that the parabolic relaxation, solved with the Euler scheme in Eq. (50) using Δt=0.1s\Delta t=0.1\,\text{s} for Tinit=4sT_{init}=4\,\text{s}, results in a steady-state distribution for the updated initial potential fields ΦL0,ΦS0\langle\Phi^{L}\rangle_{0},~\langle\Phi^{S}\rangle_{0}.

With this two step procedure a consistent initial state can be obtained that in principle allows to compute the evolution of the Lithium-Sulfur battery model in a main simulation. However, since we observed in Sec. 3 for the 3D scale-resolved model at the highest current that locally cS2L<0\langle c_{S^{2-}}^{L}\rangle<0 in the first seconds of the discharge, we temporally regularized all reactions involving S2(L)S^{2-}~(L). Therefore, the corresponding reactions rates were multiplied by the smoothed Heaviside step function TH(t)T_{H}(t) in Eq. (55). This was done for all simulations in Sec. 3 and had provably no influence on the global metrics therein.

3 Results & Discussion

In this section we will verify and critically discuss our scale-resolved numerical operando approach for Lithium-Sulfur batteries (LSBs) based on the theory and methods presented in Sec. 2. Therefore, we will analyze typical LSB battery characteristics during discharge that are based on quantities defined in B. As in the experiment, the discharge will always be terminated when the cutoff voltage of Ucell=1.9VU_{cell}=1.9\,\text{V} is reached.

To begin with, we will first calibrate the fully homogenized 1D model in Sec. 3.1 using experimental data from the Fraunhofer IWS in Dresden as reference (Sec. 2.1). Therefore, we utilize the naive controller introduced in Sec. 2.8 and Fig. 4 as time stepping strategy. As spatial resolution we specify h1D=1μmh_{1D}=1\,\mu\text{m}, which is more than an order of magnitude below the chosen coarse-graining scale l1D=20μml_{1D}=20\,\mu\text{m}, the latter being twice the mean particle size in the cathode. Hence, the model should be spatially well-resolved. The homogenization for low currents will be justified a posteriori by the scaling conditions stipulated by Eq. (27). We will verify the physical consistency of the model in Sec. 3.2 also extrapolating to higher currents, followed by a discussion of the different time stepping strategies in Sec. 3.3.

Afterwards, the scale-resolved 3D model with h3D=0.5μm<l3D=2μmh_{3D}=0.5\,\mu\text{m}<l_{3D}=2\,\mu\text{m} will be compared with the fully homogenized 1D model in Sec. 3.4, also using the naive controller as time stepping strategy. In Sec. 3.5 it will be shown for higher currents that the spatial coarse-graining towards a fully homogenized 1D model fails due to a violation of the scaling conditions introduced in Sec. 2.4. This will prove the ability of our scale-resolved 3D approach to predict battery performance when ”Structure matters.”. We conclude in Sec. 3.6 with strong scaling results which show that our approach is also performant.

If not mentioned otherwise, we will save snapshots of the discharge every tsnap=100st_{snap}=100\,\text{s}. The homogenized 1D simulations were all run in serial on a local workstation with a Intel® Core™ i7-11850H @ 2.50GHz × 8 processor. Contrary, the parallel scale-resolved 3D simulations were performed on bwUniCluster3.0 located at the Scientific Computing Center (SCC) at Karlsruhe Institute of Technology (KIT) with AMD EPYC™ 9454 @ 2.75 GHz × 48 processors. If not mentioned otherwise, the parallel runs utilized 768 processors.

3.1 Calibration of the Homogenized 1D Model

For the calibration of the homogenized 1D model, corresponding to the PDE system in Tab. 4, cell voltage profiles during discharge at two different electrolyte-sulfur-ratios rE/Sr_{E/S} and discharge rates fCf_{C} were provided by Fraunhofer IWS in Dresden. These are depicted as gray lines in Fig. 6 and show the cell voltage UcellU_{cell} over the specific gravimetric capacity cmc_{m} as detailed in B. Please note that the two electrolyte-sulfur-ratios rE/S=5.0ml/gr_{E/S}=5.0\,\text{ml/g} and rE/S=3.0ml/gr_{E/S}=3.0\,\text{ml/g} correspond to LSB pouch cells in which the porous materials are either perfectly filled with electrolyte and additionally surrounded by excess electrolyte or only partially filled with electrolyte to increase the gravimetric energy density [Doerfler_2020]. Although the are only slight discrepancies between the cell voltage profiles, we target to match the case rE/S=5.0ml/gr_{E/S}=5.0\,\text{ml/g} more closely. The reason for it is that our model in Tab. 4 can only account for the case of perfect filling for the chosen modelling domain (Fig. 1), which corresponds to rE/S=4.4ml/gr_{E/S}=4.4\,\text{ml/g}.

Table 6: Parametrization of the homogenized 1D Model in the solid phase α=S\alpha=S.
Cathode/CC Value Unit Ref. Assump. Equi. Calib.
Ksp,1K_{sp,1} 0.0060.006 [-] x
kC,1k_{C,1} 120.0120.0 [mol/(s m3)\text{mol}/(\text{s\,m}^{3})] x
Ksp,2K_{sp,2} 810158\cdot 10^{-15} [-] x
kC,2k_{C,2} 31033\cdot 10^{-3} [mol/(s m3)\text{mol}/(\text{s\,m}^{3})] x
Ured,10U_{red,1}^{0} 2.412.41 [V] x
kE,1k_{E,1} 2.531062.53\cdot 10^{-6} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x
Ured,20U_{red,2}^{0} 2.322.32 [V] x
kE,2k_{E,2} 3.541083.54\cdot 10^{-8} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x
Ured,30U_{red,3}^{0} 2.312.31 [V] x
kE,3k_{E,3} 1.4910101.49\cdot 10^{-10} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x
Ured,40U_{red,4}^{0} 1.9851.985 [V] x
kE,4k_{E,4} 2.051072.05\cdot 10^{-7} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x
Ured,50U_{red,5}^{0} 2.3132.313 [V] x
kE,5k_{E,5} 9.1110109.11\cdot 10^{-10} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x
Ured,60U_{red,6}^{0} 2.542.54 [V] x
kE,6k_{E,6} 1.3710151.37\cdot 10^{-15} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x
aV,0a_{V,0} 94.90810694.908\cdot 10^{6} [1/m] Exp.
ρS80\rho_{S_{8}}^{0} 2070.42070.4 [kg/m3\text{kg}/\text{m}^{3}] [Danner_2015]
M¯S8\overline{M}_{S_{8}} 0.25650.2565 [kg/mol\text{kg}/\text{mol}] [Danner_2015]
ϵS8,0S\epsilon^{S}_{S_{8},0} 0.0950.095 [-] Exp.
ρLi2S0\rho_{Li_{2}S}^{0} 1659.01659.0 [kg/m3\text{kg}/\text{m}^{3}] [Danner_2015]
M¯Li2S\overline{M}_{Li_{2}S} 0.04590.0459 [kg/mol\text{kg}/\text{mol}] [Danner_2015]
ϵLi2S,0S\epsilon^{S}_{Li_{2}S,0} 2.771062.77\cdot 10^{-6} [-] x
aa 0.13920.1392 [-] x
bb 3.3103.310 [h] x
κSeff\kappa_{S}^{eff} 1.01.0 [S/m] [Danner_2019]
κCC\kappa_{CC} 10.010.0 [S/m] x
Anode Value Unit Ref. Assump. Equi. Calib.
Ured,Ano0U_{red,Ano}^{0} 0.00.0 [V] x
kE,Anok_{E,Ano} 5.01035.0\cdot 10^{-3} [mol/(s m2)\text{mol}/(\text{s\,m}^{2})] x

The calibration is performed with the parameters as listed in Tab. 6 for the solid phase α=S\alpha=S and Tab. 7 for the liquid phase α=L\alpha=L. Parameters which have a distinct reference (column Ref.) are distinguished from assumed ones that are in the range of common literature choices (column Assump.) and ones that can be deduced from thermodynamic equilibrium according to Tab. 5 (column Equi.). Parameters which are calibrated (column Calib.) are the reactions rate coefficients in the cathode domain and the two parameters a,b+a,\,b\in\mathbb{R^{+}} required for the empirical specific surface model in Eq. (28). Despite the fact that the open source solver Firedrake provides direct access to functionalities enabling accurate adjoint-assisted data assimilation [Farrell_2013, Mitusch_2019, Ghelichkhan_2024], we use ”trial and error” forward modelling only to qualitatively match the cell voltage characteristics. We deem this procedure as sufficient for the introduction of our scale-resolved numerical operando approach for LSBs and postpone the aforementioned to a later work.

Table 7: Parametrization of the homogenized 1D Model in the liquid phase α=L\alpha=L.
Electrolyte Value Unit Ref. Assump. Equi. Calib.
Dm,Li+D_{m,Li^{+}} 9.310109.3\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] x
Dm,AD_{m,A^{-}} 9.310109.3\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] x
Dm,S2D_{m,S^{2-}} 0.610100.6\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] [Danner_2019]
Dm,S42D_{m,S_{4}^{2-}} 7.610107.6\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] [Danner_2019]
Dm,S62D_{m,S_{6}^{2-}} 5.310105.3\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] [Danner_2019]
Dm,S82D_{m,S_{8}^{2-}} 5.310105.3\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] x
Dm,S8D_{m,S_{8}} 10.0101010.0\cdot 10^{-10} [m2/s\text{m}^{2}/\text{s}] [Danner_2019]
cLi+L0\langle c_{Li^{+}}^{L}\rangle_{0} 15001500 [mol/m3\text{mol}/\text{m}^{3}] Exp.
cAL0\langle c_{A^{-}}^{L}\rangle_{0} 1499.9761499.976 [mol/m3\text{mol}/\text{m}^{3}] x
cS2L0\langle c_{S^{2-}}^{L}\rangle_{0} 3.5610123.56\cdot 10^{-12} [mol/m3\text{mol}/\text{m}^{3}] x
cS42L0\langle c_{S_{4}^{2-}}^{L}\rangle_{0} 1.8541031.854\cdot 10^{-3} [mol/m3\text{mol}/\text{m}^{3}] x
cS62L0\langle c_{S_{6}^{2-}}^{L}\rangle_{0} 3.8551033.855\cdot 10^{-3} [mol/m3\text{mol}/\text{m}^{3}] x
cS82L0\langle c_{S_{8}^{2-}}^{L}\rangle_{0} 6.1841036.184\cdot 10^{-3} [mol/m3\text{mol}/\text{m}^{3}] x
cS8L0\langle c_{S_{8}}^{L}\rangle_{0} 6.06.0 [mol/m3\text{mol}/\text{m}^{3}] x

The result of the calibration is depicted in Fig. 6 (a) & (b), each as blue curve for the two discharge rates fC=0.051/hf_{C}=0.05\,\text{1/h} and fC=0.101/hf_{C}=0.10\,\text{1/h}, and obviously matches the experimental characteristic closely. The largest discrepancy in the cell voltage is found close to the end of discharge. Likely, this is indicative for an oversimplification of the surface passivation in the cathode by the reaction product Li2S(S)Li_{2}S~(S), modelled through the Tradeoff Chemistry scheme in Fig. 2 (c) and the specific surface model for aVa_{V} in Eq. (28). There is recent experimental evidence that the passivation process is more complicated than commonly anticipated [Prehal_2022], leaving room for future improvement of our model. Nevertheless, all in all the qualitative agreement between the experimental data and our model is convincing.

Refer to caption
Figure 6: Cell voltage profiles during discharge used for calibration at different electrolyte-sulfur-ratios rE/Sr_{E/S} and discharge rates fCf_{C}. (a) fC=0.051/hf_{C}=0.05~\text{1/h} and (b) fC=0.101/hf_{C}=0.10~\text{1/h}.

A major concern that can be certainly raised, is whether the calibration of the aforementioned parameters based on the homogenized 1D model was justified in the first place. As discussed in Sec. 2.4 this is only permitted when species diffusion as locally homogenizing process is dominant on the coarse-graining scale l1Dl_{1D}. Gathering the parameters from the calibration as listed in Tab. 6 & 7, the dimensionless numbers in Eq. (27) can be estimated to evaluate the scaling conditions a posteriori. Using the most conservative choices one finds

A=FR¯Tjel(fC=0.11/h)l1Dmin{κL,mean}=0.014<1\displaystyle A=\frac{F}{\overline{R}T}\frac{j_{el}(f_{C}=0.1\,\text{1/h})l_{1D}}{\text{min}\{\kappa_{L,mean}\}}=0.014<1
B=kC,1l1D2Dm,S2(cSL=0)η(cSL=0)η(max{cS,meanL}))cref=61.538>1\displaystyle B=\frac{k_{C,1}l_{1D}^{2}}{D_{m,S^{2-}}(c_{S}^{L}=0)\frac{\eta(c_{S}^{L}=0)}{\eta(\text{max}\{c_{S,mean}^{L}\}))}c_{ref}}=61.538>1
C=kE,1l1DDm,S2(cSL=0)η(cSL=0)η(max{cS,meanL}))cref=0.065<1,\displaystyle C=\frac{k_{E,1}l_{1D}}{D_{m,S^{2-}}(c_{S}^{L}=0)\frac{\eta(c_{S}^{L}=0)}{\eta(\text{max}\{c_{S,mean}^{L}\}))}c_{ref}}=0.065<1~, (56)

with jel(fC=0.11/h)=3.45A/m²j_{el}(f_{C}=0.1\,\text{1/h})=3.45\,\text{A/m\texttwosuperior}, with min{κL,mean}=0.19A/(Vm)\text{min}\{\kappa_{L,mean}\}=0.19\text{A/(Vm)} from Fig. 7 (c), with max{cS,meanL}=5581.8mol/m³\text{max}\{c_{S,mean}^{L}\}=5581.8\,\text{mol/m\textthreesuperior} from Fig. 7 (e) and, hence, η(cSL=0)/η(max{cS,meanL}))=0.013\eta(c_{S}^{L}=0)/\eta(\text{max}\{c_{S,mean}^{L}\}))=0.013 from Eq. (3). Evidently, the dimensionless number A,C<1A,\,C<1 comply with the scaling conditions, whereas B>1B>1 fuels the doubt that the calibration with the homogenized 1D model might be unjustified. However, we want to stress that we have chosen kC:=maxk{kC,k}k_{C}:=\text{max}_{k}\{k_{C,k}\} and Dm,ref=mini{Dm,i}D_{m,ref}=\text{min}_{i}\{D_{m,i}\} as extreme values in Sec. 2.4 to reduce the overall number of dimensionless numbers. Taking a closer look at BB in Eq. (56), the dissolution process of S8(S)S_{8}~(S) is compared with species diffusion of S2(L)S^{2-}~(L). In view of the cascade-like reaction scheme in Fig. 2 (c) and the low discharge rates, it can be expected that S2(L)S^{2-}~(L) will not be dynamically relevant from the beginning and only active in a later stage of the discharge. Likewise the viscosity of the electrolyte will not increase instantly. This justifies a reevaluation of BB with a species diffusion process that directly interacts with the dissolution process. Choosing Dm,S82D_{m,S_{8}^{2-}} alternatively without the viscosity influence, we get B=kC,1l1D2/(Dm,S82cref)=0.09<1B=k_{C,1}l_{1D}^{2}/(D_{m,S_{8}^{2-}}c_{ref})=0.09<1 in full accordance with the scaling conditions.

This underpins our calibration strategy based on the homogenized 1D model for low currents and we will show in Sec. 3.2 and Sec. 3.4, following our a posteriori heuristics, that the considerations to reevaluate BB are reasonable.

3.2 Verification of the Homogenized 1D Model

In this section we will qualitatively verify the physical veracity of the previously calibrated homogenized 1D model, also extrapolating the model to higher discharge rates fCf_{C}. The considered discharge characteristics are depicted in Fig. 7 and make use of the definitions in B.

We start with the cell voltage profiles in Fig. 7 (a), which are easily experimentally accessible and show the typical two plateau characteristics of LSBs with the prominent voltage dip in-between. Apparently, the cell voltage and capacities decrease significantly with increasing discharge rates fCf_{C}, the case fC=0.051/hf_{C}=0.05\,\text{1/h} being close to the equilibrium voltage. This behavior is anticipated for the high sulfur loading of mA,S8=0.02kg/m²m_{A,S_{8}}=0.02\,\text{kg/m\texttwosuperior} as experimentally demonstrated in [Boenke_2021] and rooted in kinetic limitations that become more pronounced at higher currents.

The latter is also reflected by the behavior in the liquid phase α=L\alpha=L as seen from the potential drop in Fig. 7 (b) and the mean electrical conductivity in Fig. 7 (c). As the shape of κL,mean\kappa_{L,mean} is mostly insensitive with respect to fCf_{C} (except for fC=0.51/hf_{C}=0.5\,\text{1/h}) and local charge neutrality must be satisfied, increasing the applied current jelj_{el}, i.e. fCf_{C}, must lead to an increase in the voltage drop. For fC=0.51/hf_{C}=0.5\,\text{1/h} this behavior is attenuated as the decrease in the mean electrical conductivity becomes weaker during discharge. Note that without the Stokes-Einstein relation in Eq. (4), i.e. constant Diffusion coefficients, we would qualitatively observe the opposite trends in Fig. 7 (b) and Fig. 7 (c). This is due to the fact that κL,mean\kappa_{L,mean} would develop a local maximum according to Eq. (6) for more dissolved sulfur, consequently forcing the potential drop profile to respond with a profile with local minimum. This would be provably wrong [Boenke_2023, Mistry_2018_1] and demonstrates that our empirical mixture-averaged diffusion coefficient approach in Eq. (4) together with the Nernst-Planck fluxes in Eq. (2) is able to qualitatively capture effects similar to the full Onsager-Stefan-Maxwell relations [Mistry_2018_1].

In order to understand the origin of the typical two plateau characteristics in cell voltage, it is helpful to ascertain how S8(S)S_{8}~(S) is converted to the reaction product Li2S(S)Li_{2}S~(S). Therefore, we analyze the mean S8(S)S_{8}~(S) volume fraction in Fig. 7 (d), the mean dissolved sulfur concentration in the liquid phase in Fig. 7 (e) and the mean Li2S(S)Li_{2}S~(S) volume fraction in Fig. 7 (f) during discharge. Evidently for low discharge rates, the first plateau is governed by the dissolution of S8(S)S_{8}~(S) as shown in Fig. 7 (d). The latter is hampered due to finite kinetics at higher discharge rates and correlates accordingly with a decrease of dissolved sulfur in the liquid phase (Fig. 7 (e)). In the second plateau the precipitation of Li2S(S)Li_{2}S~(S) is dominant (Fig. 7 (f)) and directly linked to the depletion of dissolved sulfur in the liquid phase (Fig. 7 (e)). The precipitation sets in earlier for higher discharge rates despite the fact that the mean dissolved sulfur concentration is smaller in the liquid phase. This is indicative for local supersaturation effects due to stronger spatial gradients that develop in the cathode. These local effects will be detailed in Sec. 3.5.

From the aforementioned trends we do not only conclude the confirmation of results reported in the LSB community, e.g. [Liu_2021, Mistry_2018_1], these trends also strengthen the intuitive argumentation for the reevaluation of BB in Eq. (56) in the previous Sec. 3.1. For low discharge rates the dissolution of S8(S)S_{8}~(S) is truly dynamically decoupled from the S2(L)S^{2-}~(L) dynamics, which dictates the Li2S(S)Li_{2}S~(S) precipitation, justifying the calibration based on the homogenized 1D model.

Refer to caption
Figure 7: Verification of the homogenized 1D model for different global quantities at different discharge rates fCf_{C}. (a) Cell voltage, (b) Potential drop in the liquid phase α=L\alpha=L, (c) Mean electrical conductivity in the liquid phase α=L\alpha=L, (d) Mean S8S_{8} volume fraction in the solid phase α=S\alpha=S, (e) Mean dissolved sulfur concentration in the liquid phase α=L\alpha=L, (f) Mean Li2SLi_{2}S volume fraction in the solid phase α=S\alpha=S.

Before we close this section, we also want to highlight that the discretized homogenized 1D model retains conservation properties of the original PDE system close to the solver tolerances. Details concerning the spatial DG approach and temporal naive feedback-controller are given in Sec. 2.7 and Sec. 2.8. In Fig. 8 (a) and Fig. 8 (b) the change of the mean electric charge density in the liquid phase and the mean atomic sulfur concentration in all phases is visualized with respect to the initial value. These are ρel,meanL(cm=0)=0\rho_{el,mean}^{L}(c_{m}=0)=0 and cS,mean(cm=0)=5584.1mol/m³c_{S,mean}(c_{m}=0)=5584.1\,\text{mol/m\textthreesuperior} by construction of the initial state. Apparently, both conserved quantities display changes that are independent of fCf_{C} close to zero. However, |Δρel,meanL||\Delta\rho_{el,mean}^{L}| oscillates coherently in the order of 𝒪(108C/m³)\mathcal{O}(10^{-8}\,\text{C/m\textthreesuperior)}, whereas |ΔcS,mean||\Delta c_{S,mean}| obtains values in the order of 𝒪(107mol/m³)\mathcal{O}(10^{-7}\,\text{mol/m\textthreesuperior)}, generally becoming smaller for larger fCf_{C}. This is due to the fact that the coarse-grained PDE system in Tab. 4 explicitly incorporates local charge neutrality as explained in Sec. 2.7. Contrary, the atomic sulfur concentration is not explicitly enforced such that the individual errors of the contributing sulfur species can sum up. Anyhow, it can be concluded that these errors are numerically reasonable and that our numerical approach is conservative.

Refer to caption
Figure 8: Conservation properties of the homogenized 1D model in terms of (a) mean electric charge density in the liquid phase α=L\alpha=L and (b) mean atomic sulfur concentration.

With this, we have verified the physical veracity of the discretized homogenized 1D model emerging from the PDE sytem in Tab. 4 and proceed with a discussion concerning the time stepping strategy.

3.3 Time Stepping Aspects of the Homogenized 1D Model

So far the investigation was limited to the naive feedback-controller as time stepping strategy (Fig. 4). Here, we justify this choice by comparison of the different time stepping strategies introduced in Sec. 2.8. Namely, these are the implicit Euler method with Δt=0.1s\Delta t=0.1\,\text{s}, the naive feedback-controller (Fig. 4) and the H211b controller (Fig. 5) for two different error tolerances tol=108\text{tol=}10^{-8} & tol=105\text{tol=}10^{-5}. Therefore, we compare the method in terms of serial runtime & peak memory requirement (Tab. 8) as well as accuracy during discharge (Fig. 9). The measurement of the peak memory requirement was conducted with the aid of the Memory Profiler package in Python. Please note that the outcome of such a comparison can be highly dependent on the chosen parameters.

Table 8: Serial runtime [s][\text{s}] & peak memory requirement [MB] of the homogenized 1D model for different time stepping strategies and different discharge rates fCf_{C}.
Strategy/fC[1/h]f_{C}~[\text{1/h}] 0.050.05 0.100.10 0.200.20 0.500.50
Euler 1743117431 & 262262 74627462 & 261261 30103010 & 261261 715715 & 262262
Naive 152152 & 270270 6666 & 269269 3131 & 268268 99 & 263263
H211b tol=1e-8 10001000 & 277277 969969 & 275275 790790 & 271271 604604 & 268268
H211b tol=1e-5 145145 & 275275 9090 & 276276 6565 & 275275 3434 & 269269
Refer to caption
Figure 9: Influence and characteristics of different time stepping strategies for the homogenized 1D model at different discharge rates fCf_{C}. (a) Cell voltage - Naive controller (blue) vs. implicit Euler (dotted black). (b) Time step history of the naive controller. (c) Cell voltage - H211b controller with tol=108\text{tol=}10^{-8} (blue) vs. tol=105\text{tol=}10^{-5} (dotted black). (d) Mean atomic sulfur concentration - H211b controller with tol=108\text{tol=}10^{-8} (blue) vs. tol=105\text{tol=}10^{-5} (dotted black). (e) Time step history of the H211b controller and tol=108\text{tol=}10^{-8} with file output (blue) and without file output (black envelopes). (f) Error history of the H211b controller and tol=108\text{tol=}10^{-8} with file output (blue) and without file output (black envelopes).

First comparing the implicit Euler approach with the naive feedback-controller, one can clearly see in Tab. 8 that the simulations for all discharge rates can be roughly accelerated by two orders of magnitude with the naive feedback-controller for marginal overhead in memory. This goes back to the time step adaption as shown in Fig. 9 (b) following a zig-zag pattern for all fCf_{C}, being roughly bounded by Δt20s\Delta t\leq 20\,\text{s} and well below the maximal time step of Δtmax=tsnap=100s\Delta t_{max}=t_{snap}=100\,\text{s} set by the snapshot output. These time steps are mostly much larger than the constant Δt=0.1s\Delta t=0.1\,\text{s} for the implicit Euler approach, which is primarily required to let the solver converge at the beginning of the simulation, when stiff global dynamics prevails. For instance this is reflected by the initial singular behavior in the cell voltage profiles in Fig. 9 (a). There, we can also acknowledge the visually perfect overlap of the implicit Euler approach (dotted black lines) and the naive feedback-controller (blue lines) for all fCf_{C}, which means that the performance gain comes without a significant loss in accuracy. Thus, the naive feedback-controller strategy is clearly superior.

Surprisingly, we find that the second-order accurate H211b controller with error control on Δt\Delta t is not able to outperform the first-order accurate naive feedback-controller. For tol=108\text{tol=}10^{-8} the serial runtime increases by roughly an order of magnitude for a similar memory footprint (Tab. 8). Additionally, the H211b controller fails to converge for fC=0.051/hf_{C}=0.05\,\text{1/h} and fC=0.101/hf_{C}=0.10\,\text{1/h} before the cutoff voltage is reached (Fig. 9 (c) - blue lines), indicating a lack of robustness when the global dynamics becomes stiff. By softening the tolerance to tol=105\text{tol=}10^{-5} the serial runtimes can become competitive again despite three systems instead one have to be solved in each time step (Tab. 8). However, this comes at the cost of less robustness as shown in the cell voltage profiles in Fig. 9 (c) (dotted black lines), again for fC=0.051/hf_{C}=0.05\,\text{1/h} and fC=0.101/hf_{C}=0.10\,\text{1/h}. Practically, in terms of battery characteristics, the higher mathematical consistency order of the H211b controller has a negligible influence on the accuracy independent of tol, e.g. comparing the converged parts of the cell voltage profiles in Fig. 9 (a) and Fig. 9 (c). The most relevant influence was found in the absolute evolution of the mean atomic sulfur concentration (Fig. (9 (d)), where the set tolerance directly dictates the order of magnitude of the conservation error, the blue lines representing tol=108\text{tol=}10^{-8} and the dotted black lines tol=105\text{tol=}10^{-5}.

Although the naive feedback-controller seems to be practically superior regarding the compromise of accuracy, robustness and performance, we want to highlight for the case tol=108\text{tol=}10^{-8} that the logic of the H211b controller is by far more rigorous. The time step and corresponding error evolutions are visualized in Fig. 9 (e) and Fig. 9 (f) with snapshot output (blue lines) and without snapshot output (black lines). The latter are clear envelopes for the cases with snapshot output and explain the zig-zag pattern in the blue lines as interruption of the actual control logic. Qualitatively, the time step evolution correlates with the cell voltage profiles in Fig. 9 (c) as small time steps are found in dynamically active regions and vice versa, i.e. the plateau regions and the voltage dip. Moreover, we see that for increasing fCf_{C} the time steps become generally much smaller, which is required to fulfill the error control based on Eq. (53) as depicted in Fig. 9 (f). Both is obviously not the case for the naive feedback-controller (Fig. 9 (b)), yet it is not sufficient to compensate for the lack in performance and robustness, which we consider as crucial.

Owning to these circumstances, we are convinced that the time stepping strategy with the naive feedback-controller provides the best choice for our scale-resolved numerical operando approach and why we also proceed with it for the scale-resolved 3D model analysis in the next section.

3.4 Global Comparison with the Scale-Resolved 3D Model

Having parametrized the homogenized 1D model and verified its physical veracity in the previous sections, these results are now compared with those of the scale-resolved 3D model considering the cathode structure in Fig. 1 (c). In light of the scaling conditions for low discharge rates (Sec. 2.4), the parameters of the homogenized 1D model (Tab. 6 & Tab. 7) can directly be transferred to the scale-resolved 3D model. We assume the Bruggeman correlation to hold. Then, only quantities related to the active material structure must be rescaled due to spatial localization. These are, with the aid of Tab. 2, Tab. 6 and Eq. (28),

ϵS8,0S\displaystyle\epsilon^{S}_{S_{8},0} ϵS8,0Sϵstruct,ϵLi2S,0SϵLi2S,0Sϵstruct,ϵCBDxCathodexSulfurϵstruct\displaystyle\to\frac{\epsilon^{S}_{S_{8},0}}{\epsilon_{struct}},~\epsilon^{S}_{Li_{2}S,0}\to\frac{\epsilon^{S}_{Li_{2}S,0}}{\epsilon_{struct}},~\epsilon_{CBD}\to\frac{x_{Cathode}-x_{Sulfur}}{\epsilon_{struct}}
aV\displaystyle a_{V} aV,0ϵstruct(1(ϵS8S1.2ϵS8,0S/ϵstruct)3/2(ϵLi2SSaexp(bfC)/ϵstruct)3/2),\displaystyle\to\frac{a_{V,0}}{\epsilon_{struct}}\left(1-\left(\frac{\epsilon_{S_{8}}^{S}}{1.2\epsilon_{S_{8},0}^{S}/\epsilon_{struct}}\right)^{3/2}-\left(\frac{\epsilon_{Li_{2}S}^{S}}{a\,exp(-bf_{C})/\epsilon_{struct}}\right)^{3/2}\right)~, (57)

where ϵstruct=1ϵmacro=0.413\epsilon_{struct}=1-\epsilon_{macro}=0.413 (cp. Sec. 2.1) is the volume fraction of the structure including its inner porosity. Eventually, the comparison for different global cell characteristics is visualized in Fig. 10, the blue lines representing the scale-resolved 3D model and the dotted black lines the homogenized 1D model.

Refer to caption
Figure 10: Comparison of the scale-resolved 3D model (blue) and the homogenized 1D model (dotted black) for different global quantities at different discharge rates fCf_{C}. (a) Cell voltage, (b) Mean electrical conductivity in the liquid phase α=L\alpha=L, (c) Mean S8S_{8} concentration in the liquid phase α=L\alpha=L, (d) Mean S2S^{2-} concentration in the liquid phase α=L\alpha=L.

As before, we start with the cell voltage profiles in Fig. 10 (a). Obviously, the match for low discharge rates is eminent, whereas for fC=0.51/hf_{C}=0.5\,\text{1/h} a significant deviation at the beginning is present. On the one hand we understand this as another confirmation that the calibration of the homogenized 1D model in Sec. 3.1 is justified for low discharge rates, but on the other hand that the spatial coarse-graining of the PDE systems towards a homogenized 1D model starts to fail for fC0.51/hf_{C}\geq 0.5\,\text{1/h}. Recomputing the dimensionless numbers from Eq. (56) for the 3D case with l3D=2μml_{3D}=2\,\mu\text{m} and fC=0.51/hf_{C}=0.5\,\text{1/h}, one finds

A=FR¯Tjel(fC=0.51/h)l3Dmin{κL,mean}=0.007<1\displaystyle A=\frac{F}{\overline{R}T}\frac{j_{el}(f_{C}=0.5\,\text{1/h})l_{3D}}{\text{min}\{\kappa_{L,mean}\}}=0.007<1
B=kC,1l3D2Dm,S2(cSL=0)η(cSL=0)η(max{cS,meanL}))cref=0.61538<1\displaystyle B=\frac{k_{C,1}l_{3D}^{2}}{D_{m,S^{2-}}(c_{S}^{L}=0)\frac{\eta(c_{S}^{L}=0)}{\eta(\text{max}\{c_{S,mean}^{L}\}))}c_{ref}}=0.61538<1
C=kE,1l3DDm,S2(cSL=0)η(cSL=0)η(max{cS,meanL}))cref=0.0065<1,\displaystyle C=\frac{k_{E,1}l_{3D}}{D_{m,S^{2-}}(c_{S}^{L}=0)\frac{\eta(c_{S}^{L}=0)}{\eta(\text{max}\{c_{S,mean}^{L}\}))}c_{ref}}=0.0065<1~, (58)

i.e. that all scaling conditions are met by the scale-resolved 3D model, even when the dissolution process of S8(S)S_{8}~(S) dynamically interacts with the species diffusion of S2(L)S^{2-}~(L) (B<1B<1). This confirms the correctness of the scale-resolved 3D model over the homogenized 1D model for higher currents.

In order to acquire a better understanding of the origin of this coarse-graining failure towards a homogenized 1D model for higher currents, we also analyze the mean electrical conductivity (Fig. 10 (b)) and the mean S8(L)S_{8}~(L) (Fig. 10 (c)) as well as S2(L)S^{2-}~(L) (Fig. 10 (d)) concentration. The first is an indicator for the overall dissolved sulfur, whereas the concentrations are descriptors for the dimensionless number BB in Eq. (56) & Eq. (58). Although the overall amount of dissolved sulfur is independent of the dimensionality of the model, it is undisputed for fC=0.51/hf_{C}=0.5\,\text{1/h} that the reaction cascade during discharge (cp. Fig. 2 (c)) is faster traversed in the homogenized 1D model. This is because of less dissolved S8(L)S_{8}~(L) and more S2(L)S^{2-}~(L) at the beginning of the simulation. From Fig. 10 (d) we conclude for fC=0.51/hf_{C}=0.5\,\text{1/h} that the species diffusion of S2(L)S^{2-}~(L) becomes dynamically relevant from the beginning, observing a distinct shift of S2(L)S^{2-}~(L) into the first plateau region (cp. Fig. 10 (a)) associated with a concentration increase over several orders of magnitude. With this, the original scaling conditions for the homogenized 1D model in Eq. (56) hold again, namely that B=61.538>1B=61.538>1. As a consequence, S2(L)S^{2-}~(L) species diffusion becomes so slow that significant concentration gradients develop on the coarse-graining scale l1Dl_{1D} from the discharge beginning, which even affect the whole reaction cascade up to the sulfur dissolution process. Hence, for fC0.51/hf_{C}\geq 0.5\,\text{1/h} the coarse-graining towards a homogenized 1D model begins to fail, local effects become relevant and ”Structure matters!” This will be vividly shown in the next section.

3.5 Local Insights from the Scale-Resolved 3D Model

As we have argued in the previous section that the homogenized 1D model is by construction unable to describe crucial local effects emerging for higher currents, here, we will show direct evidence of these local effects based on results from the scale-resolved 3D model.

Refer to caption
Figure 11: Snapshots of the coarse-grained (a) S8S_{8} concentration and (b) S2S^{2-} concentration in the liquid phase α=L\alpha=L of the cathode structure for a discharge at fC=0.51/hf_{C}=0.5\,\text{1/h} and specific capacity of cm=46.4Ah/kg S8c_{m}=46.4\,\text{Ah/kg $S_{8}$}.

Therefore, snapshots of the coarse-grained S8(L)S_{8}~(L) and S2(L)S^{2-}~(L) concentration within the active material structure of the cathode are visualized in Fig. 11 (a) and Fig. 11 (b), also including the homogenized separator at the end. Only the relevant discharge rate fC=0.51/hf_{C}=0.5\,\text{1/h} with a specific capacity within the red highlighted critical stage of discharge is shown (Fig. 10). It is visually evident that the resulting concentration distributions along the main transport direction xx are far off from being constant iso-surfaces as required to justify a homogenized 1D model. What we have previously only hypothesized from global metrics and estimated scaling conditions (Sec. 3.4), can now be vividly unraveled by means of the scale-resolved 3D model.

Refer to caption
Figure 12: Bivariate probability densities with respect to the normalized axial position xx and normalized coarse-grained S8S_{8} concentration for different discharge rates fCf_{C} at a specific capacity of cm=46.4Ah/kg S8c_{m}=46.4\,\text{Ah/kg $S_{8}$}. (a) fC=0.051/hf_{C}=0.05\,\text{1/h}, (b) fC=0.101/hf_{C}=0.10\,\text{1/h}, (c) fC=0.201/hf_{C}=0.20\,\text{1/h}, (d) fC=0.501/hf_{C}=0.50\,\text{1/h}. The black solid lines represent the corresponding homogenized 1D model result.

To quantitatively corroborate this visual impression, we also evaluated bivariate probability densities (pdf) with respect to the position xx along the main transport direction and the coarse-grained S8(L)S_{8}~(L) concentration as shown in Fig. 12. These were evaluated at the same specific capacity as before for all discharge discharge rates fCf_{C} and include the corresponding homogenized 1D model result as black solid line. The binning for the pdf estimation was performed individually for each distinct fCf_{C} using Nbin=50N_{bin}=50 in each min-max normalized variable, such that

o{1,,Nbin×Nbin}:f(x,c¯S8L):=ΔNoo=1Nbin×NbinΔNo,\forall o\in\{1,...,N_{bin}\times N_{bin}\}:\quad f(x,\overline{c}_{S_{8}}^{L}):=\frac{\Delta N_{o}}{\sum_{o=1}^{N_{bin}\times N_{bin}}\Delta N_{o}}~, (59)

with ΔNo\Delta N_{o} as number of normalized (x,c¯S8L)(x,\overline{c}_{S_{8}}^{L})-tuples found in a bin. Clearly, for all fCf_{C}, the resulting pdfs show separate coarse-grained electrolyte and active material zones which are missing in the homogenized 1D model by construction. This is conterminous with the statement that we observe bimodal marginal distributions in c¯S8L\overline{c}_{S_{8}}^{L} along the main transport direction for x=constx=const. For low discharge rates this bimodality involves sharp peaks with shallow gradients along xx, which reconfirms the successful coarse-graining towards a homogenized 1D model for these conditions conducted in Sec. 3.1. However, increasing the discharge rate initially leads to a significant deviation of the gradient in the main transport direction (from Fig. 12 (a)-(c)) and, eventually, triggers perpendicular inhomogeneities (Fig. 12 (d)). These disembogue in a coalescence of the formerly separated electrolyte and active material zones in the cathode domain and even result in a change of global behavior (Fig. 11 & Fig. 12 (d)).

All this vividly demonstrates that our scale-resolved numerical operando approach is able to predict crucial local effects affecting battery performance when ”Structure matters.” What remains to be discussed is how performant our approach is.

3.6 Performance of the Scale-Resolved 3D Model

Although it could be worked out that our whole approach as presented in Sec. 2 is able to predict LSB performance and is ready as a structural optimization tool, it can be anticipated that the scale-resolved 3D simulations come with significant computational cost. Actually, for the given spatial resolution of h3D=0.5μmh_{3D}=0.5\,\mu\text{m}, the discretized problem contains Ncell=3.744Mio.N_{cell}=3.744\,\text{Mio.} cells and Nvar=10N_{var}=10 variables resulting in NDoF=37.44Mio.N_{DoF}=37.44\,\text{Mio.} degrees of freedom. Therefore, an evaluation of code performance aspects is inevitable.

Refer to caption
Figure 13: Strong scaling metrics for different discharge rates fCf_{C}. (a) Runtime over process count and (b) Speedup over process count.
Table 9: Comparison of physical discharge time and computational runtime. Simulations were performed with Nproc=768N_{proc}=768. In the last row extrapolated values for Nproc=1536N_{proc}=1536, based on the strong scaling results, are given.
fC[1/h]f_{C}~[\text{1/h}] 0.05 0.1 0.2 0.5
Discharge time [s][\text{s}] 55166 24700 10053 2384
Computational runtime [s][\text{s}] 62108 28007 13857 3428
Extrapolated runtime [s][\text{s}] 46581 21005 10393 2571

As a consequence, we performed strong scaling tests at all discharge rates fCf_{C} for the initial Tscaling=100sT_{scaling}=100\,\text{s} of the discharge, i.e. were globally stiff dynamics prevails (cp. Fig. 10 (a)). Based on the measured solver runtime in Fig. 13 (a) for Nproc{192, 384, 768, 1536}N_{proc}\in\{192,\,384,\,768,\,1536\} processors, the speedup Fig. 13 (b) was defined for each fCf_{C} in terms of the runtime at Nproc=192N_{proc}=192 as reference. With respect to absolute runtime and speedup we observe close to ideal linear scaling up to Nproc=768N_{proc}=768, which corresponds to 48750DoF/proc.48750\,\text{DoF/proc.} and is in agreement with [Rathgeber_2016]. Beyond that, granularity effects according to Amdahl’s law become prominent due to communication overhead introduced by finer partitioning. This substantiates why the full scale-resolved 3D simulations were performed with Nproc=768N_{proc}=768 as optimal choice.

To complete, the physical discharge time can be compared to the full computational runtime for Nproc=768N_{proc}=768. The outcome is juxtaposed in Tab. 9. It is evident that the computational runtime is slightly behind the discharge time also required in a lab experiment. Although this is already an impressive result considering the large number of NDoF=37.44Mio.N_{DoF}=37.44\,\text{Mio.} and spatiotemporal insights accessible, extrapolating these runtimes to Nproc=1536N_{proc}=1536 with Fig. 13 (b) by the factor 4/3\sim 4/3, one can potentially outperform the physical discharge times. This numerically offers faster than real-time experiments, even though at suboptimal hardware utilization.

4 Conclusion & Outlook

In this work, we have for the first time, to the authors’ knowledge, presented a performant and scale-resolving framework for Lithium-Sulfur batteries (LSB). It is based on the open source solver Firedrake and enables battery performance relevant spatiotemporal insights into the highly nonlinear cathode processes when ”Structure matters.”. Since these insights might be hardly accessible even for modern experimental operando methods we call our approach a scale-resolved numerical operando approach.

We demonstrated our framework based on a LSB pouch cell from the Fraunhofer IWS in Dresden (Sec. 2.1) for galvanostatic discharge. Therefore, we introduced a spatial coarse-graining theory (Sec. 2.3) along with a scaling analysis (Sec. 2.4) to rationalize under which conditions either a scale-resolved 3D model is required or a homogenized 1D model sufficient. In light of this, it was shown for proper scaling conditions, i.e. low currents, that the full model can be efficiently parametrized by calibration at the homogenized 1D model level (Sec. 3.1 & Sec. 3.4). For higher currents local effects become demonstrably essential to capture proper battery performance (Sec. 3.5). Moreover, we empirically proved our spatial Discontinuous Galerkin (DG) discretization (p=0p=0) with a naive temporal feedback-controller to be physically accurate and conservative within the limit of solver tolerances (Sec. 3.2) as well as performant (Sec. 2.8 & Sec. 3.6).

All this brings us into the position to aim at power optimized LSB cathode structures as required for aerospace applications (Sec. 1). This will be the main theme of a follow-up study. Nevertheless, we want to mention some methodological aspects which deserve more attention in future works and leave room for improvements.

One of it concerns the consistency orders of our discretization techniques. Although the synergy of the presented low-order approaches is provably practical as comprise between accuracy, robustness and performance, it would be desirable to aim for high-order methods. One reason, touched in Sec. 2.7 & A, is that by only leveraging the spatial DG approach from a p=0p=0 formalism to a positivity preserving p=1p=1 formalism, one can generalize our framework from structured to unstructured grids. Another reason is that higher order time stepping controllers provably adapt much better to different operating conditions (Sec. 2.8). However, to practically establish high-order methods, the criticized robustness issues must be addressed and we believe that the solution might be very problem specific and empirical.

The other methodological aspect concerns the execution of the model calibration in Sec. 3.1. So far only empirical forward modelling was conducted to qualitatively match experimental characteristics. However, it is natural to consider an adjoint-assisted workflow as Firedrake provides direct access to such functionalities. This would enable quantitative accurate parametrizations even in light of novel LSB materials.

Acknowledgement

The authors acknowledge support by the state of Baden-Württemberg through bwHPC and financial support by the German Federal Ministry of Education and Research (BMBF) within SulForFlight (project number 03XP0491). Moreover, the authors would like to thank Fraunhofer IWS in Dresden for kindly sharing valuable data required for the development of the scale-resolved Lithium-Sulfur battery toolbox. Thanks are also due to the Firedrake developers for their open source project, the user friendly documentation and the almost just-in-time support on Slack.

Appendix A Benchmarking of Spatial Convergence

In this section, we will demonstrate that the proposed spatial discretization technique from Sec. 2.7 is numerically convergent. As the relevant coarse-grained PDE system in Tab. 4 can be mathematically understood as reaction-diffusion problem that is characterized by jumps in the domain, nonlinear diffusion operators and a stiff coupling due to quasi-steady electric charge transport, we will individually benchmark these aspects here. Therefore, canonical 1D problems with an analytical solution will be studied. Since these contain not only Neumann boundary conditions as incorporated in Eq. (47) but also Dirichlet boundary conditions, we will partition the boundary Ω\partial\Omega of the domain Ω\Omega into a Neumann part ΩN\partial\Omega^{N} with 𝐟^ψ𝐧|SkΩN=fψN\mathbf{\widehat{f}}_{\psi}\cdot\mathbf{n}|_{S_{k}\subset\partial\Omega^{N}}=f_{\psi}^{N} and a Dirichlet part ΩD\partial\Omega^{D} with ψ|SkΩD=ψD\psi|_{S_{k}\subset\partial\Omega^{D}}=\psi^{D}. Then, using a mirror principle at the boundaries as in [Fehn_2017], one obtains for the dissipative IP flux term

i\displaystyle\sum_{i} Ωi(𝐟^ψv)𝐧𝑑o\displaystyle\int_{\partial\Omega_{i}}(\mathbf{\widehat{f}}_{\psi}v)\cdot\mathbf{n}~do
=\displaystyle= kSkΩ𝐟^ψvdo+kSkΩNfψNvdo+kSkΩD(𝐟^ψv)𝐧\displaystyle\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\mathbf{\widehat{f}}_{\psi}\cdot\llbracket v\rrbracket~do+\sum_{k}\int_{S_{k}\subset\partial\Omega^{N}}f_{\psi}^{N}v~do+\sum_{k}\int_{S_{k}\subset\partial\Omega^{D}}(\mathbf{\widehat{f}}_{\psi}v)\cdot\mathbf{n}
=\displaystyle= kSkΩ{D(ψ)ψ}vdo+kSkΩ{D(ψ)}Hψvhdo\displaystyle-\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\{D(\psi)\nabla\psi\}\cdot\llbracket v\rrbracket~do+\sum_{k}\int_{S_{k}\not\subset\partial\Omega}\{D(\psi)\}_{H}\frac{\llbracket\psi\rrbracket\cdot\llbracket v\rrbracket}{h}~do
+kSkΩfψNv𝑑o+kSkΩD((D(ψ)ψ)𝐧v+D(ψ)ψvh/2)𝑑o.\displaystyle+\sum_{k}\int_{S_{k}\subset\partial\Omega}f_{\psi}^{N}v~do+\sum_{k}\int_{S_{k}\subset\partial\Omega^{D}}\left(-(D(\psi)\nabla\psi)\cdot\mathbf{n}\,v+D(\psi)\frac{\psi v}{h/2}\right)~do. (60)

Please note, that the second term in line three of Eq. (60) contains {D(ψ)}H\{D(\psi)\}_{H} instead of the standard choice {D(ψ)}\{D(\psi)\} as already noted in Sec. 2.7. This has only a relevant effect when either D(ψ)D(\psi^{-}) or D(ψ+)D(\psi^{+}) are close to zero. Subsequently, for comparability of solutions with different polynomial order p{0,1}p\in\{0,1\}, we will accordingly visualize the polynomials in the elements as piecewise constant or linear functions. As time stepping strategy only an implicit Euler scheme (Eq. (50)) with sufficiently small constant time step is chosen.

A.1 Diffusion Across a Discontinuity

As the spatially coarse-grained PDE in Tab. 4 describing the LSB dynamics intrinsically contains discontinuities between the different subdomains, namely the pure electrolyte and active material zones in the cathode as well as the homogenized separator subdomain, we will numerically test convergence in such situations.

Therefore, we solve the problem with following initial (IC) and boundary (BC) conditions

PDE: tc=x(D(x)xc),x[L2;L2],t[0,T]\displaystyle\quad\partial_{t}c=\partial_{x}\left(D(x)\partial_{x}c\right),\quad x\in[-\frac{L}{2};\frac{L}{2}],~t\in[0,T]
D(x<0)=DL,D(x0)=DR\displaystyle\quad D(x<0)=D_{L},\quad D(x\geq 0)=D_{R}
IC: c(x<0,t=0)=cL,c(x0,t=0)=cR\displaystyle\quad c(x<0,t=0)=c_{L},\quad c(x\geq 0,t=0)=c_{R}
BC: xc(x=L2,t)=xc(x=L2,t)=0.\displaystyle\quad\partial_{x}c(x=-\frac{L}{2},t)=\partial_{x}c(x=\frac{L}{2},t)=0~. (61)

It describes a diffusion problem across a discontinuity at x=0x=0 of two initially homogeneous subdomains with different diffusivities and possesses the following analytical solution obtained by Laplace transform (see Chap. 2.3.3.2 in [Baehr_2019])

cana(x,t)\displaystyle c_{ana}(x,t) =[cL+(cmcL)(1erf(x4DLt))](1σ(x))\displaystyle=\left[c_{L}+(c_{m}-c_{L})\left(1-\text{erf}\left(-\frac{x}{4D_{L}t}\right)\right)\right](1-\sigma(x))
+[cm+(cRcm)erf(x4DRt)]σ(x)\displaystyle+\left[c_{m}+(c_{R}-c_{m})\text{erf}\left(\frac{x}{4D_{R}t}\right)\right]\sigma(x) (62)

with the constant contact concentration cm=(DLcL+DRcR)/(DL+DR)c_{m}=(\sqrt{D_{L}}c_{L}+\sqrt{D_{R}}c_{R})/(\sqrt{D_{L}}+\sqrt{D_{R}}) and the Heaviside step function σ\sigma centered at x=0x=0. Specifically, we selected L=0.2mL=0.2\,\text{m}, T=1sT=1\,\text{s}, DL=0.0001m²/sD_{L}=0.0001\,\text{m\texttwosuperior/s}, DR=0.001m²/sD_{R}=0.001\,\text{m\texttwosuperior/s}, cL=0mol/m³c_{L}=0\,\text{mol/m\textthreesuperior}, cR=1mol/m³c_{R}=1\,\text{mol/m\textthreesuperior}.

Refer to caption
Figure 14: Comparison of numerical (blue lines) and analytical (grey dashed lines) solution for the problem in Eq. (61). (a) DG0 with nx=100n_{x}=100. (b) DG1 with nx=50n_{x}=50. (c) DG0 with nx=800n_{x}=800. (d) DG1 with nx=400n_{x}=400. (e) Numerical convergence with respect to Eq. (63). (f) Detail of DG1 with nx=50n_{x}=50.

For the numerical solution a time step width of Δt=0.0001s\Delta t=0.0001\,\text{s} was chosen. The number of grid cells was varied with nx{100,200,400,800}n_{x}\in\{100,200,400,800\} for constant local polynomials p=0p=0 (DG0) and nx{50,100,200,400}n_{x}\in\{50,100,200,400\} for linear local polynomials p=1p=1 (DG1). By this we ensure comparability in terms of the number of DoFs for both cases, which are nDoF{100,200,400,800}n_{DoF}\in\{100,200,400,800\}. The global root mean square error evaluated at t=0.8st=0.8\,\text{s} was defined as

erms(t=0.8s)=(1LL/2L/2(c(x,t=0.8s)cana(x,t=0.8s))2𝑑x)1/2.\displaystyle e_{rms}(t=0.8\,\text{s})=\left(\frac{1}{L}\int_{-L/2}^{L/2}(c(x,t=0.8\,\text{s})-c_{ana}(x,t=0.8\,\text{s}))^{2}~dx\right)^{1/2}~. (63)

A qualitative comparison between numerical (blue lines) and analytical (grey dashed lines) solution is shown in Fig 14 for different times steps, polynomials (left DG0 & right DG1) and spatial resolutions (first row nDoF=100n_{DoF}=100 & second row nDoF=800n_{DoF}=800). Comparing Fig. 14 (a) and Fig. 14 (c) as well as Fig. 14 (b) and Fig. 14 (d), apparently both discretizations (DG0 & DG1) converge qualitatively towards the analytical solution. However, as shown in Fig. 14 (e) they both converge with an empirical order of one, the DG1 variant having even higher absolute errors. We are convinced that is reasonable behavior in light of this discontinuous diffusion problem. Since the initial concentration profile is a sharp step function (cp. Fig. 14 (a)), the numerical flux in Eq. (60) will be initially dominated in both cases by the DG0 penalty term. Hence, it is expected that the convergence order of the DG1 scheme can degrade to the one of the DG0 scheme. Moreover, analyzing the detail of Fig. 14 (b) depicted in Fig. 14 (f), gives probably the reason why the absolute errors of the DG1 variant are higher. Evidently, the DG1 scheme suffers from spurious oscillations around the discontinuity also causing negative undershoots. Thus, it is not positivity-preserving. This is despite the fact that we have used the slope limiter by Kuzmin [Kuzmin_2010] already implemented in Firedrake. Without this slope limiter this behavior was much more pronounced (not shown herein).

From these results we conclude that it is neither a drawback in accuracy nor in robustness that our scale-resolved numerical operando approach for Lithium-Sulfur batteries (LSBs) is currently based on a spatial DG0 scheme. Even without the spurious osciallations of the DG1 scheme in Fig. 14 (f), we would, for the reason above, expect the same convergence order as the DG0 scheme due to inherent discontinuities in our LSB model. Yet, we believe it is worth to develop a positivity-preserving DG1 scheme as the DG0 scheme is by construction limited to structured grids which is not the case for the DG1 scheme. This would enable to even consider domains with complex geometrical features.

A.2 Nonlinear Diffusion

The LSB model in Tab. 4 features not only inherent discontinuities between subdomain, is is also characterized by nonlinear diffusion operators. Hence, we will demonstrate spatial convergence for a canonical nonlinear diffusion problem here.

We consider a system studied by Hayek [Hayek_2014]

PDE: tc=x(D(c)xc),D(c)=D0c,x[0;L],t[0,T]\displaystyle\quad\partial_{t}c=\partial_{x}\left(D(c)\partial_{x}c\right),\quad D(c)=D_{0}c,\quad x\in[0;L],~t\in[0,T]
IC: c(x,t=0)=c0(t=0)(1(xr0)2)(1σ(xr0))\displaystyle\quad c(x,t=0)=c_{0}(t=0)\left(1-\left(\frac{x}{r_{0}}\right)^{2}\right)(1-\sigma(x-r_{0}))
BC: xc(x=0,t)=0,c(x=L,t)=0,\displaystyle\quad\partial_{x}c(x=0,t)=0,\quad c(x=L,t)=0~, (64)

which has the following analytical solution

cana(x,t)=c0(t)(1(xrF(t))2)(1σ(xrF(t)))\displaystyle c_{ana}(x,t)=c_{0}(t)\left(1-\left(\frac{x}{r_{F}(t)}\right)^{2}\right)(1-\sigma(x-r_{F}(t)))
c0(t):=(2M23β2(12,2)D0(t+t0))1/3,rF(t):=(12MD0(t+t0)β(12,2))1/3.\displaystyle c_{0}(t):=\left(\frac{2M_{\infty}^{2}}{3\beta^{2}(\frac{1}{2},2)D_{0}(t+t_{0})}\right)^{1/3},\quad r_{F}(t):=\left(\frac{12M_{\infty}D_{0}(t+t_{0})}{\beta(\frac{1}{2},2)}\right)^{1/3}~. (65)

In Eq. (65) the quantity c0c_{0} denotes the core concentration, rFr_{F} the diffusion front position, σ\sigma the Heaviside step function, MM_{\infty} the mass within the diffusion profile, β\beta is the beta function [Hayek_2014] and t0=r03β(12,2)/(12MD0)t_{0}=r_{0}^{3}\beta(\frac{1}{2},2)/(12M_{\infty}D_{0}). Specifically, we selected L=0.1mL=0.1\,\text{m}, T=1sT=1\,\text{s}, D0=0.01(m²/s)(m³/mol)D_{0}=0.01\,\text{(m\texttwosuperior/s)(m\textthreesuperior/mol)}, r0=0.01mr_{0}=0.01\,\text{m}, M=0.01mol/m²M_{\infty}=0.01\,\text{mol/m\texttwosuperior}.

For the numerical solution a time step width of Δt=0.00005s\Delta t=0.00005\,\text{s} was chosen and the actual system of Eq. (64) and Eq. (65) was shifted by c=c+Δcoffc=c^{*}+\Delta c_{off} with the arbitrary choice Δcoff=0.5mol/m³\Delta c_{off}=-0.5\,\text{mol/m\textthreesuperior}. The latter was performed to obtain a converged solution for cc^{*}, as the DG0 penalty term in Eq. (60) would not allow for mass transfer into the massless zone as {D(c)}H=0\{D(c)\}_{H}=0, where c=0c=0. The number of grid cells was again varied with nx{100,200,400,800}n_{x}\in\{100,200,400,800\} for DG0 and nx{50,100,200,400}n_{x}\in\{50,100,200,400\} for DG1. The global root mean square error was evaluated at t=0.6st=0.6\,\text{s} as

erms(t=0.6s)=(1L0L(c(x,t=0.6s)cana(x,t=0.6s))2𝑑x)1/2.\displaystyle e_{rms}(t=0.6\,\text{s})=\left(\frac{1}{L}\int_{0}^{L}(c^{*}(x,t=0.6\,\text{s})-c^{*}_{ana}(x,t=0.6\,\text{s}))^{2}~dx\right)^{1/2}~. (66)

The empirical convergence measured for both DG schemes is depicted in Fig. 15 (a). Obviously, the DG1 scheme outperforms the DG0 scheme now in terms of accuracy and convergence order, although both numerically convergence. Due to the absence of a discontinuity, the convergence order of the DG1 scheme is as expected around two. Anyhow, slight spurious oscillations with undershoot around the sharp diffusion front are still apparent despite using the aforementioned slope limiter [Kuzmin_2010]. This is illustrated in the inset of Fig. 15 (b) for DG1 with nx=100n_{x}=100. If a bound-preserving scheme is physically required, as in the case of our LSB model, this observation still contradicts the choice of the DG1 scheme despite superior accuracy.

Refer to caption
Figure 15: Convergence behavior of the different DG schemes. (a) Numerical convergence with respect to Eq. (66). (b) DG1 with nx=100n_{x}=100.

A.3 Stiffly Coupled Reaction-Diffusion System

Finally, we will also show that our DG method is convergent in case of a stiff coupling due to quasi-steady electric charge transport (Tab. 4). Therefore, we will numerically reproduce the predator-prey model of [Cherniha_2011]

PDE: λ1tc1=x2c1+c1(A1Bc1Cc2)\displaystyle\quad\lambda_{1}\partial_{t}c_{1}=\partial_{x}^{2}c_{1}+c_{1}(A_{1}-Bc_{1}-Cc_{2})
λ2tc2=x2c2+c2(A2Bc1Cc2),x[0,πβλ1],t[0,T]\displaystyle\quad\lambda_{2}\partial_{t}c_{2}=\partial_{x}^{2}c_{2}+c_{2}(A_{2}-Bc_{1}-Cc_{2}),\quad x\in[0,\frac{\pi}{\sqrt{-\beta\lambda_{1}}}],~t\in[0,T]
IC: c1(x,t=0)=A1B+1(A1A2)BKsin(βλ1x)\displaystyle\quad c_{1}(x,t=0)=\frac{A_{1}}{B}+\frac{1}{(A_{1}-A_{2})B}\,K\,\text{sin}(\sqrt{-\beta\lambda_{1}}x)
c2(x,t=0)=1(A2A1)CKsin(βλ1x)\displaystyle\quad c_{2}(x,t=0)=\frac{1}{(A_{2}-A_{1})C}\,K\,\text{sin}(\sqrt{-\beta\lambda_{1}}x)
BC: c1(x=0,t)=A1B,c1(x=πβλ1,t)=A1B,\displaystyle\quad c_{1}(x=0,t)=\frac{A_{1}}{B},~c_{1}(x=\frac{\pi}{\sqrt{-\beta\lambda_{1}}},t)=\frac{A_{1}}{B},
c2(x=0,t)=0,c2(x=πβλ1,t)=0.\displaystyle\quad c_{2}(x=0,t)=0,~c_{2}(x=\frac{\pi}{\sqrt{-\beta\lambda_{1}}},t)=0~. (67)

The analytical solution is given by

c1,ana(x,t)=A1B+1(A1A2)BKsin(βλ1x)eβt\displaystyle c_{1,ana}(x,t)=\frac{A_{1}}{B}+\frac{1}{(A_{1}-A_{2})B}\,K\,\text{sin}(\sqrt{-\beta\lambda_{1}}x)e^{\beta t}
c2,ana(x,t)=1(A2A1)CKsin(βλ1x)eβt,\displaystyle c_{2,ana}(x,t)=\frac{1}{(A_{2}-A_{1})C}\,K\,\text{sin}(\sqrt{-\beta\lambda_{1}}x)e^{\beta t}~, (68)

with β:=(A1A2)/(λ1λ2)\beta:=(A_{1}-A_{2})/(\lambda_{1}-\lambda_{2}). Specifically, we selected A1=1A_{1}=1, A2=2A_{2}=2, λ1=11\lambda_{1}=11, λ2=0\lambda_{2}=0, B=0.1B=0.1, C=0.1C=0.1, K=0.2K=0.2 and T=40T=40.

Refer to caption
Figure 16: Convergence behavior of the different DG schemes. (a) Numerical convergence with respect to Eq. (69). (b) c2c_{2} distribution (prey) from DG1 with nx=40n_{x}=40.

The numerical solution was computed with Δt=0.001\Delta t=0.001 on uniform grids with nx{80,160,320,640}n_{x}\in\{80,160,320,640\} for DG0 and nx{40,80,160,320}n_{x}\in\{40,80,160,320\} for DG1 in monolithic fashion (Sec. 2.9). Convergence was measured using the global root mean square error

erms(t=30)\displaystyle e_{rms}(t=30) =(1L0L(c1(x,t=30)c1,ana(x,t=30))2𝑑x)1/2\displaystyle=\left(\frac{1}{L}\int_{0}^{L}(c_{1}(x,t=30)-c_{1,ana}(x,t=30))^{2}~dx\right)^{1/2}
+(1L0L(c2(x,t=30)c2,ana(x,t=30))2𝑑x)1/2.\displaystyle+\left(\frac{1}{L}\int_{0}^{L}(c_{2}(x,t=30)-c_{2,ana}(x,t=30))^{2}~dx\right)^{1/2}~. (69)

As visualized in Fig. 16 (a), we obtain again linear convergence for the DG0 scheme and quadratic convergence for the DG1 scheme. However, the errors of the DG1 scheme are initially larger than in the DG0 case, which leads to an intersection of the curves close to the highest considered resolution. Contrary to the former canonical cases, the problem is smooth from the beginning. As a consequence, spurious osciallations are not present anymore for the DG1 scheme, even at lowest resolution. Exemplary, this is shown by in Fig. 16 (b) for the quasi-steady prey distribution.

Appendix B Battery Quantities for Model Verification

Here, we introduce battery quantities, which are used in Sec. 3 for the verification and discussion of our scale-resolved numerical operando approach.

The discharge rate fCf_{C} can be understood as discharge frequency with respect to the theoretical capacity ctheoc_{theo} of the cell. The latter is a consequence of the ability of S8(S)S_{8}~(S) to store electrons and results in ctheo=neF/M¯S8=1671Ah/kgc_{theo}=n_{e^{-}}F/\overline{M}_{S_{8}}=1671\,\text{Ah/kg} with ne=16n_{e^{-}}=16. Both quantities will be used to rescale the physical time tt, expressed as specific gravimetric capacity cm:=tfCctheoc_{m}:=tf_{C}c_{theo}. Moreover, with the initial sulfur loading mA,S8:=ρS80ϵS8,0SLCatm_{A,S_{8}}:=\rho^{0}_{S_{8}}\epsilon^{S}_{S_{8},0}L_{Cat}, the applied current density jel=fCctheomA,S8j_{el}=f_{C}c_{theo}m_{A,S_{8}} for the galvanostatic discharge can be defined.

The cell voltage UcellU_{cell} results from a surface average at the current collector

Ucell:=1|ACC|ACCΦS𝑑oU_{cell}:=\frac{1}{|A_{CC}|}\int_{A_{CC}}\langle\Phi^{S}\rangle~do (70)

and the potential drop ΔΦL\Delta\Phi^{L} in the liquid phase from a difference of surface averages at the anode and current collector||cathode domain-interface

ΔΦL:=1|AAno|AAnoΦL𝑑o1|ACC|Cat|ACC|CatΦL𝑑o.\Delta\Phi^{L}:=\frac{1}{|A_{Ano}|}\int_{A_{Ano}}\langle\Phi^{L}\rangle~do-\frac{1}{|A_{CC|Cat}|}\int_{A_{CC|Cat}}\langle\Phi^{L}\rangle~do~. (71)

Mean values of an arbitrary field ψ\psi are volume averages over the combined cathode and separator domain, namely

ψmean:=1|ΩCat+ΩSep|ΩCat+ΩSepψ𝑑𝐱.\psi_{mean}:=\frac{1}{|\Omega_{Cat}+\Omega_{Sep}|}\int_{\Omega_{Cat}+\Omega_{Sep}}\psi~d\mathbf{x}~. (72)