📄 d_sssc.mdl
字号:
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 3]
Position [650, 63, 655, 227]
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 SubSystem
Name "Gen2"
Tag "PSATblock"
Description "Machines"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [125, 139, 160, 171]
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"
"e')\nplot(1.4+0.45*xg,0.3+0.45*yg)\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[2220 24 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 [412, 233, 746, 425]
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"
LatchInput off
}
Block {
BlockType PMComponent
Name "Atomic Subsystem"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [140, 89, 240, 131]
ShowName off
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
RConnTagsString "__newr0"
}
Block {
BlockType Terminator
Name "t1"
Position [80, 20, 105, 50]
}
Block {
BlockType PMIOPort
Name "Connection\nPort1"
Tag "PMCPort"
Position [280, 101, 310, 119]
Orientation "left"
ShowName off
Port "1"
Side "Right"
}
Line {
LineType "Connection"
SrcBlock "Atomic Subsystem"
SrcPort RConn1
Points [0, 0]
DstBlock "Connection\nPort1"
DstPort RConn1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Annotation {
Name "Synchronous Machine"
Position [164, 45]
}
}
}
Block {
BlockType Reference
Name "Line1"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [420, 140, 480, 150]
ShowName off
SourceBlock "fm_lib/Power Flow/Line"
SourceType "Line"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
p3_4_5q "[2220 400 60]"
p6q "0"
p8q "0.0"
p9q "0.5"
p10q "0.0"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Line2"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [410, 195, 470, 205]
ShowName off
SourceBlock "fm_lib/Power Flow/Line"
SourceType "Line"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
p3_4_5q "[2220 400 60]"
p6q "0"
p8q "0.0"
p9q "0.8"
p10q "0.0"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Line3"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [540, 195, 600, 205]
ShowName off
SourceBlock "fm_lib/Power Flow/Line"
SourceType "Line"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
p3_4_5q "[2220 400 60]"
p6q "0"
p8q "0.0"
p9q "0.13"
p10q "0.0"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "PV2"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [125, 175, 155, 205]
ShowName off
SourceBlock "fm_lib/Power Flow/PV"
SourceType "PV"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
RConnTagsString "__newr0"
p2_3q "[2220 24]"
p4q "0.9"
p5q "1.00"
p6_7q "[0.8 -0.2]"
p8_9q "[1.1 0.9]"
p10q "1"
}
Block {
BlockType PMComponent
Name "SSSC (2)"
Tag "PSATblock"
Description "FACTS"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [330, 121, 370, 279]
ShowName off
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
MaskType "Sssc"
MaskDescription "This block describes a SSSC component."
MaskHelp "Tree control methodology are available:\n\nType"
" 1, Magnitude control: m controls AC voltage by mean of a lead-lag transfer f"
"unction, whereas alpha controls DC voltage by mean of a PI regulator.\n\nType"
" 2, Phase control: alpha controls AC voltage by mean of a PI regulator along "
"with a lead-lag transfer function, whereas m is kept at 0.9.\n\nType 3, Phase"
" control: alpha controls AC voltage by mean of a two poles and one zero trans"
"fer function, whereas m is kept at 0.9. In this case parameters Kp and Ki are"
" respectively the gain and the time constant of the low pass filter."
MaskPromptString "Power, Voltage and Frequency Ratings [MVA, kV, "
"Hz]|Operation mode: |Scheduling strategy: |Percentage of series compensation"
" Cp [%]|Regulator time constant Tr [s]|Max and Min voltage [p.u. p.u.]|Porpo"
"rtional and integral gains KP and KI "
MaskStyleString "edit,popup(constant_voltage|constant_reactance|"
"constant_power),popup(constant_line_power|constant_angle),edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "|fm_block|||||"
MaskEnableString "on,on,off,on,on,on,off"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "p3_4_5q=@1;p2q=@2;p10q=@3;p6q=@4;p7q=@5;p8_9q=@"
"6;p11_12q=@7;"
MaskInitialization "[x,y] = fm_draw('circle');\n[xc,yc] = fm_draw('"
"cap');"
MaskDisplay "plot([0.3 0.3 -0.95 -0.95 0.3],[-1.7 2.7 2.7 -1"
".7 -1.7])\nplot([-0.75 -0.75 -0.4],[-1.7 -5 -5],[0.1 0.1 -0.25],[-1.7 -5 -5],"
"[-0.4 -0.4],[-4 -6])\nplot(-0.15+0.1*xc,-5+yc)\nplot([-0.325 -0.325],[2.7 3.5"
"],[-0.575 -0.95],[5.9 5.9],[-0.075 0.3],[5.9 5.9],0,17.8)\nplot(0.25*x-0.325,"
"4.5+y,0.25*x-0.325,5.9+y)\n\ncolor('magenta')\nplot([-0.45 -0.2 -0.2 -0.45],["
"-0.5 -1 0 -0.5],[-0.45 -0.45],[-1 0])\nplot([-0.2 -0.2],[2 1],[-0.2 -0.45 -0."
"45 -0.2],[1.5 2 1 1.5])\nplot([-0.2 0 0 -0.65],[-0.5 -0.5 1.5 1.5],[0 0.2],[0"
".5 0.5])\nplot([-0.45 -0.65 -0.65 -0.45],[-0.5 -0.5 1.5 1.5])\nplot([-0.65 -0"
".85],[0.5 0.5],[-0.3 -0.3],[1.7 2.2],[-0.325 -0.275],[1.975 1.975])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[2220 400 60]|constant_voltage|constant_line_po"
"wer|53.75|0.005|[0.6 -0.6]|[1 1]"
}
Block {
BlockType Reference
Name "Slack2"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [595, 74, 605, 106]
ShowName off
SourceBlock "fm_lib/Power Flow/Slack"
SourceType "SW"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
RConnTagsString "__newr0"
p2_3q "[2220 400]"
p4q "0.90081"
p5q "0.00"
p6_7q "[1.5 -1.5]"
p8_9q "[1.1 0.9]"
p10q "0.80"
p11q "1"
}
Block {
BlockType Reference
Name "Transf1"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [210, 162, 260, 188]
ShowName off
SourceBlock "fm_lib/Power Flow/Transf1"
SourceType "Line"
PhysicalDomain "psatdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
p3_4_5q "[2220 24 60]"
p7q "24/400"
p8q "0.0"
p9q "0.15"
p13_14_15q "[0.0 0.0 0.0]"
}
Line {
LineType "Connection"
SrcBlock "Line3"
SrcPort RConn1
DstBlock "Bus4"
DstPort LConn3
}
Line {
LineType "Connection"
SrcBlock "Line1"
SrcPort RConn1
DstBlock "Bus4"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Slack2"
SrcPort RConn1
DstBlock "Bus4"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Bus3"
SrcPort RConn1
DstBlock "Line3"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Line2"
SrcPort RConn1
DstBlock "Bus3"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Bus2"
SrcPort RConn2
DstBlock "SSSC (2)"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "SSSC (2)"
SrcPort RConn1
DstBlock "Line2"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Bus2"
SrcPort RConn1
DstBlock "Line1"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Transf1"
SrcPort RConn1
DstBlock "Bus2"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Bus1"
SrcPort RConn1
DstBlock "Transf1"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "PV2"
SrcPort RConn1
DstBlock "Bus1"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Gen2"
SrcPort RConn1
DstBlock "Bus1"
DstPort LConn1
}
Line {
SrcBlock "AVR2"
SrcPort 1
DstBlock "Gen2"
DstPort 1
}
Annotation {
Name "P. Kundur, \"Power System Stability and Control"
"\", Example 13.2, pp. 864-869."
Position [431, 293]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -