📄 dlizi5.mdl
字号:
BlockType Inport
Name "In1"
Position [120, 118, 150, 132]
Orientation "left"
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Terminator
Name "Terminator4"
Position [65, 115, 85, 135]
Orientation "left"
ShowName off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Annotation {
Name "Constant PQ Load"
Position [109, 30]
}
}
}
Block {
BlockType SubSystem
Name "PQ2"
Tag "PSATblock"
Description "Power Flow"
Ports [1]
Position [416, 160, 444, 185]
Orientation "down"
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
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"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
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]|[3.7 1.3]|[1.2 0.8]|on"
MaskTabNameString ",,,"
System {
Name "PQ2"
Location [354, 336, 584, 523]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [120, 118, 150, 132]
Orientation "left"
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Terminator
Name "Terminator4"
Position [65, 115, 85, 135]
Orientation "left"
ShowName off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Annotation {
Name "Constant PQ Load"
Position [109, 30]
}
}
}
Block {
BlockType Reference
Name "PV"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1]
Position [20, 50, 50, 80]
ShowName off
SourceBlock "fm_lib/Power Flow/PV"
SourceType "PV"
ShowPortLabels on
p2_3q "[100 400]"
p4q "5"
p5q "1.05"
p6_7q "[0.8 -0.2]"
p8_9q "[1.1 0.9]"
p10q "1"
}
Block {
BlockType Reference
Name "Slack"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 1]
Position [560, 54, 570, 86]
Orientation "left"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/Power Flow/Slack"
SourceType "SW"
ShowPortLabels on
p2_3q "[100 400]"
p4q "1.05"
p5q "0.00"
p6_7q "[1.5 -1.5]"
p8_9q "[1.1 0.9]"
p10q "0.80"
p11q "1"
}
Block {
BlockType SubSystem
Name "Supply"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1]
Position [20, 95, 50, 125]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Rating [MVA]|Active Power [p.u.]|Max & Mi"
"n Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MW)^2 h]|C"
"ost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVAr)^2 h]|Allow Unit Commitment|Tie "
"Breaking 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"
MaskToolTipString "on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,"
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');\n[xs,ys] "
"= fm_draw('S');"
MaskDisplay "plot(x,y,xs,ys,[0 0],[0.7 -0.7])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.80|[1.00 0.00]|[0.00 8.80 0.00]|[0.00 "
"0.00 0.00]|off|0|0"
MaskTabNameString ",,,,,,,"
System {
Name "Supply"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
IconDisplay "Port number"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType SubSystem
Name "Supply1"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 1]
Position [570, 105, 600, 135]
Orientation "left"
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Rating [MVA]|Active Power [p.u.]|Max & Mi"
"n Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MW)^2 h]|C"
"ost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVAr)^2 h]|Allow Unit Commitment|Tie "
"Breaking 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"
MaskToolTipString "on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,"
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');\n[xs,ys] "
"= fm_draw('S');"
MaskDisplay "plot(x,y,xs,ys,[0 0],[0.7 -0.7])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.80|[1.00 0.00]|[0.00 8.80 0.00]|[0.00 "
"0.00 0.00]|off|0|0"
MaskTabNameString ",,,,,,,"
System {
Name "Supply1"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
IconDisplay "Port number"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType Reference
Name "Transf1"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 1]
Position [125, 77, 175, 103]
ShowName off
SourceBlock "fm_lib/Power Flow/Transf1"
SourceType "Line"
ShowPortLabels on
p3_4_5q "[100 400 50]"
p7q "0.9524"
p8q "0"
p9q "0.015"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Transf2"
Tag "PSATblock"
Description "Power Flow"
Ports [1, 1]
Position [440, 57, 490, 83]
Orientation "left"
NamePlacement "alternate"
ShowName off
SourceBlock "fm_lib/Power Flow/Transf1"
SourceType "Line"
ShowPortLabels on
p3_4_5q "[100 400 50]"
p7q "0.9524"
p8q "0"
p9q "0.03"
p13_14_15q "[0.0 0.0 0.0]"
}
Line {
SrcBlock "PV"
SrcPort 1
DstBlock "Bus4"
DstPort 1
}
Line {
SrcBlock "Bus4"
SrcPort 1
DstBlock "Transf1"
DstPort 1
}
Line {
SrcBlock "Transf1"
SrcPort 1
DstBlock "Bus2"
DstPort 1
}
Line {
SrcBlock "Bus2"
SrcPort 1
DstBlock "Line"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Slack"
SrcPort 1
DstBlock "Bus5"
DstPort 1
}
Line {
SrcBlock "Bus5"
SrcPort 1
Points [0, -25]
DstBlock "Transf2"
DstPort 1
}
Line {
SrcBlock "Line1"
SrcPort 1
DstBlock "Bus1"
DstPort 1
}
Line {
SrcBlock "Bus1"
SrcPort 1
DstBlock "PQ"
DstPort 1
}
Line {
SrcBlock "Bus3"
SrcPort 1
Points [20, 0]
DstBlock "Line2"
DstPort 1
}
Line {
SrcBlock "Line"
SrcPort 1
Points [50, 0]
DstBlock "Bus3"
DstPort 1
}
Line {
SrcBlock "Transf2"
SrcPort 1
Points [-5, 0]
DstBlock "Bus3"
DstPort 2
}
Line {
SrcBlock "Line2"
SrcPort 1
DstBlock "Bus1"
DstPort 2
}
Line {
SrcBlock "Bus2"
SrcPort 3
Points [0, 30]
DstBlock "Line1"
DstPort 1
}
Line {
SrcBlock "Bus2"
SrcPort 2
DstBlock "PQ1"
DstPort 1
}
Line {
SrcBlock "Bus3"
SrcPort 2
DstBlock "PQ2"
DstPort 1
}
Line {
SrcBlock "Supply"
SrcPort 1
DstBlock "Bus4"
DstPort 2
}
Line {
SrcBlock "Supply1"
SrcPort 1
DstBlock "Bus5"
DstPort 2
}
Line {
SrcBlock "Bus1"
SrcPort 2
DstBlock "Demand"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -