📄 d_tcsc.mdl
字号:
} Block { BlockType PMComponent Name "Bus4" Tag "PSATblock" Description "Connection" Ports [0, 0, 0, 0, 0, 3] Position [650, 63, 655, 227] BackgroundColor "black" PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0|__newl1|__newl2" MaskType "Bus" MaskDescription "Bus block." MaskPromptString "Number of inputs:|Number of outputs:|Voltage Rating [kV]|Voltage initia""l guess [p.u. rad]|Area number|Region number" MaskStyleString "edit,edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on,on" MaskCallbackString "||||fm_block|" MaskEnableString "on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on" MaskToolTipString "on,on,on,on,on,on" MaskVarAliasString ",,,,," MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;" MaskInitialization "fm_inout\n\n" MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "3|0|400|[1.00 0.00]|1|1" } Block { BlockType SubSystem Name "Gen2" Tag "PSATblock" Description "Machines" Ports [1, 0, 0, 0, 0, 0, 1] Position [125, 139, 160, 171] ShowName off FontSize 12 PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Syn" MaskDescription "This block defines a fourth order synchronous machine." MaskPromptString "Power, voltage and frequency ratings [MVA, kV, Hz]|Machine Dynamic Orde""r|resistance ra and leakage reactance xl [p.u. p.u.]|d-axis reactances Xd, X'd X\"d"" [p.u.,p.u.,p.u.]|d-axis open circuit time constants T'd0 and T\"d0 [s, s]|q-axis reactances Xq, ""X'q, X\"q [p.u. p.u. p.u.]|q-axis open circuit time constants T'q0 and T\"q0 [s s]|Inertia (M = 2""H) and Damping [s, p.u.]|Speed and active power additional signals Kw & Kp [p.u., p.u.]|Percentage of"" active and reactive powers at bus [p.u. p.u.]|d-axis additional circuit leakage time constant Taa"" [s] |Saturation coefficients S(1.0) and S(1.2)|Number of input signals" MaskStyleString "edit,popup(8|6|5.3|5.2|5.1|4|3|2),edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,popup(0|1|2)" MaskTunableValueString "on,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,on" MaskVisibilityString "on,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,on" MaskVarAliasString ",,,,,,,,,,,," MaskVariables "p2_3_4q=@1;p5q=@2;p7_6q=@3;p8_9_10q=@4;p11_12q=@5;p13_14_15q=@6;p16_17""q=@7;p18_19q=@8;p20_21q=@9;p22_23q=@10;p24q=@11;p25_26q=@12;in=@13;" MaskInitialization "fm_inout\n[x,y] = fm_draw('circle');\n[xg,yg] = fm_draw('G');\n[xs,ys] = fm_draw('sinus');\n" MaskDisplay "plot(x+1.4,y,0.12*xs+1,0.15*ys-0.6)\ncolor('blue')\nplot(1.4+0.45*xg,0.3+0.45*yg)\n" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[2220 24 60]|6|[0.003 0.15]|[1.81 0.30 0.23]|[8.00 0.03]|[1.76 ""0.65 0.25]|[1.00 0.07]|[7.00 0.00]|[0.00 0.00]|[1.00 1.00]|0.00|[0.05 0.1]|1" System { Name "Gen2" Location [412, 233, 746, 425] 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] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType PMComponent Name "Atomic Subsystem" Ports [0, 0, 0, 0, 0, 0, 1] Position [140, 89, 240, 131] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" RConnTagsString "__newr0" } Block { BlockType Terminator Name "t1" Position [80, 20, 105, 50] } Block { BlockType PMIOPort Name "Connection\nPort1" Tag "PMCPort" Position [280, 101, 310, 119] Orientation "left" ShowName off Port "1" Side "Right" } Line { LineType "Connection" SrcBlock "Atomic Subsystem" SrcPort RConn1 Points [0, 0] DstBlock "Connection\nPort1" DstPort RConn1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "t1" DstPort 1 } Annotation { Name "Synchronous Machine" Position [164, 45] } } } Block { BlockType Reference Name "Line1" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 1, 1] Position [420, 140, 480, 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 "[2220 400 60]" p6q "0" p8q "0.0" p9q "0.5" p10q "0.0" p13_14_15q "[0.0 0.0 0.0]" p16q on } Block { BlockType Reference Name "Line2" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 1, 1] Position [410, 195, 470, 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 "[2220 400 60]" p6q "0" p8q "0.01" p9q "0.8" p10q "0.0" p13_14_15q "[0.0 0.0 0.0]" p16q on } Block { BlockType Reference Name "Line3" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 1, 1] Position [540, 195, 600, 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 "[2220 400 60]" p6q "0" p8q "0.0" p9q "0.13" p10q "0.0" p13_14_15q "[0.0 0.0 0.0]" p16q on } Block { BlockType Reference Name "PV2" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 0, 1] Position [125, 175, 155, 205] ShowName off SourceBlock "fm_lib/Power Flow/PV" SourceType "PV" PhysicalDomain "psatdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" RConnTagsString "__newr0" p2_3q "[2220 24]" p4q "0.9" p5q "1.00" p6_7q "[0.8 -0.2]" p8_9q "[1.1 0.9]" p10q "1" p11q on } Block { BlockType Reference Name "Slack2" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 0, 1] Position [575, 74, 605, 106] ShowName off SourceBlock "fm_lib/Power Flow/Slack" SourceType "SW" PhysicalDomain "psatdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" RConnTagsString "__newr0" p2_3q "[2220 400]" p4q "0.90081" p5q "0.00" p6_7q "[1.5 -1.5]" p8_9q "[1.1 0.9]" p10q "0.80" p11q "1" p12q on p13q on } Block { BlockType PMComponent Name "Tcsc2" Tag "PSATblock" Description "FACTS" Ports [0, 0, 0, 0, 0, 1, 1] Position [325, 188, 380, 212] 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:|Operatio""n mode:|Scheduling strategy:|Percentage of series compensation [%]|Regulator time constant Tr [s]|Alp""ha_max and Alpha_min [rad rad]|Proportional and Integral gains Kp and Ki |XL and XC [p.u. p.u.]|Gai""n for stabilizing signal Kr [p.u./p.u.]|Connected" MaskStyleString "edit,popup(Xc|Alpha),popup(constant_admittance|constant_power_flow),popu""p(constant_line_power|constant_angle),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 "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;p17q=@11;" MaskInitialization "[xi,yi] = fm_draw('ind');\n[xc,yc] = fm_draw('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*x""i,-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 "[2220 400 60]|Alpha|constant_power_flow|constant_line_power|53.75|0.0""1|[3.1416 -3.1416]|[5 1]|[0.2 0.1]|10|on" } Block { BlockType Reference Name "Transf1" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 1, 1] Position [210, 162, 260, 188] ShowName off SourceBlock "fm_lib/Power Flow/Transf1" SourceType "Line" PhysicalDomain "psatdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" p3_4_5q "[2220 24 60]" p7q "24/400" p8q "0.0" p9q "0.15" p13_14_15q "[0.0 0.0 0.0]" p16q on } Line { LineType "Connection" SrcBlock "Line3" SrcPort RConn1 DstBlock "Bus4" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Line1" SrcPort RConn1 DstBlock "Bus4" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Slack2" SrcPort RConn1 DstBlock "Bus4" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Bus3" SrcPort RConn1 DstBlock "Line3" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line2" SrcPort RConn1 DstBlock "Bus3" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Bus2" SrcPort RConn1 DstBlock "Line1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Transf1" SrcPort RConn1 DstBlock "Bus2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Bus1" SrcPort RConn1 DstBlock "Transf1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "PV2" SrcPort RConn1 DstBlock "Bus1" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Gen2" SrcPort RConn1 DstBlock "Bus1" DstPort LConn1 } Line { SrcBlock "AVR2" SrcPort 1 DstBlock "Gen2" DstPort 1 } Line { LineType "Connection" SrcBlock "Tcsc2" SrcPort RConn1 DstBlock "Line2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Bus2" SrcPort RConn2 DstBlock "Tcsc2" DstPort LConn1 } Annotation { Name "P. Kundur, \"Power System Stability and Control\", Example 13.2, pp. 864-869." Position [431, 293] } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -