📄 fm_lib.mdl
字号:
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Cluster Controller"
Position [139, 45]
}
}
}
Block {
BlockType SubSystem
Name "Exc"
Tag "PSATblock"
Description "Controls"
Ports [2, 1]
Position [160, 64, 205, 91]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Exc"
MaskDescription "This block defines an Automatic Voltage Reg"
"ulator."
MaskHelp "This block defines an Automatic Voltage Reg"
"ulator.\nThere are three kind of regulators:\n\nType 1:\n\n IEEE Model 1"
"\n\nType 2:\n\n IEEE Model 2\n\nType 3:\n \n IEEE Model 3"
MaskPromptString "Automatic Voltage Regulator Type|Maximum Re"
"gulator Voltage [p.u.]|Minimum Regulator Voltage [p.u.]|Regulator Gain m0 [p."
"u./p.u.]|First Regulator Pole T1 [s]|First Regulator Zero T2 [s]|Second Regul"
"ator Pole T3 [s]|Second Regulator Zero T4 [s]|Time Constant of the Field Circ"
"uit Td [s]|Time Delay of the Measurement System Tr [s]|Coefficient of the Cei"
"ling 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,on,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;p"
"8q=@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 "1|5.00|-5.00|400|0.10|0.45|1.00|0.01|1.00|0"
".001|[0.0006 0.9]|2"
MaskTabNameString ",,,,,,,,,,,"
System {
Name "Exc"
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"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "in_2"
Position [25, 75, 45, 95]
Port "2"
IconDisplay "Port number"
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
IconDisplay "Port number"
}
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 SubSystem
Name "Oxl"
Tag "PSATblock"
Description "Controls"
Ports [0, 1]
Position [160, 132, 205, 158]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Oxl"
MaskDescription "This block defines a breaker."
MaskPromptString "Integrator time constant T0 [s]|Use generat"
"or Xd and Xq|d-axis estimated reactance Xd [p.u.]|q-axis estimated reactance "
"Xq [p.u.]|Maximum Field Current [p.u.]"
MaskStyleString "edit,checkbox,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "|fm_block|||"
MaskEnableString "on,on,off,off,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "p2q=@1;p3q=@2;p4q=@3;p5q=@4;p6q=@5;"
MaskInitialization "[x,y] = fm_draw('O');"
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.8+[-1.3 0],[1 -1],1.8+[-1.3 0],[-1 1])\npl"
"ot(1.5*x-1.2,2*y,[2.3 2.3],[1 -1],[2.3 3.6],[-1 -1])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10|on|0.2|0.18|2.7"
MaskTabNameString ",,,,"
System {
Name "Oxl"
Location [287, 280, 621, 472]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [120, 105, 150, 135]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [190, 110, 210, 130]
ShowName off
IconDisplay "Port number"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Overexcitation\nLimiter"
Position [164, 45]
}
}
}
Block {
BlockType SubSystem
Name "Pod"
Tag "PSATblock"
Description "Controls"
Ports [1, 1]
Position [195, 215, 250, 245]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Pod"
MaskDescription "This block defines a Suplementary Stabilizi"
"ng Control Loop."
MaskPromptString "Input signal: |Operation mode: |Vmax & Vmin"
" Stabilizer Output [p.u., p.u.]|Gain Kw and time constant Tw [p.u./p.u., s]|"
"Lead-Lag time constants T1 and T2 [s, s]|Lead-Lag time constants T3 and T4 [s"
", s]|Low pass time constant Tr [s]"
MaskStyleString "popup(Bus_V|Line_P_from_bus|Line_P_to_bus|L"
"ine_I_from_bus|Line_I_to_bus|Line_Q_from_bus|Line_Q_to_bus),popup(SVC_control"
"|TCSC_control|STATCOM_control|SSSC_control|UPFC_control),edit,edit,edit,edit,"
"edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "fm_block||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "p3q=@1;p4q=@2;p5_6q=@3;p7_8q=@4;p9_10q=@5;p"
"11_12q=@6;p13q=@7;"
MaskInitialization "[xP,yP] = fm_draw('P');\n[xO,yO] = fm_draw("
"'O');\n[xD,yD] = fm_draw('D');"
MaskDisplay "plot([-1.8 4.8 4.8 -1.8 -1.8],[-1.5 -1.5 1."
"5 1.5 -1.5])\ncolor('red')\nplot(1.5*xP-0.7,2*yP,0.7+1.5*xO,2*yO,3.5+1.5*xD,2"
"*yD)"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Bus_V|SVC_control|[0.2 -0.2]|[-0.1 5]|[0.4 "
"0.2]|[0.4 0.2]|[0.001]"
MaskTabNameString ",,,,,,"
System {
Name "Pod"
Location [32, 214, 364, 386]
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, 110, 145, 130]
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [115, 60, 145, 90]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator4"
Position [175, 110, 195, 130]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [185, 65, 205, 85]
ShowName off
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Terminator4"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Suplementary Stabilizing Control Loop f"
"or SVCs"
Position [162, 17]
}
}
}
Block {
BlockType SubSystem
Name "Pss"
Tag "PSATblock"
Description "Controls"
Ports [0, 1]
Position [50, 132, 90, 158]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Pss"
MaskDescription "This block defines a Power System Stabilize"
"r."
MaskPromptString "PSS model|Input Signal|Max & Min Stabilizer"
" Output [p.u.]|Gain Kw and time constant Tw [p.u./p.u., s]|Electrical power "
"gain Kp & voltage gain Kv [p.u./p.u., p.u./p.u.]|Lead-Lag time constants T1, "
"T2, T3, T4 [s, s, s, s]|Gain Ka and time constant Ta [p.u./p.u., s]|Additiona"
"l signal limits Va_max, Va_thr, V3_max & V3_min [p.u., p.u., p.u., p.u.]|Thre"
"shold limits E_thr & w_thr [p.u., p.u.]|Allow switch S2"
MaskStyleString "popup(1|2|3|4|5),popup(omega|power|voltage)"
",edit,edit,edit,edit,edit,edit,edit,checkbox"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "fm_block|||||||||"
MaskEnableString "on,on,on,on,off,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p6_7q=@4;p14_15q=@5;"
"p8_9_10_11q=@6;p12_13q=@7;p16_17_18_19q=@8;p20_21q=@9;p22q=@10;"
MaskInitialization "[xs,ys] = fm_draw('S');\n[xp,yp] = fm_draw("
"'P');"
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.5*xp-0.7,2*yp,1.2+1.5*xs,2*ys,2.8+1.5*xs,2"
"*ys)"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "4|omega|[0.05 -0.05]|[50 0.5]|20 5|[0.1 0"
".05 0.01 0.005]|[25 0.5]|[0.045 0.045 0.045 -0.045]|[1.000 0.95]|off"
MaskTabNameString ",,,,,,,,,"
System {
Name "Pss"
Location [67, 205, 401, 397]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [120, 100, 150, 130]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [190, 105, 210, 125]
ShowName off
IconDisplay "Port number"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Power System Stabilizer"
Position [164, 45]
}
}
}
Block {
BlockType SubSystem
Name "Tg"
Tag "PSATblock"
Description "Controls"
Ports [0, 1]
Position [55, 61, 95, 89]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Tg"
MaskDescription "This block defines a Turbine Governor."
MaskHelp "This block defines a Turbine Governor.\nTh"
"ere are two kind of regulators:\n\nType 1:\n\n IEEE Model 4\n\nType 2:\n"
"\n IEEE Model 1"
MaskPromptString "Turbine governor type|Reference speed [p.u."
"]|Droop R [p.u./p.u.]|Maximum torque [p.u.]|Minimum torque [p.u.]|Governor ti"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -