📄 sofc_5kw.mdl
字号:
NamePlacement "alternate"
Gain "(1-0.5833)/2500e-6"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "1-D/L"
Position [135, 85, 165, 115]
Orientation "up"
NamePlacement "alternate"
Gain "(1-0.5833)/1.2e-3"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "1/L"
Position [90, 30, 120, 60]
NamePlacement "alternate"
Gain "1/1.2e-3"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "1/RC"
Position [190, 195, 220, 225]
Orientation "left"
Gain "1/(4.608*2500e-6)"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Fcn
Name "Fcn"
Position [655, 248, 695, 272]
ShowName off
Expr "(1/u[2])*u[1]"
}
Block {
BlockType From
Name "From"
Position [525, 241, 555, 259]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Vc"
}
Block {
BlockType Goto
Name "Goto"
Position [280, 187, 315, 203]
ShowName off
GotoTag "Vc"
TagVisibility "local"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [190, 30, 220, 60]
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [190, 140, 220, 170]
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [620, 241, 625, 279]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "PID Controller"
Ports [1, 1]
Position [380, 330, 410, 360]
SourceBlock "simulink_extras/Additional\nLinear/PID Controller"
SourceType "PID Controller"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "12"
I "5"
D "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [140, 35, 160, 55]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [140, 145, 160, 165]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [300, 330, 320, 350]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [550, 260, 570, 280]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Vc"
Ports [1]
Position [285, 139, 315, 171]
Floating off
Location [5, 51, 1029, 736]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0"
YMax "92"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Constant
Name "Vdc ref"
Position [250, 325, 280, 355]
NamePlacement "alternate"
Value "480"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Vdc ref1"
Position [520, 283, 545, 307]
NamePlacement "alternate"
ShowName off
Value "0.465"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Scope
Name "iL"
Ports [1]
Position [285, 29, 315, 61]
Floating off
Location [1, 52, 1025, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "iL1"
Ports [1]
Position [390, 269, 420, 301]
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "iL2"
Ports [1]
Position [620, 329, 650, 361]
ShowName off
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveToWorkspace on
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "iL3"
Ports [1]
Position [495, 372, 515, 398]
ShowName off
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "iL4"
Ports [1]
Position [725, 247, 745, 273]
ShowName off
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveToWorkspace on
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "iL5"
Ports [1]
Position [630, 282, 650, 308]
ShowName off
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "iL6"
Ports [1]
Position [435, 382, 455, 408]
ShowName off
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Outport
Name "Vdc"
Position [720, 208, 750, 222]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "1-D/L"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "1/RC"
SrcPort 1
Points [-35, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 55]
DstBlock "1/RC"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "1-D/L"
DstPort 1
}
Branch {
Points [10, 0]
Branch {
Points [-25, 0; 0, 220; 80, 0]
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [5, 0]
Branch {
DstBlock "Vc"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Goto"
DstPort 1
}
}
}
}
Line {
SrcBlock "1-D/C"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 65; 85, 0; 0, 130; -250, 0]
DstBlock "1-D/C"
DstPort 1
}
Branch {
DstBlock "iL"
DstPort 1
}
}
Line {
SrcBlock "1/L"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Vdc ref"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [25, 0]
Branch {
Points [0, -55]
DstBlock "iL1"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "PID Controller"
DstPort 1
}
}
Line {
SrcBlock "PID Controller"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "0-1"
DstPort 1
}
Branch {
Points [-10, 0]
DstBlock "iL6"
DstPort 1
}
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -