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

📄 s4.mdl

📁 Gives all the matlab codes for dynamic simulation of electric machinery by Chee-Mun Ong
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	    DstBlock		    "Rotor"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [55, 0; 0, 150]
	    DstBlock		    "prod2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Ipm"
	  SrcPort		  1
	  DstBlock		  "d_cct"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "vd"
	  SrcPort		  1
	  DstBlock		  "d_cct"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "prod2"
	  SrcPort		  1
	  Points		  [-40, 0; 0, 80]
	  DstBlock		  "d_cct"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "q_cct"
	  SrcPort		  3
	  DstBlock		  "T"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "d_cct"
	  SrcPort		  3
	  DstBlock		  "T1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "d_cct"
	  SrcPort		  4
	  DstBlock		  "T2"
	  DstPort		  1
	}
	Annotation {
	  Position		  [217, 77]
	  VerticalAlignment	  top
	  Text			  "iq"
	}
	Annotation {
	  Position		  [212, 267]
	  VerticalAlignment	  top
	  Text			  "id"
	}
	Annotation {
	  Position		  [212, 247]
	  VerticalAlignment	  top
	  Text			  "psid"
	}
	Annotation {
	  Position		  [217, 52]
	  VerticalAlignment	  top
	  Text			  "psiq"
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "qdr2abc"
      Position		      [545, 157, 580, 243]
      ShowPortLabels	      off
      System {
	Name			"qdr2abc"
	Location		[56, 346, 800, 637]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "iq"
	  Position		  [60, 125, 80, 145]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "id"
	  Position		  [60, 165, 80, 185]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "i0"
	  Position		  [60, 215, 80, 235]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "cos_thetar"
	  Position		  [60, 45, 80, 65]
	  Port			  "4"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "sin_thetar"
	  Position		  [60, 85, 80, 105]
	  Port			  "5"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Position		  [125, 34, 155, 196]
	  Inputs		  "4"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Position		  [375, 39, 405, 261]
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "qdr2ds"
	  Position		  [190, 140, 310, 160]
	  Expr			  "u[1]*u[4] - u[2]*u[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "qdr2qs"
	  Position		  [190, 64, 310, 86]
	  Expr			  "u[1]*u[3] + u[2]*u[4]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "qds2a"
	  Position		  [435, 69, 605, 91]
	  Expr			  "u[1] + u[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "qds2b"
	  Position		  [435, 139, 600, 161]
	  Expr			  "-u[1]/2 -sqrt(3)*u[2]/2 + u[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "qds2c"
	  Position		  [435, 209, 605, 231]
	  Expr			  "-u[1]/2 +sqrt(3)*u[2]/2 + u[3]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ia"
	  Position		  [645, 69, 670, 91]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ib"
	  Position		  [645, 139, 670, 161]
	  Port			  "2"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ic"
	  Position		  [640, 208, 665, 232]
	  Port			  "3"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "cos_thetar"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "sin_thetar"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "iq"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "id"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [5, 0; 0, -40]
	    DstBlock		    "qdr2qs"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [5, 0; 0, 35]
	    DstBlock		    "qdr2ds"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "qdr2qs"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "qdr2ds"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "i0"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "qds2b"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [10, 0]
	    DstBlock		    "qds2a"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [10, 0]
	    DstBlock		    "qds2c"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "qds2a"
	  SrcPort		  1
	  DstBlock		  "ia"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "qds2b"
	  SrcPort		  1
	  DstBlock		  "ib"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "qds2c"
	  SrcPort		  1
	  DstBlock		  "ic"
	  DstPort		  1
	}
	Annotation {
	  Position		  [257, 22]
	  VerticalAlignment	  top
	  Text			  "qdr2qds"
	}
	Annotation {
	  Position		  [532, 27]
	  VerticalAlignment	  top
	  Text			  "qds2abc"
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "sm1"
      Position		      [480, 23, 500, 47]
      Floating		      off
      Location		      [80, 365, 742, 529]
      Open		      on
      Grid		      on
      TickLabels	      on
      ZoomMode		      on
      TimeRange		      "auto"
      YMin		      "-3"
      YMax		      "3"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitMaxRows	      off
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "va"
      Position		      [65, 169, 90, 191]
      Amplitude		      "Vm"
      Frequency		      "we"
      Phase		      "pi/2"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Sin
      Name		      "vb"
      Position		      [65, 209, 90, 231]
      Amplitude		      "Vm"
      Frequency		      "we"
      Phase		      "-pi/6"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Sin
      Name		      "vc"
      Position		      [65, 249, 90, 271]
      Amplitude		      "Vm"
      Frequency		      "we"
      Phase		      "7*pi/6"
      SampleTime	      "-1"
    }
    Line {
      SrcBlock		      "vc"
      SrcPort		      1
      Points		      [20, 0; 0, -40]
      DstBlock		      "abc2qd0"
      DstPort		      3
    }
    Line {
      SrcBlock		      "vb"
      SrcPort		      1
      Points		      [10, 0; 0, -20]
      DstBlock		      "abc2qd0"
      DstPort		      2
    }
    Line {
      SrcBlock		      "va"
      SrcPort		      1
      DstBlock		      "abc2qd0"
      DstPort		      1
    }
    Line {
      SrcBlock		      "osc"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"qdr2abc"
	DstPort			4
      }
      Branch {
	Points			[0, 110; -355, 0; 0, -85]
	DstBlock		"abc2qd0"
	DstPort			4
      }
    }
    Line {
      SrcBlock		      "osc"
      SrcPort		      2
      Points		      [0, 0]
      Branch {
	DstBlock		"qdr2abc"
	DstPort			5
      }
      Branch {
	Points			[10, 0; 0, 85; -350, 0; 0, -55]
	DstBlock		"abc2qd0"
	DstPort			5
      }
    }
    Line {
      SrcBlock		      "abc2qd0"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"qd_motor"
	DstPort			1
      }
      Branch {
	Points			[60, 0]
	DstBlock		"VIPQ"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "qd_motor"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[5, 0; 0, -15]
	DstBlock		"qdr2abc"
	DstPort			1
      }
      Branch {
	Points			[5, 0; 0, -25; -65, 0]
	DstBlock		"VIPQ"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "qd_motor"
      SrcPort		      6
      Points		      [0, 0]
      Branch {
	Points			[50, 0; 0, -100]
	DstBlock		"qdr2abc"
	DstPort			2
      }
      Branch {
	Points			[50, 0; 0, -130]
	DstBlock		"VIPQ"
	DstPort			4
      }
    }
    Line {
      SrcBlock		      "Tmech"
      SrcPort		      1
      DstBlock		      "qd_motor"
      DstPort		      4
    }
    Line {
      SrcBlock		      "abc2qd0"
      SrcPort		      2
      Points		      [0, 0]
      Branch {
	DstBlock		"qd_motor"
	DstPort			2
      }
      Branch {
	Points			[30, 0; 0, -55; 80, 0]
	DstBlock		"VIPQ"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "VIPQ"
      SrcPort		      3
      Points		      [0, -20]
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "VIPQ"
      SrcPort		      4
      DstBlock		      "Mux"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "qdr2abc"
      SrcPort		      1
      Points		      [25, 0; 0, -40; -90, 0]
      DstBlock		      "Mux"
      DstPort		      9
    }
    Line {
      SrcBlock		      "qd_motor"
      SrcPort		      4
      Points		      [85, 0; 0, -90; 50, 0]
      DstBlock		      "Mux"
      DstPort		      8
    }
    Line {
      SrcBlock		      "qd_motor"
      SrcPort		      3
      Points		      [0, 0]
      Branch {
	DstBlock		"osc"
	DstPort			1
      }
      Branch {
	Points			[75, 0; 0, -80; 25, 0]
	DstBlock		"Mux"
	DstPort			7
      }
    }
    Line {
      SrcBlock		      "qd_motor"
      SrcPort		      2
      Points		      [65, 0]
      DstBlock		      "Mux"
      DstPort		      6
    }
    Line {
      SrcBlock		      "VIPQ"
      SrcPort		      6
      Points		      [0, -10; 40, 0]
      DstBlock		      "Mux"
      DstPort		      5
    }
    Line {
      SrcBlock		      "VIPQ"
      SrcPort		      5
      Points		      [0, -15; 20, 0]
      DstBlock		      "Mux"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Ipm"
      SrcPort		      1
      DstBlock		      "qd_motor"
      DstPort		      3
    }
    Line {
      SrcBlock		      "qdr2abc"
      SrcPort		      2
      DstBlock		      "T"
      DstPort		      1
    }
    Line {
      SrcBlock		      "qdr2abc"
      SrcPort		      3
      DstBlock		      "T1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "qd_motor"
      SrcPort		      5
      DstBlock		      "T2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "abc2qd0"
      SrcPort		      3
      DstBlock		      "T3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Selector"
      SrcPort		      1
      DstBlock		      "sm1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, -20]
	DstBlock		"Workspace"
	DstPort			1
      }
      Branch {
	Points			[0, -20]
	DstBlock		"Selector"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "VIPQ"
      SrcPort		      2
      DstBlock		      "T4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "VIPQ"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "T5"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Grd"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "qdr2abc"
      DstPort		      3
    }
    Annotation {
      Position		      [222, 177]
      VerticalAlignment	      top
      Text		      "vq"
    }
    Annotation {
      Position		      [217, 227]
      VerticalAlignment	      top
      Text		      "v0"
    }
    Annotation {
      Position		      [372, 212]
      VerticalAlignment	      top
      Text		      "wr/wb"
    }
    Annotation {
      Position		      [367, 232]
      VerticalAlignment	      top
      Text		      "Tem"
    }
    Annotation {
      Position		      [507, 202]
      VerticalAlignment	      top
      Text		      "cos (wrt)"
    }
    Annotation {
      Position		      [507, 217]
      VerticalAlignment	      top
      Text		      "sin (wrt)"
    }
    Annotation {
      Position		      [222, 207]
      VerticalAlignment	      top
      Text		      "vd"
    }
    Annotation {
      Position		      [362, 272]
      VerticalAlignment	      top
      Text		      "id"
    }
    Annotation {
      Position		      [367, 192]
      VerticalAlignment	      top
      Text		      "delta"
    }
    Annotation {
      Position		      [362, 172]
      VerticalAlignment	      top
      Text		      "iq"
    }
    Annotation {
      Position		      [597, 157]
      VerticalAlignment	      top
      Text		      "ia"
    }
  }
}

⌨️ 快捷键说明

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