igrun.mdl

来自「关于电机的.m程序」· MDL 代码 · 共 2,708 行 · 第 1/5 页

MDL
2,708
字号
	  Ports			  [2, 1]
	  Position		  [255, 85, 275, 105]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|-+"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Outport
	  Name			  "vrd"
	  Position		  [450, 58, 480, 72]
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "vrq"
	  Position		  [320, 223, 350, 237]
	  Port			  "2"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "wmer"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "vrd"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum4"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Gain2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Gain3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain3"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Sum4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  DstBlock		  "vrq"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Qser"
	  SrcPort		  1
	  Points		  [5, 0; 10, 0]
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Gain5"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain4"
	  SrcPort		  1
	  DstBlock		  "Integrator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain5"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator2"
	  SrcPort		  1
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Ps"
	  SrcPort		  1
	  Points		  [210, 0]
	  DstBlock		  "Sum4"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Cartesian to\nPolar"
      Ports		      [2, 2]
      Position		      [650, 589, 680, 631]
      SourceBlock	      "simulink_extras/Transformations/Cartesian to\nP"
"olar"
      SourceType	      "Cart2Polar"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock1"
      Position		      [30, 450, 50, 470]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock2"
      Position		      [50, 175, 70, 195]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock3"
      Position		      [30, 295, 50, 315]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock4"
      Position		      [40, 535, 60, 555]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 2]
      Position		      [590, 591, 595, 629]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product"
      Ports		      [2, 1]
      Position		      [1040, 216, 1070, 249]
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
      Port {
	PortNumber		1
	Name			"Ps"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product1"
      Ports		      [2, 1]
      Position		      [1040, 271, 1070, 304]
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
      Port {
	PortNumber		1
	Name			"Qs"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product2"
      Ports		      [2, 1]
      Position		      [1050, 381, 1080, 414]
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
      Port {
	PortNumber		1
	Name			"Pr"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product3"
      Ports		      [2, 1]
      Position		      [1050, 445, 1080, 485]
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
      Port {
	PortNumber		1
	Name			"Qr"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "IM1"
      Ports		      [4, 3]
      Position		      [570, 202, 725, 353]
      ShowName		      off
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDescription	      "Induction Machine"
      MaskPromptString	      "Stator resistance [pu]|Stator leakage inductanc"
"e [pu]|Rotor resistance [pu]|Magnetizing inductance [pu]|Rotor leakage induct"
"ance [pu]|base frequency [rad/s]"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString	      "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables	      "Rs=@1;Lsl=@2;Rr=@3;Lm=@4;Lrl=@5;wo=@6;"
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
"),[-.5 -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('DOUBLY-FED\\nINDUCTION\\nGEN"
"ERATOR')"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.05|0.1|0.02|5|0.1|2*pi*60"
      Port {
	PortNumber		1
	Name			"Te"
	PropagatedSignals	"Te"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		2
	Name			"is"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"IM1"
	Location		[562, 386, 1133, 786]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"lightBlue"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"84"
	Block {
	  BlockType		  Inport
	  Name			  "vs"
	  Position		  [15, 123, 45, 137]
	  FontWeight		  "bold"
	}
	Block {
	  BlockType		  Inport
	  Name			  "wk"
	  Position		  [15, 68, 45, 82]
	  FontWeight		  "bold"
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "wm"
	  Position		  [15, 308, 45, 322]
	  FontWeight		  "bold"
	  Port			  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "vr"
	  Position		  [15, 353, 45, 367]
	  FontWeight		  "bold"
	  Port			  "4"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  " ckt"
	  Ports			  []
	  Position		  [565, 266, 614, 306]
	  BackgroundColor	  "gray"
	  DropShadow		  on
	  ShowName		  off
	  OpenFcn		  "helpview(which('imeqs.html'));"
	  FontWeight		  "bold"
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('HELP')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    " ckt"
	    Location		    [116, 520, 441, 651]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Dot Product"
	  Ports			  [2, 1]
	  Position		  [540, 30, 575, 70]
	  ShowName		  off
	  SourceBlock		  "simulink/Math\nOperations/Dot Product"
	  SourceType		  "Dot Product"
	  Port {
	    PortNumber		    1
	    Name		    "Te"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [210, 210, 240, 240]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "Rs"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [240, 390, 270, 420]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "Rr"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain4"
	  Position		  [215, 115, 245, 145]
	  ShowName		  off
	  Gain			  "wo"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain5"
	  Position		  [215, 346, 245, 374]
	  ShowName		  off
	  Gain			  "wo"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [275, 114, 305, 146]
	  ShowName		  off
	  InitialCondition	  "[0 -1]"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator1"
	  Ports			  [1, 1]
	  Position		  [275, 344, 305, 376]
	  ShowName		  off
	  InitialCondition	  "[0 -1.02]"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [130, 52, 160, 83]
	  ShowName		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [130, 267, 160, 298]
	  ShowName		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1]
	  Position		  [175, 120, 195, 140]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+-"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [3, 1]
	  Position		  [175, 350, 195, 370]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+-"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum4"
	  Ports			  [2, 1]
	  Position		  [80, 280, 100, 300]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "flux-current1"
	  Ports			  [2, 2]
	  Position		  [350, 107, 465, 203]
	  ShowName		  off
	  FontWeight		  "bold"
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('FLUX-CURRENT\\nRELATIONS')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"

⌨️ 快捷键说明

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