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

📄 s2.mdl

📁 Gives all the matlab codes for dynamic simulation of electric machinery by Chee-Mun Ong
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      BlockType		      Gain
	      Name		      "gain2"
	      Position		      [385, 38, 460, 82]
	      Gain		      "1/(2*H(1))"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "gain4"
	      Position		      [560, 38, 610, 82]
	      Gain		      "wb"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "slip"
	      Position		      [480, 42, 515, 78]
	      ExternalReset	      none
	      InitialConditionSource      internal
	      InitialCondition	      "0"
	      LimitOutput	      off
	      UpperSaturationLimit      "inf"
	      LowerSaturationLimit      "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "we/wb"
	      Position		      [460, 145, 510, 175]
	      Value		      "1"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "wr"
	      Position		      [555, 130, 570, 170]
	      Inputs		      "++"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_delta"
	      Position		      [695, 50, 715, 70]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_puslip"
	      Position		      [690, 104, 710, 126]
	      Port		      "2"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Tem"
	      Position		      [315, 137, 340, 163]
	      Port		      "3"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Damp"
	      SrcPort		      1
	      Points		      [-65, 0; 0, -30]
	      DstBlock		      "Tacc"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "T_mech"
	      SrcPort		      1
	      DstBlock		      "Tacc"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "delta"
	      SrcPort		      1
	      DstBlock		      "out_delta"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "we/wb"
	      SrcPort		      1
	      DstBlock		      "wr"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "gain2"
	      SrcPort		      1
	      DstBlock		      "slip"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "gain4"
	      SrcPort		      1
	      DstBlock		      "delta"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "slip"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		Points			[10, 0; 0, 80]
		DstBlock		"wr"
		DstPort			1
	      }
	      Branch {
		Points			[10, 0; 0, 55]
		DstBlock		"out_puslip"
		DstPort			1
	      }
	      Branch {
		DstBlock		"gain4"
		DstPort			1
	      }
	      Branch {
		Points			[10, 0; 0, 55]
		DstBlock		"Damp"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Edp"
	      SrcPort		      1
	      Points		      [25, 0; 0, 10]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Eqp"
	      SrcPort		      1
	      Points		      [25, 0; 0, 40]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Fcn"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Fcn"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		Points			[5, 0; 0, -50]
		DstBlock		"Tacc"
		DstPort			2
	      }
	      Branch {
		Points			[5, 0; 0, 40]
		DstBlock		"Tem"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "iq"
	      SrcPort		      1
	      Points		      [25, 0; 0, -10]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "id"
	      SrcPort		      1
	      Points		      [25, 0; 0, -35]
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Tacc"
	      SrcPort		      1
	      DstBlock		      "gain2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "wr"
	      SrcPort		      1
	      DstBlock		      "T"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [145, 440, 160, 475]
	  Inputs		  "-+"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Sw"
	  Position		  [190, 42, 205, 118]
	  Orientation		  left
	  Threshold		  "0.5"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "VIPQ"
	  Position		  [525, 121, 570, 224]
	  ShowPortLabels	  off
	  System {
	    Name		    "VIPQ"
	    Location		    [206, 374, 894, 807]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "vqt"
	      Position		      [45, 155, 65, 175]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "vdt"
	      Position		      [45, 195, 65, 215]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "iq"
	      Position		      [45, 235, 65, 255]
	      Port		      "3"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "id"
	      Position		      [45, 275, 65, 295]
	      Port		      "4"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn"
	      Position		      [230, 232, 385, 258]
	      Expr		      "u[1]*u[3] + u[2]*u[4]"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn1"
	      Position		      [230, 282, 385, 308]
	      Expr		      "u[1]*u[4] - u[2]*u[3]"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn2"
	      Position		      [230, 185, 390, 215]
	      Expr		      "sqrt(u[3]*u[3] + u[4]*u[4])"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn3"
	      Position		      [230, 136, 390, 164]
	      Expr		      "sqrt(u[1]*u[1] + u[2]*u[2])"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Position		      [135, 143, 165, 307]
	      Inputs		      "4"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_|Vt|"
	      Position		      [450, 140, 470, 160]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_|I|"
	      Position		      [450, 190, 470, 210]
	      Port		      "2"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_P"
	      Position		      [450, 235, 470, 255]
	      Port		      "3"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_Q"
	      Position		      [450, 285, 470, 305]
	      Port		      "4"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "vqt"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "id"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Fcn"
	      SrcPort		      1
	      DstBlock		      "out_P"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Fcn1"
	      SrcPort		      1
	      DstBlock		      "out_Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		Points			[20, 0; 0, 20]
		DstBlock		"Fcn"
		DstPort			1
	      }
	      Branch {
		Points			[20, 0; 0, 70]
		DstBlock		"Fcn1"
		DstPort			1
	      }
	      Branch {
		Points			[20, 0; 0, -75]
		DstBlock		"Fcn3"
		DstPort			1
	      }
	      Branch {
		Points			[20, 0; 0, -25]
		DstBlock		"Fcn2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Fcn3"
	      SrcPort		      1
	      DstBlock		      "out_|Vt|"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Fcn2"
	      SrcPort		      1
	      DstBlock		      "out_|I|"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "vdt"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "iq"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "exciter"
	  Position		  [625, 64, 665, 111]
	  ShowPortLabels	  off
	  System {
	    Name		    "exciter"
	    Location		    [149, 293, 965, 637]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "Vref"
	      Position		      [55, 55, 75, 75]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Vt"
	      Position		      [55, 105, 75, 125]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "Ef"
	      Position		      [645, 90, 675, 120]
	      ExternalReset	      none
	      InitialConditionSource      internal
	      InitialCondition	      "Ef(1)"
	      LimitOutput	      off
	      UpperSaturationLimit      "inf"
	      LowerSaturationLimit      "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [170, 74, 265, 116]
	      Gain		      "KA(1)/TA(1)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [265, 158, 350, 192]
	      Orientation	      left
	      Gain		      "1/TA(1)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain2"
	      Position		      [500, 77, 565, 113]
	      Gain		      "1/TE(1)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain3"
	      Position		      [575, 157, 685, 193]
	      Orientation	      left
	      Gain		      "KE(1)/TE(1)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain4"
	      Position		      [405, 216, 520, 254]
	      Orientation	      left
	      Gain		      "KF(1)/TF(1)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain5"
	      Position		      [230, 274, 295, 316]
	      Gain		      "1/TF(1)"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Se"
	      Position		      [480, 21, 660, 49]
	      Orientation	      left
	      Expr		      "AEx(1)*exp(BEx(1)*u[1])"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Position		      [135, 62, 150, 128]
	      Inputs		      "+--"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Position		      [460, 68, 475, 117]
	      Inputs		      "-+"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      Position		      [290, 84, 305, 126]
	      Inputs		      "+-"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum3"
	      Position		      [600, 84, 615, 126]
	      Inputs		      "+-"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum4"
	      Position		      [305, 226, 320, 264]
	      Orientation	      left
	      Inputs		      "+-"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "VR"
	      Position		      [325, 89, 355, 121]
	      ExternalReset	      none
	      InitialConditionSource      internal
	      InitialCondition	      "VR(1)"
	      LimitOutput	      off
	      UpperSaturationLimit      "inf"
	      LowerSaturationLimit      "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "VRmax/VRmin"
	      Position		      [385, 82, 435, 128]
	      UpperLimit	      "VRmax(1)"
	      LowerLimit	      "VRmin(1)"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "Vs"
	      Position		      [345, 277, 380, 313]
	      ExternalReset	      none
	      InitialConditionSource      internal
	      InitialCondition	      "Vs(1)"
	      LimitOutput	      off
	      UpperSaturationLimit      "inf"
	      LowerSaturationLimit      "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_Ef"
	      Position		      [745, 95, 765, 115]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Vt"
	      SrcPort		      1
	      Points		      [15, 0; 0, -20]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "VRmax/VRmin"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Vref"
	      SrcPort		      1
	      Points		      [20, 0; 0, 10]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Se"
	      SrcPort		      1
	      Points		      [-35, 0; 0, 45]
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }

⌨️ 快捷键说明

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