📄 d_003_uc.mdl
字号:
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 Inport
Name "in_4"
Position [25, 175, 45, 195]
Port "4"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "g1"
Position [105, 20, 130, 50]
Value "1"
}
Block {
BlockType Constant
Name "g2"
Position [130, 70, 155, 100]
Value "1"
}
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]
}
Block {
BlockType Terminator
Name "t4"
Position [80, 170, 105, 200]
}
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 "[]"
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "t2"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "g1"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "in_3"
SrcPort 1
DstBlock "t3"
DstPort 1
}
Line {
SrcBlock "in_4"
SrcPort 1
DstBlock "t4"
DstPort 1
}
Line {
SrcBlock "g2"
SrcPort 1
DstBlock "out_2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Demand"
Tag "PSATblock"
Description "OPF & CPF"
Ports [1, 0, 0, 0, 0]
Position [283, 335, 317, 365]
Orientation "down"
NamePlacement "alternate"
ShowName off
ShowPortLabels on
MaskType "Demand"
MaskDescription "This block defines a constant power load for bi"
"furcation and market studies."
MaskPromptString "Power Rating [MVA]|Active Power [p.u.]|Reactive"
" Power [p.u.]|Max & Min Power Demand [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h"
", $/MWh, $/(MW)^2 h]|Cost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVAr)^2 h]|Allo"
"w Unit Commitment|Tie Breaking Cost [$/h]|Number of Output Signals"
MaskStyleString "edit,edit,edit,edit,edit,edit,checkbox,edit,pop"
"up(0|1)"
MaskTunableValueString "on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4q=@3;p5_6q=@4;p8_9_10q=@5;p11_1"
"2_13q=@6;p14q=@7;p15q=@8;out=@9;"
MaskInitialization "fm_inout;\n[xs,ys]=fm_draw('S');"
MaskDisplay "plot([ 1.0000 -0.5 -0.5 1],[ 0 0.866 "
" -0.866 0])\nplot(0.6*xs,0.6*ys,[0 0],[0.4 -0.4])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "100|1.0|0.6|[1.00 1.00]|[0.00 0 0.00]|[0.00 "
" 0.00 0.00]|off|0|0"
System {
Name "Demand"
Location [354, 336, 584, 523]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [120, 118, 150, 132]
Orientation "left"
ShowName off
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Terminator
Name "Terminator4"
Position [65, 115, 85, 135]
Orientation "left"
ShowName off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Annotation {
Text "Power Demand"
Position [109, 30]
}
}
}
Block {
BlockType Reference
Name "Line"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 1, 0, 0, 0]
Position [260, 120, 320, 130]
ShowName off
SourceBlock "fm_lib/Power Flow/Line"
SourceType "Line"
p3_4_5q "[100 400 60]"
p6q "0"
p8q "0"
p9q "0.10"
p10q "0"
p13_14_15q "[0.4 0.4 0.0]"
}
Block {
BlockType Reference
Name "Line1"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 1, 0, 0, 0]
Position [195, 195, 205, 255]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/Power Flow/Line"
SourceType "Line"
p3_4_5q "[100 400 60]"
p6q "0"
p8q "0"
p9q "0.10"
p10q "0"
p13_14_15q "[0.4 0.4 0.0]"
}
Block {
BlockType Reference
Name "Line2"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 1, 0, 0, 0]
Position [405, 170, 415, 230]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/Power Flow/Line"
SourceType "Line"
p3_4_5q "[100 400 60]"
p6q "0"
p8q "0"
p9q "0.10"
p10q "0"
p13_14_15q "[0.4 0.4 0.0]"
}
Block {
BlockType SubSystem
Name "PQ"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 0, 0, 0, 0]
Position [206, 335, 234, 360]
Orientation "down"
NamePlacement "alternate"
ShowName off
ShowPortLabels on
MaskType "PQ"
MaskDescription "This block defines a constant power load:\n\nP "
"= Pcost.\nQ = Qcost."
MaskPromptString "Power and Voltage Ratings [MVA, kV]|Active and "
"Reactive Powers [p.u. p.u.]|Maximum and Minimum Allowable Voltage [p.u. p."
"u.]|Allow conversion to impendance for min & max voltage"
MaskStyleString "edit,edit,edit,checkbox"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||fm_block"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskVariables "p2_3q=@1;p4_5q=@2;p6_7q=@3;p8q=@4;"
MaskDisplay "plot([1 -0.5 -0.5 1],[0 0.866 -0.866 0])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "[100 400]|[1.0 0.6]|[1.2 0.8]|on"
System {
Name "PQ"
Location [354, 336, 584, 523]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [120, 118, 150, 132]
Orientation "left"
ShowName off
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Terminator
Name "Terminator4"
Position [65, 115, 85, 135]
Orientation "left"
ShowName off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Annotation {
Text "Constant PQ Load"
Position [109, 30]
}
}
}
Block {
BlockType Reference
Name "PV"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1, 0, 0, 0]
Position [310, 75, 340, 105]
ShowName off
SourceBlock "fm_lib/Power Flow/PV"
SourceType "PV"
p2_3q "[100 400]"
p4q "0.4"
p5q "1.00"
p6_7q "[0.8 -0.2]"
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 [225, 250, 255, 280]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/Power Flow/PV"
SourceType "PV"
p2_3q "[100 400]"
p4q "0.4"
p5q "1.00"
p6_7q "[0.8 -0.2]"
p8_9q "[1.1 0.9]"
p10q "1"
}
Block {
BlockType Reference
Name "RMPG"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1, 0, 0, 0]
Position [260, 39, 290, 71]
ShowName off
SourceBlock "fm_lib/OPF & CPF/RMPG"
SourceType "Rmpg"
p2q "100"
p3_4q "[0.1 0.1]"
p5_6q "[2 2]"
p7_8q "[5 0]"
p9q "1"
}
Block {
BlockType Reference
Name "RMPG1"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1, 0, 0, 0]
Position [45, 109, 75, 141]
ShowName off
SourceBlock "fm_lib/OPF & CPF/RMPG"
SourceType "Rmpg"
p2q "100"
p3_4q "[0.05 0.05]"
p5_6q "[2 2]"
p7_8q "[5 0]"
p9q "1"
}
Block {
BlockType Reference
Name "RMPG2"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1, 0, 0, 0]
Position [264, 200, 296, 230]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/OPF & CPF/RMPG"
SourceType "Rmpg"
p2q "100"
p3_4q "[0.15 0.15]"
p5_6q "[2 2]"
p7_8q "[0 5]"
p9q "1"
}
Block {
BlockType Reference
Name "Slack"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1, 0, 0, 0]
Position [100, 144, 110, 176]
ShowName off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -