Attery: User Guide Dict Release 2020
Attery: User Guide Dict Release 2020
Attery: User Guide Dict Release 2020
Anja Streit
Fabian Biebl
Barbara Planas
BATTERYDICT
User Guide
GeoDict release 2020
October 16, 2019
BATTERYDICT COMPUTATIONS 9
DESIGN BATTERY 10
Geometry 10
Anode IDs and Cathode IDs 12
CHOOSING A SOLVER 14
CHARGE BATTERY (BESTMICRO) 16
Geometry 16
Anode, Cathode, and Electrolyte/Separator 17
Solver Options 19
Equations 21
CHARGE BATTERY (BESTMICROFFT) 22
BATTERYDICT COMPUTATION RESULTS 24
RESULTS OF DESIGN BATTERY 24
RESULTS OF CHARGE BATTERY (BESTMICROFFT AND BESTMICRO) 30
RESULT FOLDERS 43
BatteryDesigner: the design battery folder 43
BESTmicroFFT and BESTmicro: the charge battery folders 43
B ATTERY D ICT : C HARGING & D ISCHARGING
SIMULATIONS FOR L I - ION BATTERIES
T HEORETICAL B ASIS
Upon charging a typical secondary Li-ion battery, the Li+ ions initially stored in the
active material of the cathode are transported to the anode side. During this process,
the cathode active material is oxidized and Li+ ions de-intercalate and diffuse through
the electrolyte, towards the anode. This electrochemical process is induced by the
applied charging potential, that drives the transport of free electrons through the
cathode active material and through the binder with carbon black to the current
collector. On the anode side, electrons flow from the current collector through the
carbon black and active material. The active material of the anode is reduced by the
Li+ intercalation.
During discharging, Li+ ions are transported in a corresponding process to the cathode
side, while the electron flow powers the consumer device. The amount of lithium an
electrode material can store per volume is defined as the volumetric energy density.
Cell state of charge: It describes the overall state of charge of the battery cell. It is
0% if the anode is empty OR the cathode is full. It is 100% if the anode is full OR the
cathode is empty.
For a half-cell simulation the lithium reservoir has always the same capacity as
the other electrode.
S IMULATION P ARAMETERS
References
A. Latz and J. Zausch. Thermodynamic consistent transport theory of Li-ion batteries.
Journal of Power Sources 196(6):3296-3302, 2011
J. Newman, K. Thomas-Alyea, Electrochemical systems, 2004, Wiley, ISBN
3175723993
A. Latz and J. Zausch. Thermodynamic derivation of a Butler–Volmer model for
intercalation in Li - ion batteries. Electrochim. Act., 110:358–362, 2013
T. Hofmann, H. Andrä, R. Müller, J. Zausch, Numerical simulation of phase separation
in cathode materials of lithium ion batteries, Int. J. of Solids & Struc., 100-101:456-
469, 2016
T. Hofmann, H. Andrä, R. Müller. A fast immersed interface method for the Cahn -
Hilliard equation with arbitrary boundary conditions in complex domains. Comp. Mat.
Sci, 140C:22-31, 2017.
For any given set of material parameters (like conductivities), material structure
parameters (morphological), and simulation parameters (like the applied current),
the solver in BatteryDict strives to perform a physically accurate simulation. This is
done by calculating the time evolution of the battery simulation step-by-step.
First, the solver works to establish the initial state or equilibrium state for every
simulation in BatteryDict. Then, the solver undertakes performing time steps. In every
time step, the solver first attempts a time step with the “maximum time step” given
by the user. If this time step does not result in a physically meaningful state of the
battery cell, the solver reduces the time step and tries again. This time-step reduction
is repeated until the solver finds a physically meaningful state. If it cannot find one,
the solver produces a warning message indicating that “Time step has not converged”.
In some cases, the cell-potential might rise well above any reasonable end-of-
charging voltage, like for example if a large charge rate is applied. The solver might
reach 10 V or even 100 V, but at some point, it will stop. In these kinds of situations,
the cell-potential diverges, but the solver produces a meaningful and helpful result.
However, there are other situations in which the cell-potential does not diverge, but
the solver stops regardless of that and, as mentioned above, the solver has not
converged.
In BatteryDict 2020, the possible reasons why the solver does not converge are
revealed in warnings, shown before the solver starts and written into the report (see
page 14ff.). The warnings help figuring out why the solver stopped and include:
In the BatteryDict section, the pull-down menu includes the possibility to Design a
Battery and to simulate the charging of a battery with BESTmicroFFT (Charge
Battery (BESTmicroFFT)) and BESTmicro (Charge Battery (BESTmicro)).
D ESIGN B ATTERY
To design a battery, choose Design Battery from the pull-down menu and click Edit
to choose the options.
The Design Battery dialog opens, containing three tabs where to define the
morphology of the battery (Geometry tab) and the structure for anode and cathode.
G EOMETRY
For both electrodes, either the current structure loaded in the GeoDict GUI can be
used, a previously saved structure can be loaded, or the electrode can be modelled
as a lithium reservoir.
Later on, we show how to model the electrode as a lithium reservoir to perform a
half-cell simulation with only one electrode modelled as a microstructure.
Choose Load Structure and use the Browse… buttons to select an input file for
anode and cathode, in *.gad or *.gdt GeoDict formats.
After opening these files, a 2D representation of the anode and of the cathode appear
in the diagram. For the example battery shown here, the anode material is a structure
created in GeoDict using the GrainGeo module and the cathode material is part of a
FIB/SEM image of a real cathode.
▪ A red dot is visible to the right of the Anode and Cathode buttons, if no files are
loaded at all.
▪ A yellow dot appears if a file is loaded but the dimensions or voxel length of the
anode and the cathode do not match.
▪ A green dot appears if the anode and cathode files are loaded successfully, the
dimensions of the two match each other, and the voxel length is the same for both
microstructures.
The Size of anode and cathode are shown as the number of voxels in each direction
below the diagram of the battery, and the Voxel Length is also displayed. After
choosing anode and cathode, the total number of voxels and total length of the
complete battery structure are displayed for each direction above and to the left of
the diagram.
The Rotate around X, Y and Z buttons are used to rotate the structure 90° in X, Y
or Z direction. Click Reset to go back to the original orientation of anode and cathode
in the battery structure.
The number of voxels of the separator can be defined in the GUI. The default is 3
voxels. The length of anode and cathode collector is fixed to be three voxels and
cannot be changed.
Finally, the Boundary Conditions in Tangential Direction are chosen in this dialog
box. Periodic or Symmetric boundary conditions can be selected. For periodic
boundary conditions the structure is assumed to repeat periodically in y- and z-
direction and for symmetric boundary conditions, the Li+ ions and electrons are
reflected at the boundary in y- and z-direction.
Note that the selection of boundary conditions is not stored in the *.gdt file containing
the created structure file.
Boundary conditions are applied while using the battery designer to identify and show
connected and unconnected material, since this depends on the continuation of the
material in y- and z-direction. For a charging simulation, it can be chosen independent
of the value selected here. Connected and unconnected material is identified again
during charging simulation dependent on the boundary conditions selected then.
Under the Anode IDs and Cathode IDs tabs one or several Material IDs of the
structures can be assigned to electrolyte, binder & carbon black, and two different
active materials. In the example shown here, the anode consists of Active Material 1,
whereas the cathode contains Active Material 1 and Active Material 2. Other
possibilities are greyed out.
Click OK in the Design Battery dialog, to keep the parameters selected in memory,
or Cancel to discard the parameters.
Click Run in the BatteryDict section of the GUI to create the battery.
If the battery is created successfully, a result file with the default name
BatteryDesigner.gdr is created in the selected project folder, as well as a structure
file (*.gdt) in the subfolder BatteryDesigner.
The Result Viewer of the result file opens automatically after the generation, showing
the information of BatteryDesigner.gdr (see below Results of Design Battery).
C HOOSING A S OLVER
Choosing a solver is the first issue to address before running a simulation. In essence,
the particular advantages of the solvers BESTmicro and BESTmicroFFT are:
▪ BESTmicro is more robust and has been tested over a decade. The 2020
version is quite faster and its RAM consumption has been reduced.
▪ BESTmicroFFT is a little faster and needs less memory. However, Fraunhofer
ITWM has stopped developing BESTmicroFFT any further. They have fully
concentrated their efforts on improving BESTmicro. So, we strongly recommend
using BESTmicro instead of BESTmicroFFT.
In detail, the advantages of the two solvers are listed in the following table.
BESTmicro BESTmicroFFT
G EOMETRY
Several options are available as Battery Input Mode to select the battery itself
▪ Design Battery opens the Battery Designer (see Design Battery above) to design
a new battery structure.
▪ Load Battery File allows to select a battery structure saved as *.gdt file
▪ Use Current Structure allows to use the battery structure already in memory.
S OLVER O PTIONS
The options for the charging simulation are defined under the Solver Options tab.
From the pull-down menu Charge or Discharge Battery?, select to simulate the
charging or discharging of the battery. Here, a charging simulation is chosen.
The Applied Current can be specified by Charge Rate, Charge Density or by defining
the Current itself in Ampère (A).
With an entered Charge Rate, the applied current is related to the cells capacity and
is a measure of the duration of the battery charging. E.g. a charge rate of 1 for a
battery with capacity of 1Ah means that the battery is loaded completely in 1 hour
with a constant current of 1 Ampère (A). This time is unrelated to the simulation time
but instead to the time that the charging process itself requires. A charge rate of 2
means that charging the same battery with a current of 2 Ampère takes ½ hour.
Defining the Current or the Current Density instead means that the applied current
(in A) or the current density (in A/cm²) is defined directly.
Since BatteryDict2020, the state of charge (SOC, see State of Charge above) for the
start and the end of the simulation can be defined in two ways:
▪ Calculate Estimation Only can be checked, and then, the full simulation is not
performed, but only the cell potential is estimated. This estimation is much faster
than the full simulation. It considers the cell potential in equilibrium as well as the
charge rate and part of the structure information, like the solid volume
percentages of the different materials of the battery. From this information Ohm
losses and overpotentials at the surfaces are considered in the estimation.
Overpotentials due to diffusion are not considered in the estimation so far.
▪ The Cell-SOC Interval of Result Output defines the interval for the export of
intermediate result files in percent of the cell state of charge.
▪ Checking Final Simulated Time, the total time that the battery will be charged
can be defined. The simulation ends if the charging process exceeds the Final
Simulated Time even if the final state of charge for the simulation is not reached.
Note that the Final Simulated Time is not the time that the solver is given for
its computation, but it is the time, the simulated battery is given for charging or
discharging.
Example: Let us consider a battery that is charged from 20% state-of-charge to
70% state-of-charge at a charge rate of 1C. The battery takes 30 min to charge.
If the Final Simulated Time is set to 600 seconds (10 min), then in this example,
the battery will only be charged from 20% to 36.67% state-of-charge.
The boundary condition chosen in the Boundary Conditions in Tangential
Directions panel is linked to the Battery Input Mode (if Design Battery is chosen)
under the Geometry tab. Thus, changes in the boundary conditions under Solver
Options, changes them in the Geometry tab. However, if Load Battery File is chosen
for the simulation, the boundary conditions can be chosen independent of the
previously designed battery. The value for the boundary conditions is not stored in
the gdt file containing the battery structure. The connected and unconnected parts of
the active materials and of the electrolyte are dependent on the boundary conditions,
and are, therefore, identified when the simulation is started.
Finally, in the Additional Options panel the following options for the simulation may
be selected:
▪ Maximum Simulated Time Steps defines the maximum time step in seconds
used in the simulation. For each time step in the simulation, the solver tries to
find an equilibrium solution fulfilling the given system of differential equations. If
the optimization does not find a valid solution fitting to the state of charge, this
time step is reduced, and the solver starts again. This procedure is repeated until
an appropriate time step is found. This time step is used for the next steps in the
simulation as well. After several successful steps with a certain time step, the
solver tries to increase this time step again, to reduce overall computation time.
The value defined in Maximum Simulated Time Steps gives an upper value for
this time step. If the size of the time step is oscillating a lot, the recommendation
is to reduce this maximum value.
If your simulation does not produce enough points in the plots of the result file,
then you might want to reduce the Maximum Simulated Time Step. This is
especially the case if you choose to simulate at a charge rate larger than 10C.
E QUATIONS
The differential equations solved in the charging simulation are listed under the
Equations tab and are described above in Theoretical Basis.
The Electrolyte tab differs from the Electrolyte/Separator tab of the simulation
with BESTmicro. Here, the Electrolyte tab contains only the panel for the electrolyte.
For a simulation with BESTmicroFFT, the electrolyte in the separator always has the
same properties as the electrolyte in the electrodes.
Also, the Solver Options tab differs a bit from the one of a BESTmicro simulation.
On the panel Charging Options, it can be selected whether the battery is charged
or discharged. In contrast to a BESTmicro simulation the applied current is always
defined by the charge rate and the state of charge for start and end of the simulation
is always defined as a range of the cell state of charge.
On the panel Output Options, is possible to choose to Calculate the Equilibrium
Charge Curve Only, instead of performing the whole simulation. It is not possible to
estimate the charge curve out of equilibrium like in a BESTmicro simulation.
The .gdr file can be reopened at any time by choosing File → Open Results
(*.gdr)… in the menu bar. The Result Viewer opens at the Results tab.
In the Result Viewer, the list of all open result files is shown in a box in the upper
part. The name of the result file currently displayed is highlighted in blue. This box in
the upper part of the Result Viewer can be collapsed (and expanded) by pulling up
(or down) the dotted line under the box.
The green dot in the upper right part of the result viewer, indicates that the structure
from which these results were obtained is loaded in the Visualization area. This is
always the case directly after creating the battery structure. If a result file (*.gdr) is
reloaded later through File → Open Results (*.gdr)…, the dot is red. The structure
can be loaded into GeoDict memory and the visualization area by clicking the Load
Structure button in the result viewer.
At the top of the result viewer, clicking the button Excel (single table) exports the
information of this result file to Microsoft Excel®. A single worksheet is created that
contains the information under the Results tab from the result file.
With the Combine Results button, the results of several selected .gdr files can be
shown side by side in the Result Viewer.
The Input Map tab contains all the input parameters of the battery creation.
The Log Map tab shows the runtime and the information about the system in which
the battery was created.
The Post Map tab shows parameter and graph data used for the plots on the Results
tab.
The Results - Report subtab lists the information on the volume fractions of the
different materials for the whole battery, as well as for anode and cathode separately.
It is differentiated between connected and unconnected parts of the material. The
unconnected parts do not contribute to the performance of the battery, a small part
of unconnected material is therefore desired.
Under the Results - Plots subtab, several geometric properties of the designed
battery are available as standard plots. Porosity, unconnected active material, and
unconnected electrolyte are shown as averaged values over each slice in y- and z-
direction.
At the separator and both current collectors, no values are shown for porosity, since
these structures are not resolved into a microstructure.
For the separator no value for unconnected active material is shown, since it does not
contain active material at all.
In the same manner, no value for unconnected electrolyte is shown for the anode and
cathode current collector, since they do not contain electrolyte.
The Results - Map subtab displays information on the volume fractions of the
different materials of the whole battery, as well as for anode and cathode alone. This
are the values also shown under the Results – Report subtab.
The Metadata tab displays a description of the .gdr file. The text can be modified
here, and the modification can be saved to the .gdr file.
As usual for all GeoDict result files, several buttons for further processing are available
at the bottom of the Result Viewer.
▪ Clean-Up/Pack: Zip the information contained in the result folder or clean-up the
result folder.
▪ Load Input Map: Reload solver options and material parameters used for the
computation of the results. After loading, these parameters are available in the
BatteryDict dialog box.
▪ Export: Export the results for postprocessing with another tool
▪ Store As Html: Export the information shown in the Results tab to a html
file.
On the tab Log Map, the runtime of the simulation as well as information about the
machine used, are shown.
The Post Map tab lists information about plots shown in the Results tab. Parameters
chosen for the plots as well as data for the graphs are shown here.
The Results tab shows the results of the computation in several forms.
The Results - Map subtab lists all values available in the Report tab of the GeoDict
result file.
In the Results - Report subtab, part of the information of the results map is
displayed, with explanations about the computation results. If there were warnings
during the simulation, then they appear here in the report (see Tested Parameter
Space above). The information displayed in the Report subtab can be exported to a
html file by clicking Export → Store As Html at the bottom of the Result Viewer.
Under the Results - Plots subtab, several standard plots for the visualization of the
BatteryDict simulation results are available: Cell Potential, Cell State of Charge,
and Transferred Charge plotted over Time. Additionally, the Cell Potential and
the Electrode State of Charge can be plotted over the Cell State of Charge.
In the Cell Potential over Cell State of Charge plot (seen above), the cell potential
while charging or discharging is compared to the cell potential in equilibrium, i.e. while
loading in infinite time. While charging or discharging the battery infinitely slow, the
battery is always in equilibrium state, leading to optimum values for the cell potential.
In contrast to this, charging or discharging the battery in finite time, the battery is
not in equilibrium state anymore. Charging curves have therefore always higher
values than the equilibrium curve, i.e. charging the battery requires a higher potential
than the optimum one. Discharging curves are always below the equilibrium curve.
Additionally, for the results of Charge Battery (BESTmicro), the estimation of the
cell potential is shown in this plot. Please note that BESTmicroFFT does not provide
an estimation of the cell potential. If Calculate Estimation Only was chosen as option,
then only the estimation of the cell potential and the equilibrium cell potential is
shown.
Due to simulation at constant current (not constant voltage), the state of charge
increases linearly with the simulated time. The trend of the cell potential over time is
therefore the same as for the Cell Potential over Cell State of Charge and the Cell
State of Charge over Time is a straight line.
Due to the simulation of charging with constant current (not constant voltage), the
curve Transferred Charge over Time is also a straight line.
Also, the state of charge of anode and cathode changes linearly over the cell state of
charge. The cathode of the example shown here has a larger capacity compared to
the anode. The cathode state of charge is therefore not zero, if the anodes state of
charge has reached 100%.
The Ion Concentration tab shows the mean concentration of lithium ions for each
slice in y-z-direction for a constant x value. It can be displayed as Ion Concentration
of Electrolyte, Ion Concentration of Active Material (for both active materials
together) or of each active material separately (Ion Concentration of Active
Material 1, Ion Concentration of Active Material 2).
A separate curve is shown for each state of charge, with an intermediate result
available. As can be seen in the following plot, the concentration of lithium ions in the
cathode is decreasing during charging of the battery, while the concentration in the
anode is increasing.
The ion concentration of the cathode changes more uniformly if only the ion
concentration of the first active materials is selected to be displayed.
Note, that for the X-Position between 48 and 50 µm no Active Material 1 is contained
in the cathode. Therefore, a jump is visible there. For the anode, only one active
material was used in the battery cell. Therefore, the ion concentration shown for
Active Material 2 is zero.
The Potential tab shows the mean potential for each slice in y- and z-direction for
the solid part of the battery, as well as for the electrolyte. Again, as a default, for
each state of charge with an intermediate result available, a separate curve is shown
in the plot. Click the right mouse button in the plot to change view settings.
In the example, for every given time step the potential in the solid looks constant
within one electrode. This indicates that the conductivity is high enough. If the
conductivity would be much smaller, the potential would exhibit a drop within one
electrode.
The solvers calculate the battery charging by applying a constant electric current. The
necessary potential difference for keeping up the current is determined from the
electric current in the solids, the ionic current in the electrolyte, and the overpotentials
on the boundary of electrolyte and active material.
The current is only dependent on the potential difference and not on the total potential
offset. The latter can be chosen freely. The solvers choose the potential to be zero at
the anode current collector. Therefore, the potential in the anode always starts at
zero for all times. As explained before, the potential is as good as constant in the
anode. Hence, in this example, the potential in the anode solid is very close to zero
everywhere for all times.
Over the time, the intercalation of Li-ions into the anode becomes more costly. At the
same time, the potential gain from the deintercalation of Li-ion out of the cathode
decreases. Therefore, the potential difference between anode and cathode grows,
which can be seen in the example.
For the potential of the electrolyte, a gradient is visible between the anode current
collector and the cathode current collector. This gradient is increasing for higher
charge rates. Disregarding the noise, the potential grows from left to right. This comes
from the charge current that is driven by the ions resolved in the electrolyte. The
charge current leads to a growing potential in flow direction because the ionic
conductivity is not zero. The lower the ionic conductivity, the stronger the growth of
the electrolyte potential in flow direction. However, since the conductivity is
sufficiently large here, we can see that the voltage drop is only about 0.1 Volt. This
is negligible compared to the 4 Volt drop caused by the overpotentials at the boundary
of electrolyte and active material (see plot “Potential of Solids”). The potential
gradient is larger on the right, because there, the electrolyte is not as good connected
as on the left side.
The noise visible in the electrolyte potential stems from electrolyte voxels which are
not connected to the separator via other electrolyte voxels. In these ‘unconnected’
electrolyte voxels, the potential is rather extreme (either quite high or quite low).
The potential of the electrolyte voxels is shown in the figure above. On the right side
(cathode), unconnected voxels are red (high electrolyte potential) or blue (low
electrolyte potential).
The blue voxels are not connected to active material. This connection would be the
only way for electrolyte to change the potential (via the Butler-Volmer interface
current).
The red voxels are connected to active material and roughly have the potential of the
cathode solids minus the overpotential from the interface of active material and
electrolyte. They have a higher potential than the electrolyte connected to the
separator, because they do not have currents that would lead to a potential drop.
On the anode side, all voxels with electrolyte have a low potential even in the case of
them being connected to active material only, because they either have kept their
potential from the beginning (0 Volt for BESTmicro) or have the potential of the anode
solids plus the overpotential on the interface of active material and electrolyte.
Unconnected electrolyte voxels have a lower potential than the electrolyte connected
to the separator, because they do not have current that would cause a potential
difference.
The Battery Geometry subtab can show the mean of porosity, unconnected active
material or unconnected electrolyte for each slice in y- and z-direction.
Solution files can be accessed via the Data Visualization tab. The number of
available solution files depends on the length of the interval selected for output of
intermediate results in Solver Options (see above).
Let’s say that we would like to load only the fields “Concentration” and “Potential”. In
this case we first click Uncheck all. Then, we select the choices
“Concentration:Concentration” and “Potential:Potential”. After clicking OK, both
selected fields are loaded into the GeoDict GUI.
The concentration field of lithium ions for the example computed above is visualized
as shown here.
More information on visualization of results is available in the Visualization handbook.
Through the Create Videos tab, a video showing the ion concentration while charging
or discharging of the battery can be created. The first part of the video shows the
cropping of the battery structure together with the ion concentration at the start of
the simulation.
A screen shot of such a video is shown here. The left side of the video shows a graph
of the cell potential over state of charge. The actual state of charge value is displayed
there. In the middle, the ion concentration in the battery structure is shown. On the
right, the actual state of charge of the battery is schematically shown.
Click Open Macro File, under the Create Videos tab, to open the GeoDict Python
macro used to create the video, if you are interested in modifying it with a text editor.
Click Edit Parameters… to modify the default settings of the video creation.
Check Use Predefined View Settings to use the predefined orientation of the
structure for the video creation as shown in the example above. Uncheck this box to
use the orientation of the structure as shown in the GeoDict GUI.
Check Add Potential Plot to keep the graph with the potential curve at the left of
the video.
Check Show Color Bar to add an additional color bar for the ion concentration below
the structure.
The font size for the potential curve graph can be set with Fontsize for Plots.
R ESULT F OLDERS
The result file (.gdr) can be loaded at any time by selecting File → Open Results
(*.gdr) … in the menu bar.
BEST MICRO FFT AND BEST MICRO : THE CHARGE BATTERY FOLDERS
After running a charging simulation, a GeoDict result file (.gdr) is created in the
selected project folder. A subfolder with the same name as the result file contains two
subfolders called SolverConfig and SolverOutput.
SolverConfig contains files with the input parameters for the charging simulation.
The SolverOutput folder contains some log-files from the solver, as well as a
subfolder output with *.cap files containing volume fields. Such a *.cap file is written
for the initial state, for the final state, and for each time step with intermediate output.
These volume fields can be loaded from the Load Results button under the Result
Visualization tab of the Result Viewer or directly from the GeoDict GUI by selecting
File → Load Volume Field … in the menu bar.
The BESTmicro result folder contains some additional files as well as the two additional
folders configuration and geometry in SolverOutput. They contain some internal
solver information and cannot be loaded in the GeoDict GUI.
Web: www.geodict.com