Abstract
We develop an algorithm and computational implementation for simulation of problems that combine Cahn–Hilliard type diffusion with finite strain elasticity. We have in mind applications such as the electro-chemo-mechanics of lithium ion (Li-ion) batteries. We concentrate on basic computational aspects. A staggered algorithm is proposed for the coupled multi-field model. For the diffusion problem, the fourth order differential equation is replaced by a system of second order equations to deal with the issue of the regularity required for the approximation spaces. Low order finite elements are used for discretization in space of the involved fields (displacement, concentration, nonlocal concentration). Three (both 2D and 3D) extensively worked numerical examples show the capabilities of our approach for the representation of (i) phase separation, (ii) the effect of concentration in deformation and stress, (iii) the effect of strain in concentration, and (iv) lithiation. We analyze convergence with respect to spatial and time discretization and found that very good results are achievable using both a staggered scheme and approximated strain interpolation.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Due to their comparatively high specific energy, applications of Li-ion batteries range from portable electronics to large scale energy storage. Intercalation compounds, which are used as electrodes in Li-ion batteries, have large variations in Li concentration during charging and discharging often accompanied by phase transformations. Phase interface migration is known to decrease the diffusion of Li-ions, so the electrochemical kinetics will be dependent on the phase-transition mechanism. In order to represent these experimentally observed phase interfaces, it is important to be able to describe the diffusion of lithium inside the battery and the way it interacts with the electrodes. Phase separation can be properly represented by the Cahn–Hilliard equation [2].
Furthermore, lithium diffusion induces strains in the electrode particles, resulting in a coupled Cahn–Hilliard/Elasticity problem. Two approaches to deal with this coupled problem have been recently introduced. A standard Galerkin method was proposed by Di Leo et al. [3], where the Chemical potential was considered an unknown. The other approach was the variationally consistent method by Miehe et al. [8], having the same number of unknowns. Properties of the uncoupled Cahn–Hilliard equation and its coupled version require a specific treatment, which can be a matter of choice from an algorithmic perspective. Both the coupled and the uncoupled versions of the Cahn–Hilliard equation are fourth-order PDEs and therefore require either \({{\mathcal {C}}}^{1}\) discretizations or the use of a penalty term to partition the fourth order equation into two second-order equations (in a manner analogous to the case of the Mindlin theory of plate bending, when compared with the original Kirchhoff–Love, see also [6]). Ubachs et al. [12] combined this long-standing idea with Peerlings implicit gradient model (cf. [9]) to obtain an efficient penalized uncoupled implementation with \({\mathcal {C}}^{0}\) elements. A micromorphic interpretation was introduced by Di Leo et al. [3] with a similar resulting discretization. We here follow this general strategy and propose a staggered approach in order to increase algorithmic simplicity. Coupling with elasticity introduces a difficulty: the strain gradient is required and low order elements have a low resolution representation of strains. In particular, four-node tetrahedra have constant strain and therefore this coupling term would be null if a displacement-based strain were to be used. Di Leo et al. make use of an additional degree-of-freedom corresponding to the stress part of the Chemical potential (in their nomenclature \(\mu _{\sigma }\)) with the additional tying equation. Alternatively, Miehe et al. use the total Chemical potential \(\mu \) as an unknown field in their variationally-consistent formulation. We adopt here a more pragmatical approach (avoiding the need of one additional degree-of-freedom), which is to perform a nodal averaging of the Green–Lagrange strain and therefore use these nodal values to estimate \(\mu _{\sigma }\).
Although simplicity of implementation is an advantage, it is well known that staggered algorithms cause drifting of results and also tend to cause loss of convergence due to a reduced iteration radius for the Newton–Raphson solution. We therefore assess the present approach by changing the time step and mesh size while studying both effects of coupling: the effect of the strain gradient in the concentration evolution and the effect of concentration in the Green–Lagrange strain. As will become apparent, results are relatively insensitive and indistinguishable from the aforementioned more sophisticated approaches.
This work is organized as follows: Sect. 2 presents a concise description of the governing equations, weak form, discretization and linearization adopted. Section 3 shows examples of phase-separation in 2D and 3D using the uncoupled Cahn–Hilliard equation. Section 4 repeats the exercise of Sect. 3 but including coupling with elasticity. Section 5 presents a Lithiation exercise of a ellipsoid particle with exterior time-dependent flux. It is shown that swelling due to coupling is represented in a time-step insensitive form. Finally, in Sect. 6 conclusions are drawn considering the results and future work.
2 Governing equations and discretization
2.1 The Cahn–Hilliard equation
The phenomenological [4] Cahn–Hilliard [2] equation formalizes the phase separationFootnote 1 process, in which phases of a binary mixture (often a solid solution in which case is called exsolution, or in a fluid, and is then called symplectite growth) separate and form regions pure in each component. In the Li-ion context only solid solutions are of practical relevance, cf. [13]. The observed phase separation requires uphill diffusion in which material moves against concentration gradients. The classical Fick diffusion equation, which generates uniform concentration profiles, does not produce this observable effect. If we identify c as the normalized species concentration, with \(c=0\) indicating pure phase I and \(c=1\) indicating pure phase II, then the (uncoupled) Cahn–Hilliard equation and problem statement is established as follows:
where M(c) is called a mobility function with \(\text {LT}^{-1}\) units and \(\lambda \) is a non-negative constant with \(\text {L}^{2}\) units. \(\mu (c)\) represents the Chemical potential of a regular solution in the absence of phase interfaces and is non-dimensional. In (1) standard notation is followed: \(\dot{\bullet }\) is the time derivative and \(\nabla ^{2}\) is the (space) Laplacian in n dimensions. The term \(\lambda \nabla ^{2}c\) represents the interface energy and effectively coarsens the phases. Two mechanisms dominate the evolution of a solution to the Cahn–Hilliard equation: separation represented by a non-convex \(\mu (c)\) and coarsening represented by the Laplacian term. There is one essential (see also Fig. 1) boundary condition on boundary \(\Gamma _{g}\) where the value of c is known (\(c=g\)) and two natural boundary conditions: Eq. (3) on boundary \(\Gamma _{f}\) represents a prescribed flux and is called the flux boundary condition and Eq. (4) which inhibits coarsening at the boundary \(\Gamma \). These boundary conditions are complemented by the initial condition for c, which is provided by Eq. (5). Time, t, is present in (1–5) as a parameter in the open interval: \(t\in ]0,T[\) where T is the total time of analysis. The gradient operator \(\nabla \) represents the derivative with respect to original, or undeformed coordinates \(\varvec{x}\):
In (1), h(c) is an intermediate function that will be approximated with the goal of reducing the order of (1) by partitioning.
Using a 1D interpretation, Eq. (1) can be written in that case, omitting the dependence on c, as:
where \(\dot{\bullet }={\partial \bullet }/{\partial t}\) and \(\bullet '={\partial \bullet }/{\partial x}\). x and t are the dependent variables in (7). Two typical functions M(c) and \(\mu (c)\) functions are:
where D is a diffusivity-like constant and \(\chi \), the interaction parameter, sets the equilibrium concentration value in the absence of the interface term. Accordingly, function \(\mu (c)\) has a local maximum at
and a local minimum at
noting that \(c_{\max }\ne c(\mu _{\max })\) and \(c_{\min }\ne c(\mu _{\min }).\) Corresponding values \(\mu _{\min }\) and \(\mu _{\max }\) are given as:
Values of c approaching 0 will result in \(\mu (c)\) approaching \(-\infty \) and values of c approaching 1 will result in \(\mu (c)\) approaching \(+\infty \), therefore effectively restricting c to the interval ]0, 1[.
2.2 Partition in two second-order equations with penalty term
As in the works of Di Leo et al. [3] and Ubachs et al. [12] we partition the fourth-order equation (1) in two second-order equations by introducing an additional field and the screened-Poisson equation for c:
where the function \(h^{\star }(c,c^{\star })\) is defined using an additional variable \(c^{\star }\):
and l and \(\beta \) are new properties (which will be defined later). The replacement is accompanied by the following equation (see also [9] for an analogous equation in the fracture context):
from which we conclude that
where \(\beta (c-c^{\star })\) acts as a penalty term. In essence, \(c-c^{\star }\) should be monitored and \(\beta \) large enough so that the difference is acceptable from a practical perspective. Accuracy in the satisfaction of (14) depends on the accuracy of the following approximation
Now the Cahn–Hilliard problem statement becomes:
An alternative to this partition in two second-order equations is the use of discontinuous Galerkin method, as performed by Wells et al. [15]. The first equation (19) defined in \(\Omega \,\times ]0,T[\) can be further expanded as:
It is worth mentioning that, to ensure compatibility, initial conditions for c and \(c^{\star }\) coincide: \(c_{0}^{\star }(\varvec{x})=c_{0}(\varvec{x})\).
2.3 Coupling with equilibrium at finite strains
Considering the Kirchhoff/Saint-Venant material, which relates the second Piola–Kirchhoff stress with the Green–Lagrange strain, we now introduce two coupling terms to Eq. (19):
-
The swelling term, see [3], to represent the volumetric expansion effect due to phase concentration.
-
The effect of stress in the evolution of c, which was established by Sethuraman et al. [10].
Figure 1 shows the boundaries for the phase separation and the equilibrium problem. The flux natural boundary condition (imposed \(\varvec{j\cdot n}\)) is related to our diffusion property s as depicted in Fig. 1. In addition, we have the Cauchy equilibrium in material form, see also [11].
where \(\varvec{S}\) is the second Piola–Kirchhoff stress tensor (with \(\mathbf {S}\) its Voigt form), \(\mathbf {E}\) is the Green–Lagrange strain in Voigt form and \(\varvec{F}\) is the deformation gradient (these are standard quantities in continuum mechanics, cf. [11]). We also use the Voigt form of the identity matrix \(\varvec{I}\) as \(\mathbf {I}\). The term \(\varvec{t}\) in Eq. (35) is the prescribed stress vector at the boundary \(\Gamma _{t}\). Inertia and body forces are considered absent from the examples in this work. Additional data follows:
-
The Kirchhoff/Saint-Venant constitutive law is adopted, with the coupling term:
$$\begin{aligned} \mathbf {S}= & {} {\mathbb {C}}\left( \mathbf {E}-\frac{c_{\max }\left( c-c_{0}\right) \Phi }{3}\mathbf {I}\right) \end{aligned}$$where \(c_{\max }\) is the maximum species concentration and \(\Phi \) is the swelling parameter.
-
Characteristic time-scale: \(\tau =\sqrt{\lambda }/M(c)\).
-
Characteristic length: \(l_{c}=\sqrt{\lambda }\).
-
\(h^{\star }(c,c^{\star },\mathbf {E})\) is the normalized Chemical potential.
-
The relation between the natural boundary function s (cf. Eq. 32) and the classical flux boundary condition (\(\varvec{j}\cdot \varvec{n}\)), cf. [3], is given by:
where R is the ideal gas constant and \(\theta \) is the absolute temperature. Table 1 summarizes the relevant quantities and corresponding units.
2.4 Weak form of the coupled equations
With the purpose of implementing the equations using finite elements, we use two weight functions, \(w_{c}(\varvec{x})\) and \(w_{c^{\star }}(\varvec{x})\) plus the virtual Green–Lagrange strain \(\delta \mathbf {E}\) and apply the arguments for the Galerkin method argument to obtain three equations in the integral form. For the coupled case we have (omitting dependence on c, \(c^{\star }\) and \(\mathbf {E}\)):
where
and the standard weak form of equilibrium:
where \(c_{\max }\) is the maximum species concentration and \(\mathbf {S}\equiv \mathbf {S}\left( \mathbf {E}-\frac{cc_{\max }\Phi }{3}\mathbf {I}\right) \). Linearization of (39) and (41) is performed by AceGen [5] add-on to Mathematica [16].
2.5 Discretization
For one triangle or one tetrahedron, given \(n_{K}\) shape functions \(N_{K}(\varvec{\xi })\) with \(K=1,\ldots ,n_{K}\) where \(\varvec{\xi }\) are the parent-domain coordinates, we use the following finite element approximation for c, \(c^{\star }\), \(w_{c}\), \(w_{c}^{\star }\), \(\varvec{u}\) and \(\mathbf {E}\) in (30):
where \(\mathbf {E}_{K}\) are the strain tensors (in Voigt form) at the nodal points (cf. Fig. 2). We use a weighted average for the nodal Green–Lagrange strains:
where \(V_{e}\) is the volume of each element e and \(S_{e}(K)\) is the set of elements containing node K. Since low order tetrahedra provide a constant \(\mathbf {E}_{e}\), there is no dependence on parent-domain coordinates in (48). Subsequently, we use these nodal values to calculate the gradient:
arising from Eq. (30).
The implementation is performed over Simplas (cf. [1]) with the backward-Euler time-integration algorithm. The linear solver is BiCGStab from Van der Vorst (cf. [14]).
3 Phase separation problems
First examples are verification tests to assess the effect of time-step and mesh size in the phase separation process. Both 2D (a \(800\times 800\) nm rectangle with \(125\times 125\), \(95\times 95\) and \(45\times 45\) triangular elements) and 3D (a \(800\times 800\times 800\) nm cube with \(45\times 45\times 45\) equally spaced tetrahedron elements) discretizations are used. Since in the first stage the problem is restricted to the phase separation (no mechanical coupling) we omit the properties \(c_{\max },\,\Phi ,\,\theta ,\,E\) and \(\nu \). The initial conditions \(c_{0}(x)\) are defined using a uniform probability distribution: \(c_{0}\thicksim {\mathcal {U}}(0.58,0.68)\) with the interval [0.58, 0.68]. Table 2 contains the relevant properties. Natural boundary conditions correspond to \(\varvec{j}\cdot \varvec{n}=0\) in all boundaries. Contour plots of c, \(\mu \) and \(c-c^{\star }\) are shown in Fig. 3 and mesh size effect is shown in Fig. 4a for the integrated Chemical potential. Some slight oscillations can be observed but the results are relatively mesh-insensitive, specially considering that \(c_{0}\) is random. Concerning the effect of step size, we focus on the time interval \([0,2.5]\,{\mathrm {s}}\) and observe that large steps present a premature drift but steps smaller than 0.05 s are sufficient for accuracy in this stage.
The effect of time step and mesh size in the integrated \(h^{\star }(c,c^{\star },\mathbf {E})\):
is monitored for this uncoupled problem. Global mesh size effect and detail of the growth stage for several time steps are shown in Fig. 4. Results are relatively insensitive to both step and mesh sizes. For the 3D case, we present a sequence of contour plots for c and the difference \(c-c^{\star }\) in Fig. 5. It is observed that the value of \(\beta =1000\) is sufficient to ensure that \(c^{\star }\cong c\).
4 Application of the staggered algorithm with Cauchy equilibrium (chemo-mechanical problem)
We now tackle the corresponding combined problem, by considering the properties shown in Table 3. The sequence of deformed contour plots for c as well as the contour plots for \(\mu \) and \(c-c^{\star }\) are shown in Fig. 6 where the deformation due to coupling is clear. In addition, the values of \(\mu \) are two order of magnitude larger due to the presence of function \(\psi \). Concerning the effect of step and mesh sizes (the same meshes of the previous section are used), Fig. 7 presents the results. Despite the oscillations, results are relatively mesh-insensitive. It can be observed that, as in the uncoupled case, for \(\Delta t<0.05\), results become relatively step-size insensitive.
Concerning the 3D representation of the coupled model, we use a \(800{\mathrm {\,nm}}\)-side cube with a clamped bottom (at \(y=0\)). Three time instances are represented in Fig. 8 with contour plots for c and \(c-c^{\star }\). A sequence of deformed meshes is shown in Fig. 9. The effect of evolution of c in the strain field is observable in this figure.
We now consider the converse effect where the strain gradient affects the concentration c. With that purpose, we consider a block indentation similar to the one employed by Miehe et al. [8] and two meshes: \(20\times 20\times 20\) divisions (shown in Fig. 10) and a coarser one with half the divisions. Properties (with consistent units) are shown in Table 4. The effect of time-step in the evolution of c and \(c^{\star }\) is shown in Fig. 11a with excellent insensitivity and the same applies to the mesh size effect, shown in Fig. 11b.
5 Lithiation with swelling of a spheroidal particle
As a final example, we now use of the lithiation example shown by Di Leo et al. [3]. We use a full 3D mesh whereas Di-Leo et al. used an axisymmetric mesh. Reported dimensions and problem properties are employed. Figure 12 and Table 5 provide the required data for this simulation. As described by Fig. 12, the flux is applied in two different stages with a switch at \(t=1\) s. Flux is imposed by simple triangular facets (mesh is described in Fig. 12). Two time-steps are used: \(\Delta t=0.025\) s and \(\Delta t=0.050\) s. The definition of state-of-charge (\({\mathrm {SOC}}\)) is given simply by:
For these two time steps, we compare the \({\mathrm {SOC}}\) results with the ones reported by Di Leo et al. [3] with reasonable agreement (see Fig. 13a). Swelling is also measured for the two time steps, as Fig. 13b shows. Reasonable step-size independence is observed. Some oscillations in the volume ratio is observed when the smaller time-step is used 13b and this is caused by irregularities in the spatial distribution c during the inward evolution.
5.1 Numerical lithiation experiment with increased Swelling parameter
The question of applicability of the present algorithm to the lithiation of silicon. The key difficulty is the volume ratio, which is relatively low in the present case (cf. Fig. 13b), but can reach 3 in the case of silicon, cf. [7]. To assess this specific Algorithm capability, we use the properties in Table 5 but with \(\Phi =6\times 10^{22}~{{{\mathrm {nm^{3}}~\hbox {mol}^{-1}}}}\) to force a larger volume ratio. Figure 14 shows the resulting effect of \(\Phi \) with \(\Delta t=0.01\). We can observe that the present algorithm is perfectly capable of reaching volume ratios of more than 3 and therefore solve the silicon lithiation problem.
6 Conclusions
A staggered algorithm for the coupled Cahn–Hilliard/Equilibrium problem was found to be sufficiently accurate to be used in practice. The screened-Poisson equation allowed the split of the fourth-order Cahn–Hilliard equation in two second-order equations which are solved with low-order finite elements. This is an approximation and depends on the value of the penalty parameter \(\beta \). The two coupling effects: (i) effect of strain gradient in the Chemical potential and (ii) effect of concentration on the stress state, were found to be effectively present and nearly independent of time and step size with our staggered scheme. Both 2D and 3D results were provided and compared with coupled formulations (Di Leo et al. [3] and Miehe et al. [8]) where similar results were obtained. For the lithiation problem, we used a 3D model of the axisymmetric representation in [3] and measured the swelling and SOC with similar results. Promising results will allow the extension to an anisotropic Cahn–Hilliard equation and elastic model, which are required to realistic simulate battery lithiation.
Notes
Also called spinodal decomposition.
References
Areias P Simplas. http://www.simplas-software.com
Cahn JW, Hilliard JE (1958) Free energy of a nonuniform system. I. Interfacial free energy. J Chem Phys 28:258–267
Di Leo CV, Rejovitzky E, Anand L (2014) A Cahn–Hilliard-type phase-field theory for species diffusion coupled with large elastic deformations: application to phase-separating Li-ionelectrode materials. J Mech Phys Solids 70:1–29
Elliot CM, Songmu Z (1986) On the Cahn=-Hilliard equation. Arch Ration Mech Anal 96(4):339–357
Korelc J (2002) Multi-language and multi-environment generation of nonlinear finite element codes. Eng Comput 18(4):312–327
Lim GT, Reddy JN (2003) On canonical bending relationships for plates. Int J Solids Struct 40:3039–3067
McDowell MT, Lee SW, Nix WD, Cui Y (2013) 25th Anniversary article: understanding the lithiation of silicon and other alloying anodes for lithium-ion batteries. Adv Mater 25(36):4966–4985
Miehe C, Mauthe S, Ulmer H (2014) Formulation and numerical exploitation of mixed variational principles for coupled problems of Cahn–Hilliard-type and standard diffusion in elastic solids. Int J Numer Methods Eng 99:737–762
Peerlings RHJ, de Borst R, Brekelmans WAM, de Vree JHP (1996) Gradient enhanced damage for quasi-brittle materials. Int J Numer Methods Eng 39:3391–3403
Sethuraman VA, Srinivasan V, Bower AF, Guduru PR (2010) In situ measurements of stress–potential coupling in lithiated silicon. J Electrochem Soc 157:A1253–A1261
Truesdell C (1985) The elements of continuum mechanics. Springer, New York Corrected Second Printing
Ubachs RLJM, Schreurs PJG, Geers MGD (2004) A nonlocal diffuse interface model for microstructure evolution of tin-lead solder. J Mech Phys Solids 52:1763–1792
Van der Ven A, Bhattacharya J, Belak AA (2013) Understanding Li diffusion in Li-intercalation compounds. Acc Chem Res 46(5):1216–1225
Van der Vorst HA (1992) A fast and smoothly converging variant of Bi-CG for the solution of nonsymmetric linear systems. SIAM J Sci Stat Comput 13(2):631–644
Wells GN, Kuhl E, Garikipati K (2006) A discontinuous Galerkin method for the Cahn–Hilliard equation. J Comput Phys 218:860–877
Wolfram Research Inc. (2007) Mathematica. Wolfram Research, Champaign
Acknowledgments
We gratefully acknowledge the Financial support by means of ERC-CoG COMBAT (Computational Modeling and Design of Lithium-ion batteries). We also gratefully acknowledge the useful discussions with Dr. Jahed Naghipoor who pointed out the practical importance of swelling during lithiation.
Author information
Authors and Affiliations
Corresponding author
Electronic supplementary material
Below is the link to the electronic supplementary material.
Rights and permissions
About this article
Cite this article
Areias, P., Samaniego, E. & Rabczuk, T. A staggered approach for the coupling of Cahn–Hilliard type diffusion and finite strain elasticity. Comput Mech 57, 339–351 (2016). https://doi.org/10.1007/s00466-015-1235-1
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00466-015-1235-1