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

📄 s5b.mdl

📁 simulink electrical machine.
💻 MDL
📖 第 1 页 / 共 4 页
字号:
Model {
  Name			  "s5b"
  Version		  2.00
  SimParamPage		  Solver
  SampleTimeColors	  off
  WideVectorLines	  off
  PaperOrientation	  landscape
  StartTime		  "0.0"
  StopTime		  "tstop"
  Solver		  ode15s
  RelTol		  "5e-6"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "5e-3"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  3
  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		    "s5b"
    Location		    [19, 54, 740, 421]
    Open		    on
    ScreenColor		    white
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [495, 52, 520, 78]
      DeleteFcn		      "simclock BlockIsBeingDestroyed"
      PostSaveFcn	      "simclock Save"
      Location		      [30, 40, 140, 75]
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Position		      [90, 117, 125, 163]
      ExternalReset	      none
      InitialConditionSource      internal
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit      "inf"
      LowerSaturationLimit      "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
    }
    Block {
      BlockType		      SubSystem
      Name		      "m5"
      Position		      [47, 55, 112, 87]
      DropShadow	      on
      OpenFcn		      "m5"
      ShowPortLabels	      off
      MaskType		      "Masked block of m5.m"
      MaskHelp		      "Uses m5.5 to initialize and plot"
      MaskDisplay	      "disp('Initialize\\nand plot')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"m5"
	Location		[15, 32767, 250, 32767]
	Open			off
	ScreenColor		white
	Annotation {
	  Position		  [157, 50]
	  VerticalAlignment	  top
	  Text			  "Uses m5.m to initIalize simulation \nand "
				  "plot results"
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Position		      [595, 42, 625, 288]
      Inputs		      "6"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Position		      [390, 133, 420, 157]
      Inputs		      "2"
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Position		      [390, 183, 420, 207]
      Inputs		      "2"
    }
    Block {
      BlockType		      Product
      Name		      "Product2"
      Position		      [390, 233, 420, 257]
      Inputs		      "2"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Position		      [660, 126, 690, 154]
      Floating		      off
      Location		      [25, 286, 742, 526]
      Open		      on
      Grid		      on
      TickLabels	      on
      ZoomMode		      on
      TimeRange		      "2"
      YMin		      "-20"
      YMax		      "20"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitMaxRows	      off
      MaxRows		      "5000"
      Decimation	      "2"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Sign"
      Position		      [310, 127, 340, 153]
      ShowPortLabels	      off
      MaskType		      "Sign"
      MaskDescription	      "y = sign(x)"
      MaskHelp		      "Sign Function:\\n\\t\\t\\ty = 1 if x > 0\\n\\t\\t"
			      "\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
      MaskDisplay	      "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50]"
			      ",[-40,0],[-30,-30],[0,40],[30,30])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"Sign"
	Location		[159, 417, 467, 586]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [35, 30, 55, 50]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [65, 105, 85, 125]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [140, 32, 170, 63]
	  Operator		  >
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  Position		  [140, 92, 170, 123]
	  Operator		  <
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [215, 64, 235, 91]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [265, 70, 285, 90]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [10, 0; 0, 20]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  Points		  [35, 0]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Sign1"
      Position		      [310, 177, 340, 203]
      ShowPortLabels	      off
      MaskType		      "Sign"
      MaskDescription	      "y = sign(x)"
      MaskHelp		      "Sign Function:\\n\\t\\t\\ty = 1 if x > 0\\n\\t\\t"
			      "\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
      MaskDisplay	      "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50]"
			      ",[-40,0],[-30,-30],[0,40],[30,30])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"Sign1"
	Location		[159, 417, 467, 586]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [35, 30, 55, 50]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [65, 105, 85, 125]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [140, 32, 170, 63]
	  Operator		  >
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  Position		  [140, 92, 170, 123]
	  Operator		  <
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [215, 64, 235, 91]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [265, 70, 285, 90]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [10, 0; 0, 20]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  Points		  [35, 0]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Sign2"
      Position		      [310, 227, 340, 253]
      ShowPortLabels	      off
      MaskType		      "Sign"
      MaskDescription	      "y = sign(x)"
      MaskHelp		      "Sign Function:\\n\\t\\t\\ty = 1 if x > 0\\n\\t\\t"
			      "\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
      MaskDisplay	      "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50]"
			      ",[-40,0],[-30,-30],[0,40],[30,30])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"Sign2"
	Location		[159, 417, 467, 586]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [35, 30, 55, 50]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [65, 105, 85, 125]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [140, 32, 170, 63]
	  Operator		  >
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  Position		  [140, 92, 170, 123]
	  Operator		  <
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Position		  [215, 64, 235, 91]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [265, 70, 285, 90]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [10, 0; 0, 20]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  Points		  [35, 0]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Tmech"
      Position		      [380, 280, 420, 300]
      Value		      "-Tb"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [655, 181, 695, 199]
      VariableName	      "y"
      Buffer		      "50000"
      Decimation	      "1"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Fcn
      Name		      "V/Hz & form factor"
      Position		      [165, 275, 285, 305]
      Expr		      "u[1]*(Vm/wb)*(pi/4)"
    }
    Block {
      BlockType		      SubSystem
      Name		      "induction machine\nin stationary qd0"
      Position		      [470, 128, 530, 282]
      ShowPortLabels	      off
      System {
	Name			"induction machine\nin stationary qd0"
	Location		[7, 99, 701, 521]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "in_vag"
	  Position		  [45, 125, 65, 145]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_vbg"
	  Position		  [45, 175, 65, 195]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_vcg"
	  Position		  [45, 225, 65, 245]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_Tmech"
	  Position		  [450, 200, 470, 220]
	  Orientation		  left
	  Port			  "4"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Daxis"
	  Position		  [245, 250, 280, 305]
	  ShowPortLabels	  off
	  System {
	    Name		    "Daxis"
	    Location		    [213, 440, 1045, 854]
	    Open		    off
	    ScreenColor		    white
	    Block {
	      BlockType		      Inport
	      Name		      "in_vds"
	      Position		      [50, 140, 70, 160]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "in_(wr/wb)*psiqr'"
	      Position		      [45, 290, 65, 310]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn"
	      Position		      [145, 135, 310, 165]
	      Expr		      "wb*(u[2]+(rs/xls)*(u[1]-u[3]))"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn2"
	      Position		      [145, 284, 325, 316]
	      Expr		      "wb*(-u[2] +(rpr/xplr)*(u[3]-u[1]))"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn3"
	      Position		      [485, 207, 635, 243]
	      Expr		      "xM*(u[1]/xls+u[2]/xplr)"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn4"
	      Position		      [495, 126, 585, 154]
	      Expr		      "(u[1]-u[2])/xls"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn5"

⌨️ 快捷键说明

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