⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d_ex12_6.mdl

📁 一个较好的MATLAB潮流程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [155, 25, 175, 45]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "t1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "g1"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Gen1"
      Tag		      "PSATblock"
      Description	      "Machines"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [945, 214, 980, 246]
      Orientation	      "left"
      ShowName		      off
      FontSize		      12
      ShowPortLabels	      on
      MaskType		      "Syn"
      MaskDescription	      "This block defines  a fourth order synchronous "
"machine."
      MaskPromptString	      "Power, voltage and frequency rates [MVA, kV, Hz"
"]|Machine Dynamic Order|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 consta"
"nts 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 = 2H) 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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d S(1.2)|Number of input signals"
      MaskStyleString	      "edit,popup(8|6|5.3|5.2|5.1|4|3|2),edit,edit,edi"
"t,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"
      MaskVariables	      "p2_3_4q=@1;p5q=@2;p7_6q=@3;p8_9_10q=@4;p11_12q="
"@5;p13_14_15q=@6;p16_17q=@7;p18_19q=@8;p20_21q=@9;p22_23q=@10;p24q=@11;p25_26"
"q=@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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[900  20  60]|6|[0.0025  0.2]|[1.80  0.30  0.25"
"]|[8.00  0.03]|[1.70  0.55  0.25]|[0.4  0.05]|[12.35  0.00]|[0.00  0.00]|[1.0"
"0  1.00]|0.0|[0 0]|0"
      System {
	Name			"Gen1"
	Location		[152, 241, 486, 433]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [185, 100, 215, 130]
	  ShowName		  off
	  Value			  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [255, 105, 275, 125]
	  ShowName		  off
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Annotation {
	  Text			  "Synchronous Machine"
	  Position		  [164, 45]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Gen3"
      Tag		      "PSATblock"
      Description	      "Machines"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [185, 209, 220, 241]
      ShowName		      off
      FontSize		      12
      ShowPortLabels	      on
      MaskType		      "Syn"
      MaskDescription	      "This block defines  a fourth order synchronous "
"machine."
      MaskPromptString	      "Power, voltage and frequency rates [MVA, kV, Hz"
"]|Machine Dynamic Order|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 consta"
"nts 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 = 2H) 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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d S(1.2)|Number of input signals"
      MaskStyleString	      "edit,popup(8|6|5.3|5.2|5.1|4|3|2),edit,edit,edi"
"t,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"
      MaskVariables	      "p2_3_4q=@1;p5q=@2;p7_6q=@3;p8_9_10q=@4;p11_12q="
"@5;p13_14_15q=@6;p16_17q=@7;p18_19q=@8;p20_21q=@9;p22_23q=@10;p24q=@11;p25_26"
"q=@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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[900  20  60]|6|[0.0025  0.2]|[1.80  0.30  0.25"
"]|[8.00  0.03]|[1.70  0.55  0.25]|[0.4  0.05]|[13.00  0.00]|[0.00  0.00]|[1.0"
"0  1.00]|0.0|[0 0]|0"
      System {
	Name			"Gen3"
	Location		[152, 241, 486, 433]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [185, 100, 215, 130]
	  ShowName		  off
	  Value			  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [255, 105, 275, 125]
	  ShowName		  off
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Annotation {
	  Text			  "Synchronous Machine"
	  Position		  [164, 45]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Gen4"
      Tag		      "PSATblock"
      Description	      "Machines"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [110, 114, 145, 146]
      ShowName		      off
      FontSize		      12
      ShowPortLabels	      on
      MaskType		      "Syn"
      MaskDescription	      "This block defines  a fourth order synchronous "
"machine."
      MaskPromptString	      "Power, voltage and frequency rates [MVA, kV, Hz"
"]|Machine Dynamic Order|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 consta"
"nts 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 = 2H) 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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d S(1.2)|Number of input signals"
      MaskStyleString	      "edit,popup(8|6|5.3|5.2|5.1|4|3|2),edit,edit,edi"
"t,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"
      MaskVariables	      "p2_3_4q=@1;p5q=@2;p7_6q=@3;p8_9_10q=@4;p11_12q="
"@5;p13_14_15q=@6;p16_17q=@7;p18_19q=@8;p20_21q=@9;p22_23q=@10;p24q=@11;p25_26"
"q=@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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[900  20  60]|6|[0.0025  0.2]|[1.80  0.30  0.25"
"]|[8.00  0.03]|[1.70  0.55  0.25]|[0.4  0.05]|[13.00  0.00]|[0.00  0.00]|[1.0"
"0  1.00]|0.002|[0 0]|0"
      System {
	Name			"Gen4"
	Location		[152, 241, 486, 433]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [185, 100, 215, 130]
	  ShowName		  off
	  Value			  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [255, 105, 275, 125]
	  ShowName		  off
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Annotation {
	  Text			  "Synchronous Machine"
	  Position		  [164, 45]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Gen5"
      Tag		      "PSATblock"
      Description	      "Machines"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [1005, 114, 1040, 146]
      Orientation	      "left"
      ShowName		      off
      FontSize		      12
      ShowPortLabels	      on
      MaskType		      "Syn"
      MaskDescription	      "This block defines  a fourth order synchronous "
"machine."
      MaskPromptString	      "Power, voltage and frequency rates [MVA, kV, Hz"
"]|Machine Dynamic Order|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 consta"
"nts 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 = 2H) 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 additi"
"onal circuit leakage time constant Taa [s] |Saturation coefficients S(1.0) an"
"d S(1.2)|Number of input signals"
      MaskStyleString	      "edit,popup(8|6|5.3|5.2|5.1|4|3|2),edit,edit,edi"
"t,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"
      MaskVariables	      "p2_3_4q=@1;p5q=@2;p7_6q=@3;p8_9_10q=@4;p11_12q="
"@5;p13_14_15q=@6;p16_17q=@7;p18_19q=@8;p20_21q=@9;p22_23q=@10;p24q=@11;p25_26"
"q=@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,1.4+0.45*xg,0.3+0.45*yg,0.12*xs+1,"
"0.15*ys-0.6)\n\n"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[900  20  60]|6|[0.0025  0.2]|[1.80  0.30  0.25"
"]|[8.00  0.03]|[1.70  0.55  0.25]|[0.4  0.05]|[12.35  0.00]|[0.00  0.00]|[1.0"
"0  1.00]|0.0|[0 0]|0"
      System {
	Name			"Gen5"
	Location		[152, 241, 486, 433]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [185, 100, 215, 130]
	  ShowName		  off
	  Value			  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [255, 105, 275, 125]
	  ShowName		  off
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Annotation {
	  Text			  "Synchronous Machine"
	  Position		  [164, 45]
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Line1"
      Tag		      "PSATblock"
      Description	      "Power Flow"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [270, 105, 310, 115]
      ShowName		      off
      FontName		      "Courier"
      FontSize		      14
      SourceBlock	      "fm_lib/Power Flow/Line"
      SourceType	      "Line"
      p3_4_5q		      "[100  230  60]"
      p6q		      "0"
      p8q		      "0.0001*25"
      p9q		      "0.001*25"
      p10q		      "0.00175*25"
      p13_14_15q	      "[1.0  0.0  0.0]"
    }
    Block {
      BlockType		      Reference
      Name		      "Line2"
      Tag		      "PSATblock"
      Description	      "Power Flow"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [360, 155, 400, 165]
      ShowName		      off
      FontName		      "Courier"
      FontSize		      14
      SourceBlock	      "fm_lib/Power Flow/Line"
      SourceType	      "Line"
      p3_4_5q		      "[100  230  60]"
      p6q		      "0"
      p8q		      "0.0001*10"
      p9q		      "0.001*10"
      p10q		      "0.00175*10"
      p13_14_15q	      "[1.0  0.0  0.0]"
    }
    Block {
      BlockType		      Reference
      Name		      "Line4"
      Tag		      "PSATblock"
      Description	      "Power Flow"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [625, 135, 665, 145]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Courier"
      FontSize		      14
      SourceBlock	      "fm_lib/Power Flow/Line"
      SourceType	      "Line"
      p3_4_5q		      "[100  230  60]"
      p6q		      "0"
      p8q		      "0.0001*110"
      p9q		      "0.001*110"
      p10q		      "0.00175*110/2"
      p13_14_15q	      "[1.0  0.0  0.0]"
    }
    Block {
      BlockType		      Reference
      Name		      "Line5"
      Tag		      "PSATblock"
      Description	      "Power Flow"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [475, 135, 515, 145]
      ShowName		      off
      FontName		      "Courier"
      FontSize		      14
      SourceBlock	      "fm_lib/Power Flow/Line"
      SourceType	      "Line"
      p3_4_5q		      "[100  230  60]"
      p6q		      "0"
      p8q		      "0.0001*110"
      p9q		      "0.001*110"
      p10q		      "0.00175*110/2"
      p13_14_15q	      "[1.0  0.0  0.0]"
    }
    Block {
      BlockType		      Reference
      Name		      "Line6"
      Tag		      "PSATblock"
      Description	      "Power Flow"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [835, 105, 875, 115]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Courier"
      FontSize		      14
      SourceBlock	      "fm_lib/Power Flow/Line"
      SourceType	      "Line"
      p3_4_5q		      "[100  230  60]"
      p6q		      "0"
      p8q		      "0.0001*25"
      p9q		      "0.001*25"
      p10q		      "0.00175*25"
      p13_14_15q	      "[1.0  0.0  0.0]"
    }
    Block {
      BlockType		      Reference
      Name		      "Line7"
      Tag		      "PSATblock"
      Description	      "Power Flow"
      Ports		      [1, 1, 0, 0, 0]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -