Lecture 7 - Battery Modelling - BMSLec06 - Model
Lecture 7 - Battery Modelling - BMSLec06 - Model
Contents
1 Introduction 2
4 Battery Power 19
5 Battery Capacity 21
5.1 Total Capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2 Discharge Capacity . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.3 Rated Capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.4 Custom Defined Capacity . . . . . . . . . . . . . . . . . . . . . . 24
6 State of Health 26
7 Battery Packs 27
8 Battery Simulator 29
9 Summary 30
1
1 Introduction
Battery modelling is a necessary step in BMS development in which we try
to represent the functioning of a battery through mathematical models. Two
important functions of a battery are charging and discharging. In addition to
that, a battery goes through other functionalities, such as aging. A good battery
model will represent all these different functionalities that happen within a
battery cell.
Before we get into battery modelling, let us take a brief look at the inter-
nal structure and workings of a Li-ion battery. Figure 1 shows the four main
components of a Li-ion rechargeable battery: anode, cathode, separator and
electrolyte.
Negative Positive
current current
collector collector
(Copper) (Aluminum)
Li-ion
Electrolyte
The negative electrode (anode) delivers electrons to the circuit during dis-
charge and it receives electrons during charge. In most Li-ion cells the anode
is composed of graphite; a hexagonal structure made of 6 carbon atoms that
are tightly bonded together to form one layer called graphene. Graphene layers
are loosely held to each other through weak Van der Waals forces. The Li-ions
intercalates between the graphene layers.
Current collectors take no part in the chemical reaction. They are responsible
for delivering or receiving electrons from the circuit. Their sole purpose is to
help collect more electrons after the reaction happens. As a result, it can help
reduce the internal resistance of the battery. In most Li-ion cells negative current
collectors are made of copper. The positive current collector is usually made of
aluminum.
The positive electrode (cathode) is responsible for receiving electrons from
the circuit during discharge and delivering them during charge. There are multi-
ple chemistries that can be used in the cathode as active material in Li-ion cells,
such as, lithium cobalt oxide, lithium nickel manganese cobalt oxide, lithium
2
manganese oxide, lithium nickel cobalt aluminum oxide, and lithium iron phos-
phate. The principal of operation is the same for all these chemistries where
the material is made of layer-like structure that stays the same through the
discharge and charge process while Li-ions can intercalate between this layered
structure.
A separator is used to prevent any direct contact between the anode and
the cathode that would lead to a short circuit inside the cell. The separator
should also be an electric insulator so that electrons are prevented from traveling
internally between the anode and cathode without going through the external
circuit. It should also allow for the flow of Li-ions, this is done by using a porous
material that has holes that are small enough for the Li-ions to pass but not
the active material.
Finally, the electrolyte is responsible for the flow of Li-ions through the cell
between the anode and cathode. It is comprised of a solvent and salt; the
most common salt used is lithium hexafluorophosphate which is dissolved in the
solvent such as ethylene carbonate or diethyl carbonate.
The underlining principle for Li-ion battery operation during discharging is
that the lithium atoms at the anode turn into a Li-ion by losing an electron,
which is delivered to the circuit, then the Li-ion is free to travel all the way to
the cathode where a Li-ion accepts and electron from the circuit and turn into a
lithium atom again. This process is reversed during charging and Li-ions travel
from the cathode to the anode.
The charging and discharging mechanism of a rechargeable battery is af-
fected by external factors, such as, temperature, usage patterns and age. For
example, at low temperatures the mobility of electrons and Lithium ions are
restricted resulting in high electrical resistance; this resistance is often referred
to as the charge transfer resistance. When the battery is repeatedly charged
and discharged (i.e., cycled) it forms a solid electrolyte interface (SEI); this re-
sistance is known as SEI resistance. The depletion of Lithium ions over time
results in the reduction of battery capacity. In order to capture the change
of battery response over time, it is important to accurately model the battery.
The remainder of this chapter provides the details of electrical equivalent circuit
models.
3
and physical expansion of battery cells. And it is possible to model these extra
measurements to observe various useful states related to the safety and health
of a batter pack. However, the discussion in the present chapter is limited to
electrical equivalent circuit models (ECMs).
In the remainder of this section, two different equivalent circuit models are
presented and discussed: the DC equivalent circuit model and the AC equivalent
circuit model.
h(k)
R0 i1 (k) R1 i2 (k) R2 i(k)
−
+
+
+ − + − +
EMF C1 C2 v(k)
−
−
Based on the notations described so far, and shown in Figure 2, the measured
voltage across the battery terminals can be written as
It can be formally derived (proof omitted) that the currents i1 (k) and i2 (k) can
be derived in terms of i(k) as follows
4
The quantities R0 , R1 , R2 , C1 , and C2 in Figure 2 are shown without a time
index (k) indicating that these are the ECM parameters. Hysteresis is shown
with time index (k), indicating that hysteresis is not a constant parameter,
rather, it is a quantity that changes with time. Later, the hysteresis will h(k)
will be introduced as a function of the present and past values of current, the
state of charge of the battery, and hysteresis. It must be noted that the ECM
parameters may change with temperature and state of charge of the battery. The
battery impedance significantly increases at low temperatures and low state of
charge regions. The discussion about the ECM in this chapter assumes that the
temperature is constant.
where V (ω) and I(ω) denote the voltage and current measurements consisting
˜
of the DC component (Vdc , Idc ) and AC component (Ṽ (ω), I(ω)). The AC
5
CSEI CDL
L RΩ ˜
I(ω)
+
RSEI RDL Zw
+
EMF Ṽ (ω)
−
−
Ṽ (ω)
Z(jω) = (7)
˜
I(ω)
1 1
= jωL + RΩ + 1 + 1
RSEI + jωCSEI RCT +Zw (jω) + jωCDL
RSEI RCT + Zw (jω)
= jωL + RΩ + +
1 + jωRSEI CSEI 1 + jω (RCT + Zw (jω)) CDL
Example 1.
The parameters of the Adaptive Randles ECM shown in Figure 3 are:
L = 4 × 10−6 H, RΩ = 0.5 Ω, RSEI = 0.1 Ω, CSEI = 0.2 F, RCT = 0.5 Ω,
CDL = 100 F, and σ = 0.005. Generate the Nyquist plot corresponding
to this battery.
The following MATLAB codes will generate the Nyquist plot shown in Fig-
ure 4 based on the AC ECM model parameters provided in Example 1.
% MATLAB demo of Example 1
% file name: `NyquistPlot.m'
% initialize AC-ECM model parameters
6
R_CT = .5; C_DL = 100; L= 4e-6; Sig = 0.005;
% create frequency array
fmin = .00001; fmax = 1000; frange = [];
for i=1:ceil(log10(fmax/fmin))
fr = fmin:fmin/4:10*fmin;
frange = [frange fr];
fmin = 10*fmin;
end
w = 2*pi*frange; % angular frequency
Zw = Sig*sqrt(2./(j*w)); % Warburg Imp.
Z = j*w*L + R_Omega + ...
1./(1./(R_CT+Zw)+j*w*C_DL)+ ...
1./(1/R_SEI+j*w*C_SEI);
plot(real(Z), -imag(Z)) % Nyquist plot
0.7
0.6
0.5
0.4
0.3
0.2
0.1
-0.1
0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
Remark 1.
It must be noted that both the DC and AC equivalent circuit models in-
troduced so far did not represent one important parameter of a battery: the
battery capacity. In the next section, the role of battery capacity within the
battery ECM will be made clear. Additional discussions on battery capacity
are provided in Section 5.
7
the Nyquist spectrum. Consequently, the applications of AC equivalent circuit
models are limited to laboratory analysis of batteries. Battery management
systems need to operate in real-time with the help of opportunistic measure-
ments of voltage and current. Practical battery management systems often use
reduced order models made of selected elements of the DC equivalent circuit
model to represent the behaviour of the battery. This section provides further
details about each component of the DC equivalent circuit model.
i
+
+
EMF v
−
−
Figure 5: Ideal battery model. An ideal battery is one that functions indef-
initely as a constant voltage source, i.e., the measured terminal voltage would
always be v = EMF regardless of the current i.
Contrast to the ideal battery model shown in Figure 5, real world battery
cells exhibit the following features:
1. Limited voltage source. In practice, the battery voltage does not stay at a
constant v = EMF until it empties. As charge, measured in Coulombs, is
taken away from the battery the EMF voltage gradually drops. The EMF
voltage is widely known as the open circuit voltage (OCV) and denoted
by Vo in this book. The OCV is found to have a monotonous relationship
with the state of charge of the battery. As the battery is discharged its
state of charge decreases and so does the OCV.
8
2. Electrical resistance effect. In addition to state of charge dependent OCV,
the measured terminal voltage is observed to be affected by voltage drop
due to electrical resistance.
3. Hysteresis effect. It was found that the measured voltage across the bat-
tery terminal is a function of previous current values the battery experi-
enced; this phenomenon is also known as the memory effect.
4. Relaxation effect. It was found that the terminal voltage of a battery
gradually recovers to a higher value after discharging and to a lower value
after charging; this phenomenon is known as the relaxation effect.
In the remainder of this section, we will discuss how electrical equivalent circuit
models (ECM) are used to represent the above four behaviours in real world
batteries.
9
Figure 6: State of charge of a battery as displayed on a smart phone.
• Combined model
• Combined+3 model
where s denotes SOC and Vo (s) denotes the corresponding OCV, i.e.,
10
4.2
3.8
3.6
3.4
3.2
2.8
0 20 40 60 80 100
State of charge (%)
s0 = (1 − 2)s + (13)
where the value of needs to be selected based on the model; it was reported
in [1] that = 0.175 gives optimal results in Combined model and its variants.
Example 2.
The OCV parameters of a Samsung Galaxy S4 battery, according to
the combined+3 model, is k0 = −9.082, k1 = 103.087, k2 = −18.185,
k3 = 2.062, k4 = −0.102, k5 = −76.604, k6 = 141.199, and k7 = −1.117.
These parameters were obtained after linearly scaling with = 0.175.
Use these parameters to create and OCV-SOC plot similar to the one
shown in Figure 7.
11
s0 = Scaled SOC (s0 ) s0 = 1 −
• For each of the scaled SOC, compute the corresponding OCV using (11)
and the given parameters
• Plot s (not s0 ) against the compute OCV
The resulting OCV-SOC plot will be very similar to the one shown in Fig-
ure 7. The following Matlab code will produce as OCV-SOC plot using the
parameters given in Example 2.
% MATLAB demo of Example 2
% filename:SampleOCVSOCplot.m
% Creates OCV-SOC plot
% Uses Combined+3 model and scaling
12
+ k5*(zs) + k6*(log(zs))...
+ k7*(log(1-zs));
plot(SOC, OCV, '-')
3.85
-0.2
3.8 -0.4
-0.6
3.75
-0.8
3.7
-1
3.65 -1.2
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
(a) (b)
13
Example 3.
Consider the battery with the OCV parameters given in Example 2.
The DC-ECM parameters of the battery are as follows: R0 = 0.2 Ω,
R1 = 0.1 Ω, C1 = 2 F, R2 = 0.3 Ω, C2 = 5 F. Consider the following 5
second load current profile that is applied to the battery: -40 mA from 0
to 1 seconds, -120 mA from 1 to 2 seconds, -120 mA from 2 to 3 seconds,
-40 mA from 3 to 4 seconds, and -120 mA from 4 to 5 seconds. Assuming
that the above current was sampled every ∆ = 0.01 seconds, compute
the resulting voltage v across the battery terminals under the following
model assumptions.
1. Ideal battery
2. R-int model (for this case, assume R1 , R2 , C1 , C2 are all zero)
3. RC model (for this case, assume R2 , C2 are zero)
4. 2RC model
Assume the same battery OCV parameters given in Example 2, that the
battery is full at the start and that the battery capacity is Q = 1.5 Ah.
3. In this case, the effect of the first RC element in Figure 2 will be included
as follows
v(k) = V◦ (s(k)) + i(k)R0 + i1 (k)R1 (17)
where i1 (k) is the current through the resistor R1 can be computed recur-
sively using (2).
4. In this case, the effects of both of the first RC elements in Figure 2 will
be included as follows
v(k) = V◦ (s(k)) + i(k)R0 + i1 (k)R1 + i2 (k)R2 (18)
14
where i2 (k) is the current through the resistor R2 can be computed recur-
sively using (3).
4.2
4.19
4.17
4.16
4.15
4.14
Ideal
R-int
4.13
1RC
2RC
4.12
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (s)
Figure 10: Reduced order ECMs. Simulated terminal voltage for four dif-
ferent reduced order ECMs in Example 3.
15
plot(T,V1,'LineWidth',2)
% (2) R-int mode1
Batt.R0 = .2;
[V2] = battSIM(I, Batt, delta);
plot(T,V2,'LineWidth',2)
% (3) 1RC model
Batt.ModelID = 3;
[V3] = battSIM(I, Batt, delta);
plot(T,V3,'LineWidth',2)
% (4) 2RC model
Batt.ModelID = 4;
[V4] = battSIM(I, Batt, delta);
plot(T,V4,'LineWidth',2)
16
Figure 11 shows a simulated hysteresis behaviour in a battery based on the
hysteresis model (19). In Figure 11(a), a battery was excited by two different
current profiles, Profile A and Profile B, and the resulting hysteresis voltage
is shown. Figure 11(b) shows the expected hysteresis when the profiles were
switched in time.
It shows the non-linear relationship and the memory effect of hysteresis.
In Figure 11(b), the same current profile, with different time order, is used to
simulate hysteresis. The resulting hysteresis voltage is found to be different
from the one shown in Figure 11(a). This simulation explains the non-linear
and convoluted nature of the hysteresis effect in batteries.
0 0
-50 -50
0 10 20 30 40 50 60 0 10 20 30 40 50 60
1 1
0.5 0.5
0 0
-0.5 -0.5
-1 -1
0 10 20 30 40 50 60 0 10 20 30 40 50 60
(a) (b)
Figure 11: Hysteresis voltage for two different current profiles. The
magnitude of the hysteresis voltage is simulated and do not represent actual
values in typical batteries.
To summarize, the more components the model has the more accurate it
becomes. However, increased model complexity implies increased difficulty, in
terms of required data and computational complexity, in identifying the model
parameters. Also, certain type of data is needed to make some model parameters
observable; this will be further illustrated later. In practical battery manage-
ment systems, various ECM approximations are used. These approximations
are generally referred as reduced order models. Some important reduced order
models are discussed in the next three subsections.
17
self correcting model consists of the following process equation
s(k + 1) 1 0 0 0 s(k)
i1 (k + 1) 0 α1 0 0 i1 (k)
i2 (k + 1) = 0 0 α2
0 i2 (k)
h(k + 1) 0 0 0 Ah (k) h(k)
Ac 0
1 − α1 0 i(k)
+1 − α2
(20)
0 sgn(i(k))
0 Ah (k) − 1
and the following measurement equation
v(k) = Vo (s(k)) + h(k) + i1 (k)R1 + i(k)R0 (21)
where Ac = i k ∆k
Q and Ah (k) = exp − ηγiQk ∆k .
Given voltage measurements v(k), the enhance self-correcting model can be
used to estimate the unknown quantities s(k), i1 (k), i2 (k) and h(k) assuming
that the model parameters α1 , α2 , Ac and Ah (k) are known. When the model
parameters are not known, advanced estimation techniques, such as the expec-
tation maximization algorithm, can be used to estimate them.
Rint i(k)
+
+
EMF = Vo (s(k)) v(k)
−
−
Figure 12, the the voltage across the battery terminals can now be written as
v(k) = Vo (s(k)) + i(k)Rint (22)
where i(k) is the current through the battery. It must be noted that the DC
equivalent circuit model reduces to the R-int model when the the current i(k)
remains constant for long enough time while the hysteresis effect is ignored. One
the capacitors are saturated, one can write
Rint = R0 + R1 + R2 (23)
18
The R-int battery model is widely studied and adopted in BMS literature for its
simplicity. In this book, various aspects of battery management will be discussed
based on R-int with the understanding that the discussion can be generalized
for ECMs that include both hysteresis and relaxation effects.
4 Battery Power
The DC equivalent circuit model can be used to develop an expression of the
available power in a battery. In this section, R-int reduced order model is
considered for the derivations. Deriving an expression for the general DC-ECM
is left as an exercise. The power of a battery at time k can be expressed using
the following equation
where P (k) represents the power at time k. When i(k) is positive, the computed
power denotes the input power to the battery and when i(k) is negative the
computed power denotes the output power.
Based on the R-int model, one can write
Using the expression for instantaneous power in (26), the maximum allowable
power of a battery during charging can be written as follows
Vmax − Vo (s(k))
PIn,max (k) = Vmax (27)
R0
19
where Vmax = OCVmax is the maximum voltage allowed across the battery
terminals. Similarly, the maximum available power during discharging can be
written as
Vmin − Vo (s(k))
POut,max (k) = Vmin (28)
R0
where Vmin = OCVmin is the minimum voltage allowed across the battery termi-
nals. One can notice that Vo (s(k)) > Vmin . Hence, maximum discharge power
at a given time k can be written as −POut,max (k).
Example 4.
Consider the battery in Example 2.
1. What will be the open circuit voltage when the SOC of the battery
is 60%?
2. Assuming the battery internal impedance of R0 = 0.2 Ω calculate
the available peak-power in the battery?
20
3. The new SOC of the battery can be computed as follows:
- The initial SOC was s = 0.6
- The amount of Coulombs removed by the load is 0.3 × 1 = 0.3 Ah.
- Removed Coulombs as a ratio of battery capacity is 0.3/1.2 = 0.25
- New SOC is 0.6 − 0.25 = 0.35
The scaled version of the new SOC is
By substituting in (28)
3.78 − 3.22
POut,max = 3.22 ≈ 12.68 W
0.2
5 Battery Capacity
Battery capacity is measured in Ampere hours (Ah), i.e., a battery of x Ah in
capacity can provide a load current of x A for one hour. This is only possible
in theory. In practice, a battery of strictly x Ah in Capacity cannot provide
x A of load current for one hour due to the presence of internal resistance. In
this section, we will discuss various ways to define battery capacity for practical
applications.
Let us refer to the R-int equivalent circuit model shown in Figure 12 to
understand more about the practical aspects of battery capacity. As indicated
by the OCV-SOC curve in in Figure 7, the EMF voltage of the battery reaches
to OCVmax when the battery is fully charged. As charge is taken away from
the battery, the EMF voltage drops reaching OCVmin when the battery is fully
empty. The change of EMF is not linear against the state of charge of the
battery. It is also important to note that the operational region of the battery
is between OCVmin and OCVmax , i.e., the battery cannot be charged above
OCVmax and neither can it be discharged below OCVmin . Charging a battery
21
above OCVmax may cause thermal runaway – an irreversible process that trig-
gers meltdown and fire. Discharging a battery below OCVmin may permanently
damage the battery. These two constraints are the focus of several battery man-
agement functionalities discussed throughout this book. The cut-off voltages
OCVmax and OCVmin are important factors to understand battery capacity.
The upper voltage threshold of the battery OCVmax serves as the charge
cut-off voltage, i.e., a. battery charger monitors the voltage v at the battery
terminal (see Figure 12) and terminates charging when v → OCVmax . It must
be noted that, due to the internal resistance R0 , the terminal voltage v will
reach OCVmax before the EMF voltage reaches it. In other words, due to
the internal resistance R0 , the battery charger must be switched off before the
battery is completely full (which happens only when EMF reaches OCVmax ).
In order to fully charge a battery, typical Li-ion battery chargers switch to
constant-voltage mode in which the terminal voltage v is kept at a constant
OCVmax . The charging current will gradually decrease to zero and the battery
become fully charged. Figure 13 shows how the voltage, current and SOC change
during constant-current constant-voltage (CCCV) charging. Most practical Li-
ion battery chargers employ CCCV topology.
The lower voltage threshold of the battery OCVmin serves as the discharge
cut-off voltage, i.e., a battery management system (or protection circuit of a
battery) monitors the voltage v at the battery terminal (see Figure 12) and
disconnects the load when v → OCVmin . Similar to before, the internal re-
sistance R0 causes the terminal voltage v to reach OCVmin before the EMF
voltage reaches it, i.e., the battery needs to be shut down before the battery
is completely empty. In other words, the available Coulombs of a battery de-
pends on the voltage drop caused by the current and the internal resistance R0 .
Due to this, different definitions of capacity are introduced in the next three
subsections.
1.5 1 4.25
Current
SOC 0.9
4.2
0.8
4.15
1 0.7
0.6 4.1
0.5 4.05
0.5 0.4
4
0.3
3.95
0.2
0 0.1 3.9
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
(a) (b)
22
Total Capacity
4.2
4.1
Voltage drop
4
3.9
3.8
3.7
3.6
3.5
Discharge Threshold
3.4
Discharge Capacity
3.3
0 20 40 60 80 100
State of charge (%)
23
5.3 Rated Capacity
Rated capacity is the manufacturer specified discharge capacity of the battery.
As the battery ages, the rated capacity becomes less and less accurate repre-
sentation of the true discharge capacity of the battery. The rated capacity is
accompanied by a discharge rate, e.g., 2 Ah at C-rate, where C-rate is a popular
way of specifying the load current in terms of battery capacity C.
Example 5.
A battery of 10 Ah capacity is discharged at C/10 rate. How long will
it take to completely discharge the battery?
Example 6.
Figure 15 shows the required voltage drop (of 0.05 ∗ 2 = 0.1 V) during charg-
ing and discharging of the battery. The battery needs to be shut-off when the
voltage drop hits the thresholds: OCVmax during charging and OCVmin during
discharging and the corresponding SOC values form the required SOC range.
24
Figure 15: Custom battery design.
(a) According to a visual inspection in Figure 15, the SOC range is approxi-
mately [5%, 85%].
(b) Hence, the effective capacity of the battery is 80% of the true capacity, i.e.,
1.6 Ah.
(c) The battery, according to the above design, can be charged from “empty”
to “full” at a constant rate of 2 A. Hence, the charging time is
1.6 Ah
Tc = = 0.8 hr = 48 min.
2A
In example 6, the effective capacity is computed approximately by graph-
ically drawing the voltage drop along with the OCV-SOC curve. Given the
OCV-SOC parameters, the effective capacity can be precisely computed for
given requirements.
Example 7.
Figure 16 shows the required voltage drop (of 0.05 ∗ 4 = 0.2 V) during charg-
ing and discharging of the battery. The corresponding SOC values from the
required SOC range.
(a) According to a visual inspection in Figure 16, the SOC range is approxi-
mately [6%, 71%].
(b) Hence, the effective capacity of the battery is 65% of the true capacity, i.e.,
1.3 Ah.
(c) The battery can be charged using a constant current of 2 A. Hence, the
25
Figure 16: Custom battery design.
charging time is
1.3 Ah
Tc = = 0.325 hr = 19.5 min.
4A
6 State of Health
The state of health (SOH) of the battery is defined in terms of power fade
(PF) and capacity fade (CF). In this section, formal definitions of PF and CF
is defined first. Then, approaches to define SOH based on PF and CF are
discussed.
Due to SEI growth and other internal chemical reactions the battery impedance
increases over time. When the impedance of the battery increases, the output
power decreases; this phenomenon is known as the power fade. Power fade is
formally defined as
P (k)
PF = 1 − 100 % (32)
P (0)
where the available power at time k is defined in (26). Here, the time index k
indicates the elapse of life-cycle event, such as time and charge-discharge cycle;
it is assumed that k = 0 denotes the very initial cycle, e.g., brand new battery.
For accurate results, the power P (k) must be computed at the same temperature
and SOC.
As the battery ages, an increasing portion of its composition loses its ability
to store energy resulting in reduced battery capacity over time. It must be noted
that the battery capacity fade starts from the time the battery is manufactures.
Various factors such as deep discharge, full charge, and extreme temperature
conditions aggravate the capacity fade process. The capacity fade is formally
26
defined as
Q(k)
CF = 1− 100 % (33)
Q(0)
where Q(0) is the initial capacity of the battery and Q(k) is the capacity at time
k; similar to before, time k could be either cycle number or a calendar time unit.
Even though battery capacity doesn’t fluctuate as wide as the Ohmic resistance,
small changes in capacity may occur against temperature. Hence, capacity fade
must be computed at the same temperature.
In practice, the exact values of the resistance R0 (k) and capacity Q(k) of
the battery at time k are not known — they need to be estimated. Hence, the
PF can CF equations need to be rewritten as
!
P̂ (k)
PF = 1 − 100 % (34)
P (0)
!
Q̂(k)
CF = 1 − 100 % (35)
Q(0)
where P̂ (k) and Q̂(k) are the estimated values of the power and capacity, re-
spectively, at time k computed for a temperature.
The PF and CF measures can be unified into a single measure of SOH in
various ways. Four such SOH definitions are:
1. SOH = PF
2. SOH = CF
3. SOH = 100 − max {PF, CF}
4. SOH = 100 − min {PF, CF}
The first definition above gives more priority to available power whereas the
second approach prioritizes battery capacity. The third and fourth definitions
of the SOH are the most strictest and most relaxed, respectively.
All SOH measures introduced so far need to be computed based on the as-
sumption that initial values, i.e., P (0) and Q(0), are known. The implication
of this assumption is a significant limiting factor in present day battery man-
agement systems. It remains challenging to evaluate the SOH of an arbitrary
battery; such ability will pave the way for safe, efficient, and reliable approaches
to reuse batteries in various second life applications.
7 Battery Packs
Battery packs are formed by connecting several battery cells in parallel and/or
in series according to the power and capacity requirements. When identical
battery cells are connected in series, the voltage across the terminal increases
27
E R0 E R0 E R0 E R0
−+ −+ −+ −+
Veq
−+ Req
R0 R0 R0 R0 Req
+ + + + +
E− E− E− E− E−
proportional to the number of cells whereas as the battery capacity remains the
same. Figure 17 shows series connection of four identical battery cells. Here,
the voltage, internal resistance, and the capacity of the resulting pack are
When battery cells are connected in parallel, the voltage across each cell
in the pack is maintained at the same level by the natural flow of electrons.
When the cells are connected in series, the voltage across each cell in the pack
may not remain the same due to various factors. This phenomenon is known as
28
cell imbalance which may render the battery pack unusable over time. A latter
chapter motivates the need to balance a battery pack and discusses various ways
of cell balancing.
8 Battery Simulator
Based on the DC ECM discussed in this section, the following MATLAB codes
can be used to simulate the voltage and current across a battery. Example 3
shows a use case of the following battery simulator.
function [V, SOC, Vo] = battSIM(I, Batt, Delta)
%% Reading battery ECM parameters
Kbatt = Batt.Kbatt;
Cbatt = Batt.Cbatt ;
K0 = Kbatt(1); K1 = Kbatt(2); K2 = Kbatt(3);
K3 = Kbatt(4); K4 = Kbatt(5); K5 = Kbatt(6);
K6 = Kbatt(7); K7 = Kbatt(8);
R0 = Batt.R0; R1 = Batt.R1; R2 = Batt.R2;
C1 = Batt.C1; C2 = Batt.C2;
ModelID = Batt.ModelID;
E = Batt.SOCsf; % scaling factor
alpha1=exp(-(Delta/(R1*C1)));
alpha2=exp(-(Delta/(R2*C2)));
%% Hysteresis model
h = 0;
%% Determination of SOC (Coulomb counting)
SOC=zeros(length(I),1); SOC(1)=.5;
for k=2:length(I)
SOC(k)= SOC(k-1)+(1/(3600*Cbatt))...
*I(k)*Delta;
if SOC(k) < 0
error('Battery is Empty!!')
elseif SOC(k) > 1
error('Battery is Full!!')
end
end
%% Determination of OCV
zs = (1 - 2*E)*SOC + E;
Vo = K0+K1./zs + K2./(zs.^2) + ...
K3./(zs.^3)+K4./(zs.^4) + ...
K5*zs + K6*log(zs)+ K7*log(1-zs);
%% Determine current through R1 and R2
x1=zeros(length(I),1);
x2=zeros(length(I),1);
for k=1:length(I)
x1(k+1)=alpha1*x1(k)+(1-alpha1)*I(k);
29
x2(k+1)=alpha2*x2(k)+(1-alpha2)*I(k);
end
i1=zeros(length(I),1); i2=zeros(length(I),1);
for k=1:length(I)
i1(k)=x1(k+1); i2(k)=x2(k+1);
end
%% Determination of terminal voltage
V=zeros(length(I),1);
switch ModelID
case 1
V= I*R0;
case 2
V= I*R0+Vo+h;
case 3
V= I*R0+i1*R1+Vo+h;
case 4
V= I*R0+i1*R1+i2*R2+Vo+h;
end
end
9 Summary
The goal of equivalent circuit model representation of a battery is to have the
ability to represent important states of the battery, such as the state of charge,
available power, and state of health, in terms of non-invasively and continuously
measurable quantities. The electrical equivalent circuit model (ECM) consists
of the following elements:
• Open circuit voltage model. The open circuit voltage of a battery has a
monotonous and non-linear relationship with the state of charge — as the
state of charge increases, the OCV increases and vice versa. The OCV-
SOC relationship is unique to each battery chemistry, size, and physical
shape. The non-linear OCV-SOC relationship is required for battery man-
agement functionalities such as SOC estimation. For a given battery cell,
the parameters of the OCV-SOC relationship is estimated in laborato-
ries. Detailed explanation of OCV parameter estimation (using the least
squares method) is reserved for a separate chapter.
• Series resistance. The series resistance of a battery changes with temper-
ature and age; it also serves as a measure of battery age. Hence, accurate
estimation of the series resistance is important for effective battery man-
agement.
• Relaxation effect. The relaxation effect is due to the response of a battery
due to that of a capacitance along with the internal resistance.
30
• Hysteresis effect. The memory effect of the battery response is defined as
hysteresis. Hysteresis modelling and its parameter identification remains
a challenging research problem. Latter chapters will employ several tech-
niques to account for the effect of hysteresis when estimating other battery
parameters.
References
[1] M. S. Ahmed, S. A. Raihan, and B. Balasingam, “A scaling approach for
improved state of charge representation in rechargeable batteries,” Applied
Energy, vol. 267, p. 114880, 2020.
31