📄 fm_lib.mdl
字号:
"\n\ncolor('magenta')\nplot([-0.45 -0.2 -0.2 -0.45],[-0.5 -1 0 -0.5],[-0.45 -0"".45],[-1 0])\nplot([-0.2 -0.2],[2 1],[-0.2 -0.45 -0.45 -0.2],[1.5 2 1 1.5])\n""plot([-0.2 0 0 -0.65],[-0.5 -0.5 1.5 1.5],[0 0.2],[0.5 0.5])\nplot([-0.45 -0.""65 -0.65 -0.45],[-0.5 -0.5 1.5 1.5])\nplot([-0.65 -0.85],[0.5 0.5],[-0.3 -0.3""],[1.7 2.2],[-0.325 -0.275],[1.975 1.975])\n" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[100 230 60]|[50 0.1]|[1.2 0.8]" } Block { BlockType PMComponent Name "Svc" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1] Position [59, 75, 81, 125] Orientation "down" NamePlacement "alternate" ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" MaskType "Svc" MaskDescription "This block describes an SVC component." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Model Type|Regulator Time Constant Tr [s]|Regulator Gain Kr [p.u./p.u"".]|Reference Voltage [p.u.]|B_max and B_min [p.u. p.u.]|Integral deviation K""d and transient time constant T1 [p.u. s]|Measurement gain and time delay Km,"" Tm [p.u. s]|Inductive and capacitive reactances Xl and Xc [p.u. p.u.]" MaskStyleString "edit,popup(1|2),edit,edit,edit,edit,edit,ed""it,edit" MaskTunableValueString "on,on,on,on,on,on,on,on,on" MaskCallbackString "|fm_block|||||||" MaskEnableString "on,on,on,on,on,on,off,off,off" MaskVisibilityString "on,on,on,on,on,on,on,on,on" MaskToolTipString "on,on,on,on,on,on,on,on,on" MaskVarAliasString ",,,,,,,," MaskVariables "p2_3_4q=@1;p5q=@2;p6q=@3;p7q=@4;p8q=@5;p9_1""0q=@6;p11_12q=@7;p13_14q=@8;p15_16q=@9;" MaskInitialization "[xi,yi] = fm_draw('ind');\n[xc,yc] = fm_dra""w('cap');" MaskDisplay "plot([0.5 0.5],[1 0.8],[0.5 0.5],[0 0.2],[0"" 1 1 0 0],[0.8 0.8 0.2 0.2 0.8]), plot([-0.1 1.1],[0 0],[0.1 0.9],[-0.05 -0.0""5],[0.3 0.7],[-0.1 -0.1]), color('green') plot([-0.4 -0.4 1.4 1.4],[0.1 0.3 0"".7 0.9])" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[100 230 60]|1|10|100|1.00|[1.00 -1.0""0]|[0.001 0.000]|[1.000 0.01]|[0.20 0.10]" } Block { BlockType PMComponent Name "Svc2" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1] Position [120, 75, 150, 135] Orientation "down" NamePlacement "alternate" ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" MaskType "Svc" MaskDescription "This block describes an SVC component." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Model Type|Regulator Time Constant T2 [s]|Regulator Gain K [p.u./p.u.""]|Reference Voltage [p.u.]|Alpha_max and Alpha_min [rad rad]|Integral deviati""on Kd and transient time constant T1 [p.u. s]|Measurement gain and time delay"" Km, Tm [p.u. s]|Inductive and capacitive reactances Xl and Xc [p.u. p.u.]" MaskStyleString "edit,popup(1|2),edit,edit,edit,edit,edit,ed""it,edit" MaskTunableValueString "on,on,on,on,on,on,on,on,on" MaskCallbackString "|fm_block|||||||" MaskEnableString "on,on,on,on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on,on,on,on" MaskToolTipString "on,on,on,on,on,on,on,on,on" MaskVarAliasString ",,,,,,,," MaskVariables "p2_3_4q=@1;p5q=@2;p6q=@3;p7q=@4;p8q=@5;p9_1""0q=@6;p11_12q=@7;p13_14q=@8;p15_16q=@9;" MaskInitialization "[xi,yi] = fm_draw('ind');\n[xc,yc] = fm_dra""w('cap');" MaskDisplay "plot([0.5 0.5],[0 0.2],[-0.5 1.5],[0 0],[3 ""5],[-0.9 -0.9],[0.5 0.5],[-1.6 -1.8],[4 4],[0.2 -0.8],[1.9 1.9],[0.2 0.4],[1.""9 1.9],[-1.8 -2],[0.5 4],[0.2 0.2],[0.5 0.5],[-0.65 -0.85],[4 4],[-1.8 -0.9],""[0.5 4],[-1.8 -1.8],[1.3 2.5],[-2 -2],[1.5 2.3],[-2.05 -2.05],[1.7 2.1],[-2.1"" -2.1]), plot(4+yc,-0.7+0.1*xc,0.5-0.5*xi,-1.15+0.175+0.125*yi,0.5-0.5*xi,-1.""15-0.325+0.125*yi,0.5-0.5*xi,-1.15-0.075+0.125*yi), color('magenta'), plot([-""0.5 1.5 1.5 -0.5 -0.5],[-0.65 -0.65 0 0 -0.65],[0 -0.5 -1 0],[-0.2 -0.45 -0.2"" -0.2],[-0.7 -1.2],[-0.35 -0.35],[-1 0],[-0.45 -0.45],[1 1.5 2 1],[-0.45 -0.2"" -0.45 -0.45],[2 1],[-0.2 -0.2],[1.7 2.2],[-0.3 -0.3])" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[100 230 60]|2|10|100|1.00|[1.00 -1.0""0] |[0.001 0.000]|[1.000 0.01]|[0.20 0.10]" } Block { BlockType PMComponent Name "Tcsc" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1, 1] Position [210, 78, 265, 102] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Tcsc" MaskDescription "This block describes a TCSC component." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Model type:|Operation mode:|Scheduling strategy:|Percentage of series"" compensation [%]|Regulator time constant Tr [s]|Xc_max and Xc_min [p.u. p.u"".]|Proportional and Integral gains Kp and Ki |XL and XC [p.u. p.u.]|Gain for"" stabilizing signal Kr [p.u./p.u.]" MaskStyleString "edit,popup(Xc|Alpha),popup(constant_admitta""nce|constant_power_flow),popup(constant_line_power|constant_angle),edit,edit,""edit,edit,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,off,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 "p5_6_7q=@1;p2q=@2;p3q=@3;p4q=@4;p8q=@5;p9q=""@6;p10_11q=@7;p12_13q=@8;p14_15q=@9;p16q=@10;" MaskInitialization "[xi,yi] = fm_draw('ind');\n[xc,yc] = fm_dra""w('cap');" MaskDisplay "plot([1 0.8],[0.5 0.5],[0 0.2],[0.5 0.5],[0"".8 0.8 0.2 0.2 0.8],[0 1 1 0 0]), color('green'), plot([0.1 0.3 0.7 0.9],[-0.""4 -0.4 1.4 1.4])" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "[100 230 60]|Xc|constant_power_flow|con""stant_line_power|10|0.5|[0.5 -0.5 ]|[5 1]|[0.2 0.1]|10" } Block { BlockType PMComponent Name "Tcsc1" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1, 1] Position [300, 75, 365, 105] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Tcsc" MaskDescription "This block describes a TCSC component." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Model type:|Operation mode:|Scheduling strategy:|Percentage of series"" compensation [%]|Regulator time constant Tr [s]|Alpha_max and Alpha_min [rad"" rad]|Proportional and Integral gains Kp and Ki |XL and XC [p.u. p.u.]|Gain"" for stabilizing signal Kr [p.u./p.u.]" MaskStyleString "edit,popup(Xc|Alpha),popup(constant_admitta""nce|constant_power_flow),popup(constant_line_power|constant_angle),edit,edit,""edit,edit,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 "p5_6_7q=@1;p2q=@2;p3q=@3;p4q=@4;p8q=@5;p9q=""@6;p10_11q=@7;p12_13q=@8;p14_15q=@9;p16q=@10;" MaskInitialization "[xi,yi] = fm_draw('ind');\n[xc,yc] = fm_dra""w('cap');" MaskDisplay "plot([-1.6 -1.8 -1.8],[0.5 0.5 4],[0.2 0.2]"",[0.5 4],[-0.9 -0.9],[3 5],[0 0.2],[0.5 0.5],[-0.65 -0.85],[0.5 0.5],[-1.8 -0"".9],[4 4],[0.2 -0.8],[4 4],[0.2 0.4],[1.9 1.9],[-1.8 -2],[1.9 1.9]), plot(-0.""7+0.1*xc,4+yc,-1.15+0.175+0.125*yi,0.5+0.5*xi,-1.15-0.325+0.125*yi,0.5+0.5*xi"",-1.15-0.075+0.125*yi,0.5+0.5*xi), color('magenta'), plot([-0.65 -0.65 0 0 -0"".65],[-0.5 1.5 1.5 -0.5 -0.5],[-0.2 -0.45 -0.2 -0.2],[0 -0.5 -1 0],[-0.35 -0.""35],[-0.7 -1.2],[-0.45 -0.45],[-1 0],[-0.45 -0.2 -0.45 -0.45],[1 1.5 2 1],[-0"".2 -0.2],[2 1],[-0.3 -0.3],[1.7 2.2])" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "[100 230 60]|Alpha|constant_power_flow|""constant_line_power|10|0.5|[0.5 -0.5 ]|[5 1]|[0.2 0.1]|10" } Block { BlockType PMComponent Name "Upfc" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1, 1] Position [160, 187, 275, 333] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Upfc" MaskDescription "This block describes a UPFC component." MaskHelp "Tree control methodology are available:\n\n""Type 1, Magnitude control: m controls AC voltage by mean of a lead-lag transf""er function, whereas alpha controls DC voltage by mean of a PI regulator.\n\n""Type 2, Phase control: alpha controls AC voltage by mean of a PI regulator al""ong with a lead-lag transfer function, whereas m is kept at 0.9.\n\nType 3, P""hase control: alpha controls AC voltage by mean of a two poles and one zero t""ransfer function, whereas m is kept at 0.9. In this case parameters Kp and Ki"" are respectively the gain and the time constant of the low pass filter." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Operation mode: |Percentage of series compensation Cp [%]|Gain and ti""me constant Kr and Tr [p.u./p.u. s]|Max and min Vp [p.u. p.u.]|Max and min Vq"" [p.u. p.u.]|Max and min Iq [p.u. p.u.]|Stabilizing Vp signal (series voltage"")|Stabilizing Vq signal (quadrature voltage)|Stabilizing Iq signal (quadratur""e current)" MaskStyleString "edit,popup(constant_voltage|constant_reacta""nce),edit,edit,edit,edit,edit,checkbox,checkbox,checkbox" 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_4_5q=@1;p2q=@2;p6q=@3;p7_8q=@4;p9_10q=@5"";p11_12q=@6;p13_14q=@7;p15q=@8;p16q=@9;p17q=@10;" MaskInitialization "[x,y] = fm_draw('circle');\n[xc,yc] = fm_dr""aw('ind');" MaskDisplay "plot([0.3 0.3 -0.95 -0.95 0.3],[-1.7 2.7 2.""7 -1.7 -1.7])\nplot(-2+[0.3 0.3 -0.95 -0.95 0.3],[-1.7 2.7 2.7 -1.7 -1.7])\np""lot([-2.325 -2.325],[2.7 3.5],[-2.325 -2.325],[6.9 7.5])\nplot(0.25*x-2.325,4"".5+y,0.25*x-2.325,5.9+y)\nplot([-0.325 -0.325],[2.7 5.1],[-0.575 -2.95],[7.5 ""7.5],[-0.075 0.3],[7.5 7.5],0,16.7)\nplot(0.25*x-0.325,6.1+y,0.25*x-0.325,7.5""+y)\nplot([-0.95 -1.7],[2.2 2.2],[-0.95 -1.7],[-1.2 -1.2])\nplot([-1.325+0.17""5 -1.325-0.175],[0.75 0.75],[-1.325 -1.325],[2.2 0.75],[-1.325 -1.325],[0.35"" -1.2])\nplot(-1.325+0.175*yc,0.1+0.25*xc)\n\ncolor('magenta')\nplot([-0.45 -""0.2 -0.2 -0.45],[-0.5 -1 0 -0.5],[-0.45 -0.45],[-1 0])\nplot([-0.2 -0.2],[2 1""],[-0.2 -0.45 -0.45 -0.2],[1.5 2 1 1.5])\nplot([-0.2 0 0 -0.65],[-0.5 -0.5 1.""5 1.5],[0 0.2],[0.5 0.5])\nplot([-0.45 -0.65 -0.65 -0.45],[-0.5 -0.5 1.5 1.5]"")\nplot([-0.65 -0.85],[0.5 0.5],[-0.3 -0.3],[1.7 2.2],[-0.325 -0.275],[1.975 ""1.975])\n\nplot(-2+[-0.45 -0.2 -0.2 -0.45],[-0.5 -1 0 -0.5],-2+[-0.45 -0.45],""[-1 0])\nplot(-2+[-0.2 -0.2],[2 1],-2+[-0.2 -0.45 -0.45 -0.2],[1.5 2 1 1.5])""\nplot(-2+[-0.2 0 0 -0.65],[-0.5 -0.5 1.5 1.5],-2+[0 0.2],[0.5 0.5])\nplot(-2""+[-0.45 -0.65 -0.65 -0.45],[-0.5 -0.5 1.5 1.5])\nplot(-2+[-0.65 -0.85],[0.5 0"".5],-2+[-0.3 -0.3],[1.7 2.2],-2+[-0.325 -0.275],[1.975 1.975])\n" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[100 230 60]|constant_voltage|25|[50 0.1]""|[1.15 0.85]|[1.15 0.85]|[1.1 0.9]|on|on|on" } Annotation { Name "Flexible AC Transmission Systems" Position [208, 35] ForegroundColor "blue" FontSize 12 } Annotation { Name "TCSC (model 2)" Position [333, 124] } Annotation { Name "TCSC\n(model 1)" Position [237, 122] } Annotation { Name "SVC\n(model 1)" Position [72, 148] } Annotation { Name "SVC\n(model 2)" Position [167, 131] } Annotation { Name "HVDC\nTransmission\nLine" Position [74, 199] } Annotation { Name "StatCom" Position [71, 352] } Annotation { Name "UPFC" Position [218, 350] } Annotation { Name "SSSC" Position [352, 353] } } } Block { BlockType SubSystem Name "Faults & \nBreakers" Tag "PSATfolder" Description "Switches" Ports [] Position [306, 22, 356, 70] ShowName off FontSize 12 TreatAsAtomicUnit off RTWSystemCode "Auto" MaskInitialization "x = fm_draw('fault');" MaskDisplay "image(x)" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Faults & \nBreakers" Location [33, 82, 309, 232] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType PMComponent Name "Breaker" Tag "PSATblock" Description "Faults & Breakers" Ports [0, 0, 0, 0, 0, 1, 1] Position [190, 75, 210, 95] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Breaker" MaskDescription "This block defines a breaker." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Initially close|First intervention time [s]|Second intervention time ""[s]" MaskStyleString "edit,checkbox,edit,edit" 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 "p3_4_5q=@1;p6q=@2;p7q=@3;p8q=@4;" MaskDisplay "plot([1 2 2 1 1],[-1 -1 1 1 -1])\ncolor('re""d')\nplot([1 2],[-1 1],[2 1],[-1 1])" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "[100 400 60]|on|0.00|0.00" } Block { BlockType PMComponent Name "Fault" Tag "PSATblock" Description "Faults & Breakers" Ports [0, 0, 0, 0, 0, 1] Position [53, 80, 77, 120] Orientation "down" ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" MaskType "Fault" MaskDescription "This block defines a three phase fault." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, ""kV, Hz]|Fault Time [s]|Fault Clearing Time [s]|Fault Resistance [p.u.]|Fault ""Reactance [p.u.]" MaskStyleString "edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on" MaskCallbackString "||||" MaskEnableString "on,on,on,on,on" MaskVisibilityString "on,on,on,on,on" MaskToolTipString "on,on,on,on,on" MaskVarAliasString ",,,," M
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -