📄 d_ex13_2.mdl
字号:
Position [365, 240, 385, 260]
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Breaker"
SourceType "Breaker"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
p3_4_5q "[2220 400 60]"
p6q on
p7q "0.57"
p8q "100"
}
Block {
BlockType PMComponent
Name "Breaker2"
Tag "PSATblock"
Description "Faults & Breakers"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [365, 410, 385, 430]
ShowName off
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
MaskType "Breaker"
MaskDescription "This block defines a breaker."
MaskPromptString "Power, Voltage and Frequency Ratings [MVA, kV, "
"Hz]|Initially close|First intervention time [s]|Second intervention time [s]"
MaskStyleString "edit,checkbox,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|fm_block||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "p3_4_5q=@1;p6q=@2;p7q=@3;p8q=@4;"
MaskDisplay "plot([1 2 2 1 1],[-1 -1 1 1 -1]),color('red'),p"
"lot([1 2],[-1 1],[2 1],[-1 1])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "[2220 400 60]|on|0.57|100"
}
Block {
BlockType PMComponent
Name "Bus1"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [235, 53, 240, 122]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1"
RConnTagsString "__newr0"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "2|1|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus2"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [340, 33, 345, 147]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0|__newr1|__newr2"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "1|3|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus3"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 3]
Position [515, 33, 520, 147]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1|__newl2"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "3|0|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus4"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [240, 213, 245, 282]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1"
RConnTagsString "__newr0"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "2|1|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus5"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [340, 193, 345, 307]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0|__newr1|__newr2"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "1|3|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus6"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 3]
Position [515, 193, 520, 307]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1|__newl2"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "3|0|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus7"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [240, 383, 245, 452]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1"
RConnTagsString "__newr0"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "2|1|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus8"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [340, 363, 345, 477]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0|__newr1|__newr2"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "1|3|400|[1.00 0.00]|1|1"
}
Block {
BlockType PMComponent
Name "Bus9"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 3]
Position [520, 360, 525, 480]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1|__newl2"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"ting [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "3|0|400|[1.00 0.00]|1|1"
}
Block {
BlockType Reference
Name "Fault"
Tag "PSATblock"
Description "Faults & Breakers"
Ports [0, 0, 0, 0, 0, 1]
Position [378, 155, 402, 195]
Orientation "down"
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Fault"
SourceType "Fault"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
p2_3_4q "[2220 400 60]"
p5q "0.5"
p6q "0.57"
p7q "0"
p8q "1e-8"
}
Block {
BlockType Reference
Name "Fault1"
Tag "PSATblock"
Description "Faults & Breakers"
Ports [0, 0, 0, 0, 0, 1]
Position [373, 315, 397, 355]
Orientation "down"
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Fault"
SourceType "Fault"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
p2_3_4q "[2220 400 60]"
p5q "0.5"
p6q "0.57"
p7q "0"
p8q "1e-8"
}
Block {
BlockType Reference
Name "Fault2"
Tag "PSATblock"
Description "Faults & Breakers"
Ports [0, 0, 0, 0, 0, 1]
Position [373, 480, 397, 520]
Orientation "down"
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Fault"
SourceType "Fault"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
p2_3_4q "[2220 400 60]"
p5q "0.5"
p6q "0.57"
p7q "0"
p8q "1e-8"
}
Block {
BlockType SubSystem
Name "Gen"
Tag "PSATblock"
Description "Machines"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [180, 54, 215, 86]
ShowName off
FontSize 12
TreatAsAtomicUnit off
RTWSystemCode "Auto"
MaskType "Syn"
MaskDescription "This block defines a fourth order synchronous "
"machine."
MaskPromptString "Power, voltage and frequency ratings [MVA, kV, "
"Hz]|Machine Dynamic Order|resistance ra and leakage reactance xl [p.u. p.u.]|"
"d-axis reactances Xd, X'd X\"d [p.u.,p.u.,p.u.]|d-axis open circuit time cons"
"tants T'd0 and T\"d0 [s, s]|q-axis reactances Xq, X'q, X\"q [p.u. p.u. p.u."
"]|q-axis open circuit time constants T'q0 and T\"q0 [s s]|Inertia (M = 2H) an"
"d Damping [s, p.u.]|Speed and active power additional signals Kw & Kp [p.u., "
"p.u.]|Percentage of active and reactive powers at bus [p.u. p.u.]|d-axis addi"
"tional circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) "
"and S(1.2)|Number of input signals"
MaskStyleString "edit,popup(8|6|5.3|5.2|5.1|4|3|2),edit,edit,edi"
"t,edit,edit,edit,edit,edit,edit,edit,popup(0|1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "|fm_block|||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,"
MaskVariables "p2_3_4q=@1;p5q=@2;p7_6q=@3;p8_9_10q=@4;p11_12q="
"@5;p13_14_15q=@6;p16_17q=@7;p18_19q=@8;p20_21q=@9;p22_23q=@10;p24q=@11;p25_26"
"q=@12;in=@13;"
MaskInitialization "fm_inout\n[x,y] = fm_draw('circle');\n[xg,yg] ="
" fm_draw('G');\n[xs,ys] = fm_draw('sinus');\n"
MaskDisplay "plot(x+1.4,y,0.12*xs+1,0.15*ys-0.6)\ncolor('blu"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -