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

📄 smccurve.mdl

📁 关于电机的.m程序
💻 MDL
字号:
Model {
  Name			  "smCcurve"
  Version		  3.00
  SimParamPage		  "WorkspaceI/O"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "0"
  SolverMode		  "Auto"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "3"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "current"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "none"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  IntegerOverflowMsg	  "warning"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  on
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  BooleanDataType	  off
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "oneshot"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  off
  Created		  "Wed May 24 20:09:50 2000"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Tue Jun 06 11:04:24 2000"
  ModelVersionFormat	  "1.%<AutoIncrement:10>"
  ConfigurationManager	  "none"
  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"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "smCcurve"
    Location		    [340, 302, 1001, 694]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "automatic"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "99"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      " Run"
      Ports		      [0, 0, 0, 0, 0]
      Position		      [500, 296, 555, 347]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "ccurverun"
      ShowPortLabels	      on
      MaskDisplay	      "disp('RUN')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			" Run"
	Location		[348, 538, 787, 669]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"148"
	AutoZoom		on
	Annotation {
	  Position		  [140, 64]
	  Text			  " Double click the <RUNr> block to enter the"
" machine\nparameters and run the simulation"
	  FontName		  "Arial"
	  FontSize		  11
	}
	Annotation {
	  Position		  [145, 20]
	  Text			  "This demo illustrates the generation of the"
" compounding\nC_curvesof a synchronous machine"
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Algebraic Constraint"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [315, 65, 385, 95]
      ShowName		      off
      SourceBlock	      "simulink3/Math/Algebraic Constraint"
      SourceType	      "Algebraic Constraint"
      z0		      ".1"
      Port {
	PortNumber		1
	Name			"id"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Algebraic Constraint2"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [315, 120, 385, 150]
      ShowName		      off
      SourceBlock	      "simulink3/Math/Algebraic Constraint"
      SourceType	      "Algebraic Constraint"
      z0		      "0.3"
    }
    Block {
      BlockType		      ComplexToMagnitudeAngle
      Name		      "Complex to\nMagnitude-Angle"
      Ports		      [1, 2, 0, 0, 0]
      Position		      [545, 74, 575, 141]
      Output		      "MagnitudeAndAngle"
    }
    Block {
      BlockType		      Constant
      Name		      "Ef"
      Position		      [80, 60, 110, 90]
      NamePlacement	      "alternate"
      Value		      "Ef"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [240, 65, 285, 95]
      ShowName		      off
      Expr		      "Ra*u(2)-Xq*u(3)+Vs*sin(u(4))"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [240, 120, 285, 150]
      ShowName		      off
      Expr		      "Xd*u(2)+Ra*u(3)-Vs*cos(u(4))+u(1)"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [4, 1, 0, 0, 0]
      Position		      [175, 79, 180, 186]
      ShowName		      off
      Inputs		      "4"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      RealImagToComplex
      Name		      "Real-Imag to\nComplex"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [465, 53, 495, 162]
      Input		      "RealAndImag"
      ConstantPart	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [3, 1, 0, 0, 0]
      Position		      [95, 160, 115, 180]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "--+"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Constant
      Name		      "phi"
      Position		      [20, 155, 50, 185]
      NamePlacement	      "alternate"
      Value		      "phi"
    }
    Block {
      BlockType		      Constant
      Name		      "q"
      Position		      [20, 100, 50, 130]
      NamePlacement	      "alternate"
      Value		      "pi/2"
    }
    Block {
      BlockType		      Outport
      Name		      "Current"
      Position		      [625, 83, 655, 97]
      Port		      "1"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	DstBlock		"Fcn1"
	DstPort			1
      }
      Branch {
	Points			[0, -55]
	DstBlock		"Fcn"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Ef"
      SrcPort		      1
      Points		      [35, 0; 0, 20]
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      DstBlock		      "Algebraic Constraint"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn1"
      SrcPort		      1
      DstBlock		      "Algebraic Constraint2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Real-Imag to\nComplex"
      SrcPort		      1
      DstBlock		      "Complex to\nMagnitude-Angle"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Algebraic Constraint2"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Real-Imag to\nComplex"
	DstPort			2
      }
      Branch {
	Points			[0, 75; -255, 0; 0, -65]
	DstBlock		"Mux"
	DstPort			3
      }
    }
    Line {
      Name		      "id"
      Labels		      [1, 0]
      SrcBlock		      "Algebraic Constraint"
      SrcPort		      1
      Points		      [45, 0]
      Branch {
	DstBlock		"Real-Imag to\nComplex"
	DstPort			1
      }
      Branch {
	Points			[0, 155; -305, 0; 0, -115]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "q"
      SrcPort		      1
      Points		      [50, 0]
      DstBlock		      "Sum1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nMagnitude-Angle"
      SrcPort		      2
      Points		      [25, 0; 0, 145; -500, 0]
      DstBlock		      "Sum1"
      DstPort		      3
    }
    Line {
      SrcBlock		      "phi"
      SrcPort		      1
      DstBlock		      "Sum1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Complex to\nMagnitude-Angle"
      SrcPort		      1
      DstBlock		      "Current"
      DstPort		      1
    }
    Annotation {
      Position		      [414, 134]
      Text		      "iq\n"
    }
    Annotation {
      Position		      [233, 334]
      Text		      "C_curves of the synchronous machine"
      FontSize		      12
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
  }
}

⌨️ 快捷键说明

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