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

📄 s2c.mdl

📁 simulink electrical machine(2)
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      ExternalReset	      none
	      InitialConditionSource      internal
	      InitialCondition	      "0"
	      LimitOutput	      off
	      UpperSaturationLimit      "inf"
	      LowerSaturationLimit      "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Position		      [140, 59, 155, 101]
	      Inputs		      "+-"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "rs"
	      Position		      [200, 122, 245, 158]
	      Orientation	      left
	      Gain		      "rs"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "wb/xls"
	      Position		      [180, 62, 240, 98]
	      Gain		      "wb/xls"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_i0s"
	      Position		      [365, 70, 385, 90]
	      Port		      "1"
	      OutputWhenDisabled      held
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Integrator"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		DstBlock		"out_i0s"
		DstPort			1
	      }
	      Branch {
		Points			[10, 0; 0, 60]
		DstBlock		"rs"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "in_v0s"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "wb/xls"
	      SrcPort		      1
	      DstBlock		      "Integrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "wb/xls"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "rs"
	      SrcPort		      1
	      Points		      [-80, 0; 0, -50]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_iqs"
	  Position		  [565, 85, 585, 105]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_ids"
	  Position		  [565, 260, 585, 280]
	  Port			  "2"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_i0s"
	  Position		  [565, 320, 585, 340]
	  Port			  "3"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_Tem"
	  Position		  [405, 100, 425, 120]
	  Port			  "4"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_wr/wb"
	  Position		  [395, 225, 415, 245]
	  Port			  "5"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_psiqs"
	  Position		  [345, 40, 365, 60]
	  Port			  "6"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_psids"
	  Position		  [345, 225, 365, 245]
	  Port			  "7"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Daxis"
	  SrcPort		  3
	  DstBlock		  "T1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Qaxis"
	  SrcPort		  3
	  DstBlock		  "T"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Daxis"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [30, 0; 0, -20]
	    DstBlock		    "out_psids"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [205, 0; 0, -110]
	    DstBlock		    "Rotor"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Qaxis"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [30, 0; 0, -30]
	    DstBlock		    "out_psiqs"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [215, 0; 0, 95]
	    DstBlock		    "Rotor"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "Daxis"
	  SrcPort		  2
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "out_ids"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [230, 0; 0, -80]
	    DstBlock		    "Rotor"
	    DstPort		    4
	  }
	}
	Line {
	  SrcBlock		  "Qaxis"
	  SrcPort		  2
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "out_iqs"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [235, 0; 0, 65]
	    DstBlock		    "Rotor"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Zero_seq"
	  SrcPort		  1
	  DstBlock		  "out_i0s"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_vds"
	  SrcPort		  1
	  DstBlock		  "Daxis"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_v0s"
	  SrcPort		  1
	  DstBlock		  "Zero_seq"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_vqs"
	  SrcPort		  1
	  DstBlock		  "Qaxis"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_Tmech"
	  SrcPort		  1
	  DstBlock		  "Rotor"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Rotor"
	  SrcPort		  1
	  Points		  [0, -50]
	  DstBlock		  "out_Tem"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [-55, 0; 0, -85]
	  DstBlock		  "Qaxis"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [-45, 0; 0, 135]
	  DstBlock		  "Daxis"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Rotor"
	  SrcPort		  2
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "out_wr/wb"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-45, 0; 0, -35]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Qaxis"
	  SrcPort		  4
	  Points		  [40, 0; 0, 25]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Daxis"
	  SrcPort		  4
	  Points		  [40, 0; 0, -95]
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Annotation {
	  Position		  [292, 62]
	  VerticalAlignment	  top
	  Text			  "psiqs"
	}
	Annotation {
	  Position		  [297, 237]
	  VerticalAlignment	  top
	  Text			  "psids"
	}
	Annotation {
	  Position		  [187, 312]
	  VerticalAlignment	  top
	  Text			  "v0s"
	}
	Annotation {
	  Position		  [457, 317]
	  VerticalAlignment	  top
	  Text			  "i0s"
	}
	Annotation {
	  Position		  [366, 149]
	  VerticalAlignment	  top
	  Text			  "Tem"
	}
	Annotation {
	  Position		  [357, 177]
	  VerticalAlignment	  top
	  Text			  "wr/wb"
	}
	Annotation {
	  Position		  [187, 252]
	  VerticalAlignment	  top
	  Text			  "vds"
	}
	Annotation {
	  Position		  [192, 72]
	  VerticalAlignment	  top
	  Text			  "vqs"
	}
	Annotation {
	  Position		  [292, 257]
	  VerticalAlignment	  top
	  Text			  "ids"
	}
	Annotation {
	  Position		  [301, 287]
	  VerticalAlignment	  top
	  Text			  "psidr"
	}
	Annotation {
	  Position		  [292, 112]
	  VerticalAlignment	  top
	  Text			  "psiqr"
	}
	Annotation {
	  Position		  [287, 82]
	  VerticalAlignment	  top
	  Text			  "iqs"
	}
	Annotation {
	  Position		  [572, 52]
	  VerticalAlignment	  top
	  Text			  "Induction Machine Simulation\n  in Stationar"
				  "y Reference Frame"
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "m1c"
      Position		      [33, 23, 96, 57]
      DropShadow	      on
      OpenFcn		      "m1c"
      ShowPortLabels	      off
      MaskType		      "Masked block of m1c.m"
      MaskHelp		      "Uses m1c.m to initialize and plot"
      MaskDisplay	      "disp('Initialize\\nand plot')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"m1c"
	Location		[220, 32767, 280, 32767]
	Open			off
	ScreenColor		white
	Annotation {
	  Position		  [12, 24]
	  VerticalAlignment	  top
	  Text			  "Masked block of m1c.m\nto initilialize "
				  "s2c.m\nand to plot the results."
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "qds2abc"
      Position		      [630, 139, 660, 201]
      ShowPortLabels	      off
      System {
	Name			"qds2abc"
	Location		[487, 91, 1006, 301]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "iqs"
	  Position		  [45, 35, 65, 55]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "ids"
	  Position		  [45, 95, 65, 115]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "i0s"
	  Position		  [45, 155, 65, 175]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [185, 36, 375, 64]
	  Expr			  "u[1] + u[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [185, 92, 370, 118]
	  Expr			  "-(u[1]+sqrt(3)*u[2])/2 +u[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn2"
	  Position		  [185, 147, 375, 173]
	  Expr			  "-(u[1]-sqrt(3)*u[2])/2 + u[3]"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Position		  [110, 34, 135, 176]
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ias"
	  Position		  [440, 40, 460, 60]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ibs"
	  Position		  [440, 95, 460, 115]
	  Port			  "2"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ics"
	  Position		  [440, 150, 460, 170]
	  Port			  "3"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  DstBlock		  "ics"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [15, 0; 0, 55]
	    DstBlock		    "Fcn2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [15, 0; 0, -55]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "ias"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "ibs"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "i0s"
	  SrcPort		  1
	  Points		  [10, 0; 0, -15]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "iqs"
	  SrcPort		  1
	  Points		  [10, 0; 0, 15]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "ids"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Saturate
      Name		      "slip_limit"
      Position		      [210, 143, 240, 167]
      UpperLimit	      "0.7*smaxt"
      LowerLimit	      "-0.7*smaxt"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "speed\ncontroller"
      Position		      [135, 135, 185, 175]
      Numerator		      "[10 0.5]"
      Denominator	      "[1 0]"
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, -20]
	DstBlock		"Selector"
	DstPort			1
      }
      Branch {
	Points			[0, -20]
	DstBlock		"To Workspace"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Selector"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [25, 0; 0, -50]
      DstBlock		      "Sqvar_we"
      DstPort		      2
    }
    Line {
      

⌨️ 快捷键说明

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