Models - Battery.li Battery 1d
Models - Battery.li Battery 1d
This model is licensed under the COMSOL Software License Agreement 6.1.
All trademarks are the property of their respective owners. See www.comsol.com/trademarks.
Introduction
This example demonstrates the Lithium-Ion Battery interface for studying the discharge
and charge of a lithium-ion battery for a given set of material properties. The geometry is
in one dimension and the model is isothermal. Battery developers can use the model to
investigate the influence of various design parameters such as the choice of materials,
dimensions, and the particle sizes of the active materials — in this case, a carbon material
in the negative electrode and lithium manganese oxide (LiMn2O4 spinel) in the positive
electrode. You can also benefit from simulating battery performance under different
operating conditions and in different devices, for example, cell phones or laptop
computers.
The example treats a detailed model of a discharge-recharge cycle for a lithium-ion battery.
The model is based on a study by J. Newman and others (Ref. 1).
e-
Li+
Negative electrode: Positive electrode:
e- e-
e.g. LiC6 e.g. LiyMn2O4
X-
100 - 150 μm
Discharge, negative electrode: Discharge, positive electrode:
Figure 1: Cross section of a lithium-ion battery showing the electrochemical processes that occur
during operation.
Model Definition
This example models the battery cross section in 1D, which implies that edge effects in the
length and height of the battery are neglected. The example uses the following domains:
The ionic charge balances and material balances are modeled according to the equations
for binary 1:1 electrolytes (Ref. 1). The material parameters for the electrolyte refer to a
plasticized EC/DMC electrolyte residing in a polymer matrix, and the electrolyte volume
fraction specified in the model hence refer to the sum of the liquid electrolyte and polymer
matrix volume fractions.
The electric potential in the electron conducting phase, φ s , is calculated using a charge
balance based on Ohm’s law where the charge transfer reactions result in source or sink
term.
For the electrolyte phase of the porous electrodes, effective conductivities, σleff, are used
that take porosity and tortuosity into account as given by the following expression:
eff γ
σl = σl ε
where γ is the Bruggeman coefficient, using a value of 3.3. The diffusivity is treated
similarly.
Fickian diffusion describes the transport in the spherical particles. The diffusion equation
is expressed in spherical coordinates for the material balance of lithium in the particles.
Butler-Volmer electrode kinetics describes the local charge transfer current density in the
electrodes. The Butler-Volmer expressions are introduced as source or sink terms in the
charge balances and material balances.
For the ionic charge balance in the electrolyte, the current collector/feeder boundaries are
insulating. Insulation boundary conditions also apply to the material balances.
At the particle surface in the local particle model, the material flux is determined by the
local electrochemical reaction rate.
MATERIAL PROPERTIES
The material properties are those of a typical lithium-ion battery. The electrolyte consists
of 2 M LiPF6 salt in 1:2 EC:DMC (by volume) solvent and p(VDF-HFP). The electrode
materials are carbon-based material for the negative electrode and LiyMn2O4 for the
positive electrode.
The electrolyte conductivity and the equilibrium potential of the negative and positive
electrodes are composition dependent through experimentally measured data. This data is
tabulated in interpolating functions or the Material library in the model. The properties
vary significantly during the charge and discharge phases due to the changes in
composition.
Figure 2: The model specifies the ionic conductivity of the electrolyte using an interpolation
function according to this behavior with concentration.
surf
c s, Li
SOC = -----------
max
-
c s, Li
The initial SOC-values for the positive and negative electrodes are 0.17 and 0.56,
respectively, with the concentrations selected initially in the model. This corresponds to an
open circuit cell voltage of approximately 4.22 V, which corresponds to a fully charged
battery.
For complete details on the material properties and constants, see Ref. 1.
DISCHARGE CURVES
The battery is initially at a fully charged state. A first modeling approach is to simulate
discharge at various current densities and then display the discharge curves. The results
show the capacity of the battery at different discharge rates. This model defines end-of-
discharge as the time when the cell voltage drops below 3 V. The nominal discharge
current density, corresponding to case 1C below (a current density corresponding to a
theoretical full discharge in one hour), is 17.5 A/m2.
Figure 4 shows that the maximum discharge capacity of 17.5 Ah/m2 is obtained for a
current density of 1.75 A/m2 (0.1 C). It can also be seen that the 3 V discharge capacity
decreases slightly when applying a 1C discharge current and dramatically when going
above that. At 4C, the battery delivers approximately 50% of the theoretical capacity
before it reaches a cell voltage of 3 V. The discharge curves are identical to those presented
in Ref. 1.
Concentration relaxation
Ohmic losses
During both discharge and charge, the cell voltage experiences ohmic losses of
approximately 100 mV and a concentration overpotential of about 50 mV. These losses
are clearly visible in the plot when the current is set to 0, where you can see an immediate
relaxation of the voltage due to the relaxation of ohmic losses followed by a slower
relaxation of the concentration overpotential.
It is possible to visualize the contributions of the different losses to the total overpotential.
You can plot the contribution as shown in Figure 6 using the following procedure:
1 Plot the electrolyte potential profile at the initial stage of the discharge with a bias of
148 mV to get all the plots in the same range of potential.
2 Plot the electrolyte potential profile at the end of the discharge adding a bias of 558 mV,
again in order to get the profile in the same scale as the overpotential.
Figure 6 shows that the two main losses are due to the reaction overpotential and
electrolyte resistance. The difference between electrolyte potential profiles initially and
toward the end of the discharge stage indicates the influence of the concentration
polarization; it is approximately half the magnitude of the two previous losses and is thus
also important to consider. The figure does not include the electronic potential profile in
the solid phase, but the simulations show that contributions from the ohmic losses in the
electronic conductors are negligible.
The cell experiences significant concentration polarization due to the low effective
diffusion coefficient in the electrolyte, which in turn leads to variations in ionic
conductivity and concentration overpotential.
Figure 8: Concentration distribution of lithium in the solid particles during the discharge
phase. (Dashed lines: Center of particles. Solid lines: Surface of particles.)
At 1800 s the concentration in the negative electrode varies from 9500 mol/m3 in the
particle center to approximately 7000 mol/m3 at the surface, with moderate variation
along the width of the cell. At the positive electrode, the variation along the width is much
more pronounced with a surface concentration of approximately 13,000 mol/m3 at the
electrolyte interface and only 8500 mol/m3 at the positive current collector/feeder. This
large variation arises due to the nonuniform current distribution, which in turn is caused
mainly by the poor electrolyte conductivity (due to low porosity) but also by the
concentration polarization.
As the surface concentration changes, the equilibrium voltage also varies, causing a lower
reaction overpotential and a decrease in the local current density. This effect tends to even
out the local charge transfer current density to some extent but results in a larger overall
voltage loss in the battery.
Modeling Instructions
From the File menu, choose New.
NEW
In the New window, click Model Wizard.
MODEL WIZARD
1 In the Model Wizard window, click 1D.
2 In the Select Physics tree, select Electrochemistry>Batteries>Lithium-Ion Battery (liion).
3 Click Add.
4 Click Study.
5 In the Select Study tree, select Preset Studies for Selected Physics Interfaces>
Time Dependent with Initialization.
(The Time Dependent with Initialization study will perform a time-dependent simulation,
using a initialization study step to calculate the initial potentials in the cell.)
6 Click Done.
GLOBAL DEFINITIONS
Parameters 1
1 In the Model Builder window, under Global Definitions click Parameters 1.
2 In the Settings window for Parameters, locate the Parameters section.
3 Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
li_battery_1d_parameters.txt.
Interval 1 (i1)
1 In the Model Builder window, under Component 1 (comp1) right-click Geometry 1 and
choose Interval.
2 In the Settings window for Interval, locate the Interval section.
3 From the Specify list, choose Interval lengths.
4 In the table, enter the following settings:
Lengths (m)
L_neg
L_sep
L_pos
GLOBAL DEFINITIONS
This model uses an interpolation function, imported from a text file, for the equilibrium
potential of the negative electrode material.
Interpolation 1 (int1)
1 In the Home toolbar, click Functions and choose Global>Interpolation.
2 In the Settings window for Interpolation, locate the Definition section.
3 From the Data source list, choose File.
4 Click Browse.
5 Browse to the model’s Application Libraries folder and double-click the file
li_battery_1d_Eeq_neg.txt.
6 Click Import.
7 In the Function name text field, type Eeq_neg.
8 Locate the Interpolation and Extrapolation section. From the Interpolation list, choose
Cubic spline.
9 From the Extrapolation list, choose Nearest function.
Function Unit
Eeq_neg V
11 Click Plot.
Piecewise 1 (pw1)
The load cycle is set up using a Piecewise function. The data is imported from a text file
and smoothing is enabled.
DEFINITIONS
3 Locate the Geometric Entity Selection section. From the Geometric entity level list,
choose Boundary.
4 Select Boundary 4 only.
5 Locate the Variables section. In the table, enter the following settings:
MATERIALS
This model also uses battery materials available in the material library.
ADD MATERIAL
LMO is selected as positive electrode material.
MATERIALS
Interpolation 1 (Eeq_int1)
1 In the Model Builder window, expand the Component 1 (comp1)>Materials>LMO,
LiMn2O4 Spinel (Positive, Li-ion Battery) (mat1)>Equilibrium potential (elpot) node, then
click Interpolation 1 (Eeq_int1).
2 In the Settings window for Interpolation, click Plot.
ADD MATERIAL
LiPF6 in 1:2 EC:DMC and p(VdF-HFP) is selected as electrolyte.
MATERIALS
Interpolation 1 (sigmal_int1)
1 In the Model Builder window, expand the Component 1 (comp1)>Materials>
LiPF6 in 1:2 EC:DMC and p(VdF-HFP) (Polymer, Li-ion Battery) (mat2)>
Electrolyte conductivity (ionc) node, then click Interpolation 1 (sigmal_int1).
2 In the Settings window for Interpolation, click Plot.
Porous Electrode 1
1 In the Model Builder window, under Component 1 (comp1) right-click Lithium-
Ion Battery (liion) and choose Porous Electrode.
2 Select Domain 1 only.
3 In the Settings window for Porous Electrode, locate the Electrode Properties section.
4 From the σs list, choose User defined. In the associated text field, type Ks_neg.
5 Locate the Porous Matrix Properties section. In the εl text field, type epsl_neg.
6 In the εs text field, type epss_neg.
7 Locate the Effective Transport Parameter Correction section. From the
Electrolyte conductivity list, choose User defined. In the fl text field, type
epsl_neg^brugg.
Particle Intercalation 1
1 In the Model Builder window, click Particle Intercalation 1.
2 In the Settings window for Particle Intercalation, locate the Species Settings section.
3 In the cs,init text field, type cs0_neg.
4 From the cs,max list, choose User defined. In the associated text field, type csmax_neg.
5 Locate the Particle Transport Properties section. From the Ds list, choose User defined.
In the associated text field, type Ds_neg.
6 In the rp text field, type rp_neg.
7 Click to expand the Operational SOCs for Initial Cell Charge Distribution section. From the
socmin list, choose User defined. From the socmax list, choose User defined.
Porous Electrode 2
1 In the Physics toolbar, click Domains and choose Porous Electrode.
2 Select Domain 3 only.
In the Materials node, the electrolyte material has been assigned to all domains. You
hence need to set the electrode material selection manually, which in this case is LMO
electrode material.
3 In the Settings window for Porous Electrode, locate the Electrode Properties section.
4 From the Electrode material list, choose LMO, LiMn2O4 Spinel (Positive, Li-
ion Battery) (mat1).
5 Locate the Porous Matrix Properties section. In the εl text field, type epsl_pos.
6 In the εs text field, type epss_pos.
7 Locate the Effective Transport Parameter Correction section. From the
Electrolyte conductivity list, choose User defined. In the fl text field, type
epsl_pos^brugg.
Particle Intercalation 1
1 In the Model Builder window, click Particle Intercalation 1.
2 In the Settings window for Particle Intercalation, locate the Material section.
3 From the Particle material list, choose LMO, LiMn2O4 Spinel (Positive, Li-
ion Battery) (mat1).
4 Locate the Species Settings section. In the cs,init text field, type cs0_pos.
5 Locate the Particle Transport Properties section. From the Ds list, choose User defined.
In the associated text field, type Ds_pos.
6 In the rp text field, type rp_pos.
Changing to quadratic elements in the particle dimension improves accuracy.
7 Click to expand the Particle Discretization section. In the Nord text field, type 2.
Electric Ground 1
1 In the Physics toolbar, click Boundaries and choose Electric Ground.
2 Select Boundary 1 only.
Initial Values 1
1 In the Model Builder window, click Initial Values 1.
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the cl text field, type cl_0.
GLOBAL DEFINITIONS
1 In the Model Builder window, under Global Definitions click Default Model Inputs.
2 In the Settings window for Default Model Inputs, locate the Browse Model Inputs section.
3 In the tree, select General>Temperature (K) - minput.T.
4 Find the Expression for remaining selection subsection. In the Temperature text field, type
T.
STUDY 1
First set up a study to investigate the defined discharge/charge cycle.
RESULTS
Point Graph 1
1 In the Model Builder window, expand the
Boundary Electrode Potential with Respect to Ground (liion) node, then click
Point Graph 1.
2 In the Settings window for Point Graph, click to expand the Legends section.
3 Select the Show legends check box.
4 From the Legends list, choose Manual.
5 In the table, enter the following settings:
Legends
Voltage
Point Graph 2
1 Right-click Results>Boundary Electrode Potential with Respect to Ground (liion)>
Point Graph 1 and choose Duplicate.
Legends
Current
5 In the Boundary Electrode Potential with Respect to Ground (liion) toolbar, click Plot.
1D Plot Group 6
Now reproduce the rest of the plots in the model documentation for the discharge/charge
cycle, starting with a plot for comparing the different voltage losses (Figure 6).
1 In the Home toolbar, click Add Plot Group and choose 1D Plot Group.
2 In the Settings window for 1D Plot Group, locate the Data section.
3 From the Dataset list, choose None.
Line Graph 1
1 Right-click 1D Plot Group 6 and choose Line Graph.
2 In the Settings window for Line Graph, locate the Data section.
3 From the Dataset list, choose Study 1/Solution 1 (sol1).
4 From the Time selection list, choose From list.
5 In the Times (s) list, select 10.
6 Locate the Selection section. From the Selection list, choose All domains.
7 Locate the y-Axis Data section. In the Expression text field, type phil+0.148.
8 Click to expand the Legends section. Select the Show legends check box.
9 From the Legends list, choose Manual.
10 In the table, enter the following settings:
Legends
phil+0.148
Line Graph 2
1 Right-click Line Graph 1 and choose Duplicate.
2 In the Settings window for Line Graph, locate the y-Axis Data section.
Legends
eta
Line Graph 3
1 Right-click Line Graph 2 and choose Duplicate.
2 In the Settings window for Line Graph, locate the Data section.
3 In the Times (s) list, select 1990.
4 Locate the y-Axis Data section. In the Expression text field, type phil+0.558.
5 Locate the Legends section. In the table, enter the following settings:
Legends
phil+0.558
1D Plot Group 6
1 In the Model Builder window, click 1D Plot Group 6.
2 In the Settings window for 1D Plot Group, locate the Plot Settings section.
3 Select the x-axis label check box. In the associated text field, type x.
4 Select the y-axis label check box. In the associated text field, type Voltage (V).
5 In the 1D Plot Group 6 toolbar, click Plot.
Line Graph 1
1 In the Model Builder window, expand the Electrolyte Salt Concentration (liion) node, then
click Line Graph 1.
2 In the Settings window for Line Graph, locate the Legends section.
3 Select the Show legends check box.
1D Plot Group 7
This plot shows the concentration profile within the particles in the electrodes (Figure 8).
1 In the Home toolbar, click Add Plot Group and choose 1D Plot Group.
2 In the Settings window for 1D Plot Group, locate the Data section.
3 From the Time selection list, choose From list.
4 In the Times (s) list, choose 10, 1200, and 1800.
5 Locate the Title section. From the Title type list, choose Manual.
6 In the Title text area, type Electrode particle lithium concentration, surface
(solid) and center (dashed).
Line Graph 1
1 Right-click 1D Plot Group 7 and choose Line Graph.
2 In the Settings window for Line Graph, locate the Selection section.
3 From the Selection list, choose All domains.
4 Click Replace Expression in the upper-right corner of the y-Axis Data section. From the
menu, choose Component 1 (comp1)>Lithium-Ion Battery>Particle intercalation>
liion.cs_surface - Insertion particle concentration, surface - mol/m³.
5 Locate the Legends section. Select the Show legends check box.
Line Graph 2
1 In the Model Builder window, right-click 1D Plot Group 7 and choose Line Graph.
2 In the Settings window for Line Graph, locate the Selection section.
3 From the Selection list, choose All domains.
GLOBAL DEFINITIONS
To reproduce the discharge curves in Figure 4, modify the problem formulation slightly
to use a constant discharge current only, and then set up a parametric study that solves for
four different discharge currents. Use a stop condition to stop the solver if the cell voltage
drops below 2.0 V.
Parameters 1
Begin by adding a global current variable.
DEFINITIONS (COMP1)
Also, add a variable for the discharge current.
3 Locate the Electrode Current Density section. In the in,s text field, type -i_app_p.
ADD STUDY
1 In the Home toolbar, click Add Study to open the Add Study window.
2 Go to the Add Study window.
3 Find the Studies subsection. In the Select Study tree, select
Preset Studies for Selected Physics Interfaces>Time Dependent with Initialization.
4 Click Add Study in the window toolbar.
5 In the Home toolbar, click Add Study to close the Add Study window.
Parametric Sweep
1 In the Study toolbar, click Parametric Sweep.
Modify the default solver.
2 In the Settings window for Parametric Sweep, locate the Study Settings section.
3 Click Add.
4 In the table, enter the following settings:
Solution 3 (sol3)
1 In the Study toolbar, click Show Default Solver.
Introduce a stop condition to stop the solver and move on to the next parameter value
if the cell voltage drops below a certain level.
2 In the Model Builder window, expand the Solution 3 (sol3) node.
3 Right-click Study 2>Solver Configurations>Solution 3 (sol3)>Time-Dependent Solver 1 and
choose Stop Condition.
4 In the Settings window for Stop Condition, locate the Stop Expressions section.
5 Click Add.
Specify that the solution is to be stored both before and after the stop condition is
reached.
7 Locate the Output at Stop section. From the Add solution list, choose
Steps before and after stop.
8 Clear the Add warning check box.
Change the output of the solver to store all solver steps to get better resolution for the
discharge curves.
Store the actual steps taken by the solver to make sure to capture any sudden steep
voltage changes.
9 In the Model Builder window, under Study 2>Solver Configurations>Solution 3 (sol3) click
Time-Dependent Solver 1.
10 In the Settings window for Time-Dependent Solver, locate the General section.
11 From the Times to store list, choose Steps taken by solver.
Store only every 3rd time step. This reduces the size of the stored solution and the size
of model file.
12 In the Store every Nth step text field, type 3.
13 In the Model Builder window, click Study 2.
14 In the Settings window for Study, locate the Study Settings section.
15 Clear the Generate default plots check box.
16 In the Study toolbar, click Compute.
RESULTS
You can now plot the discharge curves for the parametric study by performing the
following steps (Figure 4):
1D Plot Group 8
1 In the Home toolbar, click Add Plot Group and choose 1D Plot Group.
2 In the Settings window for 1D Plot Group, locate the Data section.
3 From the Dataset list, choose Study 2/Parametric Solutions 1 (sol5).
This dataset contains the battery model solutions for the parametric sweep in Study 2.
1D Plot Group 8
Finish the plot by adding a title and axis labels and adjusting the axis ranges.