power_3levelvsc.mdl

来自「三电平异步电机控制程序」· MDL 代码 · 共 2,135 行 · 第 1/5 页

MDL
2,135
字号
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "power_3levelVSC"
    Location		    [33, 80, 979, 629]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "0 = Stop pulsing"
      Ports		      [0, 1]
      Position		      [415, 358, 445, 392]
      ForegroundColor	      "red"
      BackgroundColor	      "cyan"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib_extras/Control \nBlocks/Timer"
      SourceType	      "Timer"
      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"
      t			      "[0 0.1]"
      e			      "[1 0]"
    }
    Block {
      BlockType		      Reference
      Name		      "1 MW"
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [236, 205, 274, 255]
      Orientation	      "down"
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Three-Phase\nSeries RLC Load"
      SourceType	      "Three-Phase Series RLC Load"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "A|B|C"
      Configuration	      "Y (grounded)"
      NominalVoltage	      "600"
      NominalFrequency	      "60"
      ActivePower	      "1e6"
      InductivePower	      "0"
      CapacitivePower	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "200 kW"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [720, 130, 750, 160]
      Orientation	      "down"
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "R"
      Resistance	      "500^2/200e3"
      Inductance	      "1.0"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "1.0"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "200 kW "
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [805, 135, 835, 165]
      Orientation	      "down"
      ForegroundColor	      "red"
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "R"
      Resistance	      "500^2/200e3"
      Inductance	      "1.0"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "1.0"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "500 kvar"
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [176, 205, 214, 255]
      Orientation	      "down"
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Three-Phase\nSeries RLC Load"
      SourceType	      "Three-Phase Series RLC Load"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "A|B|C"
      Configuration	      "Y (grounded)"
      NominalVoltage	      "600"
      NominalFrequency	      "60"
      ActivePower	      "0.5e6/100"
      InductivePower	      "0"
      CapacitivePower	      "0.5e6"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "600V 30 MVA"
      Ports		      [0, 0, 0, 0, 0, 0, 3]
      Position		      [70, 118, 145, 172]
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Electrical\nSources/Three-Phase Source"
      SourceType	      "Three-Phase Source"
      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"
      Voltage		      "600"
      PhaseAngle	      "0"
      Frequency		      "60"
      InternalConnection      "Yg"
      SpecifyImpedance	      on
      Resistance	      "0.724"
      Inductance	      "19.2e-3"
      ShortCircuitLevel	      "30e6"
      BaseVoltage	      "600"
      XRratio		      "10"
    }
    Block {
      BlockType		      Reference
      Name		      "B1"
      Ports		      [0, 0, 0, 0, 0, 3, 3]
      Position		      [300, 114, 305, 176]
      BackgroundColor	      "black"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Three-Phase\nV-I Measurem"
"ent"
      SourceType	      "Three-Phase VI Measurement"
      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"
      VoltageMeasurement      "phase-to-ground"
      SetLabelV		      on
      LabelV		      "Vabc_B1"
      Vpu		      off
      CurrentMeasurement      "yes"
      SetLabelI		      on
      LabelI		      "Iabc_B1"
      Ipu		      off
      Pbase		      "100e6"
      Vbase		      "500e3"
      OutputType	      "Magnitude"
      PhasorSimulation	      off
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Breaker"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [765, 38, 800, 72]
      ForegroundColor	      "red"
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Breaker"
      SourceType	      "Breaker"
      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"
      BreakerResistance	      "0.001"
      InitialState	      "0"
      SnubberResistance	      "1e6"
      SnubberCapacitance      "inf"
      SwitchingTimes	      "[0.05]"
      External		      off
      Measurements	      "None"
      MoreParameters	      off
      NoBreakLoop	      off
    }
    Block {
      BlockType		      Reference
      Name		      "C1"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [682, 80, 718, 105]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "C"
      Resistance	      "1.0"
      Inductance	      "1.0"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "75000e-06"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "C2"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [682, 175, 718, 200]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "C"
      Resistance	      "1.0"
      Inductance	      "1.0"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "75000e-06"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Scope
      Name		      "Ctrl_Signals"
      Ports		      [3]
      Position		      [185, 344, 220, 416]
      Floating		      off
      Location		      [448, 149, 1011, 658]
      Open		      off
      NumInputPorts	      "3"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMin		      "0.2~-0.5~-0.3"
      YMax		      "1~1.5~0.1"
      SaveName		      "V_Load"
      DataFormat	      "Array"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "Ts_Control"
    }
    Block {
      BlockType		      SubSystem
      Name		      "DC Regulator"
      Ports		      [3, 1]
      Position		      [395, 253, 470, 327]
      ForegroundColor	      "blue"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskType		      "DC Voltage Regulator"
      MaskPromptString	      "DC voltage setpoint (V):"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "Vdc_Ref=@1;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "500"
      System {
	Name			"DC Regulator"
	Location		[150, 581, 910, 872]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Vabc"
	  Position		  [25, 53, 55, 67]
	  BackgroundColor	  "yellow"
	  IconDisplay		  "Port number"
	  PortDimensions	  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Iabc"
	  Position		  [25, 98, 55, 112]
	  BackgroundColor	  "yellow"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  PortDimensions	  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Vdc"
	  Position		  [30, 143, 60, 157]
	  BackgroundColor	  "yellow"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Anti-aliasing\nFilters (7)"
	  Ports			  [3, 3]
	  Position		  [180, 35, 245, 175]
	  BackgroundColor	  "yellow"
	  DropShadow		  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"

⌨️ 快捷键说明

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