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

📄 s2.mdl

📁 Gives all the matlab codes for dynamic simulation of electric machinery by Chee-Mun Ong
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_id4e"
	  Position		  [170, 380, 190, 400]
	  Port			  "8"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  StateSpace
	  Name			  "IZ*d"
	  Position		  [350, 184, 410, 216]
	  A			  "[]"
	  B			  "[]"
	  C			  "[]"
	  D			  "K"
	  X0			  "0"
	  MaskType		  "Matrix Gain"
	  MaskDescription	  "Matrix Gain."
	  MaskHelp		  "Multiplies input vector by entered matrix "
				  "to produce output vector (y=Au)."
	  MaskPromptString	  "Gain matrix:"
	  MaskStyleString	  "edit"
	  MaskInitialization	  "K = @1;"
	  MaskDisplay		  "disp('K')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  off
	  MaskIconUnits		  autoscale
	  MaskValueString	  "IZ"
	}
	Block {
	  BlockType		  StateSpace
	  Name			  "IZ*q"
	  Position		  [350, 259, 410, 291]
	  A			  "[]"
	  B			  "[]"
	  C			  "[]"
	  D			  "K"
	  X0			  "0"
	  MaskType		  "Matrix Gain"
	  MaskDescription	  "Matrix Gain."
	  MaskHelp		  "Multiplies input vector by entered matrix "
				  "to produce output vector (y=Au)."
	  MaskPromptString	  "Gain matrix:"
	  MaskStyleString	  "edit"
	  MaskInitialization	  "K = @1;"
	  MaskDisplay		  "disp('K')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  off
	  MaskIconUnits		  autoscale
	  MaskValueString	  "IZ"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Position		  [265, 62, 295, 213]
	  Inputs		  "4"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Position		  [265, 264, 295, 411]
	  Inputs		  "4"
	}
	Block {
	  BlockType		  StateSpace
	  Name			  "RZ*d"
	  Position		  [350, 324, 410, 356]
	  A			  "[]"
	  B			  "[]"
	  C			  "[]"
	  D			  "K"
	  X0			  "0"
	  MaskType		  "Matrix Gain"
	  MaskDescription	  "Matrix Gain."
	  MaskHelp		  "Multiplies input vector by entered matrix "
				  "to produce output vector (y=Au)."
	  MaskPromptString	  "Gain matrix:"
	  MaskStyleString	  "edit"
	  MaskInitialization	  "K = @1;"
	  MaskDisplay		  "disp('K')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  off
	  MaskIconUnits		  autoscale
	  MaskValueString	  "RZ"
	}
	Block {
	  BlockType		  StateSpace
	  Name			  "RZ*q"
	  Position		  [350, 123, 410, 157]
	  A			  "[]"
	  B			  "[]"
	  C			  "[]"
	  D			  "K"
	  X0			  "0"
	  MaskType		  "Matrix Gain"
	  MaskDescription	  "Matrix Gain."
	  MaskHelp		  "Multiplies input vector by entered matrix "
				  "to produce output vector (y=Au)."
	  MaskPromptString	  "Gain matrix:"
	  MaskStyleString	  "edit"
	  MaskInitialization	  "K = @1;"
	  MaskDisplay		  "disp('K')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  off
	  MaskIconUnits		  autoscale
	  MaskValueString	  "RZ"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [450, 126, 470, 179]
	  Inputs		  "++"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Position		  [445, 301, 465, 354]
	  Inputs		  "-+"
	}
	Block {
	  BlockType		  Demux
	  Name			  "d"
	  Position		  [495, 253, 535, 407]
	  Outputs		  "4"
	}
	Block {
	  BlockType		  Demux
	  Name			  "q"
	  Position		  [495, 75, 535, 235]
	  Outputs		  "4"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_iq1e"
	  Position		  [630, 85, 650, 105]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_iq2e"
	  Position		  [585, 125, 605, 145]
	  Port			  "2"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_iq3e"
	  Position		  [630, 165, 650, 185]
	  Port			  "3"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_vq4e"
	  Position		  [585, 205, 605, 225]
	  Port			  "4"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_id1e"
	  Position		  [630, 260, 650, 280]
	  Port			  "5"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_id2e"
	  Position		  [585, 300, 605, 320]
	  Port			  "6"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_id3e"
	  Position		  [625, 340, 645, 360]
	  Port			  "7"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_vd4e"
	  Position		  [585, 380, 605, 400]
	  Port			  "8"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "d"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "q"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "RZ*d"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "IZ*q"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "IZ*d"
	  SrcPort		  1
	  Points		  [10, 0; 0, -35]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "RZ*q"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "RZ*d"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [30, 0; 0, -140]
	    DstBlock		    "IZ*d"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [10, 0; 0, 135]
	    DstBlock		    "IZ*q"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "RZ*q"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "q"
	  SrcPort		  1
	  DstBlock		  "out_iq1e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "q"
	  SrcPort		  3
	  DstBlock		  "out_iq3e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "q"
	  SrcPort		  4
	  DstBlock		  "out_vq4e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_Eq2e"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "q"
	  SrcPort		  2
	  DstBlock		  "out_iq2e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "d"
	  SrcPort		  1
	  DstBlock		  "out_id1e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "d"
	  SrcPort		  3
	  DstBlock		  "out_id3e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "d"
	  SrcPort		  4
	  DstBlock		  "out_vd4e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "d"
	  SrcPort		  2
	  DstBlock		  "out_id2e"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_Eq1e"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_vq3e"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "in_iq4e"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "in_Ed1e"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_Ed2e"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "in_vd3e"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "in_id4e"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "tmodel"
      Position		      [175, 143, 230, 267]
      ShowPortLabels	      off
      System {
	Name			"tmodel"
	Location		[41, 66, 820, 616]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_Vref"
	  Position		  [450, 65, 470, 85]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_iqe"
	  Position		  [50, 270, 70, 290]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_ide"
	  Position		  [50, 312, 70, 338]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_Tmech"
	  Position		  [470, 355, 490, 375]
	  Port			  "4"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Tpdo"
	  Position		  [160, 149, 240, 191]
	  Gain			  "1/Tpdo(1)"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Edp"
	  Position		  [290, 443, 320, 477]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "Edpo(1)"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Eqp"
	  Position		  [255, 154, 285, 186]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "Eqpo(1)"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Exc_sw"
	  Position		  [260, 69, 330, 91]
	  Orientation		  left
	  Value			  "Exc_sw(1)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [160, 364, 260, 406]
	  Orientation		  left
	  Gain			  "xq(1)-xpd(1)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [180, 441, 265, 479]
	  Gain			  "1/Tpqo(1)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  Position		  [155, 206, 255, 254]
	  Orientation		  left
	  Gain			  "xd(1)-xpd(1)"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Rotor"
	  Position		  [525, 252, 575, 378]
	  ShowPortLabels	  off
	  System {
	    Name		    "Rotor"
	    Location		    [29, 175, 772, 391]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "Eqp"
	      Position		      [30, 29, 50, 51]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Edp"
	      Position		      [30, 79, 50, 101]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "iq"
	      Position		      [30, 119, 50, 141]
	      Port		      "3"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "id"
	      Position		      [30, 164, 50, 186]
	      Port		      "4"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "T_mech"
	      Position		      [235, 21, 260, 49]
	      Port		      "5"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Damp"
	      Position		      [380, 96, 470, 134]
	      Orientation	      left
	      Gain		      "Domega(1)"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn"
	      Position		      [155, 95, 285, 125]
	      Expr		      "-(u[1]*u[3] + u[2]*u[4])"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Position		      [120, 71, 140, 149]
	      Inputs		      "4"
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      "T"
	      Position		      [605, 142, 620, 158]
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Tacc"
	      Position		      [335, 25, 355, 95]
	      Inputs		      "++-"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "delta"
	      Position		      [625, 42, 660, 78]
	      ExternalReset	      none
	      InitialConditionSource      internal
	      InitialCondition	      "delio(1)"
	      LimitOutput	      off
	      UpperSaturationLimit      "inf"
	      LowerSaturationLimit      "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {

⌨️ 快捷键说明

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