📄 power_transfo.mdl
字号:
Position [465, 374, 470, 461]
Inputs "[1 1]"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "SwitchCurrents"
Position [350, 379, 430, 411]
NamePlacement "alternate"
Value "zeros(1,1)"
}
Block {
BlockType Outport
Name "u"
Position [505, 413, 535, 427]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Mux_u"
DstPort 2
}
Line {
SrcBlock "SwitchCurrents"
SrcPort 1
DstBlock "Mux_u"
DstPort 1
}
Line {
SrcBlock "Mux_u"
SrcPort 1
DstBlock "u"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "State-Space"
Ports [2, 2]
Position [115, 35, 245, 155]
FontName "Arial"
FontSize 14
FunctionName "sfun_spssw_contc"
Parameters "A, B, C, D, x0, SwitchResistance ,Switc"
"hType, SwitchGateInitialValue, OutputsToResetToZero "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Status"
Ports [1]
Position [280, 113, 345, 137]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Status"
Location [124, 85, 631, 971]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "status"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 1]
Position [100, 191, 105, 569]
BackgroundColor "black"
ShowName off
Outputs "1"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp164221"
TagVisibility "global"
}
Line {
SrcBlock "status"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Yout"
Ports [1]
Position [280, 53, 345, 77]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Yout"
Location [124, 85, 631, 971]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "v,i"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [100, 193, 105, 572]
BackgroundColor "black"
ShowName off
Outputs "[1 1 1 1]"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp164218"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "tp164212"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [325, 111, 395, 139]
GotoTag "tp164215"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [325, 156, 395, 184]
GotoTag "tp164217"
TagVisibility "global"
}
Line {
SrcBlock "v,i"
SrcPort 1
Points [35, 0]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Goto3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Goto4"
DstPort 1
}
}
}
Line {
SrcBlock "Gates"
SrcPort 1
DstBlock "State-Space"
DstPort 2
}
Line {
SrcBlock "Sources"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 2
DstBlock "Status"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "Yout"
DstPort 1
}
}
}
Block {
BlockType Ground
Name "Ground"
Position [315, 40, 335, 60]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator"
Position [355, 40, 375, 60]
ShowName off
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Annotation {
Name "Graphical user interface for the analysis o"
"f SimPowerSystems circuits. \nPlace the Powergui block in the top-level of y"
"our model and double-click\non it to open the GUI."
Position [14, 29]
HorizontalAlignment "left"
ForegroundColor "blue"
UseDisplayTextAsClickCallback off
FontName "Arial"
FontSize 12
}
}
}
Line {
LineType "Connection"
SrcBlock "output Ground1"
SrcPort LConn1
DstBlock "Vs\n14,400 V"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "I prim"
SrcPort RConn1
DstBlock "Linear Transformer\n75 kVA\n14,400-120-120 V"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "output Ground2"
SrcPort LConn1
Points [0, -65]
DstBlock "Linear Transformer\n75 kVA\n14,400-120-120 V"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "I prim"
SrcPort LConn1
Points [0, 0; -25, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Vs\n14,400 V"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, -90]
DstBlock "V prim"
DstPort LConn1
}
}
Line {
SrcBlock "I prim"
SrcPort 1
Points [25, 0]
DstBlock "Active & Reactive\nPower"
DstPort 2
}
Line {
SrcBlock "V prim"
SrcPort 1
DstBlock "Active & Reactive\nPower"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "output Ground3"
SrcPort LConn1
DstBlock "V prim"
DstPort LConn2
}
Line {
SrcBlock "I neutral"
SrcPort 1
Points [15, 0; 0, -30]
DstBlock "I neutral (A)"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Linear Transformer\n75 kVA\n14,400-120-120 V"
SrcPort RConn1
Points [5, 0; 0, -50]
Branch {
ConnectType "DEST_SRC"
Points [0, -85; 325, 0]
DstBlock "Load 3\n240 V\n30 kW\n 20 kVar"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Load 1\n120 V\n20 kW 10 kvar"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Load 1\n120 V\n20 kW 10 kvar"
SrcPort RConn1
Points [125, 0; 0, 95]
Branch {
ConnectType "DEST_SRC"
DstBlock "I neutral"
DstPort RConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Breaker"
SrcPort RConn1
Points [25, 0; 0, -80]
}
}
Line {
LineType "Connection"
Points [280, 330; 0, 80; 325, 0; 0, -125]
DstBlock "Load 3\n240 V\n30 kW\n 20 kVar"
DstPort RConn1
Branch {
ConnectType "SRC_DEST"
SrcBlock "Linear Transformer\n75 kVA\n14,400-120-120 V"
SrcPort RConn4
Points [5, 0; 0, 50]
}
Branch {
ConnectType "SRC_SRC"
DstBlock "Load 2\n120V\n20 kW 10 kvar"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Load 2\n120V\n20 kW 10 kvar"
SrcPort RConn1
DstBlock "Breaker"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Linear Transformer\n75 kVA\n14,400-120-120 V"
SrcPort RConn3
Points [10, 0; 0, -10]
Branch {
ConnectType "DEST_SRC"
Points [0, -15]
DstBlock "Linear Transformer\n75 kVA\n14,400-120-120 V"
DstPort RConn2
}
Branch {
ConnectType "DEST_SRC"
DstBlock "I neutral"
DstPort LConn1
}
}
Line {
SrcBlock "Active & Reactive\nPower"
SrcPort 1
DstBlock "P (W)\nQ (vars)"
DstPort 1
}
Annotation {
Name "Three-winding distribution transformer"
Position [152, 24]
UseDisplayTextAsClickCallback off
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -