📄 d_003.mdl
字号:
BlockType Reference
Name "PV"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1, 0, 0, 0]
Position [445, 145, 475, 175]
Orientation "left"
ShowName off
SourceBlock "fm_lib/Power Flow/PV"
SourceType "PV"
p2_3q "[100 400]"
p4q "1.00"
p5q "1.00"
p6_7q "[1.5 -1.5]"
p8_9q "[1.1 0.9]"
p10q "1"
}
Block {
BlockType Reference
Name "PV1"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1, 0, 0, 0]
Position [245, 180, 275, 210]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/Power Flow/PV"
SourceType "PV"
p2_3q "[100 400]"
p4q "1.00"
p5q "1.00"
p6_7q "[1.5 -1.5]"
p8_9q "[1.1 0.9]"
p10q "1"
}
Block {
BlockType SubSystem
Name "Shunt2"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 0, 0, 0, 0]
Position [264, 260, 316, 295]
Orientation "down"
ShowName off
ShowPortLabels on
MaskType "Shunt"
MaskDescription "This block defines a static condenser:\n\nQ = B"
" * V^2\n\n(Negative values of B define an inductive load)."
MaskPromptString "Power, Voltage and Frequency Ratings [MVA, kV, "
"Hz]|Susceptance B [p.u.]"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskVariables "p2_3_4q=@1;p6q=@2;"
MaskInitialization "fm_block"
MaskDisplay "plot(-[0 60 60 55 53 55 60 60 55 53]/150,[0 0 8"
" 16 25 16 8 -8 -16 -25]/50,-[80 80 80 150]/150,[25 -25 0 0]/50,[0 0],[-0.4 0."
"4],[0.075 0.075],[-0.25 0.25],[0.15 0.15],[-0.1 0.1])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "[100 400 60]|0.5"
System {
Name "Shunt2"
Location [158, 192, 393, 368]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [125, 93, 155, 107]
Orientation "left"
ShowName off
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Terminator
Name "Terminator4"
Position [70, 90, 90, 110]
Orientation "left"
ShowName off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Annotation {
Text "Shunt admittance"
Position [119, 35]
}
}
}
Block {
BlockType SubSystem
Name "Shunt3"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 0, 0, 0, 0]
Position [359, 225, 411, 260]
Orientation "down"
ShowName off
ShowPortLabels on
MaskType "Shunt"
MaskDescription "This block defines a static condenser:\n\nQ = B"
" * V^2\n\n(Negative values of B define an inductive load)."
MaskPromptString "Power, Voltage and Frequency Ratings [MVA, kV, "
"Hz]|Susceptance B [p.u.]"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskVariables "p2_3_4q=@1;p6q=@2;"
MaskInitialization "fm_block"
MaskDisplay "plot(-[0 60 60 55 53 55 60 60 55 53]/150,[0 0 8"
" 16 25 16 8 -8 -16 -25]/50,-[80 80 80 150]/150,[25 -25 0 0]/50,[0 0],[-0.4 0."
"4],[0.075 0.075],[-0.25 0.25],[0.15 0.15],[-0.1 0.1])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "[100 400 60]|0.8"
System {
Name "Shunt3"
Location [158, 192, 393, 368]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [125, 93, 155, 107]
Orientation "left"
ShowName off
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Terminator
Name "Terminator4"
Position [70, 90, 90, 110]
Orientation "left"
ShowName off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Annotation {
Text "Shunt admittance"
Position [119, 35]
}
}
}
Block {
BlockType Reference
Name "Slack"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1, 0, 0, 0]
Position [60, 110, 70, 140]
ShowName off
SourceBlock "fm_lib/Power Flow/Slack"
SourceType "SW"
p2_3q "[100 138]"
p4q "1.02"
p5q "0.00"
p6_7q "[1.5 -1.5]"
p8_9q "[1.1 0.9]"
p10q "1.5"
p11q "1"
}
Block {
BlockType SubSystem
Name "Supply 1"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1, 0, 0, 0]
Position [35, 175, 65, 205]
ShowPortLabels on
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Base [MVA]|Active Power [p.u.]|Max & Min "
"Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MWh)^2]|Cost"
" = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVArh)^2]|Allow Unit Commitment|Tie Brea"
"king Cost [$/h]|Number of Input Signals"
MaskStyleString "edit,edit,edit,edit,edit,checkbox,edit,popup(0|"
"1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p7_8_9q=@4;p10_11_12q=@5"
";p13q=@6;p14q=@7;in=@8;"
MaskInitialization "fm_inout;\n[x,y] = fm_draw('circle');"
MaskDisplay "plot(x,y,[-0.2 0.3],[0.5 -0.5],[-0.2 0],[-0.5 0"
"])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|1.50|[1.50 0.00]|[0.00 25 0.00]|[0.00 0."
"00 0.00]|off|0|0"
System {
Name "Supply 1"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
Value "1"
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Text "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType SubSystem
Name "Supply1"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1, 0, 0, 0]
Position [445, 195, 475, 225]
Orientation "left"
ShowName off
ShowPortLabels on
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Base [MVA]|Active Power [p.u.]|Max & Min "
"Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MWh)^2]|Cost"
" = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVArh)^2]|Allow Unit Commitment|Tie Brea"
"king Cost [$/h]|Number of Input Signals"
MaskStyleString "edit,edit,edit,edit,edit,checkbox,edit,popup(0|"
"1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p7_8_9q=@4;p10_11_12q=@5"
";p13q=@6;p14q=@7;in=@8;"
MaskInitialization "fm_inout;\n[x,y] = fm_draw('circle');"
MaskDisplay "plot(x,y,[-0.2 0.3],[0.5 -0.5],[-0.2 0],[-0.5 0"
"])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.80|[1.00 0.00]|[0.00 33 0.00]|[0.00 0."
"00 0.00]|off|0|0"
System {
Name "Supply1"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
Value "1"
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Text "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType SubSystem
Name "Supply2"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1, 0, 0, 0]
Position [210, 180, 240, 210]
Orientation "down"
NamePlacement "alternate"
ShowName off
ShowPortLabels on
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Base [MVA]|Active Power [p.u.]|Max & Min "
"Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MWh)^2]|Cost"
" = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVArh)^2]|Allow Unit Commitment|Tie Brea"
"king Cost [$/h]|Number of Input Signals"
MaskStyleString "edit,edit,edit,edit,edit,checkbox,edit,popup(0|"
"1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p7_8_9q=@4;p10_11_12q=@5"
";p13q=@6;p14q=@7;in=@8;"
MaskInitialization "fm_inout;\n[x,y] = fm_draw('circle');"
MaskDisplay "plot(x,y,[-0.2 0.3],[0.5 -0.5],[-0.2 0],[-0.5 0"
"])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.80|[1.00 0.00]|[0.00 32 0.00]|[0.00 0."
"00 0.00]|off|0|0"
System {
Name "Supply2"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
Value "1"
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Text "Power Supply"
Position [114, 45]
}
}
}
Line {
SrcBlock "Bus1"
SrcPort 2
DstBlock "Line1"
DstPort 1
}
Line {
SrcBlock "Line1"
SrcPort 1
DstBlock "Bus3"
DstPort 1
}
Line {
SrcBlock "Bus1"
SrcPort 1
Points [80, 0; 0, -35]
DstBlock "Line2"
DstPort 1
}
Line {
SrcBlock "Line2"
SrcPort 1
Points [145, 0]
DstBlock "Bus2"
DstPort 1
}
Line {
SrcBlock "Slack"
SrcPort 1
DstBlock "Bus1"
DstPort 1
}
Line {
SrcBlock "PV"
SrcPort 1
DstBlock "Bus2"
DstPort 2
}
Line {
SrcBlock "Bus3"
SrcPort 1
DstBlock "PQ1"
DstPort 1
}
Line {
SrcBlock "Bus2"
SrcPort 1
DstBlock "PQ4"
DstPort 1
}
Line {
SrcBlock "Bus1"
SrcPort 3
DstBlock "PQ3"
DstPort 1
}
Line {
SrcBlock "Supply 1"
SrcPort 1
DstBlock "Bus1"
DstPort 2
}
Line {
SrcBlock "Bus2"
SrcPort 3
DstBlock "Line3"
DstPort 1
}
Line {
SrcBlock "Bus2"
SrcPort 2
DstBlock "Demand1"
DstPort 1
}
Line {
SrcBlock "Supply1"
SrcPort 1
DstBlock "Bus2"
DstPort 3
}
Line {
SrcBlock "Line3"
SrcPort 1
Points [-15, 0]
DstBlock "Bus3"
DstPort 4
}
Line {
SrcBlock "Bus3"
SrcPort 2
DstBlock "Demand2"
DstPort 1
}
Line {
SrcBlock "PV1"
SrcPort 1
DstBlock "Bus3"
DstPort 3
}
Line {
SrcBlock "Supply2"
SrcPort 1
DstBlock "Bus3"
DstPort 2
}
Line {
SrcBlock "Bus3"
SrcPort 3
DstBlock "Shunt2"
DstPort 1
}
Line {
SrcBlock "Bus2"
SrcPort 4
DstBlock "Shunt3"
DstPort 1
}
Annotation {
Text "Three-bus test system"
Position [257, 21]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -