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

📄 pmsm_ideal.mdl

📁 simulink下的理想模型,采用矢量控制方案,在它的基础上可加入实际干扰因素,进一步设计控制器.
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "1"
      YMin		      "-400"
      YMax		      "350"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope4"
      Ports		      [2]
      Position		      [335, 41, 365, 74]
      Location		      [473, 281, 797, 520]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "1"
      YMin		      "1~-5"
      YMax		      "6~5"
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      Ports		      [1]
      Position		      [1120, 303, 1150, 337]
      Location		      [430, 315, 754, 554]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "1"
      YMin		      "-500"
      YMax		      "500"
      SaveToWorkspace	      on
      SaveName		      "w1"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope6"
      Ports		      [1]
      Position		      [850, 68, 880, 102]
      Location		      [430, 315, 754, 554]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "1"
      YMin		      "-500"
      YMax		      "500"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [190, 90, 210, 110]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [165, 165, 185, 185]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [75, 90, 95, 110]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Constant
      Name		      "Tm"
      Position		      [730, 255, 760, 285]
      Orientation	      "up"
      Value		      "2"
    }
    Block {
      BlockType		      SubSystem
      Name		      "clarke"
      Ports		      [1, 2]
      Position		      [915, 261, 990, 339]
      Orientation	      "left"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"clarke"
	Location		[233, 441, 744, 753]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "is_abc"
	  Position		  [75, 108, 105, 122]
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [310, 61, 365, 99]
	  ShowName		  off
	  Gain			  "sqrt(3/2)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [310, 125, 370, 175]
	  ShowName		  off
	  Gain			  "sqrt(2)/2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [1, 1]
	  Position		  [170, 69, 175, 161]
	  ShowName		  off
	  Inputs		  "[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "i_alpha"
	  Position		  [240, 68, 280, 92]
	  NamePlacement		  "alternate"
	  Expr			  "u[1]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "i_beta"
	  Position		  [240, 138, 280, 162]
	  Expr			  "u[1]+2*u[2]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "I_alpha"
	  Position		  [400, 73, 430, 87]
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "I_beta"
	  Position		  [400, 143, 430, 157]
	  Port			  "2"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [30, 0; 5, 0]
	  Branch {
	    Points		    [0, 35]
	    DstBlock		    "i_beta"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -35]
	    DstBlock		    "i_alpha"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "is_abc"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "i_beta"
	  SrcPort		  1
	  DstBlock		  "Gain1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "i_alpha"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "I_alpha"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "I_beta"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "clarke_inv"
      Ports		      [2, 3]
      Position		      [605, 130, 670, 230]
      TreatAsAtomicUnit	      off
      System {
	Name			"clarke_inv"
	Location		[544, 353, 884, 545]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Valpha"
	  Position		  [25, 48, 55, 62]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Vbeta"
	  Position		  [20, 115, 50, 130]
	  Orientation		  "up"
	  Port			  "2"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [135, 80, 195, 110]
	  Expr			  "-u[1]/2+1.73205081*u[2]/2"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [135, 135, 195, 165]
	  Expr			  "-u[1]/2-1.73205081*u[2]/2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [140, 25, 170, 55]
	  Gain			  "sqrt(2/3)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  Position		  [230, 75, 260, 105]
	  Gain			  "sqrt(2/3)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain3"
	  Position		  [225, 130, 255, 160]
	  Gain			  "sqrt(2/3)"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [90, 76, 95, 114]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Va"
	  Position		  [245, 33, 275, 47]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Vb"
	  Position		  [285, 83, 315, 97]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Vc"
	  Position		  [280, 138, 310, 152]
	  Port			  "3"
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [10, 0; 5, 0]
	  Branch {
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  Points		  [0, -5]
	  DstBlock		  "Gain2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  Points		  [5, 0; 0, -5]
	  DstBlock		  "Gain3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Valpha"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [50, 0]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Vbeta"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "Va"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  DstBlock		  "Vb"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain3"
	  SrcPort		  1
	  DstBlock		  "Vc"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "id_ref"
      Position		      [105, 160, 135, 190]
      Value		      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "iqref"
      Ports		      [1, 1]
      Position		      [240, 88, 265, 112]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskType		      "PI Controller"
      MaskPromptString	      "Integral|Proportional:|Minimum and maximum outp"
"uts:"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskInitialization      "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
      MaskDisplay	      "disp('PI')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "5|10| [-500, 500]"
      System {
	Name			"iqref"
	Location		[257, 231, 611, 401]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In_1"
	  Position		  [25, 75, 45, 95]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Integral"
	  Position		  [110, 67, 145, 103]
	  Numerator		  "[I]"
	  Denominator		  "[1 0]"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional"
	  Position		  [120, 28, 140, 52]
	  NamePlacement		  "alternate"
	  Gain			  "P"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 53, 255, 77]
	  UpperLimit		  "max"
	  LowerLimit		  "min"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [180, 15, 200, 110]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out_1"
	  Position		  [285, 55, 305, 75]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Integral"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In_1"
	  SrcPort		  1
	  Points		  [15, 0; 15, 0]
	  Branch {
	    DstBlock		    "Integral"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Proportional"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Proportional"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Out_1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "iqref1"
      Ports		      [1, 1]
      Position		      [285, 163, 310, 187]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskType		      "PI Controller"
      MaskPromptString	      "Integral|Proportional:|Minimum and maximum outp"
"uts:"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskInitialization      "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
      MaskDisplay	      "disp('PI')"
      MaskIconFrame	      on

⌨️ 快捷键说明

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