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

📄 s2.mdl

📁 Gives all the matlab codes for dynamic simulation of electric machinery by Chee-Mun Ong
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  Points		  [35, 0; 0, 30]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "S-function\nM-file which plots\nlines\n"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "iam"
      Position		      [110, 104, 240, 136]
      Expr		      "u[1]*cos(m*u[2])"
    }
    Block {
      BlockType		      Sin
      Name		      "ian"
      Position		      [245, 70, 275, 90]
      Amplitude		      "10/n"
      Frequency		      "(2*pi)*n"
      Phase		      "n*pi/2"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Fcn
      Name		      "ibm"
      Position		      [100, 179, 250, 211]
      Expr		      "u[1]*cos(m*(u[2]-2*pi/3))"
    }
    Block {
      BlockType		      Sin
      Name		      "ibn"
      Position		      [245, 145, 275, 165]
      Amplitude		      "10/n"
      Frequency		      "(2*pi)*n"
      Phase		      "-n*pi/6"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Fcn
      Name		      "icm"
      Position		      [95, 269, 255, 301]
      Expr		      "u[1]*cos(m*(u[2] +2*pi/3))"
    }
    Block {
      BlockType		      Sin
      Name		      "icn"
      Position		      [245, 235, 275, 255]
      Amplitude		      "10/n"
      Frequency		      "(2*pi)*n"
      Phase		      "n*7*pi/6"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Constant
      Name		      "nSw"
      Position		      [270, 30, 290, 50]
      Value		      "n"
    }
    Block {
      BlockType		      Gain
      Name		      "omega*t"
      Position		      [45, 64, 90, 96]
      Orientation	      left
      Gain		      "2*pi"
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Sum2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      Points		      [10, 0; 0, 35]
      DstBlock		      "Sum2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"i1"
	DstPort			1
      }
      Branch {
	Points			[25, 0; 0, 80]
	DstBlock		"i2"
	DstPort			1
      }
      Branch {
	Points			[5, 0; 0, -85]
	DstBlock		"Mux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Labels			[2, 0]
	Points			[0, -80]
	DstBlock		"i1"
	DstPort			2
      }
      Branch {
	DstBlock		"Gain3"
	DstPort			1
      }
      Branch {
	Points			[0, -165]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Gain3"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"i2"
	DstPort			2
      }
      Branch {
	Points			[0, -115; -40, 0; 0, -30]
	DstBlock		"Mux"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "To Workspace"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum3"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Gain2"
	DstPort			1
      }
      Branch {
	Points			[15, 0; 0, 30]
	DstBlock		"Sum"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum5"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Sum1"
	DstPort			2
      }
      Branch {
	Points			[20, 0; 0, -65]
	DstBlock		"Sum"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Sum4"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[25, 0; 0, -10]
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	Points			[40, 0; 0, 60]
	DstBlock		"Sum1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "ian"
      SrcPort		      1
      DstBlock		      "Sw"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sw"
      SrcPort		      1
      Points		      [5, 0; 0, 15]
      DstBlock		      "Sum3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ibn"
      SrcPort		      1
      DstBlock		      "Sw1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sw1"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Sum4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "icn"
      SrcPort		      1
      DstBlock		      "Sw2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sw2"
      SrcPort		      1
      Points		      [0, 15]
      DstBlock		      "Sum5"
      DstPort		      1
    }
    Line {
      SrcBlock		      "nSw"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[10, 0]
	DstBlock		"Sw2"
	DstPort			2
      }
      Branch {
	Points			[10, 0]
	DstBlock		"Sw1"
	DstPort			2
      }
      Branch {
	Points			[10, 0]
	DstBlock		"Sw"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "iam"
      SrcPort		      1
      DstBlock		      "Sum3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "ibm"
      SrcPort		      1
      DstBlock		      "Sum4"
      DstPort		      2
    }
    Line {
      SrcBlock		      "icm"
      SrcPort		      1
      DstBlock		      "Sum5"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Fcn3"
      SrcPort		      1
      Points		      [-25, 0]
      DstBlock		      "Mux1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[-45, 0; 0, 15]
	DstBlock		"omega*t"
	DstPort			1
      }
      Branch {
	Points			[-10, 0; 0, -30]
	DstBlock		"Fcn3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "omega*t"
      SrcPort		      1
      Points		      [-5, 0]
      DstBlock		      "Mux1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, 15; 50, 0; 0, -75]
	DstBlock		"iam"
	DstPort			1
      }
      Branch {
	Points			[0, 15]
	DstBlock		"ibm"
	DstPort			1
      }
      Branch {
	Points			[0, 105]
	DstBlock		"icm"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Ground"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[0, -40]
	DstBlock		"Sw2"
	DstPort			3
      }
      Branch {
	Points			[0, -5]
	Branch {
	  Points		  [0, -200]
	  DstBlock		  "Sw"
	  DstPort		  3
	}
	Branch {
	  Points		  [0, -125]
	  DstBlock		  "Sw1"
	  DstPort		  3
	}
      }
    }
    Annotation {
      Position		      [392, 177]
      VerticalAlignment	      top
      Text		      "ib"
    }
    Annotation {
      Position		      [397, 267]
      VerticalAlignment	      top
      Text		      "ic"
    }
    Annotation {
      Position		      [675, 153]
      VerticalAlignment	      top
      Text		      "x1"
    }
    Annotation {
      Position		      [677, 222]
      VerticalAlignment	      top
      Text		      "x2"
    }
    Annotation {
      Position		      [672, 177]
      VerticalAlignment	      top
      Text		      "y1"
    }
    Annotation {
      Position		      [672, 252]
      VerticalAlignment	      top
      Text		      "y2"
    }
    Annotation {
      Position		      [397, 102]
      VerticalAlignment	      top
      Text		      "ia"
    }
    Annotation {
      Position		      [582, 27]
      VerticalAlignment	      top
      Text		      "Run simulation once to open up the two XY "
			      "graphs, move \nthem to an open location before "
			      "reruning  the simulation"
    }
  }
}

⌨️ 快捷键说明

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