clear all
clc
close all
% Define Cell Parameters
Q = 2*3600; %2Ah capacity
Ct = 2700; %Double layer capacitance
Rt = 0.011; %SEI layer Charge transfer resistance
Rs = 0.008; %Cell internal resistance
Rd = 1e6; %Self-discharge resistor
SOC_0=0.6; %Initial SOC
SOC_1=0.7;
%OCV Look-Up Table
V=[2.25 3.2 3.25 3.25 3.3 3.3 3.3 3.35 3.35 3.35 3.75];
SOC=[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
[t,y]=sim('Shunting');
figure
subplot(211);
plot(CellVoltage1.time,CellVoltage1.signals.values,'r','linewi',2)
hold on
plot(CellVoltage2.time,CellVoltage2.signals.values,'b','linewi',2)
hold on
plot(CellVoltage3.time,CellVoltage3.signals.values,'g--','linewi',2)
%title('Individual Cell Voltage');
axis([0 4500 3.24 3.36])
set(gca,'XTick',0:500:4500);
set(gca,'YTick',3.24:0.02:3.36);
xlabel('Time (s)');
ylabel('Cell Voltage (V)');
legend('Cell 1','Cell 2','Cell 3');
subplot(212)
plot(PackVoltage.time,PackVoltage.signals.values,'b','linewi',2)
%title('Total Battery Pack Voltage ');
xlabel('Time (s)');
ylabel('Pack Voltage (V)');
box on
hold off
评论0