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

📄 gaopinzhurull.mdl

📁 一个基于高频注入的异步电机矢量控制仿真模型。
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Port {
	PortNumber		3
	Name			"<Electromagnetic torque Te (N*m)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		4
	Name			"<Stator current is_q (A)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		5
	Name			"<Stator current is_d (A)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      BusSelector
      Name		      "Bus\nSelector1"
      Ports		      [1, 1]
      Position		      [660, 214, 670, 286]
      ShowName		      off
      OutputSignals	      "Stator current is_a (A),Stator current is_b (A)"
",Stator current is_c (A)"
      OutputAsBus	      on
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [705, 180, 735, 210]
      ShowName		      off
      Value		      "pi/2"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [705, 115, 735, 145]
      ShowName		      off
      Gain		      "4"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [745, 15, 775, 45]
      ShowName		      off
      Gain		      "4"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [830, 15, 860, 45]
      ShowName		      off
      Gain		      "30/pi/4"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [615, 416, 620, 454]
      Orientation	      "left"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Permanent Magnet\nSynchronous Machine"
      Ports		      [1, 1, 0, 0, 0, 3]
      Position		      [550, 183, 635, 257]
      AncestorBlock	      "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
      DialogController	      "POWERSYS.PowerSysDialog"
      CopyFcn		      "powericon('psbloadfunction',gcb,'gotofrom','Upd"
"ateGotoTag');"
      FontSize		      11
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskType		      "Permanent Magnet Synchronous Machine"
      MaskDescription	      "Implements a 3-phase permanent magnet synchrono"
"us machine with sinusoidal, or trapezoidal flux distribution. The sinusoidal "
"machine is modelled in the dq rotor reference frame and the trapezoidal machi"
"ne is modelled in the abc reference frame. Stator windings are connected in w"
"ye to an internal neutral point.\n\nThe preset models are available only for "
"the Sinusoidal flux distribution mode."
      MaskHelp		      "web(psbhelp);"
      MaskPromptString	      "Flux distribution:|Mechanical input:|Preset mod"
"el:|-----------------  Show detailed parameters ----------------- |Stator res"
"istance Rs (ohm):|Stator inductance Ls (H)|Inductances [ Ld(H) Lq(H) ]:|Flux "
"induced by magnets (Wb):|Back EMF flat area (degrees):|Inertia, friction fact"
"or and pole pairs [ J(kg.m^2)  F(N.m.s)  p() ]:|Pole pairs p ():"
      MaskStyleString	      "popup(Sinusoidal|Trapezoidal),popup(Torque Tm|S"
"peed w),popup(No|01:  0.8 Nm 300 Vdc 3000 RPM - 0.8 Nm|02:  1.7 Nm 300 Vdc 37"
"50 RPM - 1.7 Nm|03:  2.8 Nm 300 Vdc 4250 RPM - 3.2 Nm|04:  6 Nm 300 Vdc 4500 "
"RPM - 6 Nm|05:  8 Nm 300 Vdc 2000 RPM - 10 Nm|06:  10 Nm 300 Vdc 2300 RPM - 1"
"4.2 Nm|07:  20 Nm 300 Vdc 2200 RPM - 33.9 Nm|08:  24 Nm 300 Vdc 2300 RPM - 41"
".4 Nm|09:  7.14 Nm 560 Vdc 5000 RPM - 8.3 Nm|10:  7.71 Nm 560 Vdc 5000 RPM - "
"10.2 Nm|11:  26.13 Nm 560 Vdc 3000 RPM - 27.3 Nm|12:  35.17 Nm 560 Vdc 3000 R"
"PM - 37.4 Nm|13:  42.09 Nm 560 Vdc 3000 RPM - 45.6 Nm|14:  67.27 Nm 560 Vdc 1"
"700 RPM - 70.2 Nm|15:  87.75 Nm 560 Vdc 3000 RPM - 97.96 Nm|16:  111 Nm 560 V"
"dc 3000 RPM - 126 Nm),checkbox,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "off,on,off,off,off,off,off,off,off,off,on"
      MaskCallbackString      "powericon('PMSynchronousMachineCback',gcb);|pow"
"ericon('PMSynchronousMachineCback',gcb);|powericon('PMSynchronousMachineCback"
"',gcb);|powericon('PMSynchronousMachineCback',gcb);|||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,off,on,on,off,off,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,"
      MaskVariables	      "FluxDistribution=@1;MechanicalLoad=@2;PresetMod"
"el=@3;ShowDetailedParameters=@4;Resistance=@5;Inductance=@6;dqInductances=@7;"
"Flux=@8;Flat=@9;Mechanical=@10;PolePairs=@11;"
      MaskInitialization      "block = gcb;\n[circl1,circl2,a1,a2,b1,b2,c1,c2,"
"d1,d2,n1,n2,s1,s2] = powericon('PMSynchronousMachineIcon');\nTs = powericon('"
"PMSynchronousMachineInit',block);\npowericon('psbloadfunction',block,'gotofro"
"m','Initialize');\nLd=dqInductances(1);\nLq=dqInductances(2);\nJ=Mechanical(1"
");\nF=Mechanical(2);\nif MechanicalLoad==1\n    p=Mechanical(3);\nelse\n    p"
"=PolePairs;\nend\nR=Resistance;\nL=Inductance;\ntrap=sin((pi-Flat/180*pi)/2);"
"\nsqrt3=sqrt(3);\none_third=1/3;\npower_initmask();"
      MaskDisplay	      "plot(-70,-20,55,80,circl1,circl2,a1,a2,b1,b2,c1"
",c2,d1,d2,n1,n2,s1,s2);\ncolor('blue')\nplot([-40,0,0],[70,70,52])\n"
      MaskSelfModifiable      on
      MaskIconFrame	      off
      MaskIconOpaque	      off
      MaskIconRotate	      "port"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Sinusoidal|Speed w|No|on|1.51|8.5e-3|[0.0048 0."
"0134]|0.1073|120|[0.000244 0.0003035 4]|4"
      MaskTabNameString	      ",,,,,,,,,,"
      System {
	Name			"Permanent Magnet\nSynchronous Machine"
	Location		[0, 82, 1012, 743]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "w"
	  Position		  [250, 335, 270, 355]
	  Orientation		  "left"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  PMComponent
	  Name			  "ASM"
	  Ports			  [0, 0, 0, 0, 0, 2, 1]
	  Position		  [110, 21, 200, 134]
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  PhysicalDomain	  "powersysdomain"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "A|B"
	  RConnTagsString	  "__newr0"
	  MaskType		  "InnerPowersysBlock"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [520, 575, 550, 605]
	  Value			  "0"
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  Position		  [15, 169, 85, 191]
	  BackgroundColor	  "cyan"
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "tp503417"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto"
	  Position		  [235, 169, 305, 191]
	  BackgroundColor	  "cyan"
	  GotoTag		  "tp503415"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Measurement list"
	  Ports			  [2, 1]
	  Position		  [250, 274, 305, 296]
	  SourceBlock		  "powerlib_models/Discrete/Measurement list"
	  SourceType		  "SubSystem"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	}
	Block {
	  BlockType		  Reference
	  Name			  "PMSM_mechanics"
	  Ports			  [2, 3]
	  Position		  [125, 317, 190, 433]
	  Orientation		  "left"
	  SourceBlock		  "powerlib_models/Discrete/PMSM_mechanics_spe"
"ed"
	  SourceType		  ""
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Source"
	  Ports			  [3, 3]
	  Position		  [125, 161, 185, 259]
	  SourceBlock		  "powerlib_models/Discrete/PM_synchronous_mac"
"hine"
	  SourceType		  "SubSystem"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum7"
	  Ports			  [2, 1]
	  Position		  [560, 540, 580, 560]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "A"
	  Position		  [45, 40, 75, 60]
	  BackgroundColor	  "yellow"
	  FontWeight		  "bold"
	  Port			  "1"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "B"
	  Position		  [45, 95, 75, 115]
	  BackgroundColor	  "yellow"
	  FontWeight		  "bold"
	  Port			  "2"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "C"
	  Position		  [230, 70, 260, 90]
	  Orientation		  "left"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  FontWeight		  "bold"
	  Port			  "3"
	  Side			  "Left"
	}
	Block {
	  BlockType		  Outport
	  Name			  "m"
	  Position		  [335, 275, 355, 295]
	  ForegroundColor	  "blue"
	  BackgroundColor	  "cyan"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "PMSM_mechanics"
	  SrcPort		  1
	  Points		  [-15, 0; 0, -125]
	  DstBlock		  "Source"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "PMSM_mechanics"
	  SrcPort		  3
	  Points		  [-35, 0; 0, -125]
	  DstBlock		  "Measurement list"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "w"
	  SrcPort		  1
	  DstBlock		  "PMSM_mechanics"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Source"
	  SrcPort		  2
	  Points		  [20, 0; 0, 70]
	  DstBlock		  "Measurement list"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Source"
	  SrcPort		  3
	  Points		  [25, 0; 0, 165]
	  DstBlock		  "PMSM_mechanics"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Source"
	  SrcPort		  1
	  DstBlock		  "Goto"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From"
	  SrcPort		  1
	  DstBlock		  "Source"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Measurement list"
	  SrcPort		  1
	  DstBlock		  "m"
	  DstPort		  1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "A"
	  SrcPort		  RConn1
	  DstBlock		  "ASM"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "B"
	  SrcPort		  RConn1
	  DstBlock		  "ASM"
	  DstPort		  LConn2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "C"
	  SrcPort		  RConn1
	  DstBlock		  "ASM"
	  DstPort		  RConn1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum7"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "PMSM_mechanics"
	  SrcPort		  2
	  Points		  [-10, 0; 0, 175]
	  DstBlock		  "Sum7"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum7"
	  SrcPort		  1
	  Points		  [0, -235; -390, 0; 0, -35; -85, 0]
	  DstBlock		  "Source"
	  DstPort		  3
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [225, 430, 255, 465]
      Orientation	      "left"
      Floating		      off
      Location		      [5, 52, 1029, 737]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      TimeRange		      "0.11"
      YMin		      "28.25~6.25"
      YMax		      "31.5~9"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [3]
      Position		      [980, 23, 1010, 57]
      Floating		      off
      Location		      [5, 52, 1029, 737]
      Open		      off
      NumInputPorts	      "3"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      TimeRange		      "0.11"
      YMin		      "28.25~6.25~-0.07"
      YMax		      "31.5~9~0.07"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [235, 155, 265, 185]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "1000*2*pi"
      Phase		      "pi/2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave1"
      Ports		      [0, 1]
      Position		      [195, 230, 225, 260]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "1000*2*pi"
      SampleTime	      "0"
    }

⌨️ 快捷键说明

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