image thumbnail

Automotive Electrical System Simulation and Control

by

 

28 Oct 2009 (Updated )

A conventional vehicle electrical system model with alternator, battery, loads, and idle control.

ssc_lead_acid_battery_80Ah_ini.m
% Initialization file for demo ssc_lead_acid_battery.mdl. Demo based on
% Jackey, R. "A Simple, Effective Lead-Acid Battery Modeling Process for
% Electrical System Component Selection",  SAE World Congress & Exhibition,
% April 2007, ref. 2007-01-0778
%
% Copyright 2008-2009 The MathWorks, Inc.

%% Battery Model Parameters - 80Ah
NominalCap = 80; %(Ah)

%% Battery Block Initial Conditions
% Initial State of Charge (% of full charge)
% Initial Electrolyte Temperature (C, typically same as ambient temp)
SOC_init = 0.8;
theta_init = 25;

%% Battery Block Thermal Parameters
Ctheta = 400; %(J/C) Thermal Capacitance
Area = 0.01; % (m^2) Surface area of battery exposed to air
Rtheta = 20;  %(W/m^2/K) Convective heat transfer coefficient

%% Battery Block Capacity Parameters
% Charge/discharge cycles at ranges of current/temp
Kc = 1.2; %()
Costar = 1.8e+005*80/50; %(As)
Kt_Temps = [25 40 60 75]; % Temperature breakpoints for Kt LUT
Kt = [0.80,1.10,1.20,1.12;]; %() LUT output values
delta = 0.73; %()
Istar = 15; %(A) Nominal Current (=cap/disch_t)
theta_f = -40; %(C) Electrolyte Freezing Temp

%% Battery Block Parasitic Branch Parameters
% End of charge cycle at ranges of current/temp
Ep = 1.95; %(V) Parasitic emf
Gpo = 2.0e-011; %(s)
Vpo = 0.12; %(V)
Ap = 2.0; %()
Taup = 3; % (s)

%% Battery Block Main Branch Parameters
Emo = 2.18; % (V) [max o.c. volts per cell]
Ke = 0.0006; %(V/C)
Ao = -0.6; % ()
Roo = 0.0030; % (Ohm)
R10 = 0.0010; %(Ohm)
A21 = -10.0; %()
A22 = -8.75; %()
R20 = 0.08; %(Ohm)
Tau1 = 100; %(s)

%% Battery Block Number Of Cells Parameters
ns = 6; %() Number of cells in series in each parallel branch

%% Compute initial extracted charge
Qe_init = (1-SOC_init)*Kc*Costar*interp1([theta_f Kt_Temps],[0 Kt],theta_init,'spline');

Contact us