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

📄 s2.mdl

📁 Gives all the matlab codes for dynamic simulation of electric machinery by Chee-Mun Ong
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Name		      "Memory1"
      Position		      [570, 261, 590, 279]
      X0		      "0"
      InheritSampleTime	      off
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Position		      [279, 60, 481, 75]
      Orientation	      up
      Inputs		      "4"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Product"
      Position		      [355, 181, 380, 219]
      ShowPortLabels	      off
      MaskType		      "Dot Product"
      MaskDescription	      "Inner (dot) product.\ny=sum(u1.*u2)"
      MaskHelp		      "Computes the inner (dot) product of the inputs: "
			      "sum(u1.*u2).  The inputs are vectors of the "
			      "same length. Output is a scalar."
      MaskDisplay	      "disp('.\\n')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"Product"
	Location		[33, 479, 253, 634]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [15, 25, 35, 45]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_2"
	  Position		  [15, 90, 35, 110]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Position		  [65, 55, 90, 75]
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [125, 55, 145, 75]
	  Inputs		  "+"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [185, 55, 205, 75]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_2"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Product2"
      Position		      [170, 108, 195, 137]
      Orientation	      left
      ShowPortLabels	      off
      MaskType		      "Dot Product"
      MaskDescription	      "Inner (dot) product.\ny=sum(u1.*u2)"
      MaskHelp		      "Computes the inner (dot) product of the inputs: "
			      "sum(u1.*u2).  The inputs are vectors of the "
			      "same length. Output is a scalar."
      MaskDisplay	      "disp('.\\n')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"Product2"
	Location		[33, 479, 253, 634]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [15, 25, 35, 45]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_2"
	  Position		  [15, 90, 35, 110]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Position		  [65, 55, 90, 75]
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [125, 55, 145, 75]
	  Inputs		  "+"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [185, 55, 205, 75]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_2"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Ra"
      Position		      [210, 255, 245, 285]
      Orientation	      left
      Gain		      "Ra"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Position		      [555, 79, 575, 101]
      Floating		      off
      Location		      [66, 381, 725, 594]
      Open		      on
      Grid		      on
      TickLabels	      on
      ZoomMode		      on
      TimeRange		      "auto"
      YMin		      "-10"
      YMax		      "250"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitMaxRows	      off
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Position		      [135, 162, 155, 253]
      Inputs		      "-+----"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Position		      [455, 147, 470, 223]
      Inputs		      "-++"
    }
    Block {
      BlockType		      Terminator
      Name		      "T"
      Position		      [425, 281, 430, 289]
    }
    Block {
      BlockType		      Terminator
      Name		      "T1"
      Position		      [540, 281, 545, 289]
    }
    Block {
      BlockType		      Terminator
      Name		      "T2"
      Position		      [665, 281, 670, 289]
    }
    Block {
      BlockType		      Constant
      Name		      "Tmech"
      Position		      [400, 211, 430, 229]
      Value		      "0"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [540, 41, 610, 59]
      VariableName	      "y"
      Buffer		      "2000"
      Decimation	      "1"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Constant
      Name		      "Vdc- Vbrush"
      Position		      [35, 155, 70, 185]
      Value		      "218"
    }
    Block {
      BlockType		      Constant
      Name		      "kaphi"
      Position		      [235, 150, 275, 170]
      Value		      "1.3"
    }
    Block {
      BlockType		      Gain
      Name		      "r1"
      Position		      [220, 326, 270, 354]
      Orientation	      left
      Gain		      "0.872"
    }
    Block {
      BlockType		      Gain
      Name		      "r2"
      Position		      [220, 381, 270, 409]
      Orientation	      left
      Gain		      "0.523"
    }
    Block {
      BlockType		      Gain
      Name		      "r3"
      Position		      [230, 436, 275, 464]
      Orientation	      left
      Gain		      "0.313"
    }
    Line {
      SrcBlock		      "Integrator2"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[20, 0; 0, -70; -165, 0]
	DstBlock		"Mux"
	DstPort			4
      }
      Branch {
	Points			[20, 0; 0, -70]
	Branch {
	  Points		  [0, 25]
	  DstBlock		  "D"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Product2"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "r3"
      SrcPort		      1
      Points		      [-40, 0]
      DstBlock		      "C3"
      DstPort		      3
    }
    Line {
      SrcBlock		      "r2"
      SrcPort		      1
      Points		      [-50, 0]
      DstBlock		      "C2"
      DstPort		      3
    }
    Line {
      SrcBlock		      "r1"
      SrcPort		      1
      Points		      [-70, 0]
      DstBlock		      "C1"
      DstPort		      3
    }
    Line {
      SrcBlock		      "C1"
      SrcPort		      1
      Points		      [-10, 0; 0, -90]
      DstBlock		      "Sum"
      DstPort		      5
    }
    Line {
      SrcBlock		      "C2"
      SrcPort		      1
      Points		      [-35, 0; 0, -160]
      DstBlock		      "Sum"
      DstPort		      4
    }
    Line {
      SrcBlock		      "C3"
      SrcPort		      1
      Points		      [-60, 0; 0, -230]
      DstBlock		      "Sum"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [0, -5]
      Branch {
	Points			[135, 0; 0, 40]
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	DstBlock		"To Workspace"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Tmech"
      SrcPort		      1
      Points		      [0, -10]
      DstBlock		      "Sum2"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [30, 0; 0, -15]
      DstBlock		      "Sum2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Ra"
      SrcPort		      1
      Points		      [-85, 0]
      DstBlock		      "Sum"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, 240]
	DstBlock		"r3"
	DstPort			1
      }
      Branch {
	Points			[0, 185]
	DstBlock		"r2"
	DstPort			1
      }
      Branch {
	Points			[0, 130]
	DstBlock		"r1"
	DstPort			1
      }
      Branch {
	Points			[0, 60]
	DstBlock		"Hit \nCrossing"
	DstPort			1
      }
      Branch {
	Points			[0, 60]
	DstBlock		"Ra"
	DstPort			1
      }
      Branch {
	Points			[20, 0; 0, -75; 80, 0]
	DstBlock		"Mux"
	DstPort			3
      }
      Branch {
	DstBlock		"Product"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Vdc- Vbrush"
      SrcPort		      1
      Points		      [20, 0; 0, 15]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "1/Laq"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "D"
      SrcPort		      1
      Points		      [-78, 0; 0, 20]
      DstBlock		      "Sum2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "kaphi"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[25, 0; 0, 30]
	DstBlock		"Product"
	DstPort			1
      }
      Branch {
	Points			[25, 0; 0, -30]
	DstBlock		"Product2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "1/J"
      SrcPort		      1
      DstBlock		      "Integrator2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      DstBlock		      "1/J"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "1/Laq"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Memory"
      SrcPort		      1
      DstBlock		      "D Latch1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Memory1"
      SrcPort		      1
      DstBlock		      "D Latch2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Hit \nCrossing"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"D Latch"
	DstPort			1
      }
      Branch {
	Points			[15, 0]
	DstBlock		"D Latch"
	DstPort			2
      }
      Branch {
	Points			[10, 0; 0, 45; 125, 0]
	DstBlock		"D Latch1"
	DstPort			2
      }
      Branch {
	Points			[10, 0; 0, 45; 245, 0]
	DstBlock		"D Latch2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "D Latch2"
      SrcPort		      1
      Points		      [25, 0; 0, 160]
      DstBlock		      "C3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "D Latch1"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Memory1"
	DstPort			1
      }
      Branch {
	Points			[20, 0; 0, 105]
	DstBlock		"C2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "D Latch"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Memory"
	DstPort			1
      }
      Branch {
	Points			[25, 0; 0, 50]
	DstBlock		"C1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[-60, 0; 0, 45]
	DstBlock		"Sum"
	DstPort			1
      }
      Branch {
	Points			[0, -20; 190, 0]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Ground"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[-45, 0]
	DstBlock		"C1"
	DstPort			1
      }
      Branch {
	Points			[0, 60]
	DstBlock		"C2"
	DstPort			1
      }
      Branch {
	Points			[0, 115]
	DstBlock		"C3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "D Latch"
      SrcPort		      2
      DstBlock		      "T"
      DstPort		      1
    }
    Line {
      SrcBlock		      "D Latch1"
      SrcPort		      2
      DstBlock		      "T1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "D Latch2"
      SrcPort		      2
      DstBlock		      "T2"
      DstPort		      1
    }
    Annotation {
      Position		      [312, 197]
      VerticalAlignment	      top
      Text		      "Ia"
    }
    Annotation {
      Position		      [402, 172]
      VerticalAlignment	      top
      Text		      "Tem"
    }
    Annotation {
      Position		      [142, 98]
      VerticalAlignment	      top
      Text		      "Ea"
    }
    Annotation {
      Position		      [637, 172]
      VerticalAlignment	      top
      Text		      "wm"
    }
  }
}

⌨️ 快捷键说明

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