📄 batterysoc.mdl
字号:
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [865, 394, 895, 426]
Floating off
Location [5, 52, 1277, 985]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1000"
YMin "0"
YMax "50"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch"
Position [685, 330, 715, 360]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "I"
Position [805, 338, 835, 352]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "I"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "FUDS"
SrcPort 1
Points [130, 0; 0, 60]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "PNGV"
SrcPort 1
Points [120, 0; 0, -70]
DstBlock "Switch"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "temp"
Ports [0, 1]
Position [25, 94, 60, 126]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "temp"
Location [2, 82, 1022, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [480, 100, 510, 130]
Value "30"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [660, 149, 690, 181]
Floating off
Location [6, 52, 1022, 729]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [585, 105, 605, 125]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RandomNumber
Name "V(k)"
Position [480, 170, 510, 200]
Variance "10"
SampleTime "0"
}
Block {
BlockType Outport
Name "T"
Position [650, 108, 680, 122]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "T"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "V(k)"
SrcPort 1
Points [80, 0]
DstBlock "Sum1"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "Current"
Position [85, 38, 115, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Temp"
Position [85, 103, 115, 117]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "current"
SrcPort 1
Points [0, 0]
DstBlock "Current"
DstPort 1
}
Line {
SrcBlock "temp"
SrcPort 1
Points [0, 0]
DstBlock "Temp"
DstPort 1
}
}
}
Block {
BlockType Memory
Name "Memory"
Position [475, 815, 505, 845]
Orientation "left"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [950, 63, 955, 132]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [945, 333, 950, 462]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [995, 84, 1025, 116]
Floating off
Location [1, 52, 1273, 985]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1000"
YMin "0.6"
YMax "0.8"
SaveName "ScopeData10"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [995, 194, 1025, 226]
Floating off
Location [159, 131, 818, 559]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.01"
YMax "0.01"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [980, 384, 1010, 416]
Floating off
Location [-3, 48, 1277, 989]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0.6"
YMax "0.8"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [955, 699, 985, 731]
Floating off
Location [6, 52, 1022, 729]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1000"
YMin "0.5"
YMax "0.9"
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [295, 199, 325, 231]
Floating off
Location [6, 52, 1022, 729]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [285, 284, 315, 316]
Floating off
Location [6, 51, 1022, 729]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [525, 70, 545, 90]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [940, 200, 960, 220]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [610, 63, 645, 97]
X0 "0.8"
}
Block {
BlockType SubSystem
Name "current efficiency"
Ports [3, 1]
Position [120, 217, 225, 293]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "current efficiency"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "current"
Position [110, 93, 140, 107]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "SOC"
Position [100, 278, 130, 292]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Temp"
Position [110, 183, 140, 197]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Lookup
Name "Coulombic\nefficiency curve"
Position [240, 75, 290, 125]
InputValues "[-160 -120 -80 -40 -20 0 20 40 80 120 160]"
OutputValues "[0.94 0.95 0.95 0.965 0.97 0.98 0.97 0.93 0"
".92 0.91 0.87]"
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [425, 128, 430, 252]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Lookup
Name "SOC correct curve"
Position [235, 260, 285, 310]
InputValues "[0:0.1:1]"
OutputValues "[0.8 0.9 1 1 1 1 1 1 1 0.9 0.8]"
SaturateOnIntegerOverflow off
}
Block {
BlockType Fcn
Name "converted Ce"
Position [475, 175, 535, 205]
Expr "u(1)*u(2)*u(3)"
}
Block {
BlockType Lookup
Name "temperature\ncorrection curve"
Position [240, 165, 290, 215]
InputValues "[-10:25]"
OutputValues "[0.85:0.005:0.9 0.904:0.004:1]"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Ce"
Position [590, 183, 620, 197]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "current"
SrcPort 1
DstBlock "Coulombic\nefficiency curve"
DstPort 1
}
Line {
SrcBlock "Temp"
SrcPort 1
DstBlock "temperature\ncorrection curve"
DstPort 1
}
Line {
SrcBlock "SOC"
SrcPort 1
DstBlock "SOC correct curve"
DstPort 1
}
Line {
SrcBlock "Coulombic\nefficiency curve"
SrcPort 1
Points [55, 0; 0, 50]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "temperature\ncorrection curve"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "SOC correct curve"
SrcPort 1
Points [60, 0; 0, -55]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "converted Ce"
SrcPort 1
DstBlock "Ce"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "converted Ce"
DstPort 1
}
Annotation {
Name "Kt"
Position [384, 182]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Ksoc"
Position [378, 219]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Ce"
Position [380, 140]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType SubSystem
Name "kalmanfilterSOC"
Ports [11, 2]
Position [690, 477, 800, 793]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "kalmanfilterSOC"
Location [0, 82, 1263, 1000]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "current"
Position [70, 63, 100, 77]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Ce"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -