📄 fm_lib.mdl
字号:
"1.3 0],[1 -1],1.8+[-1.3 0],[-1 1])\nplot(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|0.05|on" 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 OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out1" Position [190, 110, 210, 130] ShowName off } 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 [200, 217, 245, 243] ShowName off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Pod" MaskDescription "This block defines a Suplementary Stabilizing Control Loop." MaskPromptString "Input signal: |Vmax and Vmin Stabilizer Output [p.u., p.u.]|Gain Kw and time c""onstant 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]|Connected" MaskStyleString "popup(Bus_V|Line_P_from_bus|Line_P_to_bus|Line_I_from_bus|Line_I_to_bus|Line_Q_""from_bus|Line_Q_to_bus),edit,edit,edit,edit,edit,checkbox" MaskTunableValueString "on,on,on,on,on,on,on" MaskCallbackString "fm_block||||||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;p5_6q=@2;p7_8q=@3;p9_10q=@4;p11_12q=@5;p13q=@6;p14q=@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|[0.2 -0.2]|[-0.1 5]|[0.4 0.2]|[0.4 0.2]|[0.001]|on" 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 OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant" Position [115, 60, 145, 90] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Terminator Name "Terminator4" Position [175, 110, 195, 130] ShowName off } Block { BlockType Outport Name "Out1" Position [185, 65, 205, 85] ShowName off } 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 for SVCs" Position [162, 17] } } } Block { BlockType SubSystem Name "Pss" Tag "PSATblock" Description "Controls" Ports [0, 1] Position [50, 132, 90, 158] ShowName off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Pss" MaskDescription "This block defines a Power System Stabilizer." MaskPromptString "PSS model|Input Signal|Max and Min Stabilizer Output [p.u.]|Gain Kw and time c""onstant Tw [p.u./p.u., s]|Electrical power gain Kp and voltage gain Kv [p.u./p.u., p.u./p.u.]|Lead-L""ag time constants T1, T2, T3, T4 [s, s, s, s]|Gain Ka and time constant Ta [p.u./p.u., s]|Additional ""signal limits Va_max, Va_thr, V3_max and V3_min [p.u., p.u., p.u., p.u.]|Threshold limits E_thr and w""_thr [p.u., p.u.]|Allow switch S2|Connected" MaskStyleString "popup(1|2|3|4|5),popup(omega|power|voltage),edit,edit,edit,edit,edit,edit,edit,checkbox,checkbox" MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on" MaskCallbackString "fm_block||||||||||fm_block" MaskEnableString "on,on,on,on,off,on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on" MaskToolTipString "on,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_1""9q=@8;p20_21q=@9;p22q=@10;p23q=@11;" 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.0""45 0.045 -0.045]|[1.000 0.95]|off|on" 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 OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out1" Position [190, 105, 210, 125] ShowName off } 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, 66, 95, 94] ShowName off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Tg" MaskDescription "This block defines a Turbine Governor." MaskHelp "This block defines a Turbine Governor.\nThere 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 torqu""e [p.u.]|Minimum torque [p.u.]|Governor Time Constant Ts [s]|Servo Time Constant Tc [s]|Transient gai""n time constant T3 [s]|Power fraction time constant T4 [s]|Reheat time constant T5 [s]|Connected" MaskStyleString "popup(1|2),edit,edit,edit,edit,edit,edit,edit,edit,edit,checkbox" MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on" MaskCallbackString "fm_block||||||||||fm_block" MaskEnableString "on,on,on,on,on,on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on" MaskToolTipString "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;p12q=@11;" MaskInitialization "[x,y] = fm_draw('G');" MaskDisplay "plot([-1.8 2.8 2.8 -1.8 -1.8],[-1.5 -1.5 1.5 1.5 -1.5])\ncolor('red')\nplot([-0.5 ""-0.5],[-1 1],[-1.3 0.3],[1 1])\nplot(1.4+x,y)" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "1|1.00|0.02|1.2|0.3|0.10|0.45|0.00|12.00|50.00|on" System { Name "Tg" Location [154, 243, 488, 435] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "Constant" Position [115, 100, 145, 130] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out1" Position [185, 105, 205, 125] ShowName off } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Out1" DstPort 1 } Annotation { Name "Turbine Governor" Position [164, 45] } } } Annotation { Name "Controls" Position [175, 28] ForegroundColor "blue" FontSize 12 } Annotation { Name "Turbine\nGovernor" Position [69, 107] } Annotation { Name "Automatic Voltage\nRegulator" Position [181, 106] } Annotation { Name "Cluster \nController" Position [283, 107] } Annotation { Name "Central Area\nController" Position [281, 180] } Annotation { Name "Over Excitation \nLimiter" Position [181, 179] } Annotation { Name "Power System\nStabilizer" Position [68, 180] } Annotation { Name "Power Oscillation\nDamper" Position [141, 228] } } } Block { BlockType SubSystem Name "FACTS" Tag "PSATfolder" Description "FACTS" Ports [] Position [54, 163, 101, 212] ShowName off FontSize 12 PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskInitialization "x = fm_draw('facts');" MaskDisplay "image(x)" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "FACTS" Location [1994, 281, 2404, 672] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType PMComponent Name "Hvdc" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1, 1] Position [135, 179, 355, 221] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Hvdc" MaskDescription "This block defines a HVDC connection." MaskPromptString "Power and Frequency Ratings [MVA, Hz]|Voltage Rating at Terminal Buses [kV, k""V]|DC Ratings (Vn_dc, In_dc) [kV, kA]|Transformer Reactances (Xcr Xci) [p.u. p.u.]|Tap Ratios (Ar A""i) [p.u./p.u. p.u./p.u.]|PI Regulator Constants (Ki, Kp)|DC Line Parameters (Rdc Ldc) [p.u. p.u.]|R"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -