📄 d_ex13_2.mdl
字号:
Name "g2"
Position [130, 70, 155, 100]
Value "1"
}
Block {
BlockType Constant
Name "g3"
Position [130, 120, 155, 150]
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [65, 20, 90, 50]
}
Block {
BlockType Outport
Name "out_1"
Position [155, 25, 175, 45]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_2"
Position [185, 75, 205, 95]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_3"
Position [185, 125, 205, 145]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "g1"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "g2"
SrcPort 1
DstBlock "out_2"
DstPort 1
}
Line {
SrcBlock "g3"
SrcPort 1
DstBlock "out_3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Bus9"
Tag "PSATblock"
Description "Connection"
Ports [3, 0, 0, 0, 0]
Position [515, 368, 520, 472]
BackgroundColor "black"
ShowPortLabels on
MaskType "Bus"
MaskDescription "Bus block"
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"te [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"
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"
System {
Name "Bus9"
Location [336, 348, 727, 705]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 25, 45, 45]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "in_2"
Position [25, 75, 45, 95]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "in_3"
Position [25, 125, 45, 145]
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Terminator
Name "t1"
Position [65, 20, 90, 50]
}
Block {
BlockType Terminator
Name "t2"
Position [65, 70, 90, 100]
}
Block {
BlockType Terminator
Name "t3"
Position [80, 120, 105, 150]
}
Line {
SrcBlock "in_3"
SrcPort 1
DstBlock "t3"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "t2"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Fault"
Tag "PSATblock"
Description "Faults & Breakers"
Ports [1, 0, 0, 0, 0]
Position [373, 140, 397, 180]
Orientation "down"
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Fault"
SourceType "Fault"
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 [1, 0, 0, 0, 0]
Position [373, 300, 397, 340]
Orientation "down"
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Fault"
SourceType "Fault"
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 [1, 0, 0, 0, 0]
Position [373, 470, 397, 510]
Orientation "down"
ShowName off
SourceBlock "fm_lib/Faults & \nBreakers/Fault"
SourceType "Fault"
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, 1, 0, 0, 0]
Position [185, 54, 220, 86]
ShowName off
FontSize 12
ShowPortLabels on
MaskType "Syn"
MaskDescription "This block defines a fourth order synchronous "
"machine."
MaskPromptString "Power, voltage and frequency rates [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 consta"
"nts 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) and "
"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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d 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"
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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[2220 400 60]|6|[0.003 0.15]|[1.81 0.30 0"
".23]|[8.00 0.03]|[1.76 0.65 0.25]|[1.00 0.07]|[7.00 0.00]|[0.00 0.00]|["
"1.00 1.00]|0.00|[0.05 0.1]|0"
System {
Name "Gen"
Location [152, 241, 486, 433]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [185, 100, 215, 130]
ShowName off
Value "1"
}
Block {
BlockType Outport
Name "Out1"
Position [255, 105, 275, 125]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Text "Synchronous Machine"
Position [164, 45]
}
}
}
Block {
BlockType SubSystem
Name "Gen1"
Tag "PSATblock"
Description "Machines"
Ports [1, 1, 0, 0, 0]
Position [185, 214, 220, 246]
ShowName off
FontSize 12
ShowPortLabels on
MaskType "Syn"
MaskDescription "This block defines a fourth order synchronous "
"machine."
MaskPromptString "Power, voltage and frequency rates [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 consta"
"nts 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) and "
"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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d 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"
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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[2220 400 60]|6|[0.003 0.15]|[1.81 0.30 0"
".23]|[8.00 0.03]|[1.76 0.65 0.25]|[1.00 0.07]|[7.00 0.00]|[0.00 0.00]|["
"1.00 1.00]|0.00|[0.05 0.1]|1"
System {
Name "Gen1"
Location [152, 241, 486, 433]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 25, 45, 45]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [185, 100, 215, 130]
ShowName off
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [80, 20, 105, 50]
}
Block {
BlockType Outport
Name "Out1"
Position [255, 105, 275, 125]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Text "Synchronous Machine"
Position [164, 45]
}
}
}
Block {
BlockType SubSystem
Name "Gen2"
Tag "PSATblock"
Description "Machines"
Ports [1, 1, 0, 0, 0]
Position [185, 384, 220, 416]
ShowName off
FontSize 12
ShowPortLabels on
MaskType "Syn"
MaskDescription "This block defines a fourth order synchronous "
"machine."
MaskPromptString "Power, voltage and frequency rates [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 consta"
"nts 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) and "
"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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d 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"
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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[2220 400 60]|6|[0.003 0.15]|[1.81 0.30 0"
".23]|[8.00 0.03]|[1.76 0.65 0.25]|[1.00 0.07]|[7.00 0.00]|[0.00 0.00]|["
"1.00 1.00]|0.00|[0.05 0.1]|1"
System {
Name "Gen2"
Location [152, 241, 486, 433]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -