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

📄 s3.mdl

📁 simulink electrical machine(2)
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "vq"
	  Position		  [500, 92, 525, 118]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "Vq1"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_vqa2b"
	  Position		  [595, 95, 615, 115]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_vda2b"
	  Position		  [595, 195, 615, 215]
	  Port			  "2"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "vd"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [30, 0; 0, 80; -470, 0; 0, -50]
	    DstBlock		    "Mux"
	    DstPort		    4
	  }
	  Branch {
	    DstBlock		    "out_vda2b"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "in_ida2b"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "in_iqa2b"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "vq"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "out_vqa2b"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [35, 0; 0, -65; -475, 0; 0, 45]
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [25, 0; 0, -55]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [25, 0; 0, 45]
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "vq"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "vd"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Position		      [285, 176, 300, 209]
      Inputs		      "-+"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Position		      [315, 211, 330, 244]
      Inputs		      "+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum4"
      Position		      [715, 180, 730, 215]
      Inputs		      "++"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum5"
      Position		      [710, 242, 725, 273]
      Inputs		      "++"
    }
    Block {
      BlockType		      Terminator
      Name		      "T"
      Position		      [235, 46, 240, 54]
    }
    Block {
      BlockType		      Terminator
      Name		      "T1"
      Position		      [255, 56, 260, 64]
    }
    Block {
      BlockType		      Terminator
      Name		      "T2"
      Position		      [280, 66, 285, 74]
    }
    Block {
      BlockType		      Terminator
      Name		      "T3"
      Position		      [295, 76, 300, 84]
    }
    Block {
      BlockType		      Terminator
      Name		      "T4"
      Position		      [350, 51, 355, 59]
    }
    Block {
      BlockType		      Terminator
      Name		      "T5"
      Position		      [300, 151, 305, 159]
    }
    Block {
      BlockType		      Constant
      Name		      "Tmech"
      Position		      [45, 200, 100, 220]
      Value		      "Tmech"
    }
    Block {
      BlockType		      Constant
      Name		      "Vd4"
      Position		      [640, 259, 675, 281]
      Value		      "Vd4"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Vq4"
      Position		      [615, 145, 650, 185]
      ShowPortLabels	      off
      MaskType		      "Repeating table"
      MaskDescription	      "Repeating table.\nEnter values of time and "
			      "output for first cycle."
      MaskHelp		      "Repeats cycle given in table. Time values "
			      "should be monotonically increasing."
      MaskPromptString	      "Time values:|Output values:"
      MaskStyleString	      "edit,edit"
      MaskInitialization      "period = max(@1); t = @1; y = @2;"
      MaskDisplay	      "plot([t,t+period,t+2*period],[y,y,y])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      MaskValueString	      "[0 0.2 0.2 0.275 0.275 0.7 ]|[1. 1. 0.5 0.5 "
			      "1. 1.]*Vq4"
      System {
	Name			"Vq4"
	Location		[5, 40, 315, 196]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Clock
	  Name			  "Clock"
	  Position		  [45, 60, 65, 80]
	  DeleteFcn		  "simclock BlockIsBeingDestroyed"
	  PostSaveFcn		  "simclock Save"
	  Location		  [30, 40, 140, 75]
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [110, 60, 150, 80]
	  Expr			  "rem(u[1],period)"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up Table"
	  Position		  [210, 58, 250, 82]
	  InputValues		  "t"
	  OutputValues		  "y"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [285, 60, 305, 80]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Look-Up Table"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up Table"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "gen"
      Position		      [145, 46, 215, 234]
      ShowPortLabels	      off
      System {
	Name			"gen"
	Location		[4, 47, 790, 502]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_vqse"
	  Position		  [30, 230, 50, 250]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_vdse"
	  Position		  [80, 255, 100, 275]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_Ef"
	  Position		  [190, 350, 210, 370]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_Tmech"
	  Position		  [450, 295, 470, 315]
	  Port			  "4"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "PQgen"
	  Position		  [490, 31, 525, 124]
	  ShowPortLabels	  off
	  System {
	    Name		    "PQgen"
	    Location		    [52, 84, 763, 472]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "vqr"
	      Position		      [115, 90, 135, 110]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-iqr"
	      Position		      [115, 135, 135, 155]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "vdr"
	      Position		      [115, 180, 135, 200]
	      Port		      "3"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-idr"
	      Position		      [115, 225, 135, 245]
	      Port		      "4"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn"
	      Position		      [285, 75, 450, 105]
	      Expr		      "sqrt(u[1]*u[1] + u[3]*u[3])"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn1"
	      Position		      [285, 125, 450, 155]
	      Expr		      "sqrt(u[2]*u[2] + u[4]*u[4])"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Position		      [180, 75, 210, 260]
	      Inputs		      "4"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "P"
	      Position		      [285, 180, 450, 210]
	      Expr		      "u[1]*u[2] + u[3]*u[4]"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Q"
	      Position		      [285, 230, 450, 260]
	      Expr		      "u[1]*u[4]-u[2]*u[3]"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out_|Vt|"
	      Position		      [510, 80, 530, 100]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out_|It|"
	      Position		      [510, 130, 530, 150]
	      Port		      "2"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Pgen"
	      Position		      [510, 185, 530, 205]
	      Port		      "3"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Qgen"
	      Position		      [510, 235, 530, 255]
	      Port		      "4"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Fcn"
	      SrcPort		      1
	      DstBlock		      "Out_|Vt|"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Fcn1"
	      SrcPort		      1
	      DstBlock		      "Out_|It|"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		Points			[25, 0; 0, -30]
		DstBlock		"Fcn1"
		DstPort			1
	      }
	      Branch {
		Points			[25, 0; 0, -80]
		DstBlock		"Fcn"
		DstPort			1
	      }
	      Branch {
		Points			[25, 0; 0, 75]
		DstBlock		"Q"
		DstPort			1
	      }
	      Branch {
		Points			[25, 0; 0, 25]
		DstBlock		"P"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Q"
	      SrcPort		      1
	      DstBlock		      "Qgen"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "P"
	      SrcPort		      1
	      DstBlock		      "Pgen"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "-idr"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "vdr"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "-iqr"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "vqr"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Rotor"
	  Position		  [495, 183, 540, 322]
	  ShowPortLabels	  off
	  System {
	    Name		    "Rotor"
	    Location		    [4, 55, 808, 512]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "psiq"
	      Position		      [50, 290, 70, 310]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "psid "
	      Position		      [50, 250, 70, 270]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-iqr"
	      Position		      [50, 200, 70, 220]
	      Port		      "3"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-idr"
	      Position		      [50, 340, 70, 360]
	      Port		      "4"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Tmech"
	      Position		      [50, 160, 70, 180]
	      Port		      "5"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "1/2H_mode0"
	      Position		      [245, 238, 365, 282]
	      Gain		      "1/(2*H_m(1,1))"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Damping"
	      Position		      [230, 187, 310, 213]
	      Orientation	      left
	      Gain		      "Domega"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [815, 157, 850, 193]
	      Gain		      "k(2)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [810, 263, 850, 297]
	      Gain		      "k(5)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain5"
	      Position		      [325, 25, 425, 65]
	      Orientation	      left
	      Gain		      "wmi_xi_2"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain6"

⌨️ 快捷键说明

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