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

📄 s3g.mdl

📁 simulink electrical machine(2)
💻 MDL
📖 第 1 页 / 共 5 页
字号:
Model {
  Name			  "s3g"
  Version		  2.00
  SimParamPage		  Solver
  SampleTimeColors	  off
  WideVectorLines	  on
  PaperOrientation	  landscape
  StartTime		  "0.0"
  StopTime		  "10"
  Solver		  ode45
  RelTol		  "1e-5"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "1e-2"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  RefineOutputTimes
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  warning
  MinStepSizeMsg	  warning
  UnconnectedInputMsg	  warning
  UnconnectedOutputMsg	  warning
  UnconnectedLineMsg	  warning
  ConsistencyChecking	  off
  ZeroCross		  on
  BlockDefaults {
    Orientation		    right
    ForegroundColor	    black
    BackgroundColor	    white
    DropShadow		    off
    NamePlacement	    normal
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    normal
    FontAngle		    normal
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    center
    VerticalAlignment	    middle
    ForegroundColor	    black
    BackgroundColor	    white
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    normal
    FontAngle		    normal
  }
  System {
    Name		    "s3g"
    Location		    [92, 64, 592, 364]
    Open		    on
    ScreenColor		    white
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [250, 27, 265, 43]
      DeleteFcn		      "simclock BlockIsBeingDestroyed"
      PostSaveFcn	      "simclock Save"
      Location		      [30, 40, 140, 75]
    }
    Block {
      BlockType		      Constant
      Name		      "Ef"
      Position		      [55, 154, 90, 176]
      Value		      "Efo"
    }
    Block {
      BlockType		      SubSystem
      Name		      "m3g"
      Position		      [361, 187, 432, 225]
      DropShadow	      on
      OpenFcn		      "m3g"
      ShowPortLabels	      off
      MaskType		      "Masked block of m3g.m"
      MaskHelp		      "Uses m3g.m to initialize and plot"
      MaskDisplay	      "disp('Initialize\\nand plot')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"m3g"
	Location		[335, 32767, 448, 32767]
	Open			off
	ScreenColor		white
	Annotation {
	  Position		  [57, 57]
	  VerticalAlignment	  top
	  Text			  "Masked block of m3g.m to initialize\nS3G.m "
				  "in Chapter 10 and plot results"
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Position		      [315, 16, 340, 234]
      Inputs		      "7"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Position		      [445, 113, 470, 137]
      Floating		      off
      Location		      [78, 341, 692, 489]
      Open		      on
      Grid		      on
      TickLabels	      on
      ZoomMode		      on
      TimeRange		      "10"
      YMin		      "-2"
      YMax		      "2"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitMaxRows	      off
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Selector
      Name		      "Selector"
      Position		      [380, 116, 420, 134]
      Elements		      "[1 3]"
      InputPortWidth	      "7"
    }
    Block {
      BlockType		      Terminator
      Name		      "T"
      Position		      [210, 131, 215, 139]
    }
    Block {
      BlockType		      Terminator
      Name		      "T1"
      Position		      [210, 151, 215, 159]
    }
    Block {
      BlockType		      Terminator
      Name		      "T2"
      Position		      [205, 166, 210, 174]
    }
    Block {
      BlockType		      Terminator
      Name		      "T3"
      Position		      [235, 161, 240, 169]
    }
    Block {
      BlockType		      Terminator
      Name		      "T4"
      Position		      [215, 61, 220, 69]
    }
    Block {
      BlockType		      SubSystem
      Name		      "Tmech"
      Position		      [55, 196, 90, 224]
      ShowPortLabels	      off
      MaskType		      "Repeating table"
      MaskDescription	      "Repeating table.\nEnter values of time and "
			      "output for first cycle."
      MaskHelp		      "Repeats cycle given in table. Time values "
			      "should be monotonically increasing."
      MaskPromptString	      "Time values:|Output values:"
      MaskStyleString	      "edit,edit"
      MaskInitialization      "period = max(@1); t = @1; y = @2;"
      MaskDisplay	      "plot([t,t+period,t+2*period],[y,y,y])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      MaskValueString	      "[0 1 1 4 4 7 7 10]|[1 1 1.2 1.2 0.5 0.5 0.8 "
			      "0.8]*Tmech"
      System {
	Name			"Tmech"
	Location		[5, 40, 315, 196]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Clock
	  Name			  "Clock"
	  Position		  [45, 60, 65, 80]
	  DeleteFcn		  "simclock BlockIsBeingDestroyed"
	  PostSaveFcn		  "simclock Save"
	  Location		  [30, 40, 140, 75]
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [110, 60, 150, 80]
	  Expr			  "rem(u[1],period)"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up Table"
	  Position		  [210, 58, 250, 82]
	  InputValues		  "t"
	  OutputValues		  "y"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [285, 60, 305, 80]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Look-Up Table"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Look-Up Table"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [385, 37, 435, 53]
      VariableName	      "y"
      Buffer		      "8000"
      Decimation	      "1"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Constant
      Name		      "Vd1"
      Position		      [55, 111, 90, 129]
      Value		      "Vd1"
    }
    Block {
      BlockType		      Constant
      Name		      "Vq1"
      Position		      [55, 65, 90, 85]
      Value		      "Vq1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "gen"
      Position		      [120, 51, 190, 229]
      ShowPortLabels	      off
      System {
	Name			"gen"
	Location		[14, 68, 811, 547]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_vqse"
	  Position		  [30, 230, 50, 250]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_vdse"
	  Position		  [80, 255, 100, 275]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_Ef"
	  Position		  [190, 350, 210, 370]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_Tmech"
	  Position		  [450, 295, 470, 315]
	  Port			  "4"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Rotor"
	  Position		  [495, 183, 540, 322]
	  ShowPortLabels	  off
	  System {
	    Name		    "Rotor"
	    Location		    [5, 80, 809, 550]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "psiq"
	      Position		      [50, 290, 70, 310]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "psid "
	      Position		      [50, 250, 70, 270]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-iqr"
	      Position		      [50, 200, 70, 220]
	      Port		      "3"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-idr"
	      Position		      [50, 340, 70, 360]
	      Port		      "4"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Tmech"
	      Position		      [50, 160, 70, 180]
	      Port		      "5"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "1/2H_mode0"
	      Position		      [245, 238, 365, 282]
	      Gain		      "1/(2*H_m(1,1))"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Damping"
	      Position		      [230, 187, 310, 213]
	      Orientation	      left
	      Gain		      "Domega"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [815, 157, 850, 193]
	      Gain		      "k(2)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [810, 263, 850, 297]
	      Gain		      "k(5)"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain5"
	      Position		      [325, 25, 425, 65]
	      Orientation	      left
	      Gain		      "wmi_xi_2"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain6"
	      Position		      [345, 140, 445, 180]
	      Orientation	      left
	      Gain		      "wmi_wmi"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Mass\nangle"
	      Position		      [685, 175, 730, 245]
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "Matrix\nGain"
	      Position		      [265, 90, 295, 120]
	      A			      "[]"
	      B			      "[]"
	      C			      "[]"
	      D			      "K"
	      X0		      "0"
	      MaskType		      "Matrix Gain"
	      MaskDescription	      "Matrix Gain."
	      MaskHelp		      "Multiplies input vector by entered "
				      "matrix to produce output vector (y=Au)."
	      MaskPromptString	      "Gain matrix:"
	      MaskStyleString	      "edit"
	      MaskInitialization      "K = @1;"
	      MaskDisplay	      "disp('K')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      off
	      MaskIconUnits	      autoscale
	      MaskValueString	      "tdisk2m"
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "Matrix\nGain2"
	      Position		      [115, 76, 140, 104]
	      A			      "[]"
	      B			      "[]"
	      C			      "[]"
	      D			      "K"
	      X0		      "0"
	      MaskType		      "Matrix Gain"
	      MaskDescription	      "Matrix Gain."
	      MaskHelp		      "Multiplies input vector by entered "
				      "matrix to produce output vector (y=Au)."
	      MaskPromptString	      "Gain matrix:"
	      MaskStyleString	      "edit"
	      MaskInitialization      "K = @1;"
	      MaskDisplay	      "disp('K')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      off
	      MaskIconUnits	      autoscale
	      MaskValueString	      "tmechv"
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "Matrix\nGain3"
	      Position		      [175, 106, 200, 134]
	      A			      "[]"
	      B			      "[]"
	      C			      "[]"
	      D			      "K"
	      X0		      "0"
	      MaskType		      "Matrix Gain"
	      MaskDescription	      "Matrix Gain."
	      MaskHelp		      "Multiplies input vector by entered "
				      "matrix to produce output vector (y=Au)."
	      MaskPromptString	      "Gain matrix:"
	      MaskStyleString	      "edit"
	      MaskInitialization      "K = @1;"
	      MaskDisplay	      "disp('K')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      off
	      MaskIconUnits	      autoscale
	      MaskValueString	      "temmask"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Modal\nangle"
	      Position		      [595, 191, 620, 224]
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "Modal\nspeed"
	      Position		      [510, 31, 535, 59]
	      A			      "[]"
	      B			      "[]"
	      C			      "[]"
	      D			      "K"
	      X0		      "0"
	      MaskType		      "Matrix Gain"
	      MaskDescription	      "Matrix Gain."
	      MaskHelp		      "Multiplies input vector by entered "
				      "matrix to produce output vector (y=Au)."
	      MaskPromptString	      "Gain matrix:"
	      MaskStyleString	      "edit"
	      MaskInitialization      "K = @1;"
	      MaskDisplay	      "disp('K')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      off
	      MaskIconUnits	      autoscale
	      MaskValueString	      "omegam2to6"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Prod"
	      Position		      [100, 244, 115, 266]
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Prod2"
	      Position		      [100, 295, 115, 315]
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "Qbar"
	      Position		      [645, 196, 670, 224]
	      A			      "[]"
	      B			      "[]"
	      C			      "[]"
	      D			      "K"
	      X0		      "0"
	      MaskType		      "Matrix Gain"
	      MaskDescription	      "Matrix Gain."
	      MaskHelp		      "Multiplies input vector by entered "
				      "matrix to produce output vector (y=Au)."
	      MaskPromptString	      "Gain matrix:"
	      MaskStyleString	      "edit"
	      MaskInitialization      "K = @1;"
	      MaskDisplay	      "disp('K')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      off
	      MaskIconUnits	      autoscale
	      MaskValueString	      "Qbar"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"

⌨️ 快捷键说明

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