📄 d_omol.mdl
字号:
PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0|__newr1" 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 "1|2|400|[1.00 0.00]|1|1" } Block { BlockType PMComponent Name "Ddsg" Tag "PSATblock" Description "Wind Turbines" Ports [0, 0, 0, 0, 0, 1, 1] Position [455, 67, 580, 143] Orientation "left" ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" MaskType "Ddsg" MaskDescription "This block defines a variable speed wind turbine with direct drive synchronous generator." MaskPromptString "Power, Voltage and Frequency Ratings [MVA, kV, Hz]|Stator Resistance Rs"" [p.u.]|Direct and inverse reactances Xd and Xq [p.u. p.u.]|Constant field flux Psi_p [p.u.]|Inerti""a Constants Hm [kWs/kVA]|Pitch control gain and time constant Kp, Tp [p.u. s]|Voltage control gain"" and time constant Kv Tv [p.u. s]|Active and Reactive Power Control time constants Tep Teq [s s]|Nu""mber of poles p and gear box ratio [int -]|Blade length and number [m int]|Pmax and Pmin [p.u. ""p.u.]|Qmax and Qmin [p.u. p.u.]|Connected" MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,checkbox" 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 "p3_4_5q=@1;p6q=@2;p7_8q=@3;p9q=@4;p10q=@5;p11_12q=@6;p13_14q=@7;p15_16""q=@8;p18_20q=@9;p17_19q=@10;p21_22q=@11;p23_24q=@12;p25q=@13;" MaskInitialization "[x,y] = fm_draw('circle');\n[xh,yh] = fm_draw('helix');" MaskDisplay "plot(1.4*x,1.4*y,[0,-2],[0 0],[-2 -3 -3 -2 -2],[-1 -1 1 1 -1],[-3 -5],[0 ""0],[1.4 2.075],[0 0],[3.95 4.5],[0 0])\nplot(1.5*[0.3 0.3 -0.95 -0.95 0.3]+3.5,0.5*[-1.7 2.7 2.7 -""1.7 -1.7]-0.25,1.5*[0 0.2]+3.5,0.5*[0.5 0.5]-0.25)\ncolor('blue')\nplot(x,y)\ncolor('cyan')\nplot(xh-""4,3*yh)\ncolor('magenta')\nplot(1.5*[0 0]+3.5,0.5*[-0.5 1.5]-0.25,1.5*[0 -0.2]+3.5,0.5*[-0.5 -0.5]-""0.25,1.5*[0 -0.65]+3.5,0.5*[1.5 1.5]-0.25)\nplot(1.5*[-0.2 -0.2]+3.5,0.5*[-1 0]-0.25,1.5*[-0.2 -0.4""5]+3.5,0.5*[-1 -0.5]-0.25,1.5*[-0.2 -0.45]+3.5,0.5*[0 -0.5]-0.25,1.5*[-0.45 -0.45]+3.5,0.5*[-1 0]-0.2""5)\nplot(1.5*[-0.2 -0.2]+3.5,0.5*[2 1]-0.25,1.5*[-0.45 -0.45]+3.5,0.5*[2 1]-0.25,1.5*[-0.45 -""0.2]+3.5,0.5*[2 1.5]-0.25,1.5*[-0.45 -0.2]+3.5,0.5*[1 1.5]-0.25)\nplot(1.5*[-0.65 -0.65]+3.5,0.5*[-""0.5 1.5]-0.25,1.5*[-0.45 -0.65]+3.5,0.5*[-0.5 -0.5]-0.25,1.5*[-0.45 -0.65]+3.5,0.5*[1.5 1.5]-0.25)\np""lot(1.5*[-0.65 -0.85]+3.5,0.5*[0.5 0.5]-0.25,1.5*[-0.3 -0.3]+3.5,0.5*[1.7 2.2]-0.25,1.5*[-0.325 -0.27""5]+3.5,0.5*[1.975 1.975]-0.25)" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "[10 400 60]|0.01|[1 0.8]|1.00|3|[10 3]|[10 1]|[0.01 0.01]|[4 1/8""9]|[75.00 3]|[1.00 0.00]|[0.7 -0.7]|on" } Block { BlockType Reference Name "Line" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 1, 1] Position [265, 120, 325, 130] 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 "[100 400 60]" p6q "0" p8q "0.01" p9q "0.10" p10q "1e-3" p13_14_15q "[0.0 0.0 0.0]" p16q on } Block { BlockType PMComponent Name "PV" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 0, 1] Position [415, 123, 450, 157] Orientation "left" ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" RConnTagsString "__newr0" MaskType "PV" MaskDescription "This block defines a PV bus for load flow studies:\n\nP = Pcost.\nV = Vdes." MaskPromptString "Power and Voltage Ratings [MVA, kV]|Active Power [p.u.]|Voltage Magnitu""de [p.u.]|Qmax and Qmin [p.u. p.u.]|Vmax and Vmin [p.u. p.u.]|Loss Participation Factor|Connected" MaskStyleString "edit,edit,edit,edit,edit,edit,checkbox" 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 "p2_3q=@1;p4q=@2;p5q=@3;p6_7q=@4;p8_9q=@5;p10q=@6;p11q=@7;" MaskInitialization "[x,y] = fm_draw('circle');\n[xp,yp] = fm_draw('P');" MaskDisplay "plot(x,y)\ncolor('blue')\nplot(0.3*xp-0.35,0.6*yp,[0.1 0.3 0.5],[0.3 -0.3 0.3])\n" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[2 400]|0.8|1.00|[0.8 -0.2]|[1.1 0.9]|1|on" } Block { BlockType PMComponent Name "Slack" Tag "PSATblock" Description "Power Flow" Ports [0, 0, 0, 0, 0, 0, 1] Position [120, 108, 155, 142] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" RConnTagsString "__newr0" MaskType "SW" MaskDescription "This block defines a V-theta bus:\n\nV = V_des\ntheta = theta_des" MaskPromptString "Power and Voltage Ratings [MVA, kV]|Voltage Magnitude [p.u.]|Reference ""Phase Angle [rad]|Qmax and Qmin [p.u. p.u.]|Vmax and Vmin [p.u. p.u.]|Active Power Guess [p.u.]|Lo""ss Participation Factor|Reference bus|Connected" MaskStyleString "edit,edit,edit,edit,edit,edit,edit,checkbox,checkbox" MaskTunableValueString "on,on,on,on,on,on,on,on,on" MaskCallbackString "|||||||fm_block|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_3q=@1;p4q=@2;p5q=@3;p6_7q=@4;p8_9q=@5;p10q=@6;p11q=@7;p12q=@8;p13q=@9;" MaskInitialization "[x,y] = fm_draw('circle');\n[xt,yt] = fm_draw('theta');\n" MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0]), color('blue'), plot([0 1],[0 1],[0 1],[1 ""0],[0.5 1 0.5 0 0.5],[0 0.5 1 0.5 0])" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "[100 400]|1.00|0.00|[1.5 -1.5]|[1.1 0.9]|0.80|1|on|on" } Block { BlockType PMComponent Name "Wind" Tag "PSATblock" Description "Wind Turbines" Ports [0, 0, 0, 0, 0, 0, 1] Position [615, 84, 670, 126] Orientation "left" ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" RConnTagsString "__newr0" MaskType "Wind" MaskDescription "This block defines wind models for use with wind turbines." MaskPromptString "Number of output ports|Wind model type|Nominal wind speed [m/s]|Air den""sity rho [kg/m^3]|Filter time constant tau [s]|Sample time for wind measures [s]|Weibull distribution"" constants C and K |Wind ramp constants Tsr, Ter and Awr [s s m/s]|Wind gust constants Tsg, Teg and ""Awg [s s m/s]|Wind turbolence constants h, z0, df and n [m - Hz int]" MaskStyleString "edit,popup(measurements|weibull|composite),edit,edit,edit,edit,edit,edit,edit,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 "out=@1;p1q=@2;p2q=@3;p3q=@4;p4q=@5;p5q=@6;p6_7q=@7;p8_9_10q=@8;p11_12_13q=@9;p14_15_16_17q=@10;" MaskInitialization "fm_inout\n[xa,ya] = fm_draw('arrow');" MaskDisplay "color('cyan')\nplot(xa,ya,xa-0.2,ya-0.2,xa+0.2,ya+0.2,xa+0.4,ya+0.4,xa-0.4,ya-0.4)" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "1|measurements|15.00|1.225|4|0.1|[20 2]|[5 15 1]|[5 15 1]|[50 0.01 0.2 50]" } Line { LineType "Connection" SrcBlock "Bus1" SrcPort RConn1 DstBlock "Line" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line" SrcPort RConn1 DstBlock "Bus2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Ddsg" SrcPort RConn1 DstBlock "Bus2" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Slack" SrcPort RConn1 DstBlock "Bus1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Wind" SrcPort RConn1 DstBlock "Ddsg" DstPort LConn1 } Line { LineType "Connection" SrcBlock "PV" SrcPort RConn1 DstBlock "Bus2" DstPort RConn2 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -