You are on page 1of 150

power_battery_aging

Design Description
user
power_battery_aging: Design Description
by user

Published  26-Jun-2019 18:13:45


Copyright © 2019
For Internal Distribution Only
Table of Contents
Chapter 1. Model Version...............................................................................................................................1
Chapter 2. Root System.................................................................................................................................. 2
Description..............................................................................................................................................2
Blocks...................................................................................................................................................... 2
Parameters.................................................................................................................................... 2
Block Execution Order................................................................................................................. 7
Chapter 3. Subsystems................................................................................................................................... 8
Aging factor Calculation Block............................................................................................................ 8
Blocks............................................................................................................................................. 8
Aging Model......................................................................................................................................... 17
Blocks........................................................................................................................................... 18
Capacity and Internal Resistance Adjustment Block...................................................................... 26
Blocks........................................................................................................................................... 26
Compare To Zero................................................................................................................................ 29
Blocks........................................................................................................................................... 30
Cycles generator..................................................................................................................................32
Blocks........................................................................................................................................... 32
E_dyn Charge....................................................................................................................................... 37
Blocks........................................................................................................................................... 37
EquivalentModel1................................................................................................................................ 44
Blocks........................................................................................................................................... 44
Exp......................................................................................................................................................... 44
Blocks........................................................................................................................................... 45
Max. Number of Cycles Calculation Block....................................................................................... 51
Blocks........................................................................................................................................... 52
Model.................................................................................................................................................... 56
Blocks........................................................................................................................................... 56
Model.................................................................................................................................................... 58
Blocks........................................................................................................................................... 58
Model.................................................................................................................................................... 89
Blocks........................................................................................................................................... 89
Power loss estimation........................................................................................................................ 92
Blocks........................................................................................................................................... 92
Saturation Dynamic.............................................................................................................................98
Blocks........................................................................................................................................... 98
Sources................................................................................................................................................103
Blocks......................................................................................................................................... 103
Subsystem.......................................................................................................................................... 105
Blocks......................................................................................................................................... 105
Thermal Model.................................................................................................................................. 113
Blocks......................................................................................................................................... 113
Transfer Fcn (with initial outputs)...................................................................................................116
Blocks......................................................................................................................................... 116
Yout..................................................................................................................................................... 118
Blocks......................................................................................................................................... 118
Chapter 4. Requirements........................................................................................................................... 120
Chapter 5. System Model Configuration..................................................................................................121
Chapter 6. Glossary.....................................................................................................................................143
Chapter 7. About this Report.....................................................................................................................144
Report Overview................................................................................................................................ 144
Root System Description.................................................................................................................. 144

i
Table of Contents

Subsystem Descriptions................................................................................................................... 145


State Chart Descriptions.................................................................................................................. 145

ii
Chapter 1. Model Version
Version: 1.37

Last modified: Thu May 02 15:55:22 2019

Checksum: 446669619 4115460944 174114690 1360820282

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) ?

powergui More Info

Description

Copyright 2008-2019 The MathWorks, Inc.

Blocks
Parameters

2
Chapter 2. Root System

"Ambient temperature (deg. C)" (Constant)


Table  2.1. "Ambient temperature (deg. C)" Parameters

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

"Bus Selector1" (BusSelector)


Table  2.3. "Bus Selector1" Parameters

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

"Bus Selector2" (BusSelector)


Table  2.4. "Bus Selector2" Parameters

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

"Charge current" (Constant)


Table  2.5. "Charge current" Parameters

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

"Controlled Current Source" (SubSystem)


Table  2.6. "Controlled Current Source" Parameters

Parameter Value
Initialize on
Source type AC
Initial amplitude (A) 0
Initial phase (deg) 0
Initial frequency (Hz) 0
Measurements None

"Deph-of-discharge (DOD)" (SubSystem)


Table  2.7. "Deph-of-discharge (DOD)" Parameters

Parameter Value
Time (s) [0 50 100]*14400
Amplitude [20 80 20]
Sample time 0

"Discharge current" (SubSystem)


Table  2.8. "Discharge current" Parameters

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

Block Execution Order


"power_battery_aging" is a multitasking model. Block execution order is not available for
multitasking models.

7
Chapter 3. Subsystems

Aging factor Calculation Block


Figure  3.1. power_battery_aging/Battery/Model/Aging Model/Aging factor
Calculation Block

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)

Table  3.1. "Age" Parameters

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)

Table  3.2. "Constant" Parameters

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)

Table  3.3. "Constant1" Parameters

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)

Table  3.4. "Constant2" Parameters

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)

Table  3.5. "Datain" Parameters

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)

Table  3.6. "Epsi" Parameters

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)

Table  3.7. "Fcn2" Parameters

Parameter Value
Expression u(14)
Sample time (-1 for inherited) -1

"Fcn3" (Fcn)

Table  3.8. "Fcn3" Parameters

Parameter Value
Expression u(15)

11
Chapter 3. Subsystems

Parameter Value
Sample time (-1 for inherited) -1

"Fcn4" (Fcn)

Table  3.9. "Fcn4" Parameters

Parameter Value
Expression u(16)
Sample time (-1 for inherited) -1

"Fcn5" (Fcn)

Table  3.10. "Fcn5" Parameters

Parameter Value
Expression u(17)
Sample time (-1 for inherited) -1

"MATLAB Function1" (MATLAB Function)

Table  3.11. MATLAB Function1 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  

12
Chapter 3. Subsystems

Table  3.12. MATLAB Function1 Argument Summary

Name Scope Port Data Type Size


N1 Input 1 double 1
Nmax Input 2 double 1
Epsi Output 1 double 1
Nmaxprev Input 3 double 1
DOD1 Input 4 double 1
DOD2 Input 5 double 1
DOD3 Input 6 double 1
c Input 7 double 1
Epsiprev Input 8 double 1
EpsiEqprev Input 9 double 1
EpsiEq Output 2 double 1
Ageprev Input 10 double 1
Age Output 3 double 1

MATLAB Function1 Function Script


function [Epsi,EpsiEq,Age] = fcn(N1,Nmax,
Nmaxprev,DOD1,DOD2,DOD3,c,Epsiprev,EpsiEqprev,Ageprev)
%#codegen
Epsi = Epsiprev;
EpsiEq = EpsiEqprev;
Age = Ageprev;
if(c>=3)
if (Nmax==Nmaxprev)
Epsi = Epsiprev;
EpsiEq = EpsiEqprev;
Age = Ageprev;
else
Epsi = Epsiprev+(0.5/Nmax)*(1-(DOD3/DOD2))+(0.5/Nmax)*(1-(DOD1/DOD2));
Age = Epsi*N1;
end
end

"Memory" (Memory)

Table  3.13. "Memory" Parameters

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)

Table  3.14. "Memory1" Parameters

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)

Table  3.15. "Memory2" Parameters

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)

Table  3.16. "Memory3" Parameters

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)

Table  3.17. "Nmax" Parameters

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)

Table  3.18. "Saturation" Parameters

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)

Table  3.19. "Saturation1" Parameters

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)

Table  3.20. "Saturation2" Parameters

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)

Table  3.21. "Sum" Parameters

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)

Table  3.22. "Sum1" Parameters

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)

Table  3.23. "Age" Parameters

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)

Table  3.24. "Demux1" Parameters

Parameter Value
Number of outputs 18
Display option none
Bus selection mode off

18
Chapter 3. Subsystems

"DOD and average current calculation Block" (MATLAB Function)

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

Name Scope Port Data Type Size


dSOC_dT Output 1 double 1
ibatdAv Output 2 double 1
ibatcAv Output 3 double 1
ibat Input 1 double 1
SOC Input 2 double 1
ndprev Input 3 double 1
ncprev Input 4 double 1
ibattTdprev Input 5 double 1
ibattTcprev Input 6 double 1
ibatcAv1prev Input 7 double 1
ibatdAv1prev Input 8 double 1
ibatdAv2prev Input 9 double 1
IdAveprev Input 10 double 1
IcAveprev Input 11 double 1
nd Output 4 double 1
nc Output 5 double 1
ibattTd Output 6 double 1
ibattTc Output 7 double 1

19
Chapter 3. Subsystems

Name Scope Port Data Type Size


ibatcAv1 Output 8 double 1
ibatdAv1 Output 9 double 1
ibatdAv2 Output 10 double 1
IdAve Output 11 double 1
IcAve Output 12 double 1
SOCdprev Input 12 double 1
SOCd Output 13 double 1
DODd Output 14 double 1
DODdn1 Output 15 double 1
DODdn2 Output 16 double 1
DOD1 Output 17 double 1
DOD2 Output 18 double 1
DOD3 Output 19 double 1
c Output 20 double 1
DODdprev Input 13 double 1
DODdn1prev Input 14 double 1
DODdn2prev Input 15 double 1
DOD1prev Input 16 double 1
DOD2prev Input 17 double 1
DOD3prev Input 18 double 1
cprev Input 19 double 1
Stateprev Input 20 double 1
State Output 21 double 1

DOD and average current calculation Block Function Script


function
[dSOC_dT,ibatdAv,ibatcAv,nd,nc,ibattTd,ibattTc,ibatcAv1,ibatdAv1,ibatdAv2,IdAve,IcAve,SOCd
=
fcn(ibat,SOC,ndprev,ncprev,ibattTdprev,ibattTcprev,ibatcAv1prev,ibatdAv1prev,ibatdAv2prev,
DODdprev,DODdn1prev,DODdn2prev,DOD1prev, DOD2prev,DOD3prev,cprev,Stateprev)
%#codegen
DOD = 100 - SOC;
dSOC_dT= (SOC-SOCdprev);
SOCd = SOC;
nd=ndprev+1;
nc=ncprev+1;
if(dSOC_dT <=0)
s=0;
else
s=1;
end
IdAve=IdAveprev;

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

Function Defined By Path


abs MATLAB  

21
Chapter 3. Subsystems

Function Defined By Path


eps MATLAB  
full MATLAB  
intmax MATLAB  
intmin MATLAB  
isfi MATLAB  
isfimath MATLAB  
isinf MATLAB  
isnan MATLAB  
isnumerictype MATLAB  
mod MATLAB  

"Ibatt" (Inport)

Table  3.28. "Ibatt" Parameters

Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto

"it init3" (Memory)

Table  3.29. "it init3" Parameters

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)

Table  3.30. "Mux3" Parameters

Parameter Value
Number of inputs 18
Display option none

"Qin" (Inport)

Table  3.31. "Qin" Parameters

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)

Table  3.32. "Qout" Parameters

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)

Table  3.33. "Rin" Parameters

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)

Table  3.34. "Rout" Parameters

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)

Table  3.35. "SOC" Parameters

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)

Table  3.36. "Tamb" Parameters

Parameter Value
Port number 3
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto

"Zero-Order Hold" (ZeroOrderHold)

Table  3.37. "Zero-Order Hold" Parameters

Parameter Value
Sample time (-1 for inherited) Batt.Tsim

25
Chapter 3. Subsystems

"Zero-Order Hold1" (ZeroOrderHold)

Table  3.38. "Zero-Order Hold1" Parameters

Parameter Value
Sample time (-1 for inherited) Batt.Tsim

Capacity and Internal Resistance


Adjustment Block
Figure  3.3. power_battery_aging/Battery/Model/Aging Model/Capacity and
Internal Resistance Adjustment Block

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)

Table  3.39. "Epsi" Parameters

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)

Table  3.40. "Fcn1" Parameters

Parameter Value
Expression u(2)-(u(2)-Batt.Qeol)*u(1)
Sample time (-1 for inherited) -1

"Fcn2" (Fcn)

Table  3.41. "Fcn2" Parameters

Parameter Value
Expression u(3)+(Batt.Reol-u(3))*u(1)
Sample time (-1 for inherited) -1

"Mux" (Mux)

Table  3.42. "Mux" Parameters

Parameter Value
Number of inputs 3
Display option bar

"Qin" (Inport)

Table  3.43. "Qin" Parameters

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)

Table  3.44. "Qout" Parameters

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)

Table  3.45. "Rin" Parameters

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)

Table  3.46. "Rout" Parameters

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)

Table  3.47. "Compare" Parameters

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)

Table  3.48. "Constant" Parameters

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)

Table  3.49. "u" Parameters

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)

Table  3.50. "y" Parameters

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)

Table  3.51. "Current" Parameters

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)

Table  3.52. "DOD*" Parameters

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)

Table  3.53. "Fcn" Parameters

Parameter Value
Expression 100-u(1)
Sample time (-1 for inherited) -1

"Icharge*" (Inport)

Table  3.54. "Icharge*" Parameters

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)

Table  3.55. "Idis*" Parameters

Parameter Value
Port number 3
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto

"MATLAB Function" (MATLAB Function)

Table  3.56. MATLAB Function 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.57. MATLAB Function Argument Summary

Name Scope Port Data Type Size


SOC Input 1 double 1
SOCmin Input 2 double 1
Idis Input 3 double 1
Icharge Input 4 double 1

34
Chapter 3. Subsystems

Name Scope Port Data Type Size


ibatt Output 1 double 1
Stateprev Input 5 double 1
State Output 2 double 1

MATLAB Function Function Script


function [ibatt,State] = fcn(SOC,SOCmin,Idis,Icharge,Stateprev)
%#codegen
State=Stateprev;
if(Stateprev==1 && SOC<=SOCmin)
State=0;
end
if(Stateprev==0 && SOC>=99)
State=1;
end
if (Stateprev==1)
ibatt=Idis;
else
ibatt=-Icharge;
end

"Memory" (Memory)

Table  3.58. "Memory" Parameters

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

"Rate Limiter" (RateLimiter)

Table  3.59. "Rate Limiter" Parameters

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)

Table  3.60. "Saturation" Parameters

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)

Table  3.61. "SOC" Parameters

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)

Table  3.62. "Charge Lead-Acid" Parameters

Parameter Value
Expression -u(3)*Batt.K*u(2)*(Batt.Q/(u(1)+Batt.Q*Batt.kc))
Sample time (-1 for inherited) -1

"Charge Li-Ion" (Fcn)

Table  3.63. "Charge Li-Ion" Parameters

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

"Charge NiCD" (Fcn)

Table  3.64. "Charge NiCD" Parameters

Parameter Value
Expression -u(3)*Batt.K*u(2)*(Batt.Q/(abs(u(1))+Batt.Q*Batt.kc))
Sample time (-1 for inherited) -1

"Charge NiMH" (Fcn)

Table  3.65. "Charge NiMH" Parameters

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)

Table  3.66. "Constant" Parameters

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)

Table  3.67. "Constant1" Parameters

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)

Table  3.68. "Constant2" Parameters

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)

Table  3.69. "Constant3" Parameters

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)

Table  3.70. "Constant4" Parameters

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)

Table  3.71. "In" Parameters

Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto

"Multiport Switch1" (MultiPortSwitch)

Table  3.72. "Multiport Switch1" Parameters

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)

Table  3.73. "Out" Parameters

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)

Table  3.74. "Product" Parameters

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)

Table  3.75. "Product1" Parameters

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)

Table  3.76. "Product2" Parameters

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)

Table  3.77. "Product3" Parameters

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)

Table  3.78. "State-Space" Parameters

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)

Table  3.79. "Abs" Parameters

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)

Table  3.80. "Add3" Parameters

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

"Compare To Zero2" (SubSystem)

Table  3.81. "Compare To Zero2" Parameters

Parameter Value
SimulinkmasksOperator_MP <
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on

"Constant" (Constant)

Table  3.82. "Constant" Parameters

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

"Data Type Conversion1" (DataTypeConversion)

Table  3.83. "Data Type Conversion1" Parameters

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)

Table  3.84. "Divide" Parameters

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)

Table  3.85. "Exp" Parameters

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)

Table  3.86. "Gain1" Parameters

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)

Table  3.87. "Gain4" Parameters

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)

Table  3.88. "i" Parameters

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)

Table  3.89. "Integrator2" Parameters

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)

Table  3.90. "it" Parameters

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)

Table  3.91. "Li-Ion" Parameters

Parameter Value
Expression Batt.A*exp(-Batt.B*u(1))
Sample time (-1 for inherited) -1

"Multiport Switch1" (MultiPortSwitch)

Table  3.92. "Multiport Switch1" Parameters

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)

Table  3.93. "Saturation" Parameters

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

Max. Number of Cycles Calculation Block


Figure  3.9. power_battery_aging/Battery/Model/Aging Model/Max. Number
of Cycles Calculation Block

2
Dataout
1 u(15)
Datain
u(6)
f(u) 1
u(5)
Nmax
2
Tamb

51
Chapter 3. Subsystems

Blocks
Parameters
"Datain" (Inport)

Table  3.94. "Datain" Parameters

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)

Table  3.95. "Dataout" Parameters

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)

Table  3.96. "Fcn" Parameters

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)

Table  3.97. "Fcn2" Parameters

Parameter Value
Expression u(15)
Sample time (-1 for inherited) -1

"Fcn3" (Fcn)

Table  3.98. "Fcn3" Parameters

Parameter Value
Expression u(6)
Sample time (-1 for inherited) -1

"Fcn4" (Fcn)

Table  3.99. "Fcn4" Parameters

Parameter Value
Expression u(5)
Sample time (-1 for inherited) -1

53
Chapter 3. Subsystems

"Mux1" (Mux)

Table  3.100. "Mux1" Parameters

Parameter Value
Number of inputs 4
Display option bar

"Nmax" (Outport)

Table  3.101. "Nmax" Parameters

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)

Table  3.102. "Saturation" Parameters

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)

Table  3.103. "Saturation1" Parameters

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)

Table  3.104. "Saturation2" Parameters

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)

Table  3.105. "Tamb" Parameters

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)

Table  3.106. "in" Parameters

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)

Table  3.107. "out" Parameters

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

[it_sat] xo [Qc] [SOC]


E_NL
it init int(i) [it_sat]
-Batt.K*u(2)/(u(2)-u(1))*u(1) SOC (%)
[it_sat] 100*(1-u(1)/u(2)) 1
[Qc] m
E_dyn Discharge
[i_filter]
-u(3)*Batt.K*u(2)*u(4)/(u(4)-u(1))
Current (A)
1
E_dyn Charge Voltage (V)
[Qc]
In Out
[Qc] up
up
u y Exp
it_SC u y 2
f(u) lo
[i_filter] 1 i V
Current (A) 1 lo
current3 Exp [T] f(u) Current (A)
[i_filter] [it_sat] it
<0

[Qc]
[it_sat] -Batt.C*u(1)

[T]
Ambient Temperature (oC)
[Rout] f(u)

2 f(u) [Q]
Ta

[i_filter]

Cell Temperature (oC)


Current filter

Tamb
current El
T
1 i Plosses Ploss
Current (A)
[T] [T]
T Thermal Model
Power loss estimation

Ibatt Age (Equivalent Full Cycles)


Age
[SOC] SOC

Tamb Qout
Maximum Capacity (Ah)
[Q] Qin
Rout [Rout] [Qc]
Rin

Blocks
Parameters
"Add" (Sum)

Table  3.108. "Add" Parameters

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)

Table  3.109. "Add2" Parameters

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)

Table  3.110. "Add3" Parameters

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

"Bus Creator" (BusCreator)

Table  3.111. "Bus Creator" Parameters

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

"Compare To Zero" (SubSystem)

Table  3.112. "Compare To Zero" Parameters

Parameter Value
SimulinkmasksOperator_MP >
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on

"Compare To Zero2" (SubSystem)

Table  3.113. "Compare To Zero2" Parameters

Parameter Value
SimulinkmasksOperator_MP <
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on

"Constant" (Constant)

Table  3.114. "Constant" Parameters

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)

Table  3.115. "Constant1" Parameters

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)

Table  3.116. "Constant14" Parameters

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)

Table  3.117. "Constant17" Parameters

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)

Table  3.118. "Constant8" Parameters

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)

Table  3.119. "Constant9" Parameters

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)

Table  3.120. "current" Parameters

Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto

"current " (InportShadow)

Table  3.121. "current " Parameters

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

"Current filter" (TransferFcn)

Table  3.122. "Current filter" Parameters

Parameter Value
Numerator coefficients [1]
Denominator coefficients [Batt_Tr/3 1]
State Name (e.g., 'position') ''

"current1" (InportShadow)

Table  3.123. "current1" Parameters

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)

Table  3.124. "current2" Parameters

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)

Table  3.125. "current3" Parameters

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

"Data Type Conversion1" (DataTypeConversion)

Table  3.126. "Data Type Conversion1" Parameters

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

"Data Type Conversion2" (DataTypeConversion)

Table  3.127. "Data Type Conversion2" Parameters

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

"E_dyn Discharge" (Fcn)

Table  3.128. "E_dyn Discharge" Parameters

Parameter Value
Expression -u(3)*Batt.K*u(2)*u(4)/(u(4)-u(1))
Sample time (-1 for inherited) -1

"E_NL" (Fcn)

Table  3.129. "E_NL" Parameters

Parameter Value
Expression -Batt.K*u(2)/(u(2)-u(1))*u(1)
Sample time (-1 for inherited) -1

"Fcn1" (Fcn)

Table  3.130. "Fcn1" Parameters

Parameter Value
Expression 100*(1-u(1)/u(2))
Sample time (-1 for inherited) -1

"Fcn2" (Fcn)

Table  3.131. "Fcn2" Parameters

Parameter Value
Expression exp(Batt.alpha*((1/u(1))-(1/Batt.NomT)))
Sample time (-1 for inherited) -1

"Fcn3" (Fcn)

Table  3.132. "Fcn3" Parameters

Parameter Value
Expression (u(1)-Batt.NomT)*Batt.dE_dT
Sample time (-1 for inherited) -1

67
Chapter 3. Subsystems

"Fcn4" (Fcn)

Table  3.133. "Fcn4" Parameters

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)

Table  3.134. "Fcn5" Parameters

Parameter Value
Expression -Batt.C*u(1)
Sample time (-1 for inherited) -1

"Fcn6" (Fcn)

Table  3.135. "Fcn6" Parameters

Parameter Value
Expression -u(1)*(1-1e-3)*Batt.kcsat*0.9999
Sample time (-1 for inherited) -1

"Fcn7" (Fcn)

Table  3.136. "Fcn7" Parameters

Parameter Value
Expression Batt.Q+Batt.dQ_dT*(u(1)-Batt.NomT)
Sample time (-1 for inherited) -1

"Fcn9" (Fcn)

Table  3.137. "Fcn9" Parameters

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)

Table  3.138. "From1" Parameters

Parameter Value
Goto tag i_filter
Icon display Tag

"From10" (From)

Table  3.139. "From10" Parameters

Parameter Value
Goto tag T
Icon display Tag

"From11" (From)

Table  3.140. "From11" Parameters

Parameter Value
Goto tag T
Icon display Tag

"From12" (From)

Table  3.141. "From12" Parameters

Parameter Value
Goto tag T
Icon display Tag

"From13" (From)

Table  3.142. "From13" Parameters

Parameter Value
Goto tag T
Icon display Tag

69
Chapter 3. Subsystems

"From14" (From)

Table  3.143. "From14" Parameters

Parameter Value
Goto tag it_sat
Icon display Tag

"From15" (From)

Table  3.144. "From15" Parameters

Parameter Value
Goto tag it_sat
Icon display Tag

"From16" (From)

Table  3.145. "From16" Parameters

Parameter Value
Goto tag it_sat
Icon display Tag

"From17" (From)

Table  3.146. "From17" Parameters

Parameter Value
Goto tag it_sat
Icon display Tag

"From18" (From)

Table  3.147. "From18" Parameters

Parameter Value
Goto tag it_sat
Icon display Tag

70
Chapter 3. Subsystems

"From19" (From)

Table  3.148. "From19" Parameters

Parameter Value
Goto tag it_sat
Icon display Tag

"From2" (From)

Table  3.149. "From2" Parameters

Parameter Value
Goto tag i_filter
Icon display Tag

"From20" (From)

Table  3.150. "From20" Parameters

Parameter Value
Goto tag SOC
Icon display Tag

"From21" (From)

Table  3.151. "From21" Parameters

Parameter Value
Goto tag Q
Icon display Tag

"From23" (From)

Table  3.152. "From23" Parameters

Parameter Value
Goto tag Qc
Icon display Tag

71
Chapter 3. Subsystems

"From24" (From)

Table  3.153. "From24" Parameters

Parameter Value
Goto tag Rout
Icon display Tag

"From3" (From)

Table  3.154. "From3" Parameters

Parameter Value
Goto tag i_filter
Icon display Tag

"From4" (From)

Table  3.155. "From4" Parameters

Parameter Value
Goto tag i_filter
Icon display Tag

"From5" (From)

Table  3.156. "From5" Parameters

Parameter Value
Goto tag Qc
Icon display Tag

"From6" (From)

Table  3.157. "From6" Parameters

Parameter Value
Goto tag Qc
Icon display Tag

72
Chapter 3. Subsystems

"From7" (From)

Table  3.158. "From7" Parameters

Parameter Value
Goto tag Qc
Icon display Tag

"From8" (From)

Table  3.159. "From8" Parameters

Parameter Value
Goto tag Qc
Icon display Tag

"From9" (From)

Table  3.160. "From9" Parameters

Parameter Value
Goto tag Qc
Icon display Tag

"Gain" (Gain)

Table  3.161. "Gain" Parameters

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)

Table  3.162. "Gain2" Parameters

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)

Table  3.163. "Goto" Parameters

Parameter Value
Tag i_filter
Icon display Tag
Tag visibility local

"Goto1" (Goto)

Table  3.164. "Goto1" Parameters

Parameter Value
Tag Q

74
Chapter 3. Subsystems

Parameter Value
Icon display Tag
Tag visibility local

"Goto2" (Goto)

Table  3.165. "Goto2" Parameters

Parameter Value
Tag T
Icon display Tag
Tag visibility local

"Goto3" (Goto)

Table  3.166. "Goto3" Parameters

Parameter Value
Tag SOC
Icon display Tag
Tag visibility local

"Goto4" (Goto)

Table  3.167. "Goto4" Parameters

Parameter Value
Tag it_sat
Icon display Tag
Tag visibility local

"Goto5" (Goto)

Table  3.168. "Goto5" Parameters

Parameter Value
Tag Qc
Icon display Tag
Tag visibility local

75
Chapter 3. Subsystems

"Goto6" (Goto)

Table  3.169. "Goto6" Parameters

Parameter Value
Tag Rout
Icon display Tag
Tag visibility local

"int(i)" (Integrator)

Table  3.170. "int(i)" Parameters

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') ''

"it init" (Memory)

Table  3.171. "it init" Parameters

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

"it init1" (Memory)

Table  3.172. "it init1" Parameters

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

"it init2" (Memory)

Table  3.173. "it init2" Parameters

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)

Table  3.174. "m" Parameters

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)

Table  3.175. "Memory" Parameters

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)

Table  3.176. "Memory2" Parameters

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)

Table  3.177. "Mux1" Parameters

Parameter Value
Number of inputs 4

78
Chapter 3. Subsystems

Parameter Value
Display option bar

"Mux2" (Mux)

Table  3.178. "Mux2" Parameters

Parameter Value
Number of inputs 4
Display option bar

"Mux3" (Mux)

Table  3.179. "Mux3" Parameters

Parameter Value
Number of inputs 3
Display option bar

"Mux4" (Mux)

Table  3.180. "Mux4" Parameters

Parameter Value
Number of inputs 2
Display option bar

"Mux5" (Mux)

Table  3.181. "Mux5" Parameters

Parameter Value
Number of inputs 2
Display option bar

"Product" (Product)

Table  3.182. "Product" Parameters

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)

Table  3.183. "Product1" Parameters

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)

Table  3.184. "Product2" Parameters

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)

Table  3.185. "R" Parameters

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)

Table  3.186. "R1" Parameters

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)

Table  3.187. "R2" Parameters

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)

Table  3.188. "R3" Parameters

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)

Table  3.189. "R4" Parameters

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

"Relational Operator" (RelationalOperator)

Table  3.190. "Relational Operator" Parameters

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)

Table  3.191. "Saturation" Parameters

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

"Saturation Dynamic" (SubSystem)

Table  3.192. "Saturation Dynamic" Parameters

Parameter Value
SimulinkmasksOutputMinimum_MP []
SimulinkmasksOutputMaximum_MP []
SimulinkmasksOutputDataType_MP Inherit: Same as second input
SimulinkmasksLockOutputDataTypeAgainstFxpTools_MP off
SimulinkmasksIntegerRoundingMode_MP Floor
SimulinkmasksSaturateOnIntegerOverflow_MP off

"Saturation Dynamic1" (SubSystem)

Table  3.193. "Saturation Dynamic1" Parameters

Parameter Value
SimulinkmasksOutputMinimum_MP []
SimulinkmasksOutputMaximum_MP []
SimulinkmasksOutputDataType_MP Inherit: Same as second input
SimulinkmasksLockOutputDataTypeAgainstFxpTools_MP off
SimulinkmasksIntegerRoundingMode_MP Floor
SimulinkmasksSaturateOnIntegerOverflow_MP off

"Saturation Dynamic2" (SubSystem)

Table  3.194. "Saturation Dynamic2" Parameters

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)

Table  3.195. "Saturation2" Parameters

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)

Table  3.196. "Saturation3" Parameters

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)

Table  3.197. "Sum" Parameters

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)

Table  3.198. "Sum1" Parameters

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)

Table  3.199. "Switch7" Parameters

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)

Table  3.200. "Ta" Parameters

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)

Table  3.201. "V" Parameters

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)

Table  3.202. "Clock" Parameters

Parameter Value
Display time off
Decimation 10

89
Chapter 3. Subsystems

"Derivative" (Derivative)

Table  3.203. "Derivative" Parameters

Parameter Value
Coefficient c in the transfer function approximation s/(c*s + 1) used for linearization inf

"Hit Crossing" (HitCross)

Table  3.204. "Hit Crossing" Parameters

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

"Look-Up Table" (Lookup)

Table  3.205. "Look-Up Table" Parameters

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

Figure  3.13. Look-Up Table

Table  3.206. Look-Up Table

0 20
720000 20
720000 80
1440000 80
1440000 20
1440001 20

"Out" (Outport)

Table  3.207. "Out" Parameters

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

Power loss estimation


Figure  3.14. power_battery_aging/Battery/Model/Power loss estimation

<0

2
f(u)
1 i

Plosses 3
T

f(u)
1
El

Blocks
Parameters
"Abs" (Abs)

Table  3.208. "Abs" Parameters

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)

Table  3.209. "Abs1" Parameters

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)

Table  3.210. "Add" Parameters

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

"Compare To Zero2" (SubSystem)

Table  3.211. "Compare To Zero2" Parameters

Parameter Value
SimulinkmasksOperator_MP <
SimulinkmasksOutputDataType_MP uint8
SimulinkmasksEnableZerocrossingDetection_MP on

"Data Type Conversion1" (DataTypeConversion)

Table  3.212. "Data Type Conversion1" Parameters

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)

Table  3.213. "El" Parameters

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)

Table  3.214. "Fcn1" Parameters

Parameter Value
Expression Batt.dE_dT*u(1)*u(2)
Sample time (-1 for inherited) -1

"Fcn3" (Fcn)

Table  3.215. "Fcn3" Parameters

Parameter Value
Expression -u(2)+Batt.R*u(1)
Sample time (-1 for inherited) -1

"Gain" (Gain)

Table  3.216. "Gain" Parameters

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)

Table  3.217. "i" Parameters

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)

Table  3.218. "Mux" Parameters

Parameter Value
Number of inputs 2
Display option bar

"Mux2" (Mux)

Table  3.219. "Mux2" Parameters

Parameter Value
Number of inputs 2
Display option bar

"Plosses" (Outport)

Table  3.220. "Plosses" Parameters

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)

Table  3.221. "Product" Parameters

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)

Table  3.222. "T" Parameters

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)

Table  3.223. "Data Type Duplicate" Parameters

Parameter Value
Number of input ports 2

98
Chapter 3. Subsystems

"Data Type Propagation" (S-Function)

Table  3.224. "Data Type Propagation" Parameters

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)

Table  3.225. "lo" Parameters

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)

Table  3.226. "LowerRelop1" Parameters

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)

Table  3.227. "Switch" Parameters

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)

Table  3.228. "Switch2" Parameters

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)

Table  3.229. "u" Parameters

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)

Table  3.230. "up" Parameters

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)

Table  3.231. "UpperRelop" Parameters

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)

Table  3.232. "y" Parameters

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)

Table  3.233. "From1" Parameters

Parameter Value
Goto tag T58_5766_5449796799047
Icon display Tag

"From2" (From)

Table  3.234. "From2" Parameters

Parameter Value
Goto tag T50_5005_4145030058878
Icon display Tag

"Mux" (Mux)

Table  3.235. "Mux" Parameters

Parameter Value
Number of inputs [1 1]
Display option bar

"u" (Outport)

Table  3.236. "u" Parameters

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)

Table  3.237. "Demux" Parameters

Parameter Value
Number of outputs 18
Display option none
Bus selection mode off

"Memory" (Memory)

Table  3.238. "Memory" Parameters

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)

Table  3.239. "Memory1" Parameters

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)

Table  3.240. "Memory10" Parameters

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)

Table  3.241. "Memory11" Parameters

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)

Table  3.242. "Memory12" Parameters

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)

Table  3.243. "Memory13" Parameters

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)

Table  3.244. "Memory14" Parameters

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)

Table  3.245. "Memory15" Parameters

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)

Table  3.246. "Memory16" Parameters

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)

Table  3.247. "Memory17" Parameters

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)

Table  3.248. "Memory2" Parameters

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)

Table  3.249. "Memory3" Parameters

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)

Table  3.250. "Memory4" Parameters

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)

Table  3.251. "Memory5" Parameters

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)

Table  3.252. "Memory6" Parameters

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)

Table  3.253. "Memory7" Parameters

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)

Table  3.254. "Memory8" Parameters

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)

Table  3.255. "Memory9" Parameters

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)

Table  3.256. "Mux1" Parameters

Parameter Value
Number of inputs 18
Display option none

"x(k)" (Inport)

Table  3.257. "x(k)" Parameters

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)

Table  3.258. "x(k-1)" Parameters

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)

Table  3.259. "Gain" Parameters

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)

Table  3.260. "Ploss" Parameters

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)

Table  3.261. "Sum" Parameters

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)

Table  3.262. "T" Parameters

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)

Table  3.263. "Tamb" Parameters

Parameter Value
Port number 1
Port dimensions (-1 for inherited) -1
Sample time (-1 for inherited) -1
Minimum []
Maximum []
Data type Inherit: auto

"Transfer Fcn (with initial outputs)" (SubSystem)

Table  3.264. "Transfer Fcn (with initial outputs)" Parameters

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

"Transfer Fcn1" (TransferFcn)

Table  3.265. "Transfer Fcn1" Parameters

Parameter Value
Numerator coefficients [1]
Denominator coefficients [1e-6 1]
State Name (e.g., 'position') ''

Transfer Fcn (with initial outputs)


Figure  3.19. power_battery_aging/Battery/Model/Thermal Model/Transfer
Fcn (with initial outputs)

1 1

State Space

Blocks
Parameters
"In1" (Inport)

Table  3.266. "In1" Parameters

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)

Table  3.267. "Out1" Parameters

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

"State Space" (StateSpace)

Table  3.268. "State Space" Parameters

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)

Table  3.269. "Demux" Parameters

Parameter Value
Number of outputs 1
Display option bar
Bus selection mode off

"Goto1" (Goto)

Table  3.270. "Goto1" Parameters

Parameter Value
Tag T54_5486_5217081371391
Icon display Tag
Tag visibility global

"v,i" (Inport)

Table  3.271. "v,i" Parameters

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

Table  5.1. power_battery_aging Configuration Set

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

Table  5.2. power_battery_aging Configuration Set.Components(1)

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

Table  5.3. power_battery_aging Configuration Set.Components(2)

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]

Table  5.4. power_battery_aging Configuration Set.Components(3)

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

MaxStackSize Inherit from target


BufferReusableBoundary on
SimCompilerOptimization off
AccelVerboseBuild off
OptimizeBlockOrder off
OptimizeDataStoreBuffers on
BusAssignmentInplaceUpdate on
DifferentSizesBufferReuse off
OptimizationLevel level2
OptimizationPriority Balanced
OptimizationCustomize on
UseRowMajorAlgorithm off
LabelGuidedReuse off
MultiThreadedLoops off
DenormalBehavior GradualUnderflow

Table  5.5. power_battery_aging Configuration Set.Components(4)

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

Table  5.6. power_battery_aging Configuration Set.Components(5)

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

Table  5.7. power_battery_aging Configuration Set.Components(6)

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

Table  5.8. power_battery_aging Configuration Set.Components(7)

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

Table  5.9. power_battery_aging Configuration Set.Components(8)

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)]

Table  5.10. power_battery_aging Configuration Set.Components(9)

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

Table  5.11. power_battery_aging Configuration Set.Components(10)

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  

Table  5.12. power_battery_aging Configuration


Set.Components(8).CodeCoverageSettings

Property Value
TopModelCoverage off
ReferencedModelCoverage off
CoverageTool None

135
Chapter 5. System Model Configuration

Table  5.13. power_battery_aging Configuration


Set.Components(8).Components(1)

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  

Table  5.14. power_battery_aging Configuration


Set.Components(8).Components(2)

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

Table  5.15. power_battery_aging Configuration


Set.Components(10).Components(1)

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  

Table  5.16. power_battery_aging Configuration


Set.Components(10).Components(2)

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

power_battery_aging Configuration Set.Components(10).Listener(1) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(2) (handle.listener, )

140
Chapter 5. System Model Configuration

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(3) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(4) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(5) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(6) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(7) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(8) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(9) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(10) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(11) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(12) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(13) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(14) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(15) (handle.listener, )

Note: this object has no unfiltered properties.

power_battery_aging Configuration Set.Components(10).Listener(16) (handle.listener, )

141
Chapter 5. System Model Configuration

Note: this object has no unfiltered properties.

Table  5.17. power_battery_aging Configuration


Set.Components(10).Components(2).Components(1)

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

Table  5.18. power_battery_aging Configuration


Set.Components(10).Components(2).Components(2)

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.

Root System. Describes the design's root system.

Subsystems. Describes each of the design's subsystems.

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.

Glossary. Defines Simulink terms used in this report.

Root System Description


This section describes a design's root system. It contains the following sections:

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.

Blocks. This section has two subsections:

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.

State Chart Descriptions


This section describes the state machines used by Stateflow blocks to compute their outputs, i.e.,
Stateflow blocks. Each state machine description contains the following sections:
Chart. Diagram representing the state machine.
States. Describes the state machine's states. Each state description includes the state's diagram
and diagrams and/or descriptions of graphical functions, Simulink functions, truth tables, and
MATLAB functions parented by the state.

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

You might also like