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

📄 bounce.mdl

📁 simulink仿真学习的必备教程
💻 MDL
字号:
Model {
  Name			  "bounce"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "20"
  SolverMode		  "SingleTasking"
  Solver		  "ode23"
  RelTol		  "1e-3"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  ".01"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "[]"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  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		  "Thu Apr 17 07:34:10 2003"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Thu Apr 17 07:56:20 2003"
  ModelVersionFormat	  "1.%<AutoIncrement:1>"
  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		    "bounce"
    Location		    [30, 105, 527, 405]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Scope
      Name		      "Bouncing Ball Display"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [385, 65, 405, 95]
      Floating		      off
      Location		      [546, 30, 994, 321]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "0"
      YMax		      "22"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Gain
      Name		      "Elasticity"
      Position		      [155, 147, 200, 183]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Gain		      "-0.8"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Constant
      Name		      "Gravity"
      Position		      [110, 41, 150, 69]
      NamePlacement	      "alternate"
      Value		      "-9.81"
    }
    Block {
      BlockType		      InitialCondition
      Name		      "IC"
      Position		      [145, 89, 175, 121]
      Value		      "15"
    }
    Block {
      BlockType		      SubSystem
      Name		      "More Info"
      Ports		      [0, 0, 0, 0, 0]
      Position		      [255, 215, 282, 240]
      DropShadow	      on
      ShowName		      off
      ShowPortLabels	      on
      MaskDisplay	      "disp('?')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"More Info"
	Location		[86, 285, 470, 431]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Annotation {
	  Position		  [189, 37]
	  Text			  "A rubber ball is thrown into the air with t"
"he velocity 15\nmeters per second from a height of 10 m.  The position\n of t"
"he ball is shown in the Bouncing Ball Display.\nTo view the velocity, double "
"click on the Velocity Scope."
	}
	Annotation {
	  Position		  [194, 97]
	  Text			  "This system uses a reset-integrator to chan"
"ge the\ndirection of the ball as it comes into contact with\nthe ground"
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "More Info1"
      Ports		      [0, 0, 0, 0, 0]
      Position		      [316, 213, 418, 264]
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "simcad(bdroot);"
      ShowPortLabels	      on
      MaskDisplay	      "disp('Double click\\nhere for\\nSimulink Help')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"More Info1"
	Location		[128, 280, 487, 453]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Position"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [275, 55, 310, 105]
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "10"
      LimitOutput	      on
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "0"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
    }
    Block {
      BlockType		      Integrator
      Name		      "Velocity"
      Ports		      [3, 1, 0, 0, 1]
      Position		      [200, 42, 235, 118]
      NamePlacement	      "alternate"
      ExternalReset	      "falling"
      InitialConditionSource  "external"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      on
      AbsoluteTolerance	      "auto"
    }
    Block {
      BlockType		      Scope
      Name		      "Velocity Scope"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [385, 15, 405, 45]
      Floating		      off
      Location		      [485, 71, 1068, 492]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-20"
      YMax		      "20"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Velocity"
      SrcPort		      state
      DstBlock		      "Elasticity"
      DstPort		      1
    }
    Line {
      SrcBlock		      "IC"
      SrcPort		      1
      DstBlock		      "Velocity"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Elasticity"
      SrcPort		      1
      Points		      [-25, 0; 0, -60]
      DstBlock		      "IC"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Velocity"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Position"
	DstPort			1
      }
      Branch {
	Points			[0, -50]
	DstBlock		"Velocity Scope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Position"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Bouncing Ball Display"
	DstPort			1
      }
      Branch {
	Points			[0, 110; -230, 0; 0, -110]
	DstBlock		"Velocity"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Gravity"
      SrcPort		      1
      DstBlock		      "Velocity"
      DstPort		      1
    }
    Annotation {
      Position		      [151, 267]
      Text		      "To start and stop the simulation, use the \"Sta"
"rt/Stop\"\nselection in the \"Simulation\" pull-down menu"
    }
    Annotation {
      Position		      [147, 227]
      Text		      "Bouncing Ball Model\n(Double click on the \"?\""
" for more info)"
    }
  }
}

⌨️ 快捷键说明

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