Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
johannes.gerl@modelon.com leonard.janczyk@modelon.com
imke.krueger@modelon.com nils.modrow@modelon.com
needs of the general concept of their product. While lithium ion battery cells are usually
I.e. the design of the battery is not based on a described by RC circuit elements, the electro-
unified single-type approach, but many differ- chemical effects in lead-acid batteries are ap-
ent concepts are required to cover the large proximated in a separate model to take ac-
range of system requirements. count of the specialties of this battery type.
2. Electrical Modelling
The main requirement for cell models used in
system simulation is to provide accurate in-
formation on the macroscopic characteristics
(e.g. voltage, current and state of charge)
combined with reasonable computation time.
In many applications these requirements are
fulfilled by models using an electrical equiva-
lent circuit.
The voltage of a battery U can be described as
Fig. 1, Battery system of the MUTE electrical the difference between the open circuit volt-
car project by TU Munich age UOCV and a number of overpotentials ηi
caused by different electrochemical effects:
Therefore, the battery model presented in this U U OCV ηi
paper uses the cell as a base unit to be pa-
rameterized with fairly simple data sheet and These overpotentials can be modelled with
empiric input. With the help of pre-defined electric networks. In figure 2 the voltage char-
templates, organized as shown in figure 1, the acteristic for the step current discharge of a
user can easily set-up a battery model as an NiMH cell is shown.
electrical and thermal system consisting of a
single cell.
3. Parameter Estimation
When modeling the electrochemical processes
in a battery using a simplified approach like
an electrical equivalent circuit, the choice of
the circuit’s components and the parameteri-
zation of these components determine the per-
formance of the model.
Fig. 3, Equivalent circuit A widely used approach to parameterize bat-
tery models is the generation of lookup tables
The performance of a cell is strongly depends from measurement data using numerical op-
the battery current, state of charge, tempera- timization algorithms ([6], [7]).
ture and other factors. To achieve good per- As mentioned before the battery performance
formance of the model over a wide range of is strongly dependent on numerous factors.
conditions the consideration of these depend- The number of dependencies that are im-
encies in the models of the electrical compo- portant for the interaction within the investi-
nents and their parameterization is crucial. gated system and the size of the range in
The presented library offers equation based which they need to be considered often lead to
and table based modeling of the electrical a complex optimization task.
components. As an example of equation based The developed library provides a Dymola in-
modeling a lithium ion cell model [2] and a ternal approach to execute parameter estima-
lead acid cell model [3] are implemented in tions using the commercial library Optimiza-
the library. The electrical equivalent circuits tion developed by the German Aerospace
of the models contain serial resistors, RC- Center (DLR) which includes several numeri-
circuits, voltage sources representing the open cal optimization algorithms [10]. A template
circuit voltage and current sources describing of a parameter estimation for an equivalent
the leakage current. The functions represent- circuit containing a serial resistor and two
ing these elements are derived from measure- RC-circuits generating 2d lookup tables is
ment data and depend on the temperature, implemented. The workflow of the template is
state of charge and current. illustrated in figure 4.
The table based models perform a table
lookup to determine the parameters of the
components in the electrical circuit. The li-
brary offers pre-defined templates for 2D and
3D interpolation. They enable a variable com-
position of elements in the equivalent circuit.
In the 2d interpolation template the dependen-
cy of the lookup tables can easily be config-
ured.
Fig. 4, Parameter estimation workflow
For the simulation of battery packs containing
multiple cells, templates using discretized or
scaled cell models are implemented. In the The inputs to the parameter estimation routine
discretized pack models every cell is modeled are inner resistance measurements from dis-
separately. This enables the analysis of the charging or charging the battery with step cur-
packs’ electrical behavior when unconformi- rents. For each measurement an optimization
ties of the included cells occur. As the geo- function from the Optimization Library is
metric layout usually doesn’t correspond to called. The optimization function simulates a
the electrical connections of the cells in the model that contains the equivalent circuit and
pack, a connection Matrix M is defined, that computes the optimization criteria which is
offers the possibility to connect the electric returned to the optimization function. The
connectors of the cells in a given design. outputs of the parameter estimation are 2D
lookup tables for the resistors and the capaci-
tors in the circuit.
When computing the parameters of all com-
ponents in a single estimation task the genera-
tion of plausible lookup tables is a complex
DOI Proceedings of the 10th International ModelicaConference 337
10.3384/ECP14096335 March 10-12, 2014, Lund, Sweden
A Modelica Based Lithium Ion Battery Model
challenge [8]. To simplify this challenge and For the scaled models, the heat flow of a sin-
dictate e.g. which RC-circuit represents the gle instance of the cell is multiplied with total
fast dynamics and avoid a switch of assign- number of cells. Effects such as heat conduc-
ment during the estimation task, the boundary tion in-between the cells can only be consid-
b for each parameter can be set by ered in the discretized pack models with sev-
eral instances of the cell model. Heat transfer
b k1 k2 R k3
via pins can also be modelled; the connections
ΔR is the increase of the inner resistance dur- between the pins use the same connection ma-
ing the measurement and ki are constants de- trix as the electric part.
fining the boundary. This rather simple meth- A two-dimensional heatport simplifies the
od showed acceptable results estimating cur- icon of the housing, Cells, filling, and the ex-
rent and state of charge dependent tables for a terior heat ports can easily be connected.
NiMH cell.
The temperature of the pack can be monitored
with a provided controller model. Based on
given limits. Boolean signals for activation of
4. Thermal Model heating or cooling are emitted.
In order to determine the influence of varying
temperatures on electrical and aging behavior
a thermal model of the cell and its surround-
ing environment is required. Heat inside the
cell is generated mainly due to Joule effects,
the chemical reactions are only weakly exo-
thermic or even endothermic. Thus the gener-
ated heat corresponds to the power loss calcu-
lated in the resistors of the equivalent electric
circuit which are therefore connected to the
thermal model. Fig. 6, Structure of thermal model of a discre-
tized battery pack
5. Aging Model
Cell
The thermal model uses a template/interface The capacity as well as the behavior of a cell
structure with a replaceable thermal model change with age and cycle numbers of the
such that the discretization level can be cell. To account for the effects of the most
adapted by the user. All models are based on a important factors temperature, current rate and
finite volume approach, using heat resistors SOC, a flexible aging model based on the
and thermal capacities. The user can choose StateGraph library has been implemented.
between 0D and 1D models, further models The aging factor denotes the ratio between
can be added easily
the current value and the value at t=0:
Conditional heat ports at the top, side and bot-
A(t )
tom of the cell reduce the complexity without A
reducing the flexibility of the thermal man- A(t 0)
agement design.
Using this definition, the actual value can be
Equations for the calculation of thermal pa- determined just by multiplying with . Resis-
rameters are provided for cylindrical and
tor and capacitor models have a conditional
prismatic forms. Material records for the most
input for the aging factor that can be activated
common materials are also included.
in the parameter dialog.
Packs
In addition to the cell, the thermal model of
The flow chart in figure 6 shows the signal
the pack might consider housing and in case
flow structure in the aging model. The cycle
of the discretized pack a filling material in
detector detects the end of a cycle and triggers
between the cells. Simple heat transfer models
the calculation of the aging factors in the cy-
for convection and radiation are also included.
clic and calendric aging models. Mean values
for temperature, depth-of-discharge (DOD), the cell as input of the aging factor calculation
voltage and current are calculated for the pre- instead of time, the equation becomes inde-
vious cycle as the aging models are all based pendent of the charge rate. As the experiments
on continuous boundary conditions. The aging showed little influence, the SOC of the cycled
factors are discrete values, thus they are con- cell is neglected.
stant during one cycle until the next calcula- Figure 7 shows the aging factors for a cell
tion is triggered. Therefore, the aging factors cycled with a constant current rate between
represent the age of the cell at the beginning 0.5 and 0.55 SOC at 20°C. The aging factors
of the next active cycle. Start value for all ag- for capacities decrease, those for the re-
ing factors is set to 1. sistance increase, both reducing the capacity
as well as the power of the cell.