d_bpa.mdl
来自「这是一个很适合研究和学习用的电力系统仿真软件」· MDL 代码 · 共 1,810 行 · 第 1/5 页
MDL
1,810 行
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "t2"
DstPort 1
}
Annotation {
Name "Automatic Voltage Regulator"
Position [234, 30]
}
}
}
Block {
BlockType SubSystem
Name "Exc2"
Tag "PSATblock"
Description "Controls"
Ports [2, 1]
Position [795, 159, 835, 186]
Orientation "left"
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
RTWSystemCode "Auto"
MaskType "Exc"
MaskDescription "This block defines an Automatic Voltage Regulat"
"or."
MaskHelp "This block defines an Automatic Voltage Regulat"
"or.\nThere are three kind of regulators:\n\nType 1:\n\n IEEE Model 1\n\nT"
"ype 2:\n\n IEEE Model 2\n\nType 3:\n \n IEEE Model 3"
MaskPromptString "Automatic Voltage Regulator Type|Maximum Regula"
"tor Voltage [p.u.]|Minimum Regulator Voltage [p.u.]|Amplifier Gain Ka [p.u./p"
".u.]|Amplifier Time Constant Ta [s]|Stabilizer Gain Kf [p.u./p.u.]|Stabilizer"
" Time Tf [s]|Second Regulator Zero T4 [s]|Time Constant of the Field Circuit "
"Td [s]|Time Delay of the Measurement System Tr [s]|Coefficient of the Ceiling"
" Function (A B)|Number of input signals"
MaskStyleString "popup(1|2|3),edit,edit,edit,edit,edit,edit,edit"
",edit,edit,edit,popup(0|1|2|3)"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "fm_block|||||||||||"
MaskEnableString "on,on,on,on,on,on,on,off,on,on,on,on"
MaskVisibilityString "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"
MaskVarAliasString ",,,,,,,,,,,"
MaskVariables "p2q=@1;p3q=@2;p4q=@3;p5q=@4;p6q=@5;p7q=@6;p8q=@"
"7;p9q=@8;p10q=@9;p11q=@10;p12_13q=@11;in=@12;"
MaskInitialization "fm_inout\n[x,y] = fm_draw('R');"
MaskDisplay "plot([-1.8 4.1 4.1 -1.8 -1.8],[-1.5 -1.5 1.5 1."
"5 -1.5])\ncolor('red')\nplot([-1.3 -0.5],[-1 1],[-0.5 0.3],[1 -1],[-0.9 -0.1]"
",[0.0 0.0])\nplot(2.8+1.3*x,2*y,1.5+[-1.3 -0.5],[1 -1],1.5+[-0.5 0.3],[-1 1])"
"\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2|5.7|-5.7|400|0.10|0.05|1.00|0.01|1.00|0.001|["
"0.0006 0.9]|2"
System {
Name "Exc2"
Location [158, 247, 492, 439]
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 Inport
Name "in_2"
Position [25, 75, 45, 95]
Port "2"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [170, 100, 200, 130]
ShowName off
}
Block {
BlockType Terminator
Name "t1"
Position [80, 20, 105, 50]
}
Block {
BlockType Terminator
Name "t2"
Position [80, 70, 105, 100]
}
Block {
BlockType Outport
Name "Out1"
Position [240, 105, 260, 125]
ShowName off
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "t2"
DstPort 1
}
Annotation {
Name "Automatic Voltage Regulator"
Position [234, 30]
}
}
}
Block {
BlockType Reference
Name "Line"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [310, 140, 370, 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 "[100 500 60]"
p6q "0"
p8q "0"
p9q "0.004"
p10q "0"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Line1"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [455, 140, 515, 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 "[100 500 60]"
p6q "0"
p8q "0.0015"
p9q "0.0288"
p10q "1.173"
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 [455, 195, 515, 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 "[100 500 60]"
p6q "0"
p8q "0.0015"
p9q "0.0288"
p10q "1.173"
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 [455, 250, 515, 260]
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 "[100 500 60]"
p6q "0"
p8q "0.0015"
p9q "0.0288"
p10q "1.173"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Line4"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [455, 305, 515, 315]
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 "[100 500 60]"
p6q "0"
p8q "0.0015"
p9q "0.0288"
p10q "1.173"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Line6"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [480, 85, 540, 95]
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 "[100 500 60]"
p6q "0"
p8q "0.0015"
p9q "0.0288"
p10q "1.173"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType Reference
Name "Line7"
Tag "PSATblock"
Description "Power Flow"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [760, 330, 820, 340]
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 "[100 115 60]"
p6q "0"
p8q "0.0010"
p9q "0.0030"
p10q "0"
p13_14_15q "[0.0 0.0 0.0]"
}
Block {
BlockType SubSystem
Name "Ltc"
Tag "PSATblock"
Description "ULTC"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [875, 309, 945, 361]
ShowName off
TreatAsAtomicUnit off
RTWSystemCode "Auto"
MaskType "Ltc"
MaskDescription "This block defines a pi model for a LTC Transfo"
"rmer.\n\nControl type: \n\n[1] secondary V control; \n[2] secondary Q contr"
"ol;\n[3] remote V control."
MaskPromptString "Power and Frequency ratings [MVA, Hz]|Primary V"
"oltage rating and nominal tap ratio V1/V2 [kV, kV/kV]|Control Type|Inverse T"
"ime Constant and integral deviation [1/s, p.u.]|Max & Min Tap Ratio [p.u./p.u"
". p.u./p.u.]|Tap ratio step [0 for continuous model]|Reference Voltage Vref "
"[p.u.]|Resistance and Reactance [p.u. p.u.]"
MaskStyleString "edit,edit,popup(1|2|3),edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "||fm_block|||||"
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 "p3_5q=@1;p4_6q=@2;p16q=@3;p8_7q=@4;p9_10q=@5;p1"
"1q=@6;p12q=@7;p14_13q=@8;"
MaskInitialization "if strcmp(get_param(gcb,'NamePlacement'),'alter"
"nate')\n rot = 0;\nelse\n rot = 1;\nend\n[x,y] = fm_draw('circle');"
MaskDisplay "plot(x,y,x+1.4,y,[2.4 2.8],[0 0],[3.1 3.5],[0 0"
"],[-1 -2],[0 0],0,2), color('green'), plot([2.95 2.95],[-0.15 -2],[2.95 -0.8]"
",[-2 -2],[-0.8 -0.8],[-2 -1.2], [-0.8 0.7],[-1.2 1.2],[0.5 0.7],[1.1 1.2],[0."
"7 0.7], [1.0 1.2],[2.8 3.1 3.1 2.8 2.8],[-0.15 -0.15 0.15 0.15 -0.15]);"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "[100 60]|[115 13.8]|1|[1/30 1e-3]|[1.12 0."
"82]|0.00606*0|0.922|[0.0 0.001]"
System {
Name "Ltc"
Location [285, 394, 645, 586]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType PMComponent
Name "Atomic Subsystem"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [125, 74, 225, 116]
ShowName off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?