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

📄 smeqvec9.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [210, 670, 230, 690]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [3, 1]
      Position		      [605, 365, 625, 385]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "-+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [180, 315, 200, 335]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "+-|"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum4"
      Ports		      [2, 1]
      Position		      [675, 105, 695, 125]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum5"
      Ports		      [2, 1]
      Position		      [210, 530, 230, 550]
      NamePlacement	      "alternate"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "-+|"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [650, 510, 710, 540]
      VariableName	      "Tl0"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [235, 205, 295, 235]
      Orientation	      "left"
      VariableName	      "vf0"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [360, 550, 420, 580]
      VariableName	      "vs0"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "currents"
      Ports		      [1]
      Position		      [800, 238, 830, 282]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [579, 83, 1098, 254]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"Current amplitude & dq components [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "12"
      YMin		      "-2"
      YMax		      "2"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "delta"
      Ports		      [1]
      Position		      [530, 426, 565, 474]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [578, 647, 1127, 821]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"Torque angle [o]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "12"
      YMin		      "-30"
      YMax		      "10"
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "if"
      Ports		      [1]
      Position		      [545, 303, 575, 347]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [55, 81, 571, 263]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"Field current [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "12"
      YMin		      "0"
      YMax		      "3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "info"
      Ports		      []
      Position		      [417, 770, 505, 852]
      ForegroundColor	      "darkGreen"
      DropShadow	      on
      ShowName		      off
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('INFO')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"info"
	Location		[453, 555, 1131, 806]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "The synchronous machine is running open cir"
"cuited and close to synchronous speed when it is connected to the \npower sys"
"tem. The transients occurring during the synchronization process will depend "
"on the initial state\ndefined by the excitation no-load voltage Ef, the speed"
", and the phase (torque) angle. \nThe machine is connected to a load bus via "
"a line impedance. Once synchronized, the machine is  loaded:  the real \npowe"
"r absorbed P (at the bus) is adjusted by controlling  the input torque Tl (ne"
"gatively for generator operation and \npositively for motor operation); the r"
"eactive power absorbed Q  is adjusted by controlling the voltage vf applied t"
"o the field. \nThe voltage at the load bus is adjusted by controlling the mac"
"hine terminal voltage.\nTo simplify the simulations, the excitation system co"
"ntrols and the governor drive controls are modeled by means of PI \ncontrolle"
"rs. The dynamic system response is exhibited. The final steady-state conditio"
"ns are described by  phasors \noriented along the dq axes.\nOnce these condit"
"ions are established, the machine can then be short circuited at its terminal"
"s by double clicking\nthe block marked <short circuit>."
	  Position		  [15, 60]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontName		  "Arial"
	  FontSize		  12
	}
	Annotation {
	  Name			  "SYNCHRONOUS MACHINE  "
	  Position		  [340, 15]
	  ForegroundColor	  "red"
	  FontSize		  12
	  FontWeight		  "bold"
	  FontAngle		  "italic"
	}
	Annotation {
	  Name			  "SYNCHRONIZATION AND LOADING\nFOLLOWED BY A "
"SHORT CIRCUIT"
	  Position		  [340, 42]
	  ForegroundColor	  "blue"
	  FontName		  "Arial"
	  FontSize		  11
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "mag"
      Position		      [545, 40, 605, 70]
      Orientation	      "left"
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"vL"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "params"
      Ports		      []
      Position		      [26, 791, 386, 829]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "edit(which('smvecdef8.m'))"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('Double click this block to modify the par"
"ameters');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"params"
	Location		[152, 182, 650, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "phasors"
      Ports		      []
      Position		      [717, 770, 811, 850]
      ForegroundColor	      "magenta"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "smphasor8\n         "
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('PHASOR\\nDIAGRAM')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"phasors"
	Location		[83, 506, 530, 694]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "plots"
      Ports		      []
      Position		      [557, 770, 643, 848]
      ForegroundColor	      "blue"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "close all,figure(1),plot(d,wm,'-r'),grid,title("
"'SPEED versus ANGLE'),figure(2),plot(t,iff,'-g'),grid,title('FIELD CURRENT ve"
"rsus TIME'),\nfigure(3),plot(t,ia,'-r'),grid,title('STATOR CURRENT MAGNITUDE "
"versus TIME'),                                                           \n  "
"                                                                             "
"                                                         \n                  "
"                                                                             "
"                                         \n                                  "
"                                                                             "
"                         "
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('TRANSIENTS')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"plots"
	Location		[83, 506, 530, 694]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "plots1"
      Ports		      []
      Position		      [907, 770, 993, 848]
      ForegroundColor	      "red"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "smeqvec10\n         \n         \n         "
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('SHORT\\nCIRCUIT')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"plots1"
	Location		[83, 506, 530, 694]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Gain
      Name		      "r2d"
      Position		      [405, 419, 455, 451]
      Gain		      "180/pi"
    }
    Block {
      BlockType		      Gain
      Name		      "rot1"
      Position		      [825, 60, 855, 90]
      ShowName		      off
      Gain		      "[0 -1;1 0]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      Gain
      Name		      "rot2"
      Position		      [625, 145, 655, 175]
      ShowName		      off
      Gain		      "[Rline -Lline;Lline Rline]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      Scope
      Name		      "torques"
      Ports		      [1]
      Position		      [705, 426, 740, 474]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [574, 538, 1102, 701]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"Torques [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "12"
      YMin		      "-2"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "voltages"
      Ports		      [1]
      Position		      [430, 171, 465, 219]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [104, 106, 570, 269]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"Voltages [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "12"
      YMin		      "0.8"
      YMax		      "1.4"
      SaveName		      "ScopeData5"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Lookup
      Name		      "vt"
      Position		      [115, 521, 150, 559]
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      FontWeight	      "bold"
      InputValues	      "[0 1 1.01 20 ] "
      OutputValues	      "[V V 1.0 1.0]"
    }
    Block {
      BlockType		      Gain
      Name		      "wo"
      Position		      [240, 419, 275, 451]
      ShowName		      off
      Gain		      "wo"
    }
    Block {
      BlockType		      Constant
      Name		      "ws"
      Position		      [115, 420, 145, 450]
      ForegroundColor	      "red"
      NamePlacement	      "alternate"
      Value		      "1.0"
    }
    Block {
      BlockType		      Outport
      Name		      "d"
      Position		      [485, 428, 515, 442]
      NamePlacement	      "alternate"
    }
    Block {
      BlockType		      Outport
      Name		      "wm"
      Position		      [810, 368, 840, 382]
      Port		      "2"
    }
    Block {
      BlockType		      Outport
      Name		      "iff"
      Position		      [545, 353, 575, 367]
      ShowName		      off
      Port		      "3"
    }
    Block {
      BlockType		      Outport
      Name		      "iff1"
      Position		      [740, 203, 770, 217]
      ShowName		      off
      Port		      "4"
    }

⌨️ 快捷键说明

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