Professional Documents
Culture Documents
Power Battery Aging PDF
Power Battery Aging PDF
Design Description
user
power_battery_aging: Design Description
by user
i
Table of Contents
ii
Chapter 1. Model Version
Version: 1.37
1
Chapter 2. Root System
Figure 2.1. power_battery_aging
<Voltage (V)>
<Current (A)>
<SOC (%)>
<Cell Temperature (oC)>
<Age (Equivalent Full Cycles)>
<Maximum Capacity (Ah)>
Scope
<SOC (%)>
SOC
Ambient
temperature (deg. C)
Deph-of-discharge (DOD)
Ta
DOD*
m + Current
Discharge current
-
s
Idis*
_
+
Charge current
Battery
Icharge*
Cycles generator
Continuous 12.8 V, 40 Ah, Lithium-Ion (LiFePO4) Battery Aging Model (1000 h Simulation) ?
Description
Blocks
Parameters
2
Chapter 2. Root System
Parameter Value
Constant value 25
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Battery" (SubSystem)
Table 2.2. "Battery" Parameters
Parameter Value
Type Lithium-Ion
Simulate temperature effects on
Use a preset battery 12.8V 40Ah (LiFeMgPO4)
Simulate aging effects on
Nominal voltage (V) 12.6
Rated capacity (Ah) 40
Initial state-of-charge (%) 100
Battery response time (s) 90
Determined from the nominal parameters of the battery off
Maximum capacity (Ah) 40
Cut-off Voltage (V) 10.5
Fully charged voltage (V) 13.8
Nominal discharge current (A) 20
Internal resistance (Ohms) 0.015
Capacity (Ah) at nominal voltage 30.14
Exponential zone [Voltage (V), Capacity (Ah)] [13.1 0.5]
Discharge current [i1, i2, i3,...] (A) [0.15 1.3 3.25]
Units Ampere-hour
3
Chapter 2. Root System
Parameter Value
Initial cell temperature (deg. C) 25
Nominal ambient temperature T1 (deg. C) 20
Second ambient temperature T2 (deg. C) 0
Maximum capacity (Ah) 36
Initial discharge voltage (V) 13
Voltage at 90% maximum capacity (V) 11.7
Exponential zone [Voltage (V), Capacity (Ah)] [12.67 4]
Thermal resistance, cell-to-ambient (deg. C/W) 0.6411
Thermal time constant, cell-to-ambient (s) 4880
Heat loss difference [charge vs. discharge] (W) 0
Initial battery age (Equivalent full cycles) 0
Aging model sampling time (s) 30
Ambient temperature Ta1 (deg. C) 23
Capacity at EOL (End Of Life) (Ah) 40*0.9
Internal resistance at EOL (Ohms) 0.0126*1.2
Charge current (nominal, maximum) [Ic (A), Icmax (A)] [20, 26]
Discharge current (nominal, maximum) [Id (A), Idmax (A)] [20, 80]
Cycle life at 100 % DOD, Ic and Id (Cycles) 1500
Cycle life at 25 % DOD, Ic and Id (Cycles) 10445
Cycle life at 100 % DOD, Ic and Idmax (Cycles) 1017
Cycle life at 100 % DOD, Icmax and Id (Cycles) 1460
Ambient temperature Ta2 (deg. C) 45
Cycle life at 100 % DOD, Ic and Id (Cycles) 982
Parameter Value
Output signa Voltage (V),Current (A),SOC (%),Cell Temperature (oC),Age (Equivalent Full Cycles),
ls Maximum Capacity (Ah)
Output as vi off
rtual bus
Age (Equivalent Full Cycles)
Maximum Capacity (Ah)
Ambient Temperature (oC)
Cell Temperature (oC)
SOC (%)
Current (A)
4
Chapter 2. Root System
Parameter Value
Voltage (V)
Output Hierarchy:
1. 1. <Voltage (V)>
2. <Current (A)>
3. <SOC (%)>
4. <Cell Temperature (oC)>
5. <Age (Equivalent Full Cycles)>
6. <Maximum Capacity (Ah)>
Bus Selector1
Parameter Value
Output signa SOC (%)
ls
Output as vi off
rtual bus
Age (Equivalent Full Cycles)
Maximum Capacity (Ah)
Ambient Temperature (oC)
Cell Temperature (oC)
SOC (%)
Current (A)
Voltage (V)
Output Hierarchy:
1. 1. <SOC (%)>
Bus Selector2
Parameter Value
Constant value 20
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
5
Chapter 2. Root System
Parameter Value
Sample time inf
Frame period inf
Parameter Value
Initialize on
Source type AC
Initial amplitude (A) 0
Initial phase (deg) 0
Initial frequency (Hz) 0
Measurements None
Parameter Value
Time (s) [0 50 100]*14400
Amplitude [20 80 20]
Sample time 0
Parameter Value
Time (s) [0 150 200]*14400
Amplitude [1 4 1]*20
Sample time 0
6
Chapter 2. Root System
"powergui" (SubSystem)
Table 2.9. "powergui" Parameters
Parameter Value
Simulation type Continuous
Max iterations 50
Frequency (Hz) 0
Base power (VA) 100e6
PQ tolerance (pu) 1e-4
Voltage units kV
Power units MW
Disable Simscape Power Systems ST warnings off
Display Simscape Power Systems ST compilation messages off
Disable ideal switching on
Store switching topologies off
Start simulation with initial electrical states from blocks
Solver tolerance 0
Maximum number of iterations 15
Continue Simulation if maximum number of iterations is reached off
7
Chapter 3. Subsystems
N1
1 Nmax
Epsi 1
Nmax
Nmaxprev Epsi
2 u(14) DOD1
Datain
u(15) DOD2
EpsiEq
u(16) DOD3
u(17) c
Epsiprev
EpsiEqprev Age 2
Age
Ageprev
Blocks
Parameters
"Age" (Outport)
Parameter Value
Port number 2
Icon display Port number
Minimum []
8
Chapter 3. Subsystems
Parameter Value
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Constant" (Constant)
Parameter Value
Constant value Batt.N1
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant1" (Constant)
Parameter Value
Constant value Batt.Epsi0
9
Chapter 3. Subsystems
Parameter Value
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant2" (Constant)
Parameter Value
Constant value Batt.Neq0
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Datain" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
10
Chapter 3. Subsystems
"Epsi" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Fcn2" (Fcn)
Parameter Value
Expression u(14)
Sample time (-1 for inherited) -1
"Fcn3" (Fcn)
Parameter Value
Expression u(15)
11
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) -1
"Fcn4" (Fcn)
Parameter Value
Expression u(16)
Sample time (-1 for inherited) -1
"Fcn5" (Fcn)
Parameter Value
Expression u(17)
Sample time (-1 for inherited) -1
Property Value
Update Method INHERITED
Sample Time
Support variable-s 1
ize arrays
Saturate on integ 1
er overflow
Treat these inherit Fixed-point
ed Simulink signal
types as fi objects
MATLAB Function Same as MATLAB Default
block fimath
Input fi math fimath(...
)
Description
12
Chapter 3. Subsystems
"Memory" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
13
Chapter 3. Subsystems
Parameter Value
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory1" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory2" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory3" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
14
Chapter 3. Subsystems
"Nmax" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Saturation" (Saturate)
Parameter Value
Upper limit inf
Lower limit 0.01
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Saturation1" (Saturate)
Parameter Value
Upper limit inf
Lower limit 0.01
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
15
Chapter 3. Subsystems
Parameter Value
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Saturation2" (Saturate)
Parameter Value
Upper limit inf
Lower limit 0.01
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Sum" (Sum)
Parameter Value
Icon shape round
List of signs |++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
16
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) -1
"Sum1" (Sum)
Parameter Value
Icon shape round
List of signs |++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
Aging Model
Figure 3.2. power_battery_aging/Battery/Model/Aging Model
dSOC_dT
1 ibat
ibatdAv
Ibatt SOC
ibatcAv
ndprev
nd
2 ncprev
nc
SOC ibattTdprev
ibattTd
ibattTcprev
ibattTc
ibatcAv1prev
ibatcAv1
ibatdAv1prev
ibatdAv1
ibatdAv2prev
ibatdAv2
IdAveprev
IdAve
IcAveprev
Demux IcAve
SOCdprev Mux Datain Nmax Nmax Epsi Epsi
SOCd Qout 2
DODdprev
DODd 4 Qin Qout
DODdn1prev
DODdn1 3 Tamb Dataout Datain Age 1 Qin
DODdn2prev
Rin Rout 3
DODdn2 Tamb Age Rout
DOD1prev Max. Number of Cycles Aging factor Capacity and Internal
DOD1
DOD2prev Calculation Block Calculation Block 5 Resistance Adjustment
DOD2
DOD3prev Rin Block
DOD3
cprev
c
Stateprev
State
DOD and average current calculation
Block
x(k-1) x(k)
17
Chapter 3. Subsystems
Blocks
Parameters
"Age" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Demux1" (Demux)
Parameter Value
Number of outputs 18
Display option none
Bus selection mode off
18
Chapter 3. Subsystems
Table 3.25. DOD and average current calculation Block Function Properties
Property Value
Update Method INHERITED
Sample Time
Support variable-s 1
ize arrays
Saturate on integ 1
er overflow
Treat these inherit Fixed-point
ed Simulink signal
types as fi objects
MATLAB Function Same as MATLAB Default
block fimath
Input fi math fimath(...
)
Description
Table 3.26. DOD and average current calculation Block Argument Summary
19
Chapter 3. Subsystems
20
Chapter 3. Subsystems
IcAve=IcAveprev;
if(s==0)
ibattTd=ibattTdprev+abs(ibat);
ibatdAv =ibattTd/nd;
IdAve = ibatdAv;
ibattTc=0;
nc=0;
ibatcAv=0;
else
ibattTd=0;
nd=0;
ibatdAv=0;
ibattTc=ibattTcprev+abs(ibat);
ibatcAv =ibattTc/nc;
IcAve=ibatcAv;
end
sprev = Stateprev;
c=cprev;
if (s==sprev)
DODdn2 = DODdn2prev;
DODdn1 = DODdn1prev;
DODd=DODdprev;
else
DODd = DOD;
c=cprev+1;
DODdn2 = DODdn1prev;
DODdn1 = DODdprev;
end
State=s;
ibatdAv2=ibatdAv2prev;
if(mod(c,2)==0)
ibatdAv2=IdAveprev;
end
DOD1=DOD1prev;
DOD2=DOD2prev;
DOD3=DOD3prev;
ibatcAv1=ibatcAv1prev;
ibatdAv1=ibatdAv1prev;
if(mod(c,2)>0)
DOD1=DODd;
DOD2=DODdn1;
DOD3=DODdn2;
ibatcAv1=IcAve;
ibatdAv1=ibatdAv2;
end
Table 3.27. DOD and average current calculation Block Supporting Functions
21
Chapter 3. Subsystems
"Ibatt" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Parameter Value
Initial condition Batt.Q
Inherit sample time off
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
22
Chapter 3. Subsystems
"Mux3" (Mux)
Parameter Value
Number of inputs 18
Display option none
"Qin" (Inport)
Parameter Value
Port number 4
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Qout" (Outport)
Parameter Value
Port number 2
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
23
Chapter 3. Subsystems
Parameter Value
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Rin" (Inport)
Parameter Value
Port number 5
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Rout" (Outport)
Parameter Value
Port number 3
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
24
Chapter 3. Subsystems
Parameter Value
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"SOC" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Tamb" (Inport)
Parameter Value
Port number 3
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Parameter Value
Sample time (-1 for inherited) Batt.Tsim
25
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) Batt.Tsim
1
u(2)-(u(2)-Batt.Qeol)*u(1) 1
Epsi Qout
u(3)+(Batt.Reol-u(3))*u(1)
2
Qin 2
Rout
3
Rin
Blocks
Parameters
"Epsi" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
26
Chapter 3. Subsystems
"Fcn1" (Fcn)
Parameter Value
Expression u(2)-(u(2)-Batt.Qeol)*u(1)
Sample time (-1 for inherited) -1
"Fcn2" (Fcn)
Parameter Value
Expression u(3)+(Batt.Reol-u(3))*u(1)
Sample time (-1 for inherited) -1
"Mux" (Mux)
Parameter Value
Number of inputs 3
Display option bar
"Qin" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
27
Chapter 3. Subsystems
"Qout" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Rin" (Inport)
Parameter Value
Port number 3
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
28
Chapter 3. Subsystems
"Rout" (Outport)
Parameter Value
Port number 2
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
Compare To Zero
Figure 3.4. power_battery_aging/Battery/Model/Compare To Zero
1
u 1
y
Compare
29
Chapter 3. Subsystems
Blocks
Parameters
"Compare" (RelationalOperator)
Parameter Value
Relational operator >
Require all inputs to have the same data type on
Output data type fixdt(0, 8)
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Integer rounding mode Nearest
"Constant" (Constant)
Parameter Value
Constant value 0
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propaga
tion
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"u" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
30
Chapter 3. Subsystems
Parameter Value
Minimum []
Maximum []
Data type Inherit: auto
"y" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
31
Chapter 3. Subsystems
Cycles generator
Figure 3.5. power_battery_aging/Cycles generator
1 SOC
Current
SOC
2 100-u(1) SOCmin
ibatt 1
DOD*
3 Idis
Idis*
4 Icharge
State
Icharge*
Stateprev
Blocks
Parameters
"Current" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
32
Chapter 3. Subsystems
Parameter Value
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"DOD*" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Fcn" (Fcn)
Parameter Value
Expression 100-u(1)
Sample time (-1 for inherited) -1
"Icharge*" (Inport)
Parameter Value
Port number 4
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
33
Chapter 3. Subsystems
Parameter Value
Data type Inherit: auto
"Idis*" (Inport)
Parameter Value
Port number 3
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Property Value
Update Method INHERITED
Sample Time
Support variable-s 1
ize arrays
Saturate on integ 1
er overflow
Treat these inherit Fixed-point
ed Simulink signal
types as fi objects
MATLAB Function Same as MATLAB Default
block fimath
Input fi math fimath(...
)
Description
34
Chapter 3. Subsystems
"Memory" (Memory)
Parameter Value
Initial condition 1
Inherit sample time off
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
Parameter Value
Rising slew rate 1000
Falling slew rate -1000
Sample time mode inherited
Initial condition 0
Treat as gain when linearizing on
35
Chapter 3. Subsystems
"Saturation" (Saturate)
Parameter Value
Upper limit 98
Lower limit 1
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"SOC" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
36
Chapter 3. Subsystems
E_dyn Charge
Figure 3.6. power_battery_aging/Battery/Model/E_dyn Charge
f(u) 1
Charge Lead-Acid
1
2
1 3 f(u)
4,
* Charge Li-Ion
f(u)
Charge NiCD
f(u)
Charge NiMH
Blocks
Parameters
"Charge Lead-Acid" (Fcn)
Parameter Value
Expression -u(3)*Batt.K*u(2)*(Batt.Q/(u(1)+Batt.Q*Batt.kc))
Sample time (-1 for inherited) -1
Parameter Value
Expression -u(3)*Batt.K*u(2)*u(4)/(u(1)+u(4)*Batt.kc)
Sample time (-1 for inherited) -1
37
Chapter 3. Subsystems
Parameter Value
Expression -u(3)*Batt.K*u(2)*(Batt.Q/(abs(u(1))+Batt.Q*Batt.kc))
Sample time (-1 for inherited) -1
Parameter Value
Expression -u(3)*Batt.K*u(2)*(Batt.Q/(abs(u(1))+Batt.Q*Batt.kc))
Sample time (-1 for inherited) -1
"Constant" (Constant)
Parameter Value
Constant value BatType
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant1" (Constant)
Parameter Value
Constant value BatType == 2
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
38
Chapter 3. Subsystems
Parameter Value
Output data type double
Lock output data type setting against changes by the fixed-point tools off
Sample time inf
Frame period inf
"Constant2" (Constant)
Parameter Value
Constant value BatType == 4
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type double
Lock output data type setting against changes by the fixed-point tools off
Sample time inf
Frame period inf
"Constant3" (Constant)
Parameter Value
Constant value BatType == 3
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type double
Lock output data type setting against changes by the fixed-point tools off
Sample time inf
Frame period inf
"Constant4" (Constant)
Parameter Value
Constant value BatType == 1
39
Chapter 3. Subsystems
Parameter Value
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type double
Lock output data type setting against changes by the fixed-point tools off
Sample time inf
Frame period inf
"In" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Parameter Value
Data port order One-based contiguous
Number of data ports 4
Data port indices (e.g. {1,[2,3]}) {1,2,3}
Data port for default case Last data port
Diagnostic for default case Error
Require all data port inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal r
ule
Lock output data type setting against changes by the fixed-point t off
ools
Integer rounding mode Floor
Saturate on integer overflow off
40
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) -1
Allow different data input sizes (Results in variable-size output si off
gnal)
"Out" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Product" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
41
Chapter 3. Subsystems
Parameter Value
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Zero
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Product1" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Zero
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Product2" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
42
Chapter 3. Subsystems
Parameter Value
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Zero
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Product3" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Zero
Saturate on integer overflow off
Sample time (-1 for inherited) -1
43
Chapter 3. Subsystems
EquivalentModel1
Figure 3.7. power_battery_aging/powergui/EquivalentModel1
u v,i
Sources Yout
Blocks
Parameters
"State-Space" (StateSpace)
Parameter Value
A S.A
B S.B
C S.C
D S.D
Initial conditions S.x0
State Name (e.g., 'position') ''
Exp
Figure 3.8. power_battery_aging/Battery/Model/Exp
1 Exp
1 2
1 1
i s 3
<0
*, 4
Li-Ion
2 Batt.A*exp(-Batt.B*u(1))
it
44
Chapter 3. Subsystems
Blocks
Parameters
"Abs" (Abs)
Parameter Value
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
"Add3" (Sum)
Parameter Value
Icon shape rectangular
List of signs +-
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
45
Chapter 3. Subsystems
Parameter Value
SimulinkmasksOperator_MP <
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on
"Constant" (Constant)
Parameter Value
Constant value BatType
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propaga
tion
Lock output data type setting against changes by the fixed-poi off
nt tools
Input and output to have equal Real World Value (RWV)
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
46
Chapter 3. Subsystems
"Divide" (Product)
Parameter Value
Number of inputs **
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Exp" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
47
Chapter 3. Subsystems
Parameter Value
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Gain1" (Gain)
Parameter Value
Gain Batt.B/3600
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Gain4" (Gain)
Parameter Value
Gain Batt.A
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
48
Chapter 3. Subsystems
Parameter Value
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"i" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Integrator2" (Integrator)
Parameter Value
External reset none
Initial condition source internal
Initial condition Batt.A*exp(-Batt.B*(1-SOC/100)*Batt.Q)
Limit output off
Upper saturation limit inf
Lower saturation limit -inf
Wrap state off
Wrapped state upper value pi
Wrapped state lower value -pi
Show saturation port off
Show state port off
Ignore limit and reset when linearizing off
Enable zero-crossing detection on
49
Chapter 3. Subsystems
Parameter Value
State Name (e.g., 'position') ''
"it" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Li-Ion" (Fcn)
Parameter Value
Expression Batt.A*exp(-Batt.B*u(1))
Sample time (-1 for inherited) -1
Parameter Value
Data port order One-based contiguous
Number of data ports 4
Data port indices (e.g. {1,[2,3]}) {1,2,3}
Data port for default case Last data port
Diagnostic for default case Error
Require all data port inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal r
ule
Lock output data type setting against changes by the fixed-point t off
ools
50
Chapter 3. Subsystems
Parameter Value
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
Allow different data input sizes (Results in variable-size output si off
gnal)
"Saturation" (Saturate)
Parameter Value
Upper limit Batt.Qmax*(1/Batt.lambda)
Lower limit -inf
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
2
Dataout
1 u(15)
Datain
u(6)
f(u) 1
u(5)
Nmax
2
Tamb
51
Chapter 3. Subsystems
Blocks
Parameters
"Datain" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Dataout" (Outport)
Parameter Value
Port number 2
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
52
Chapter 3. Subsystems
Parameter Value
Interpret vector parameters as 1-D off
"Fcn" (Fcn)
Parameter Value
Expression Batt.H*((u(1)/100)^(-Batt.zeta))*exp(-Batt.phi*((1/Batt.Tref)-(1/u(4))))*(u(2)^
(-Batt.gamma1))*(u(3)^(-Batt.gamma2))
Sample time (-1 for -1
inherited)
"Fcn2" (Fcn)
Parameter Value
Expression u(15)
Sample time (-1 for inherited) -1
"Fcn3" (Fcn)
Parameter Value
Expression u(6)
Sample time (-1 for inherited) -1
"Fcn4" (Fcn)
Parameter Value
Expression u(5)
Sample time (-1 for inherited) -1
53
Chapter 3. Subsystems
"Mux1" (Mux)
Parameter Value
Number of inputs 4
Display option bar
"Nmax" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Saturation" (Saturate)
Parameter Value
Upper limit inf
54
Chapter 3. Subsystems
Parameter Value
Lower limit 0.01
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Saturation1" (Saturate)
Parameter Value
Upper limit inf
Lower limit 0.01
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Saturation2" (Saturate)
Parameter Value
Upper limit inf
Lower limit 0.01
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
55
Chapter 3. Subsystems
Parameter Value
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Tamb" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Model
Figure 3.10. power_battery_aging/Battery/Current Measurement/Model
1 1
signal
in out
Blocks
Parameters
"in" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
56
Chapter 3. Subsystems
Parameter Value
Data type Inherit: auto
"out" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
57
Chapter 3. Subsystems
Model
Figure 3.11. power_battery_aging/Battery/Model
f(u)
[it_sat]
[Qc] up
u y
it_sat
lo
current2
1
Current (A) [T] f(u)
[i_filter] >0 1 [it_sat]
s
[Qc]
[it_sat] -Batt.C*u(1)
[T]
Ambient Temperature (oC)
[Rout] f(u)
2 f(u) [Q]
Ta
[i_filter]
Tamb
current El
T
1 i Plosses Ploss
Current (A)
[T] [T]
T Thermal Model
Power loss estimation
Tamb Qout
Maximum Capacity (Ah)
[Q] Qin
Rout [Rout] [Qc]
Rin
Blocks
Parameters
"Add" (Sum)
Parameter Value
Icon shape rectangular
List of signs -+
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
58
Chapter 3. Subsystems
Parameter Value
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Add2" (Sum)
Parameter Value
Icon shape rectangular
List of signs ++++++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Add3" (Sum)
Parameter Value
Icon shape rectangular
List of signs +++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
59
Chapter 3. Subsystems
Parameter Value
Saturate on integer overflow off
Sample time (-1 for inherited) -1
Parameter Value
Number of inputs 7
Display option bar
Data type Inherit: auto
Output as nonvirtual bus off
Override bus signal names from inputs on
Parameter Value
SimulinkmasksOperator_MP >
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on
Parameter Value
SimulinkmasksOperator_MP <
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on
"Constant" (Constant)
Parameter Value
Constant value Batt.E0
Interpret vector parameters as 1-D on
60
Chapter 3. Subsystems
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant1" (Constant)
Parameter Value
Constant value 2*Batt.E0
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant14" (Constant)
Parameter Value
Constant value Batt.R
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
61
Chapter 3. Subsystems
Parameter Value
Frame period inf
"Constant17" (Constant)
Parameter Value
Constant value 273.15
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant8" (Constant)
Parameter Value
Constant value 273.15
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"Constant9" (Constant)
Parameter Value
Constant value 0
62
Chapter 3. Subsystems
Parameter Value
Interpret vector parameters as 1-D on
Output minimum []
Output maximum []
Output data type Inherit: Inherit from 'Constant va
lue'
Lock output data type setting against changes by the fixed-poi off
nt tools
Sample time inf
Frame period inf
"current" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Parameter Value
Port number 1
Port name current
Is a bus element port block off
Icon display Port number
Output function call off
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
63
Chapter 3. Subsystems
Parameter Value
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Latch input by delaying outside signal off
Latch input for feedback signals of function-call subsystem outputs off
Interpolate data on
Parameter Value
Numerator coefficients [1]
Denominator coefficients [Batt_Tr/3 1]
State Name (e.g., 'position') ''
"current1" (InportShadow)
Parameter Value
Port number 1
Port name current
Is a bus element port block off
Icon display Port number
Output function call off
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Latch input by delaying outside signal off
Latch input for feedback signals of function-call subsystem outputs off
Interpolate data on
64
Chapter 3. Subsystems
"current2" (InportShadow)
Parameter Value
Port number 1
Port name current
Is a bus element port block off
Icon display Port number
Output function call off
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Latch input by delaying outside signal off
Latch input for feedback signals of function-call subsystem outputs off
Interpolate data on
"current3" (InportShadow)
Parameter Value
Port number 1
Port name current
Is a bus element port block off
Icon display Port number
Output function call off
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus off
Unit (e.g., m, m/s^2, N*m) inherit
65
Chapter 3. Subsystems
Parameter Value
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Latch input by delaying outside signal off
Latch input for feedback signals of function-call subsystem outputs off
Interpolate data on
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propaga
tion
Lock output data type setting against changes by the fixed-poi off
nt tools
Input and output to have equal Real World Value (RWV)
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propaga
tion
Lock output data type setting against changes by the fixed-poi off
nt tools
Input and output to have equal Real World Value (RWV)
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
66
Chapter 3. Subsystems
Parameter Value
Expression -u(3)*Batt.K*u(2)*u(4)/(u(4)-u(1))
Sample time (-1 for inherited) -1
"E_NL" (Fcn)
Parameter Value
Expression -Batt.K*u(2)/(u(2)-u(1))*u(1)
Sample time (-1 for inherited) -1
"Fcn1" (Fcn)
Parameter Value
Expression 100*(1-u(1)/u(2))
Sample time (-1 for inherited) -1
"Fcn2" (Fcn)
Parameter Value
Expression exp(Batt.alpha*((1/u(1))-(1/Batt.NomT)))
Sample time (-1 for inherited) -1
"Fcn3" (Fcn)
Parameter Value
Expression (u(1)-Batt.NomT)*Batt.dE_dT
Sample time (-1 for inherited) -1
67
Chapter 3. Subsystems
"Fcn4" (Fcn)
Parameter Value
Expression -u(2)*exp(Batt.beta*((1/u(1))-(1/Batt.NomT)))*u(3)+Batt.R*u(3)
Sample time (-1 for inherited) -1
"Fcn5" (Fcn)
Parameter Value
Expression -Batt.C*u(1)
Sample time (-1 for inherited) -1
"Fcn6" (Fcn)
Parameter Value
Expression -u(1)*(1-1e-3)*Batt.kcsat*0.9999
Sample time (-1 for inherited) -1
"Fcn7" (Fcn)
Parameter Value
Expression Batt.Q+Batt.dQ_dT*(u(1)-Batt.NomT)
Sample time (-1 for inherited) -1
"Fcn9" (Fcn)
Parameter Value
Expression (1+1e-6)*u(1)*(1/Batt.lambda)/0.9999
Sample time (-1 for inherited) -1
68
Chapter 3. Subsystems
"From1" (From)
Parameter Value
Goto tag i_filter
Icon display Tag
"From10" (From)
Parameter Value
Goto tag T
Icon display Tag
"From11" (From)
Parameter Value
Goto tag T
Icon display Tag
"From12" (From)
Parameter Value
Goto tag T
Icon display Tag
"From13" (From)
Parameter Value
Goto tag T
Icon display Tag
69
Chapter 3. Subsystems
"From14" (From)
Parameter Value
Goto tag it_sat
Icon display Tag
"From15" (From)
Parameter Value
Goto tag it_sat
Icon display Tag
"From16" (From)
Parameter Value
Goto tag it_sat
Icon display Tag
"From17" (From)
Parameter Value
Goto tag it_sat
Icon display Tag
"From18" (From)
Parameter Value
Goto tag it_sat
Icon display Tag
70
Chapter 3. Subsystems
"From19" (From)
Parameter Value
Goto tag it_sat
Icon display Tag
"From2" (From)
Parameter Value
Goto tag i_filter
Icon display Tag
"From20" (From)
Parameter Value
Goto tag SOC
Icon display Tag
"From21" (From)
Parameter Value
Goto tag Q
Icon display Tag
"From23" (From)
Parameter Value
Goto tag Qc
Icon display Tag
71
Chapter 3. Subsystems
"From24" (From)
Parameter Value
Goto tag Rout
Icon display Tag
"From3" (From)
Parameter Value
Goto tag i_filter
Icon display Tag
"From4" (From)
Parameter Value
Goto tag i_filter
Icon display Tag
"From5" (From)
Parameter Value
Goto tag Qc
Icon display Tag
"From6" (From)
Parameter Value
Goto tag Qc
Icon display Tag
72
Chapter 3. Subsystems
"From7" (From)
Parameter Value
Goto tag Qc
Icon display Tag
"From8" (From)
Parameter Value
Goto tag Qc
Icon display Tag
"From9" (From)
Parameter Value
Goto tag Qc
Icon display Tag
"Gain" (Gain)
Parameter Value
Gain 1/3600
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
73
Chapter 3. Subsystems
Parameter Value
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Gain2" (Gain)
Parameter Value
Gain 3600
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Goto" (Goto)
Parameter Value
Tag i_filter
Icon display Tag
Tag visibility local
"Goto1" (Goto)
Parameter Value
Tag Q
74
Chapter 3. Subsystems
Parameter Value
Icon display Tag
Tag visibility local
"Goto2" (Goto)
Parameter Value
Tag T
Icon display Tag
Tag visibility local
"Goto3" (Goto)
Parameter Value
Tag SOC
Icon display Tag
Tag visibility local
"Goto4" (Goto)
Parameter Value
Tag it_sat
Icon display Tag
Tag visibility local
"Goto5" (Goto)
Parameter Value
Tag Qc
Icon display Tag
Tag visibility local
75
Chapter 3. Subsystems
"Goto6" (Goto)
Parameter Value
Tag Rout
Icon display Tag
Tag visibility local
"int(i)" (Integrator)
Parameter Value
External reset rising
Initial condition source external
Initial condition (1-SOC/100)*Q*3600
Limit output on
Upper saturation limit Batt.Qmax*3600
Lower saturation limit -inf
Wrap state off
Wrapped state upper value pi
Wrapped state lower value -pi
Show saturation port off
Show state port off
Ignore limit and reset when linearizing off
Enable zero-crossing detection on
State Name (e.g., 'position') ''
Parameter Value
Initial condition (1-SOC/100)*Batt.Q*(1/Batt.lambda)*3
600
Inherit sample time off
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete samp off
le time
76
Chapter 3. Subsystems
Parameter Value
State name must resolve to Simulink signal object off
Parameter Value
Initial condition Batt.Q
Inherit sample time off
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
Parameter Value
Initial condition SOC
Inherit sample time off
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"m" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
77
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Memory" (Memory)
Parameter Value
Initial condition 0
Inherit sample time off
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory2" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Mux1" (Mux)
Parameter Value
Number of inputs 4
78
Chapter 3. Subsystems
Parameter Value
Display option bar
"Mux2" (Mux)
Parameter Value
Number of inputs 4
Display option bar
"Mux3" (Mux)
Parameter Value
Number of inputs 3
Display option bar
"Mux4" (Mux)
Parameter Value
Number of inputs 2
Display option bar
"Mux5" (Mux)
Parameter Value
Number of inputs 2
Display option bar
"Product" (Product)
Parameter Value
Number of inputs 2
79
Chapter 3. Subsystems
Parameter Value
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Product1" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
80
Chapter 3. Subsystems
"Product2" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"R" (Gain)
Parameter Value
Gain Batt.R
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
81
Chapter 3. Subsystems
"R1" (Gain)
Parameter Value
Gain Batt.R
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"R2" (Gain)
Parameter Value
Gain 0.9999
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
82
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) -1
"R3" (Gain)
Parameter Value
Gain 0.9999
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"R4" (Gain)
Parameter Value
Gain 1/Batt.lambda
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
83
Chapter 3. Subsystems
Parameter Value
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
Parameter Value
Relational operator <=
Require all inputs to have the same data off
type
Output data type Inherit: Logical (see Configuration Parameters: Optimiz
ation)
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Integer rounding mode Simplest
"Saturation" (Saturate)
Parameter Value
Upper limit 100
Lower limit 0
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
84
Chapter 3. Subsystems
Parameter Value
SimulinkmasksOutputMinimum_MP []
SimulinkmasksOutputMaximum_MP []
SimulinkmasksOutputDataType_MP Inherit: Same as second input
SimulinkmasksLockOutputDataTypeAgainstFxpTools_MP off
SimulinkmasksIntegerRoundingMode_MP Floor
SimulinkmasksSaturateOnIntegerOverflow_MP off
Parameter Value
SimulinkmasksOutputMinimum_MP []
SimulinkmasksOutputMaximum_MP []
SimulinkmasksOutputDataType_MP Inherit: Same as second input
SimulinkmasksLockOutputDataTypeAgainstFxpTools_MP off
SimulinkmasksIntegerRoundingMode_MP Floor
SimulinkmasksSaturateOnIntegerOverflow_MP off
Parameter Value
SimulinkmasksOutputMinimum_MP []
SimulinkmasksOutputMaximum_MP []
SimulinkmasksOutputDataType_MP Inherit: Same as second input
SimulinkmasksLockOutputDataTypeAgainstFxpTools_MP off
SimulinkmasksIntegerRoundingMode_MP Floor
SimulinkmasksSaturateOnIntegerOverflow_MP off
85
Chapter 3. Subsystems
"Saturation2" (Saturate)
Parameter Value
Upper limit max(NomQ,Batt.Q)
Lower limit 0
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
"Saturation3" (Saturate)
Parameter Value
Upper limit Batt.Va-Batt.dE_dT*(Batt.Tci-Batt.Nom
T)-Batt.A
Lower limit -inf
Treat as gain when linearizing on
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixe off
d-point tools
Integer rounding mode Floor
"Sum" (Sum)
Parameter Value
Icon shape round
86
Chapter 3. Subsystems
Parameter Value
List of signs |++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Sum1" (Sum)
Parameter Value
Icon shape round
List of signs |-+
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"Switch7" (Switch)
Parameter Value
Criteria for passing first input u2 > Threshold
87
Chapter 3. Subsystems
Parameter Value
Threshold 0
Require all data port inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal r
ule
Lock output data type setting against changes by the fixed-point t off
ools
Integer rounding mode Floor
Saturate on integer overflow off
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Allow different data input sizes (Results in variable-size output si off
gnal)
"Ta" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"V" (Outport)
Parameter Value
Port number 2
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
88
Chapter 3. Subsystems
Parameter Value
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
Model
Figure 3.12. power_battery_aging/Deph-of-discharge (DOD)/Model
Look-Up
Table
Blocks
Parameters
"Clock" (Clock)
Parameter Value
Display time off
Decimation 10
89
Chapter 3. Subsystems
"Derivative" (Derivative)
Parameter Value
Coefficient c in the transfer function approximation s/(c*s + 1) used for linearization inf
Parameter Value
Hit crossing offset 0
Hit crossing direction either
Show output port off
Output type Signal
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Parameter Value
Vector of input values sps.tv
Table data sps.opv
Lookup method Interpolation-Extrapolati
on
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point too off
ls
Integer rounding mode Floor
Saturate on integer overflow on
Sample time (-1 for inherited) -1
90
Chapter 3. Subsystems
0 20
720000 20
720000 80
1440000 80
1440000 20
1440001 20
"Out" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
91
Chapter 3. Subsystems
Parameter Value
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
<0
2
f(u)
1 i
Plosses 3
T
f(u)
1
El
Blocks
Parameters
"Abs" (Abs)
Parameter Value
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
92
Chapter 3. Subsystems
Parameter Value
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
"Abs1" (Abs)
Parameter Value
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Output minimum []
Output maximum []
Output data type Inherit: Same as input
Lock output data type setting against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
"Add" (Sum)
Parameter Value
Icon shape rectangular
List of signs +++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
93
Chapter 3. Subsystems
Parameter Value
SimulinkmasksOperator_MP <
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propaga
tion
Lock output data type setting against changes by the fixed-poi off
nt tools
Input and output to have equal Real World Value (RWV)
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"El" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
94
Chapter 3. Subsystems
"Fcn1" (Fcn)
Parameter Value
Expression Batt.dE_dT*u(1)*u(2)
Sample time (-1 for inherited) -1
"Fcn3" (Fcn)
Parameter Value
Expression -u(2)+Batt.R*u(1)
Sample time (-1 for inherited) -1
"Gain" (Gain)
Parameter Value
Gain Batt.DeltaP
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
95
Chapter 3. Subsystems
"i" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Mux" (Mux)
Parameter Value
Number of inputs 2
Display option bar
"Mux2" (Mux)
Parameter Value
Number of inputs 2
Display option bar
"Plosses" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
96
Chapter 3. Subsystems
Parameter Value
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Product" (Product)
Parameter Value
Number of inputs 2
Multiplication Element-wise(.*)
Multiply over All dimensions
Dimension 1
Require all inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"T" (Inport)
Parameter Value
Port number 3
97
Chapter 3. Subsystems
Parameter Value
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Saturation Dynamic
Figure 3.15. power_battery_aging/Battery/Model/Saturation Dynamic
2
u 1
1 y
up
LowerRelop1
F
Ref1
Ref2
Prop
3
lo
UpperRelop
F
Blocks
Parameters
"Data Type Duplicate" (DataTypeDuplicate)
Parameter Value
Number of input ports 2
98
Chapter 3. Subsystems
Parameter Value
Simulinkmasksx1PropagatedDataType_MP Inherit via propagation rule
Simulinkmasksx11IfAnyReferenceInputIsDoubleOutputIs_MP double
Simulinkmasksx12IfAnyReferenceInputIsSingleOutputIs_MP single
Simulinkmasksx13IsSigned_MP IsSigned1
Simulinkmasksx141NumberofBitsBase_MP NumBits1
Simulinkmasksx142NumberofBitsMultiplicativeAdjustment_MP 1
Simulinkmasksx143NumberofBitsAdditiveAdjustment_MP 0
Simulinkmasksx144NumberofBitsAllowableFinalValues_MP 1:128
Simulinkmasksx2PropagatedScaling_MP Inherit via propagation rule
Simulinkmasksx211SlopeBase_MP Slope1
Simulinkmasksx212SlopeMultiplicativeAdjustment_MP 1
Simulinkmasksx213SlopeAdditiveAdjustment_MP 0
Simulinkmasksx221BiasBase_MP Bias1
Simulinkmasksx222BiasMultiplicativeAdjustment_MP 1
Simulinkmasksx223BiasAdditiveAdjustment_MP 0
"lo" (Inport)
Parameter Value
Port number 3
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"LowerRelop1" (RelationalOperator)
Parameter Value
Relational operator >
99
Chapter 3. Subsystems
Parameter Value
Require all inputs to have the same data type off
Output data type boolean
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Integer rounding mode Nearest
"Switch" (Switch)
Parameter Value
Criteria for passing first input u2 ~= 0
Threshold 0
Require all data port inputs to have the same data type off
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propaga
tion
Lock output data type setting against changes by the fixed-poi off
nt tools
Integer rounding mode Floor
Saturate on integer overflow off
Enable zero-crossing detection off
Sample time (-1 for inherited) -1
Allow different data input sizes (Results in variable-size output off
signal)
"Switch2" (Switch)
Parameter Value
Criteria for passing first input u2 ~= 0
Threshold 0
Require all data port inputs to have the same data type off
Output minimum OutMin
Output maximum OutMax
Output data type Inherit: Inherit via back propaga
tion
100
Chapter 3. Subsystems
Parameter Value
Lock output data type setting against changes by the fixed-poi off
nt tools
Integer rounding mode Floor
Saturate on integer overflow off
Enable zero-crossing detection off
Sample time (-1 for inherited) -1
Allow different data input sizes (Results in variable-size output off
signal)
"u" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"up" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"UpperRelop" (RelationalOperator)
Parameter Value
Relational operator <
101
Chapter 3. Subsystems
Parameter Value
Require all inputs to have the same data type off
Output data type boolean
Enable zero-crossing detection on
Sample time (-1 for inherited) -1
Integer rounding mode Nearest
"y" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum OutMin
Maximum OutMax
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
102
Chapter 3. Subsystems
Sources
Figure 3.16. power_battery_aging/powergui/EquivalentModel1/Sources
-T-
-T-
1
u
Blocks
Parameters
103
Chapter 3. Subsystems
"From1" (From)
Parameter Value
Goto tag T58_5766_5449796799047
Icon display Tag
"From2" (From)
Parameter Value
Goto tag T50_5005_4145030058878
Icon display Tag
"Mux" (Mux)
Parameter Value
Number of inputs [1 1]
Display option bar
"u" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
104
Chapter 3. Subsystems
Parameter Value
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
Subsystem
Figure 3.17. power_battery_aging/Battery/Model/Aging Model/Subsystem
x(k-1) x(k)
1 Mux Demux 1
Blocks
Parameters
105
Chapter 3. Subsystems
"Demux" (Demux)
Parameter Value
Number of outputs 18
Display option none
Bus selection mode off
"Memory" (Memory)
Parameter Value
Initial condition 1
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory1" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory10" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
106
Chapter 3. Subsystems
Parameter Value
State name must resolve to Simulink signal object off
"Memory11" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory12" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory13" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
107
Chapter 3. Subsystems
"Memory14" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory15" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory16" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory17" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
108
Chapter 3. Subsystems
Parameter Value
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory2" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory3" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory4" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
109
Chapter 3. Subsystems
"Memory5" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory6" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory7" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory8" (Memory)
Parameter Value
Initial condition SOC
Inherit sample time on
110
Chapter 3. Subsystems
Parameter Value
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Memory9" (Memory)
Parameter Value
Initial condition 0
Inherit sample time on
Direct feedthrough of input during linearization off
Treat as a unit delay when linearizing with discrete sample time off
State name must resolve to Simulink signal object off
"Mux1" (Mux)
Parameter Value
Number of inputs 18
Display option none
"x(k)" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
111
Chapter 3. Subsystems
"x(k-1)" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
112
Chapter 3. Subsystems
Thermal Model
Figure 3.18. power_battery_aging/Battery/Model/Thermal Model
T
1
1 1
4880s+1 Cell Temperature (K)
Tamb
2
Ploss
Blocks
Parameters
"Gain" (Gain)
Parameter Value
Gain Batt.Rth
Multiplication Element-wise(K.*u)
Parameter minimum []
Parameter maximum []
Parameter data type Inherit: Inherit via internal ru
le
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal ru
le
Lock output data type setting against changes by the fixed-point off
tools
Integer rounding mode Floor
Saturate on integer overflow off
113
Chapter 3. Subsystems
Parameter Value
Sample time (-1 for inherited) -1
"Ploss" (Inport)
Parameter Value
Port number 2
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
"Sum" (Sum)
Parameter Value
Icon shape round
List of signs |++
Sum over All dimensions
Dimension 1
Require all inputs to have the same data type off
Accumulator data type Inherit: Inherit via internal rule
Output minimum []
Output maximum []
Output data type Inherit: Inherit via internal rule
Lock data type settings against changes by the fixed-point tools off
Integer rounding mode Floor
Saturate on integer overflow off
Sample time (-1 for inherited) -1
"T" (Outport)
Parameter Value
Port number 1
114
Chapter 3. Subsystems
Parameter Value
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output []
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
"Tamb" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
Parameter Value
SimulinkBlockssimulink_extrasNumerator_MP [1]
SimulinkBlockssimulink_extrasDenominator_MP [Batt.tc 1]
115
Chapter 3. Subsystems
Parameter Value
SimulinkBlockssimulink_extrasInitialOutput_MP Batt.Tci
SimulinkBlockssimulink_extrasInitialInput_MP 0
Parameter Value
Numerator coefficients [1]
Denominator coefficients [1e-6 1]
State Name (e.g., 'position') ''
1 1
State Space
Blocks
Parameters
"In1" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
116
Chapter 3. Subsystems
"Out1" (Outport)
Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type setting against changes by the fixed-point tools off
Output as nonvirtual bus in parent model off
Unit (e.g., m, m/s^2, N*m) inherit
Port dimensions (-1 for inherited) -1
Variable-size signal Inherit
Sample time (-1 for inherited) -1
Ensure outport is virtual off
Source of initial output value Dialog
Output when disabled held
Initial output 0
MustResolveToSignalObject off
Specify output when source is unconnected off
Constant value 0
Interpret vector parameters as 1-D off
Parameter Value
A A
B B
C C
D Dd
Initial conditions X0
State Name (e.g., 'position') ''
117
Chapter 3. Subsystems
Yout
Figure 3.20. power_battery_aging/powergui/EquivalentModel1/Yout
-T-
1
v,i
Blocks
Parameters
118
Chapter 3. Subsystems
"Demux" (Demux)
Parameter Value
Number of outputs 1
Display option bar
Bus selection mode off
"Goto1" (Goto)
Parameter Value
Tag T54_5486_5217081371391
Icon display Tag
Tag visibility global
"v,i" (Inport)
Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto
119
Chapter 4. Requirements
power_battery_aging does not contain requirements traceability links.
120
Chapter 5. System Model
Configuration
Source: Model
Source Name: power_battery_aging
Property Value
Description
Components [power_battery_aging Configuration Set.Components(1), power_battery_aging C
onfiguration Set.Components(2), power_battery_aging Configuration Set.Compo
nents(3), power_battery_aging Configuration Set.Components(4), power_battery
_aging Configuration Set.Components(5), power_battery_aging Configuration Se
t.Components(6), power_battery_aging Configuration Set.Components(7), power
_battery_aging Configuration Set.Components(8), power_battery_aging Configu
ration Set.Components(9), power_battery_aging Configuration Set.Components(
10)]
Name Configuration
SimulationMode normal
ConfigType Model
Property Value
Name Solver
Description
Components
StartTime 0.0
StopTime 14400*250
AbsTol auto
AutoScaleAbsTol on
FixedStep auto
InitialStep auto
MaxNumMinSteps -1
MaxOrder 5
ZcThreshold auto
ConsecutiveZCsStepRelTol 10*128*eps
121
Chapter 5. System Model Configuration
MaxConsecutiveZCs 1000
ExtrapolationOrder 4
NumberNewtonIterations 1
MaxStep auto
MinStep auto
MaxConsecutiveMinStep 1
RelTol 1e-3
SolverMode MultiTasking
EnableMultiTasking on
EnableExplicitPartitioning off
EnableConcurrentExecution on
ConcurrentTasks off
Solver ode23tb
SolverName ode23tb
SolverType Variable-step
SolverJacobianMethodControl auto
ShapePreserveControl DisableAll
ZeroCrossControl UseLocalSettings
ZeroCrossAlgorithm Nonadaptive
SolverResetMethod Fast
PositivePriorityOrder off
AutoInsertRateTranBlk off
SampleTimeConstraint Unconstrained
InsertRTBMode Whenever possible
SampleTimeProperty
DecoupledContinuousIntegration off
MinimalZcImpactIntegration off
SolverOrder 3
Property Value
Name Data Import/Export
Description
Components
Decimation 1
ExternalInput [t, u]
FinalStateName xFinal
122
Chapter 5. System Model Configuration
InitialState xInitial
LimitDataPoints on
MaxDataPoints 1000
LoadExternalInput off
LoadInitialState off
SaveFinalState off
SaveCompleteFinalSimState off
SaveOperatingPoint off
SaveFormat Dataset
SaveOutput on
SaveState off
SignalLogging on
DSMLogging on
InspectSignalLogs off
SaveTime on
ReturnWorkspaceOutputs off
StateSaveName xout
TimeSaveName tout
OutputSaveName yout
SignalLoggingName logsout
DSMLoggingName dsmout
OutputOption RefineOutputTimes
OutputTimes []
ReturnWorkspaceOutputsName out
Refine 1
LoggingToFile off
DatasetSignalFormat timeseries
LoggingFileName out.mat
LoggingIntervals [-inf, inf]
Property Value
Name Optimization
Description
Components
BlockReduction on
BooleanDataType on
123
Chapter 5. System Model Configuration
ConditionallyExecuteInputs on
DefaultParameterBehavior Tunable
InlineParams off
UseDivisionForNetSlopeComputation off
GainParamInheritBuiltInType off
UseFloatMulNetSlope off
DefaultUnderspecifiedDataType double
UseSpecifiedMinMax off
InlineInvariantSignals off
OptimizeBlockIOStorage on
BufferReuse on
GlobalBufferReuse on
GlobalVariableUsage None
StrengthReduction off
AdvancedOptControl
EnforceIntegerDowncast on
ExpressionFolding on
BooleansAsBitfields off
BitfieldContainerType uint_T
EnableMemcpy on
MemcpyThreshold 64
PassReuseOutputArgsAs Structure reference
PassReuseOutputArgsThreshold 12
FoldNonRolledExpr on
LocalBlockOutputs on
RollThreshold 5
StateBitsets off
DataBitsets off
ActiveStateOutputEnumStorageType Native Integer
UseTempVars off
ZeroExternalMemoryAtStartup on
ZeroInternalMemoryAtStartup on
InitFltsAndDblsToZero off
NoFixptDivByZeroProtection off
EfficientFloat2IntCast off
EfficientMapNaN2IntZero on
LifeSpan inf
EvaledLifeSpan Inf
124
Chapter 5. System Model Configuration
Property Value
Name Diagnostics
Description
Components
RTPrefix error
ConsistencyChecking none
ArrayBoundsChecking none
SignalInfNanChecking none
StringTruncationChecking error
SignalRangeChecking none
ReadBeforeWriteMsg UseLocalSettings
WriteAfterWriteMsg UseLocalSettings
WriteAfterReadMsg UseLocalSettings
AlgebraicLoopMsg warning
ArtificialAlgebraicLoopMsg warning
SaveWithDisabledLinksMsg warning
SaveWithParameterizedLinksMsg warning
CheckSSInitialOutputMsg on
UnderspecifiedInitializationDetection Simplified
MergeDetectMultiDrivingBlocksExec error
125
Chapter 5. System Model Configuration
CheckExecutionContextRuntimeOutputMsg off
SignalResolutionControl UseLocalSettings
BlockPriorityViolationMsg warning
MinStepSizeMsg warning
TimeAdjustmentMsg none
MaxConsecutiveZCsMsg error
MaskedZcDiagnostic warning
IgnoredZcDiagnostic warning
SolverPrmCheckMsg none
InheritedTsInSrcMsg warning
MultiTaskDSMMsg error
MultiTaskCondExecSysMsg error
MultiTaskRateTransMsg error
SingleTaskRateTransMsg none
TasksWithSamePriorityMsg warning
SigSpecEnsureSampleTimeMsg warning
CheckMatrixSingularityMsg none
IntegerOverflowMsg warning
Int32ToFloatConvMsg warning
ParameterDowncastMsg error
ParameterOverflowMsg error
ParameterUnderflowMsg none
ParameterPrecisionLossMsg warning
ParameterTunabilityLossMsg warning
FixptConstUnderflowMsg none
FixptConstOverflowMsg none
FixptConstPrecisionLossMsg none
UnderSpecifiedDataTypeMsg none
UnnecessaryDatatypeConvMsg none
VectorMatrixConversionMsg none
FcnCallInpInsideContextMsg error
SignalLabelMismatchMsg none
UnconnectedInputMsg warning
UnconnectedOutputMsg warning
UnconnectedLineMsg warning
UseOnlyExistingSharedCode error
SFcnCompatibilityMsg none
FrameProcessingCompatibilityMsg error
126
Chapter 5. System Model Configuration
UniqueDataStoreMsg none
BusObjectLabelMismatch warning
RootOutportRequireBusObject warning
AssertControl UseLocalSettings
Echo
EnableOverflowDetection off
AllowSymbolicDim off
ModelReferenceIOMsg none
ModelReferenceVersionMismatchMessage none
ModelReferenceIOMismatchMessage none
ModelReferenceCSMismatchMessage none
ModelReferenceSimTargetVerbose off
UnknownTsInhSupMsg warning
ModelReferenceDataLoggingMessage warning
ModelReferenceSymbolNameMessage warning
ModelReferenceExtraNoncontSigs error
StateNameClashWarn none
OperatingPointInterfaceChecksumMismatchMsg warning
NonCurrentReleaseOperatingPointMsg error
PregeneratedLibrarySubsystemCodeDiagnostic warning
InitInArrayFormatMsg warning
StrictBusMsg ErrorLevel1
BusNameAdapt WarnAndRepair
NonBusSignalsTreatedAsBus none
SFUnusedDataAndEventsDiag warning
SFUnexpectedBacktrackingDiag warning
SFInvalidInputDataAccessInChartInitDiag warning
SFNoUnconditionalDefaultTransitionDiag warning
SFTransitionOutsideNaturalParentDiag warning
SFUnconditionalTransitionShadowingDiag warning
SFUnreachableExecutionPathDiag warning
SFUndirectedBroadcastEventsDiag warning
SFTransitionActionBeforeConditionDiag warning
SFOutputUsedAsStateInMooreChartDiag error
SFTemporalDelaySmallerThanSampleTimeDiag warning
SFUnconditionalPathOutOfParentDiag warning
SFSelfTransitionDiag warning
SFExecutionAtInitializationDiag none
127
Chapter 5. System Model Configuration
SFMachineParentedDataDiag warning
SFUnreachableStateOrJunctionDiag warning
SFDanglingTransitionDiag warning
IntegerSaturationMsg warning
AllowedUnitSystems all
UnitsInconsistencyMsg warning
AllowAutomaticUnitConversions on
RCSCRenamedMsg warning
RCSCObservableMsg warning
ForceCombineOutputUpdateInSim off
UnderSpecifiedDimensionMsg none
DebugExecutionForFMUViaOutOfProcess off
ArithmeticOperatorsInVariantConditions warning
Property Value
Name Hardware Implementation
Description
Components
ProdBitPerChar 8
ProdBitPerShort 16
ProdBitPerInt 32
ProdBitPerLong 32
ProdBitPerLongLong 64
ProdBitPerFloat 32
ProdBitPerDouble 64
ProdBitPerPointer 32
ProdBitPerSizeT 32
ProdBitPerPtrDiffT 32
ProdLargestAtomicInteger Char
ProdLargestAtomicFloat None
ProdIntDivRoundTo Undefined
ProdEndianess Unspecified
ProdWordSize 32
ProdShiftRightIntArith on
ProdLongLongMode off
ProdHWDeviceType 32-bit Generic
128
Chapter 5. System Model Configuration
TargetBitPerChar 8
TargetBitPerShort 16
TargetBitPerInt 32
TargetBitPerLong 32
TargetBitPerLongLong 64
TargetBitPerFloat 32
TargetBitPerDouble 64
TargetBitPerPointer 32
TargetBitPerSizeT 32
TargetBitPerPtrDiffT 32
TargetLargestAtomicInteger Char
TargetLargestAtomicFloat None
TargetShiftRightIntArith on
TargetLongLongMode off
TargetIntDivRoundTo Undefined
TargetEndianess Unspecified
TargetWordSize 32
TargetPreprocMaxBitsSint 32
TargetPreprocMaxBitsUint 32
TargetHWDeviceType Specified
TargetUnknown off
ProdEqTarget on
UseEmbeddedCoderFeatures on
UseSimulinkCoderFeatures on
HardwareBoardFeatureSet EmbeddedCoderHSP
Property Value
Name Model Referencing
Description
Components
UpdateModelReferenceTargets IfOutOfDateOrStructuralChange
SkipRefExpFcnMdlSchedulingOrderCheck off
EnableRefExpFcnMdlSchedulingChecks on
CheckModelReferenceTargetMessage error
EnableParallelModelReferenceBuilds off
ParallelModelReferenceErrorOnInvalidPool on
129
Chapter 5. System Model Configuration
ParallelModelReferenceMATLABWorkerInit None
ModelReferenceNumInstancesAllowed Multi
PropagateVarSize Infer from blocks in model
ModelDependencies
ModelReferencePassRootInputsByReference on
ModelReferenceMinAlgLoopOccurrences off
PropagateSignalLabelsOutOfModel off
SupportModelReferenceSimTargetCustomCode off
Property Value
Name Simulation Target
Description
Components
SimCustomSourceCode
SimCustomHeaderCode
SimCustomInitializer
SimCustomTerminator
SimReservedNameArray
SimUserSources
SimUserIncludeDirs
SimUserLibraries
SimUserDefines
SFSimEnableDebug off
SFSimOverflowDetection on
SFSimEcho on
SimBlas on
SimCtrlC on
SimExtrinsic on
SimIntegrity on
SimUseLocalCustomCode off
SimParseCustomCode on
SimAnalyzeCustomCode off
SimBuildMode sf_incremental_build
SimDataInitializer
SimGenImportedTypeDefs off
CompileTimeRecursionLimit 50
130
Chapter 5. System Model Configuration
EnableRuntimeRecursion on
MATLABDynamicMemAlloc on
MATLABDynamicMemAllocThreshold 65536
CustomSymbolStrEMXArray nothing
CustomSymbolStrEMXArrayFcn nothing
CustomCodeFunctionArrayLayout
DefaultCustomCodeFunctionArrayLayout NotSpecified
Property Value
Name Code Generation
SystemTargetFile grt.tlc
HardwareBoard None
ShowCustomHardwareApp off
ShowEmbeddedHardwareApp off
TLCOptions
CodeGenDirectory
GenCodeOnly off
MakeCommand make_rtw
GenerateMakefile on
PackageGeneratedCodeAndArtifacts off
PackageName
TemplateMakefile grt_default_tmf
PostCodeGenCommand
Description
GenerateReport off
SaveLog off
RTWVerbose on
RetainRTWFile off
ProfileTLC off
TLCDebug off
TLCCoverage off
TLCAssert off
ProcessScriptMode Default
ConfigurationMode Optimized
ProcessScript
ConfigurationScript
131
Chapter 5. System Model Configuration
ConfigAtBuild off
RTWUseLocalCustomCode off
RTWUseSimCustomCode off
CustomSourceCode
CustomHeaderCode
CustomInclude
CustomSource
CustomLibrary
CustomDefine
CustomBLASCallback
CustomLAPACKCallback
CustomFFTCallback
CustomInitializer
CustomTerminator
Toolchain Automatically locate an installed toolchain
BuildConfiguration Faster Builds
CustomToolchainOptions
IncludeHyperlinkInReport off
LaunchReport off
RecursionLimit 50
PortableWordSizes off
GenerateErtSFunction off
CreateSILPILBlock None
CodeExecutionProfiling off
CodeExecutionProfileVariable executionProfile
CodeProfilingSaveOptions SummaryOnly
CodeProfilingInstrumentation off
CodeCoverageSettings power_battery_aging Configuration Set.Components(8).Cod
eCoverageSettings
SILDebugging off
TargetLang C
IncludeERTFirstTime off
GenerateTraceInfo off
GenerateTraceReport off
GenerateTraceReportSl off
GenerateTraceReportSf off
GenerateTraceReportEml off
GenerateCodeInfo off
132
Chapter 5. System Model Configuration
GenerateWebview off
GenerateCodeMetricsReport off
GenerateCodeReplacementReport off
RTWCompilerOptimization off
ObjectivePriorities
RTWCustomCompilerOptimizations
CheckMdlBeforeBuild Off
CustomRebuildMode OnUpdate
DataInitializer
Components [power_battery_aging Configuration Set.Components(8).Co
mponents(1), power_battery_aging Configuration Set.Comp
onents(8).Components(2)]
Property Value
Description Simulink Coverage Configuration Component
Components
Name Simulink Coverage
CovEnable off
CovScope EntireSystem
CovIncludeTopModel on
RecordCoverage off
CovPath /
CovSaveName covdata
CovCompData
CovMetricSettings dw
CovFilter
CovHTMLOptions
CovNameIncrementing off
CovHtmlReporting on
CovForceBlockReductionOff on
CovEnableCumulative on
CovSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName covCumulativeData
CovCumulativeReport off
CovSaveOutputData on
133
Chapter 5. System Model Configuration
CovOutputDir slcov_output/$ModelName$
CovDataFileName $ModelName$_cvdata
CovShowResultsExplorer on
CovReportOnPause on
CovModelRefEnable off
CovModelRefExcluded
CovExternalEMLEnable off
CovSFcnEnable on
CovBoundaryAbsTol 1.0000e-05
CovBoundaryRelTol 0.0100
CovUseTimeInterval off
CovStartTime 0
CovStopTime 0
CovMetricStructuralLevel Decision
CovMetricLookupTable off
CovMetricSignalRange off
CovMetricSignalSize off
CovMetricObjectiveConstraint off
CovMetricSaturateOnIntegerOverflow off
CovMetricRelationalBoundary off
CovLogicBlockShortCircuit off
CovUnsupportedBlockWarning on
CovHighlightResults on
CovMcdcMode Masking
Property Value
Description
Components [power_battery_aging Configuration Set.Components(10).Comp
onents(1), power_battery_aging Configuration Set.Components(
10).Components(2)]
Name Simscape
EditingMode Full
ExplicitSolverDiagnosticOptions warning
GlobalZcOffDiagnosticOptions warning
SimscapeNormalizeSystem off
SimscapeNominalValues [{"value":"1","unit":"A"},{"value":"1","unit":"bar"},{"value":"1","
unit":"cm^2"},{"value":"1","unit":"cm^3/s"},{"value":"1","unit":"k
134
Chapter 5. System Model Configuration
J/kg"},{"value":"1","unit":"kW"},{"value":"1","unit":"l"},{"value":"
1","unit":"N"},{"value":"1","unit":"N*m"},{"value":"1","unit":"V"}]
SimscapeLogType none
SimscapeLogSimulationStatistics off
SimscapeLogToSDI off
SimscapeLogOpenViewer off
SimscapeLogName simlog
SimscapeLogDecimation 1
SimscapeLogLimitData on
SimscapeLogDataHistory 5000
SimscapeUseOperatingPoints off
SimscapeOperatingPoint
SelectedTab
Version 1.0
ComponentsAttached true
Listener [power_battery_aging Configuration Set.Components(10).Listen
er(1), power_battery_aging Configuration Set.Components(10).
Listener(2), power_battery_aging Configuration Set.Componen
ts(10).Listener(3), power_battery_aging Configuration Set.Com
ponents(10).Listener(4), power_battery_aging Configuration Se
t.Components(10).Listener(5), power_battery_aging Configurati
on Set.Components(10).Listener(6), power_battery_aging Confi
guration Set.Components(10).Listener(7), power_battery_aging
Configuration Set.Components(10).Listener(8), power_battery_
aging Configuration Set.Components(10).Listener(9), power_ba
ttery_aging Configuration Set.Components(10).Listener(10), po
wer_battery_aging Configuration Set.Components(10).Listener(
11), power_battery_aging Configuration Set.Components(10).Li
stener(12), power_battery_aging Configuration Set.Components
(10).Listener(13), power_battery_aging Configuration Set.Comp
onents(10).Listener(14), power_battery_aging Configuration Set
.Components(10).Listener(15), power_battery_aging Configurati
on Set.Components(10).Listener(16)]
someListenersNotInstalled false
instanceId
Property Value
TopModelCoverage off
ReferencedModelCoverage off
CoverageTool None
135
Chapter 5. System Model Configuration
Property Value
Name Code Appearance
Description
Components
ForceParamTrailComments off
GenerateComments on
CommentStyle Auto
IgnoreCustomStorageClasses on
IgnoreTestpoints off
IncHierarchyInIds off
MaxIdLength 31
ShowEliminatedStatement off
OperatorAnnotations off
IncAutoGenComments off
SimulinkDataObjDesc off
SFDataObjDesc off
MATLABFcnDesc off
IncDataTypeInIds off
PrefixModelToSubsysFcnNames on
MangleLength 1
SharedChecksumLength 8
CustomSymbolStr $R$N$M
CustomSymbolStrGlobalVar $R$N$M
CustomSymbolStrType $N$R$M_T
CustomSymbolStrField $N$M
CustomSymbolStrFcn $R$N$M$F
CustomSymbolStrSimulinkFcn $R$N
CustomSymbolStrFcnArg rt$I$N$M
CustomSymbolStrBlkIO rtb_$N$M
CustomSymbolStrTmpVar $N$M
CustomSymbolStrMacro $R$N$M
CustomSymbolStrUtil $N$C
CustomSymbolStrEmxType emxArray_$M$N
CustomSymbolStrEmxFcn emx$M$N
CustomUserTokenString
136
Chapter 5. System Model Configuration
CustomCommentsFcn
DefineNamingRule None
DefineNamingFcn
ParamNamingRule None
ParamNamingFcn
SignalNamingRule None
SignalNamingFcn
InsertBlockDesc off
InsertPolySpaceComments off
SimulinkBlockComments on
BlockCommentType BlockPathComment
StateflowObjectComments on
MATLABSourceComments off
EnableCustomComments off
InternalIdentifier Shortened
InlinedPrmAccess Literals
ReqsInCode off
UseSimReservedNames off
ReservedNameArray
Property Value
Name Target
Description
Components
IsERTTarget off
TargetLibSuffix
TargetPreCompLibLocation
GenFloatMathFcnCalls NOT IN USE
TargetLangStandard C89/C90 (ANSI)
TargetFunctionLibrary NOT IN USE
CodeReplacementLibrary None
UtilityFuncGeneration Auto
MultiwordTypeDef System defined
MultiwordLength 2048
DynamicStringBufferSize 256
137
Chapter 5. System Model Configuration
GenerateFullHeader on
InferredTypesCompatibility off
ExistingSharedCode
SharedCodeLocation
GenerateSampleERTMain off
GenerateTestInterfaces off
ModelReferenceCompliant on
ParMdlRefBuildCompliant on
CompOptLevelCompliant on
ConcurrentExecutionCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns on
CombineSignalStateStructs off
GroupInternalDataByFunction off
SuppressErrorStatus off
ERTFirstTimeCompliant off
IncludeFileDelimiter Auto
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier rt_
MatFileLogging on
MultiInstanceERTCode off
CodeInterfacePackaging Nonreusable function
PurelyIntegerCode off
SupportNonFinite on
SupportComplex on
SupportContinuousTime on
SupportNonInlinedSFcns on
RemoveDisableFunc off
RemoveResetFunc off
SupportVariableSizeSignals off
ParenthesesLevel Nominal
CastingMode Nominal
PreserveStateflowLocalDataDimensions off
GenerateClassInterface off
ModelStepFunctionPrototypeControlCompliant off
CPPClassGenCompliant on
GRTInterface off
138
Chapter 5. System Model Configuration
GenerateAllocFcn off
UseToolchainInfoCompliant on
GenerateSharedConstants on
LUTObjectStructOrderExplicitValues Size,Breakpoints,Table
LUTObjectStructOrderEvenSpacing Size,Breakpoints,Table
ArrayLayout Column-major
UnsupportedSFcnMsg error
ERTHeaderFileRootName $R$E
ERTSourceFileRootName $R$E
ERTDataFileRootName $R_data
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile ext_comm
ExtModeMexArgs
ExtModeIntrfLevel Level1
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
RTWCAPIRootIO off
GenerateASAP2 off
MultiInstanceErrorCode Error
Property Value
Description
Components
Name SimscapeMultibody1G
WarnOnRedundantConstraints on
WarnOnSingularInitialAssembly off
ShowCutJoints off
VisOnUpdateDiagram off
VisDuringSimulation off
EnableVisSimulationTime on
139
Chapter 5. System Model Configuration
VisSampleTime 0
DisableBodyVisControl off
ShowCG on
ShowCS on
ShowOnlyPortCS off
HighlightModel on
FramesToBeSkipped 0
AnimationDelay 3
RecordAVI off
CompressAVI on
AviFileName
AutoFitVis off
EnableSelection on
LastVizWinPosition [-1 -1 -1 -1]
CamPosition [0 0 0]
CamTarget [0 0 -1]
CamUpVector [0 1 0]
CamHeight -1
CamViewAngle 0
VisBackgroundColor [0.9 0.9 0.95]
DefaultBodyColor [1 0 0]
MDLBodyVisualizationType Convex hull from body CS locations
OVRRIDBodyVisualizationType NONE
VisConfigFile
Property Value
Description Simscape Multibody
Components [power_battery_aging Configuration Set.Components(10).Components(2).Componen
ts(1), power_battery_aging Configuration Set.Components(10).Components(2).Comp
onents(2)]
Name SimscapeMultibody
140
Chapter 5. System Model Configuration
141
Chapter 5. System Model Configuration
Property Value
Description Diagnostics
Components
Name DiagnosticsConfigSet
SimMechanicsInvalidVisualProperty warning
SimMechanicsCrossSectionNullEdge warning
SimMechanicsUnconnectedFramePorts warning
SimMechanicsUnconnectedGeometryPorts warning
SimMechanicsRedundantBlock warning
SimMechanicsConflictingReferenceFrames warning
SimMechanicsRigidlyBoundBlock error
SimMechanicsUnsatisfiedHighPriorityTargets warning
SimMechanicsJointTargetOverSpecification error
Property Value
Description Explorer
Components
Name ExplorerConfigSet
SimMechanicsOpenEditorOnUpdate on
InternalSimMechanicsExplorerSettings
142
Chapter 6. Glossary
Atomic Subsystem. A subsystem treated as a unit by an implementation of the design
documented in this report. The implementation computes the outputs of all the blocks in the
atomic subsystem before computing the next block in the parent system's block execution order
(sorted list).
Block Diagram. A Simulink block diagram represents a set of simultaneous equations that relate
a system or subsystem's inputs to its outputs as a function of time. Each block in the diagram
represents an equation of the form y = f(t, x, u) where t is the current time, u is a block input, y
is a block output, and x is a system state (see the Simulink documentation for information on the
functions represented by the various types of blocks that make up the diagram). Lines connecting
the blocks represent dependencies among the blocks, i.e., inputs whose current values are the
outputs of other blocks. An implementation of a design described in this document computes a
root or atomic system's outputs at each time step by computing the outputs of the blocks in an
order determined by block input/output dependencies.
Block Parameter. A variable that determines the output of a block along with its inputs, for
example, the gain parameter of a Gain block.
Block Execution Order. The order in which Simulink evaluates blocks during simulation of a
model. The block execution order determined by Simulink ensures that a block executes only
after all blocks on whose outputs it depends are executed.
Checksum. A number that indicates whether different versions of a model or atomic subsystem
differ functionally or only cosmetically. Different checksums for different versions of the same
model or subsystem indicate that the versions differ functionally.
Design Variable. A symbolic (MATLAB) variable or expression used as the value of a block
parameter. Design variables allow the behavior of the model to be altered by altering the value of
the design variable.
Signal. A block output, so-called because block outputs typically vary with time.
Virtual Subsystem. A subsystem that is purely graphical, i.e., is intended to reduce the visual
complexity of the block diagram of which it is a subsystem. An implementation of the design
treats the blocks in the subsystem as part of the first nonvirtual ancestor of the virtual subsystem
(see Atomic Subsystem).
143
Chapter 7. About this Report
Report Overview
This report describes the design of the power_battery_aging system. The report was generated
automatically from a Simulink model used to validate the design. It contains the following
sections:
Model Version. Specifies information about the version of the model from which this design
description was generated. Includes the model checksum, a number that indicates whether
different versions of the model differ functionally or only cosmetically. Different checksums for
different versions indicate that the versions differ functionally.
Design Variables. Describes system design variables, i.e., MATLAB variables and expressions
used as block parameter values.
System Model Configuration. Lists the configuration parameters, e.g., start and stop time, of the
model used to simulate the system described by this report.
Requirements. Shows design requirements associated with elements of the design model. This
section appears only if the design model contains requirements links.
Diagram. Simulink block diagram that represents the algorithm used to compute the root
system's outputs.
Description. Description of the root system. This section appears only if the model's root system
has a Documentation property or a Doc block.
Interface. Name, data type, width, and other properties of the root system's input and output
signals. The number of the block port that outputs the signal appears in angle brackets appended
to the signal name. This section appears only if the root system has input or output ports.
144
Chapter 7. About this Report
• Parameters. Describes key parameters of blocks in the root system. This section also includes
graphical and/or tabular representations of lookup table data used by lookup table blocks,
i.e., blocks that use lookup tables to compute their outputs.
• Block Execution Order. Order in which blocks must be executed at each time step in order to
ensure that each block's inputs are available when it executes.
State Charts. Describes state charts used in the root system. This section appears only if the root
system contains Stateflow blocks.
Subsystem Descriptions
This section describes a design's subsystems. Each subsystem description contains the following
sections:
Checksum. This section appears only if the subsystem is an atomic subsystem. The checksum
indicates whether the version of the model subsystem used to generate this report differs
functionally from other versions of the model subsystem. If two model checksums differ, the
corresponding versions of the model differ functionally.
Diagram. Simulink block diagram that graphically represents the algorithm used to compute the
subsystem's outputs.
Description. Description of the subsystem. This section appears only if the subsystem has a
Documentation property or contains a Doc block.
Interface. Name, data type, width, and other properties of the subsystem's input and output
signals. The number of the block port that outputs the signal appears in angle brackets appended
to the signal name. This section appears only if the subsystem is atomic and has input or output
ports.
Blocks. Blocks that this subsystem contains. This section has two subsections:
• Parameters. Key parameters of blocks in the subsystem. This section also includes graphical
and/or tabular representations of lookup table data used by lookup table blocks, blocks that
use lookup tables to compute their outputs.
• Block Execution Order. Order in which the subsystem's blocks must be executed at each time
step in order to ensure that each block's inputs are available when the block executes .This
section appears only if the subsystem is atomic. Note: in Acrobat(PDF) reports, the number
in square brackets next to the block name is a hyperlink to the block parameter table. The
number has no model significance.
State Charts. Describes state charts used in the subsystem. This section appears only if the root
system contains Stateflow blocks.
145
Chapter 7. About this Report
Transitions. Transitions between the state machine's states. Each transition description specifies
the values of key transition properties. Appears only if a transition has properties that do not
appear on the chart.
Junctions. Transition junctions. Each junction description specifies the values of key junction
properties. Appears only if a junction has properties that do not appear on the chart.
Events. Events that trigger state transitions. Each event description specifies the values of key
event properties.
Data. Data types and other properties of the Stateflow block's inputs, outputs, and other state
machine data.
Targets. Executable implementations of the state machine used to compute the outputs of the
corresponding Stateflow block.
MATLAB Supporting Functions. List of functions invoked by MATLAB functions defined in the
chart.
146