📄 fm_libsps.mdl
字号:
PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 150, 130, 170] ShowName off Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Constant Name "Constant" Position [90, 80, 120, 110] ShowName off } Block { BlockType Terminator Name "Terminator4" Position [160, 150, 180, 170] ShowName off } Block { BlockType Outport Name "Out1" Position [160, 88, 190, 102] ShowName off IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 DstBlock "Terminator4" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Out1" DstPort 1 } Annotation { Name "Cluster Controller" Position [139, 45] } } } 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" BusOutputAsStruct off } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Out1" DstPort 1 } Annotation { Name "Overexcitation\nLimiter" Position [164, 45] } } } 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" BusOutputAsStruct 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, 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""me Constant Ts [s]|Servo Time Constant Ts [s]|Transient Gain Time Constant T3"" [s]|Power Fraction Time Constant T5 [s]|Reheat time Constant [s]" MaskStyleString "popup(1|2),edit,edit,edit,edit,edit,edit,ed""it,edit,edit" MaskTunableValueString "on,on,on,on,on,on,on,on,on,on" MaskCallbackString "fm_block|||||||||" MaskEnableString "on,on,on,on,on,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;p4q=@3;p5q=@4;p6q=@5;p7q=@6;p""8q=@7;p9q=@8;p10q=@9;p11q=@10;" 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" MaskTabNameString ",,,,,,,,," 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 } Block { BlockType Outport Name "Out1" Position [185, 105, 205, 125] ShowName off IconDisplay "Port number" BusOutputAsStruct 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] } } } Block { BlockType SubSystem Name "FACTS" Tag "PSATfolder" Description "FACTS" Ports [] Position [445, 198, 498, 250] ShowName off FontSize 12 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDisplay "image(imread([Path.images,'sim_facts.jpg'],'jpe""g'))" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "FACTS" Location [95, 37, 505, 429] 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 "powersysdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Hvdc" MaskDescription "This block defines a HVDC connection." MaskPromptString "Power and Frequency Ratings [MVA, Hz]|Volta""ge Rating at Terminal Buses [kV, kV]|DC ratings (Vn_dc, In_dc) [kV, kA]|Trans""former Reactances (Xcr Xci) [p.u. p.u.]|Tap Ratios (Ar Ai) [p.u./p.u. p.u.""/p.u.]|PI Regulator Constants (Ki, Kp)|DC Line Parameters (Rdc Ldc) [Ohm H]|""Rectifier Angle Limits (a_max, a_min) [deg deg]|Inverter Angle Limits (g_max"", g_min) [deg deg]|Reference Current Limits (I0rmax I0rmin I0imax I0imin) [p"".u.]" MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edi""t,edit" MaskTunableValueString "on,on,on,on,on,on,on,on,on,on" MaskCallbackString "|||||||||" MaskEnableString "on,on,on,on,on,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 "p3_6q=@1;p4_5q=@2;p7_8q=@3;p9_10q=@4;p11_12""q=@5;p13_14q=@6;p15_16q=@7;p17_18q=@8;p19_20q=@9;p21_22_23_24q=@10;" MaskInitialization "[x,y] = fm_draw('circle');" MaskDisplay "plot(0.7+[0 4 4 0 0],[-2 -2 2 2 -2])\nplot(""9.7+[0 4 4 0 0],[-2 -2 2 2 -2])\nplot([4.7 9.7],[-1.25 -1.25],[4.7 9.7],[1.25"" 1.25])\n\nplot(x-2,y,x-0.6,y,x+15,y,x+16.4,y)\ncolor('green')\nplot(-2+[-1 -""1.3],[0 0],-2+[2.4 2.7],[0 0])\nplot(-2+[-0.8 0.7],[-1.2 1.2],-2+[0.5 0.7],[1"".1 1.2],-2+[0.7 0.7],[1.0 1.2])\nplot(15+[-1 -1.3],[0 0],15+[2.4 2.7],[0 0])""\nplot(16.4+[-0.8 0.7],[-1.2 1.2],16.4+[0.5 0.7],[1.1 1.2],16.4+[0.7 0.7],[1.""0 1.2])\n\ncolor('magenta')\nplot(0.7+[1 3 2 1],[-0.9 -0.9 0.9 -0.9])\nplot(9"".7+[1 3 2 1],[-0.9 -0.9 0.9 -0.9])\nplot(0.7+[2 2],[0.9 1.25],0.7+[2 2],[-0.9"" -1.25],0.7+[1.2 2.8],[0.9 0.9])\nplot(9.7+[2 2],[0.9 1.25],9.7+[2 2],[-0.9 -""1.25],9.7+[1.2 2.8],[0.9 0.9])\nplot(0.7+[2 2.5],[0.9 1.25],9.7+[2 2.5],[0.9 ""1.25])\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -