#3 Mathematical Model of a Battery
Aim: To create the mathematical model for a lead acid battery and compare the results.
Introduction:
The secondary battery is such a battery where electrical energy can be stored as chemical energy and this chemical energy is then converted to electrical energy as and when required. The conversion of electrical energy into chemical energy by applying external electrical source is known as charging of battery. Whereas conversion of chemical energy into electrical energy for supplying the external load is known as discharging of secondary battery.
During charging of battery, current is passed through it which causes some chemical changes inside the battery. This chemical changes absorb energy during their formation.
When the battery is connected to the external load, the chemical changes take place in reverse direction, during which the absorbed energy is released as electrical energy and supplied to the load.
Now we will try to understand the principle working of lead acid battery.
The main active materials required to construct a lead acid battery are
- Lead peroxide (PbO2).
- Sponge lead (Pb)
- Dilute sulfuric acid (H2SO4).
Lead Peroxide (PbO2)
The positive plate is made of lead peroxide. This is dark brown, hard and brittle substance.
Sponge Lead (Pb)
The negative plate is made of pure lead in soft sponge condition.
Dilute Sulfuric Acid (H2SO4)
Dilute sulfuric acid used for lead acid battery has a ratio of water : acid = 3:1.
The lead acid storage battery is formed by dipping lead peroxide plate and sponge lead plate in dilute sulfuric acid. A load is connected externally between these plates. In diluted sulfuric acid the molecules of the acid split into positive hydrogen ions (H+) and negative sulfate ions (SO4 − −). The hydrogen ions when reach at PbO2 plate, they receive electrons from it and become hydrogen atom which again attack PbO2 and form PbO and H2O (water). This PbO reacts with H2 SO4 and forms PbSO4 and H2O (water).

SO4 − − ions are moving freely in the solution so some of them will reach to pure Pb plate where they give their extra electrons and become radical SO4. As the radical SO4 cannot exist alone it will attack Pb and will form PbSO4.
As H+ ions take electrons from PbO2 plate and SO4 − − ions give electrons to Pb plate, there would be an inequality of electrons between these two plates. Hence there would be a flow of current through the external load between these plates for balancing this inequality of electrons. This process is called discharging of lead acid battery.
The lead sulfate (PbSO4) is whitish in color. During discharging,
- Both of the plates are covered with PbSO4.
- Specific gravity of sulfuric acid solution falls due to formation of water during reaction at PbO2 plate.
- As a result, the rate of reaction falls which implies the potential difference between the plates decreases during discharging process.
Now we will disconnect the load and connect PbSO4 covered with PbO2 plate with positive terminal of an external DC source and PbO2 covered with Pb plate with negative terminal of that DC source. During discharging, the density of sulfuric acid falls but there still sulfuric acid exists in the solution. This sulfuric acid also remains as H+ and SO4− − ions in the solution. Hydrogen ions (cation) being positively charged, move to the electrode (cathode) connected with negative terminal of the DC source. Here each H+ ion takes one electron from that and becomes hydrogen atom. These hydrogen atoms then attack PbSO4 and form lead and sulfuric acid.

SO4− − ions (anions) move towards the electrode (anode) connected with positive terminal of DC source where they will give up their extra electrons and become radical SO4. This radical SO4 cannot exist alone hence reacts with PbSO4 of anode and forms lead peroxide (PbO2) and sulfuric acid (H2SO4).

Hence by charging the lead acid storage battery cell,
- Lead sulfate anode gets converted into lead peroxide.
- Lead sulfate of cathode is converted to pure lead.
- Terminal; potential of the cell increases.
- Specific gravity of sulfuric acid increases.
Modelling of lead acid battery:
clear all
close all
clc
%defining time steps in variable T
% total 10,001 time steps with each time step of 50 seconds
T = (0:50:500000);
CR = zeros(1, length(T));
DOD = zeros(1, length(T));
V = zeros(1, length(T));
CS = zeros(1, length(T));
Cp = zeros(1, length(T));
E = zeros(1, length(T));
I = [10,50,100,150,200]; % CURRENT IN AMPERES
nc = 1; % number of cells
C = 50; % 50 Ah
k = 1.045; % .045 represents loss of capacity due to discharge
dT = (T(2) - T (1))* ones(1, length(T)); % timestep
R_internal = (0.06/C)*nc;
E(1) = 2.15; %open circuit voltage
%V(1) = nc * (2.15 - I(i) * R_internal);
for i = 1:length(I)
V(1) = nc * (2.15 - I(i) * R_internal);
%Define voltage equation for OCV
for n = 2:length(T)
dT(n) = T(n)-T(1);
Cp = (I(i)^k)*dT(n); %Peukert_capacity
CR(n) = (CR(n-1) + (dT(n) * (I(i)^k))/3600);
DOD(n) = (CR(n)) / Cp;
E(n) = 2.15 - DOD(n) * ( 2.15 - 1.75);
V(n) = E(n) - I(i)*R_internal;
if DOD(n) > 0.99
E(n) = 0;
V(n) = 0;
end
if DOD(n) > 1
DOD(n) = 1;
end
if E(n)>0
CS(n) = CS(n-1) + ((I(i)*dT(n))/3600);
else
CS(n)= CS(n-1);
end
end
figure(4);hold on
plot (DOD,V,'LineWidth',3)
ylabel('Voltage (V)','FontSize',18)
xlabel('DOD','FontSize',18)
set(gca,'FontSize',12)
end
plot (DOD, E,'LineWidth',3)
legend('I = 10 A C/5','I = 50 A 1C','I = 100 A 2C','I = 150 A 3C','I = 200 A 4C','Open Circuit Voltage (E)','FontSize',18)
figure(1)
plot( DOD, E,'LineWidth',3 )
hold on
plot( DOD , V,'LineWidth',3 )
legend('E (OCV)', 'V(Voltage)')
ylabel('Voltage')
xlabel('DOD')
set(gca,'FontSize',12)
figure(2)
plot( CR , E ,'LineWidth',3)
hold on
plot( CR , V ,'LineWidth',3)
legend('E (OCV)', 'V(Voltage)')
ylabel('Voltage')
xlabel('CR')
set(gca,'FontSize',12)
figure(3)
plot( CS , E,'LineWidth',3 )
hold on
plot( CS , V ,'LineWidth',3)
legend('E (OCV)', 'V(Voltage)')
ylabel('Voltage')
xlabel('CS')
set(gca,'FontSize',12)
Explanation of the MATLAb Code:
Definining the time Step in variable T
Total 10,001 time steps with each time step of 50 seconds
Defining other required variables
Charge Received(CR),Charge Supplied(CS),Puekerts Capacity(Cp),Voltage(V),OCV(E), R_internal,nc,K and dT
To discharge at different rates we are giving the multiple current values (10, 50, 100, 150, 200)A for (C/5, 1C, 2C, 3C and 4C) respectively.
Firsy for loop is used to calculate the ocv and second for loop is used to calculate CR,CS,Cpand voltage and the loop runs till the defined time step and If condition is used to run the discharge upto 1. The obtained results are plotted.
Results:
Open circuit voltage (ocv) and battery discharge voltage Vs Depth of discharge (DOD)

From the plot we can observe the decrease in the voltage of the battery as the discharge process starts and the depth of dishcrage is increasing and reaches the value 1 which is the full state of discharge(In practical cases we will normally discharge a battery upto DOD less than 1 ). The difference between ocv and battery volatage is due to the internal resistance of the battery.
Open circuit voltage (ocv) and battery discharge voltage Vs charge received (CR)

From the plot, we can observe the charge removed from the battery is higher than the charge supplied which is shown in the plot below,

Discharge characteristics of the battery at different rate

This plot shows the battery voltage decreases as the discharge process proceeds and the when the discharge rate increases the operating voltage range of the battery is low.
At C/5 rate the discharge, voltage starts around 2.1V and ends around 1.9V but in the case of 4C discharge rate, voltage starts around 1.9V and ends around 1.7V.
Your Assets
| Filname | Size | Action |
|---|---|---|
| Mathema…attery.m | 2.01 KB |