Model {
  Name			  "hydcyl"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  on
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0"
  StopTime		  "0.1"
  SolverMode		  "SingleTasking"
  Solver		  "ode45"
  RelTol		  "1e-4"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "auto"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  on
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  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	  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  on
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  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
  PreLoadFcn		  "load newhcd"
  Created		  "Mon Aug 24 16:47:05 1998"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Mon Aug 24 18:01:52 1998"
  ModelVersionFormat	  "1.%<AutoIncrement:4>"
  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		    "hydcyl"
    Location		    [30, 93, 666, 460]
    Open		    on
    ToolBar		    on
    StatusBar		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "portrait"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Scope
      Name		      "Piston\nPosition\n(m)"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [480, 145, 510, 175]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [673, 46, 1013, 285]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%s"
      }
      Grid		      "on"
      TimeRange		      "0.1             "
      YMin		      "0"
      YMax		      "0.04"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Pressures\np1 (yellow)\np2 (purple)\np3 (blue)"
"\n(Pa)"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [565, 105, 595, 135]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [671, 311, 1014, 551]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			" "
      }
      Grid		      "on"
      TimeRange		      "0.1             "
      YMin		      "0"
      YMax		      "2e+006"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Pump"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [80, 107, 145, 173]
      BackgroundColor	      "red"
      SourceBlock	      "hydlib/Pump"
      SourceType	      "Pump"
      t			      "[0        .04     .04     .05    .05     .1]"
      Qpump		      "Qmax*[1 1 0 0 1 1]"
      p10		      "Qmax/C2*2"
      C2		      "C2"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem1"
      Ports		      [0, 0, 0, 0, 0]
      Position		      [440, 288, 585, 333]
      BackgroundColor	      "yellow"
      ShowName		      off
      OpenFcn		      "hydcyl4"
      ShowPortLabels	      off
      MaskType		      "Button"
      MaskDisplay	      "disp('Double click to see\\na 4 cylinder model."
"')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Subsystem1"
	Location		[486, 613, 757, 820]
	Open			off
	ToolBar			off
	StatusBar		off
	ModelBrowserVisibility	on
	ModelBrowserWidth	200
	ScreenColor		"yellow"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem2"
      Ports		      [0, 0, 0, 0, 0]
      Position		      [35, 285, 180, 332]
      BackgroundColor	      "yellow"
      ShowName		      off
      OpenFcn		      "sim(get_param(0,'CurrentSystem'),0.1)"
      ShowPortLabels	      off
      MaskType		      "Button"
      MaskDisplay	      "disp('Double click to run the \\nSimulation for"
" 0.1 seconds')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Subsystem2"
	Location		[486, 613, 757, 820]
	Open			off
	ToolBar			off
	StatusBar		off
	ModelBrowserVisibility	on
	ModelBrowserWidth	200
	ScreenColor		"yellow"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Valve/Cylinder/Piston/Spring Assembly"
      Ports		      [2, 3, 0, 0, 0]
      Position		      [230, 119, 420, 201]
      BackgroundColor	      "red"
      SourceBlock	      "hydlib/Valve//Cylinder//Piston//Spring Assembly"
      SourceType	      ""
      K			      "K"
      C1		      "C1"
      Ac		      "Ac"
      Cd		      "Cd"
      rho		      "rho"
      V30		      "V30"
      beta		      "beta"
    }
    Block {
      BlockType		      SubSystem
      Name		      "control valve\norifice area"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [156, 210, 194, 250]
      Orientation	      "up"
      BackgroundColor	      "magenta"
      NamePlacement	      "alternate"
      ShowPortLabels	      off
      MaskType		      "Ramp"
      MaskDisplay	      "plot(0,0,100,100,[98,0],[96,0])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"control valve\norifice area"
	Location		[202, 445, 479, 564]
	Open			off
	ToolBar			off
	StatusBar		off
	ModelBrowserVisibility	on
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Clock
	  Name			  "Clock"
	  Position		  [40, 40, 60, 60]
	  DisplayTime		  off
	  Decimation		  "10"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [105, 32, 160, 68]
	  ShowName		  off
	  Gain			  "0.001"
	}
	Block {
	  BlockType		  Outport
	  Name			  "A"
	  Position		  [205, 40, 225, 60]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "A"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "press."
      Ports		      [2, 1, 0, 0, 0]
      Position		      [530, 83, 535, 152]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Line {
      SrcBlock		      "control valve\norifice area"
      SrcPort		      1
      Points		      [0, -25]
      DstBlock		      "Valve/Cylinder/Piston/Spring Assembly"
      DstPort		      2
    }
    Line {
      Labels		      [0, 1]
      SrcBlock		      "Pump"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Valve/Cylinder/Piston/Spring Assembly"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"press."
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "press."
      SrcPort		      1
      DstBlock		      "Pressures\np1 (yellow)\np2 (purple)\np3 (blue)"
"\n(Pa)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Valve/Cylinder/Piston/Spring Assembly"
      SrcPort		      2
      DstBlock		      "Piston\nPosition\n(m)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Valve/Cylinder/Piston/Spring Assembly"
      SrcPort		      1
      DstBlock		      "press."
      DstPort		      2
    }
    Line {
      Labels		      [-1, 1]
      SrcBlock		      "Valve/Cylinder/Piston/Spring Assembly"
      SrcPort		      3
      Points		      [30, 0; 0, 80; -425, 0; 0, -125]
      DstBlock		      "Pump"
      DstPort		      1
    }
    Annotation {
      Position		      [307, 22]
      VerticalAlignment	      "top"
      Text		      "Hydraulic Cylinder Model"
      FontName		      "Times New Roman"
      FontSize		      22
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
  }
}
