📄 batterysoc.mdl
字号:
Position [105, 83, 135, 97]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Qa"
Position [135, 103, 165, 117]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Y"
Position [80, 28, 110, 42]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "K0"
Position [75, 238, 105, 252]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Rd"
Position [110, 253, 140, 267]
Port "6"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Rc"
Position [155, 273, 185, 287]
Port "7"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "K1"
Position [75, 423, 105, 437]
Port "8"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "K2"
Position [115, 438, 145, 452]
Port "9"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "K3"
Position [150, 453, 180, 467]
Port "10"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "K4"
Position [80, 468, 110, 482]
Port "11"
IconDisplay "Port number"
}
Block {
BlockType Fcn
Name "Fcn"
Position [365, 85, 425, 115]
Expr "u(1)*u(2)*u(4)/u(3)"
}
Block {
BlockType Mux
Name "Mux"
Ports [5, 1]
Position [305, 418, 310, 502]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1]
Position [305, 58, 310, 142]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [8, 1]
Position [625, 204, 630, 411]
ShowName off
Inputs "8"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [320, 520, 325, 590]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [3, 1]
Position [635, 571, 640, 639]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [4, 1]
Position [835, 68, 840, 152]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Constant
Name "Qw"
Position [80, 590, 110, 620]
Value "0.5"
}
Block {
BlockType Constant
Name "Rv"
Position [80, 540, 110, 570]
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [465, 90, 485, 110]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [180, 595, 200, 615]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [435, 255, 465, 285]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [575, 138, 610, 172]
Orientation "left"
NamePlacement "alternate"
X0 "0.60"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [360, 638, 395, 672]
Orientation "left"
X0 "1"
}
Block {
BlockType Constant
Name "deltaT"
Position [70, 115, 100, 145]
Value "0.001"
}
Block {
BlockType Fcn
Name "error covariance\nmeasurement update"
Position [700, 590, 760, 620]
Expr "(1-u(1)*u(3))*u(2)"
}
Block {
BlockType Fcn
Name "kalman gain matrix"
Position [380, 540, 440, 570]
Expr "u(1)*u(3)/(u(1)*u(3)*u(1)+u(2))"
}
Block {
BlockType Fcn
Name "measurement matrix"
Position [355, 445, 415, 475]
Expr "u(1)/(u(5)*u(5))-u(2)+u(3)/u(5)-u(4)/(1-u(5"
"))"
}
Block {
BlockType Fcn
Name "measurement value"
Position [685, 295, 745, 325]
Expr "u(2)-u(3)*u(4)-u(5)*u(1)+u(6)/u(1)+u(7)*log"
"(u(1))-u(8)*log(1-u(1))"
}
Block {
BlockType Fcn
Name "state estimate\nmeasurement update"
Position [895, 95, 955, 125]
Expr "u(2)+u(4)*(u(1)-u(3))"
}
Block {
BlockType Outport
Name "SOC"
Position [1015, 103, 1045, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "error \ncovariance"
Position [895, 598, 925, 612]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
DstBlock "Mux5"
DstPort 2
}
Branch {
Points [0, 120]
Branch {
Points [-290, 0; 0, 270]
DstBlock "Mux"
DstPort 5
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
}
Line {
SrcBlock "current"
SrcPort 1
Points [0, 0; 175, 0]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, 200]
Branch {
Points [0, 25]
DstBlock "Mux2"
DstPort 4
}
Branch {
DstBlock "Switch"
DstPort 2
}
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "K1"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -110]
DstBlock "Mux2"
DstPort 5
}
}
Line {
SrcBlock "K2"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -100]
DstBlock "Mux2"
DstPort 6
}
}
Line {
SrcBlock "K3"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Mux"
DstPort 3
}
Branch {
Points [0, -90]
DstBlock "Mux2"
DstPort 7
}
}
Line {
SrcBlock "K4"
SrcPort 1
Points [0, 0; 110, 0]
Branch {
DstBlock "Mux"
DstPort 4
}
Branch {
Points [0, -80]
DstBlock "Mux2"
DstPort 8
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "deltaT"
SrcPort 1
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "Ce"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Qa"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "measurement matrix"
SrcPort 1
Points [155, 0; 0, 45]
Branch {
Points [-375, 0; 0, 25]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "Rd"
SrcPort 1
Points [0, 0]
DstBlock "Switch"
DstPort 1
}
Line {
Labels [2, 0]
SrcBlock "Rc"
SrcPort 1
Points [0, 0]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [0, 0]
DstBlock "measurement value"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
DstBlock "measurement matrix"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-95, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [-165, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [0, 0; 65, 0]
Branch {
Points [0, -25]
DstBlock "Mux3"
DstPort 3
}
Branch {
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Qw"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
Points [0, 0]
DstBlock "error covariance\nmeasurement update"
DstPort 1
}
Line {
SrcBlock "Rv"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [0, 0]
DstBlock "kalman gain matrix"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "state estimate\nmeasurement update"
DstPort 1
}
Line {
SrcBlock "Y"
SrcPort 1
Points [705, 0]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "kalman gain matrix"
SrcPort 1
Points [0, 0; 70, 0]
Branch {
Points [305, 0]
DstBlock "Mux5"
DstPort 4
}
Branch {
Points [0, 70]
DstBlock "Mux4"
DstPort 3
}
}
Line {
SrcBlock "measurement value"
SrcPort 1
Points [40, 0; 0, -190]
DstBlock "Mux5"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "K0"
SrcPort 1
Points [0, 0]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "state estimate\nmeasurement update"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "SOC"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Unit Delay"
DstPort 1
}
}
Line {
SrcBlock "error covariance\nmeasurement update"
SrcPort 1
Points [0, 0; 65, 0]
Branch {
Points [0, 50]
DstBlock "Unit Delay1"
DstPort 1
}
Branch {
DstBlock "error \ncovariance"
DstPort 1
}
}
Annotation {
Position [353, 61]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Xk|k-1"
Position [503, 97]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Xk|k"
Position [993, 91]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Ck"
Position [447, 452]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -