Model {
  Name			  "scdspeed_compdelay_remodeled"
  Version		  6.1
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.76"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "ibm-5348_P100-1997"
  PreLoadFcn		  "C = zpk(-2.89,0,0.0018222);\nTs = 0.1;"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Wed Mar 31 11:47:22 2004"
  Creator		  "jglass"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "jglass"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Fri Dec 10 16:35:50 2004"
  ModelVersionFormat	  "1.%<AutoIncrement:76>"
  ConfigurationManager	  "None"
  UserBdParams		  "disc_configurable_lib;"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  BufferReuse		  off
  StrictBusMsg		  "None"
  ProdHWDeviceType	  "32-bit Generic"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.1.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.1.0"
	  StartTime		  "0"
	  StopTime		  "10"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "0.001"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "ode45"
	  SolverName		  "ode45"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  Decimation		  "1"
	  ExternalInput		  "[0 0]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xstr"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Array {
	    Type		    "Cell"
	    Dimension		    5
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "InitFltsAndDblsToZero"
	    Cell		    "OptimizeModelRefInitCode"
	    Cell		    "NoFixptDivByZeroProtection"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  on
	  InlineInvariantSignals  on
	  OptimizeBlockIOStorage  on
	  BufferReuse		  off
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg on
	  CheckExecutionContextRuntimeOutputMsg	on
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "none"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.1.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.1.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "IncludeHyperlinkInReport"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "grt_default_tmf"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ConfigAtBuild		  off
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  GenCPP		  off
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Array {
		Type			"Cell"
		Dimension		9
		Cell			"IgnoreCustomStorageClasses"
		Cell			"InsertBlockDesc"
		Cell			"SFDataObjDesc"
		Cell			"SimulinkDataObjDesc"
		Cell			"DefineNamingRule"
		Cell			"SignalNamingRule"
		Cell			"ParamNamingRule"
		Cell			"InlinedPrmAccess"
		Cell			"CustomSymbolStr"
		PropName		"DisabledProps"
	      }
	      Version		      "1.1.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses on
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      PrefixModelToSubsysFcnNames on
	      CustomSymbolStr	      "$R$N$M"
	      MangleLength	      1
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.GRTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Array {
		Type			"Cell"
		Dimension		12
		Cell			"IncludeMdlTerminateFcn"
		Cell			"CombineOutputUpdateFcns"
		Cell			"SuppressErrorStatus"
		Cell			"ERTCustomFileBanners"
		Cell			"GenerateSampleERTMain"
		Cell			"MultiInstanceERTCode"
		Cell			"PurelyIntegerCode"
		Cell			"SupportNonFinite"
		Cell			"SupportComplex"
		Cell			"SupportAbsoluteTime"
		Cell			"SupportContinuousTime"
		Cell			"SupportNonInlinedSFcns"
		PropName		"DisabledProps"
	      }
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      on
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      ExtMode		      off
	      ExtModeStaticAlloc      off
	      ExtModeTesting	      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTransport	      0
	      ExtModeMexFile	      "ext_comm"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      GenerateASAP2	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  WSMdlFileData		  "DataTag0"
  disc_configurable_lib	  "scdspeed_compdelay_disc_lib"
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      DiscreteStateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      IgnoreLimit	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      MinMax
      Function		      "min"
      Inputs		      "1"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Signum
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Step
      Time		      "1"
      Before		      "0"
      After		      "1"
      SampleTime	      "-1"
      VectorParams1D	      on
      ZeroCross		      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      TransportDelay
      DelayTime		      "1"
      InitialInput	      "0"
      BufferSize	      "1024"
      PadeOrder		      "0"
      TransDelayFeedthrough   off
    }
    Block {
      BlockType		      VariableTransportDelay
      MaximumDelay	      "1"
      InitialInput	      "0"
      MaximumPoints	      "1024"
      PadeOrder		      "0"
      TransDelayFeedthrough   off
    }
  }
  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		    "scdspeed_compdelay_remodeled"
    Location		    [43, 665, 1030, 1013]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Combustion"
      Ports		      [2, 1]
      Position		      [630, 60, 685, 140]
      DropShadow	      on
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Combustion"
	Location		[71, 559, 976, 774]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Air Charge"
	  Position		  [45, 25, 65, 45]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "N"
	  Position		  [160, 130, 180, 150]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  From
	  Name			  "From\nSpark Advance"
	  Position		  [45, 95, 85, 115]
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "delta"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [225, 17, 230, 158]
	  BackgroundColor	  "black"
	  ShowName		  off
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Stoichiometric Fuel"
	  Position		  [125, 56, 175, 84]
	  Gain			  "1/14.6"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [810, 85, 830, 105]
	  ShowName		  off
	  IconShape		  "round"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Torque Gen"
	  Position		  [280, 50, 795, 80]
	  Expr			  "-181.3 + 379.36*u[1] + 21.91*u[1]/u[2] - (0"
".85*u[1]*u[1])/(u[2]*u[2]) + 0.26*u[3] - 0.0028*u[3]*u[3] "
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Torque Gen2"
	  Position		  [280, 103, 795, 137]
	  Expr			  "0.027*u[4] - 0.000107*u[4]*u[4] + 0.00048*u"
"[4]*u[3] + 2.55*u[3]*u[1] - 0.05*u[3]*u[3]*u[1]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Torque"
	  Position		  [855, 85, 875, 105]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Stoichiometric Fuel"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "From\nSpark Advance"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "N"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Air Charge"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 35]
	    DstBlock		    "Stoichiometric Fuel"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, -25]
	    DstBlock		    "Torque Gen"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "Torque Gen2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Torque Gen2"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Torque Gen"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Torque"
	  DstPort		  1
	}
	Annotation {
	  Name			  "Engine Torque"
	  Position		  [426, 187]
	  FontSize		  16
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      TransportDelay
      Name		      "Computational\nDelay"
      Position		      [240, 30, 270, 60]
      BackgroundColor	      "lightBlue"
      DelayTime		      "Ts"
      InitialInput	      "8.96"
      PadeOrder		      "2"
      TransDelayFeedthrough   on
    }
    Block {
      BlockType		      SubSystem
      Name		      "Continuous\nZero Order Hold"
      Ports		      [1, 1]
      Position		      [510, 274, 575, 316]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskPromptString	      "Sample Time|Pade Approximation Order"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "Ts=@1;PadeOrder=@2;"
      MaskDisplay	      "disp('(1-e^(-sT))/(Ts)')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Ts|2"
      MaskTabNameString	      ","
      Port {
	PortNumber		1
	LinearAnalysisOutput	on
	LinearAnalysisOpenLoop	on
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      System {
	Name			"Continuous\nZero Order Hold"
	Location		[570, 547, 1030, 652]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 28, 55, 42]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Add"
	  Ports			  [2, 1]
	  Position		  [220, 27, 250, 58]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [350, 30, 380, 60]
	  Gain			  "1/Ts"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [300, 30, 330, 60]
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  TransportDelay
	  Name			  "Transport\nDelay"
	  Position		  [130, 50, 160, 80]
	  DelayTime		  "Ts"
	  PadeOrder		  "PadeOrder"
	  TransDelayFeedthrough	  on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [405, 38, 435, 52]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay"
	  SrcPort		  1
	  Points		  [15, 0; 0, -15]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    DstBlock		    "Add"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "Transport\nDelay"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Drag Torque"
      Ports		      [0, 1]
      Position		      [630, 154, 685, 186]
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Drag Torque"
	Location		[668, 439, 912, 616]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Step
	  Name			  "Step"
	  Position		  [20, 25, 40, 45]
	  Time			  "2"
	  Before		  "25"
	  After			  "25"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Step
	  Name			  "Step1"
	  Position		  [20, 90, 40, 110]
	  Time			  "8"
	  After			  "0"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [110, 60, 130, 80]
	  ShowName		  off
	  IconShape		  "round"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Load"
	  Position		  [185, 60, 205, 80]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Step1"
	  SrcPort		  1
	  Points		  [75, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Step"
	  SrcPort		  1
	  Points		  [75, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Load"
	  DstPort		  1
	}
	Annotation {
	  Name			  "Torque Disturbances"
	  Position		  [126, 156]
	  FontSize		  14
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "Engine\nSpeed\n(rpm)"
      Position		      [890, 105, 950, 135]
      VariableName	      "simout"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto1"
      Position		      [300, 242, 340, 258]
      GotoTag		      "delta"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Induction to \nPower Stroke Delay"
      Ports		      [2, 1]
      Position		      [470, 49, 540, 111]
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Induction to \nPower Stroke Delay"
	Location		[791, 889, 1127, 1081]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Air charge"
	  Position		  [20, 43, 50, 57]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "N"
	  Position		  [20, 93, 50, 107]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [55, 135, 85, 165]
	  Value			  "pi"
	}
	Block {
	  BlockType		  Product
	  Name			  "Divide1"
	  Ports			  [2, 1]
	  Position		  [120, 127, 150, 158]
	  Inputs		  "/*"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  VariableTransportDelay
	  Name			  "dM/dt delay"
	  Position		  [195, 62, 225, 93]
	  MaximumDelay		  "10"
	  InitialInput		  "0.152"
	  MaximumPoints		  "25000"
	  PadeOrder		  "2"
	  TransDelayFeedthrough	  on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Air Charge"
	  Position		  [270, 73, 300, 87]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "dM/dt delay"
	  SrcPort		  1
	  DstBlock		  "Air Charge"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  DstBlock		  "Divide1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "N"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "Divide1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Divide1"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "dM/dt delay"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Air charge"
	  SrcPort		  1
	  Points		  [125, 0]
	  DstBlock		  "dM/dt delay"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Spark Advance"
      Position		      [225, 239, 260, 261]
      Value		      "15.0"
    }
    Block {
      BlockType		      Step
      Name		      "Speed\nReference"
      Position		      [30, 35, 50, 55]
      Before		      "2000"
      After		      "3000"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Speed Controller"
      Ports		      [1, 1]
      Position		      [135, 26, 205, 64]
      SourceBlock	      "cstblocks/LTI System"
      SourceType	      "LTI Block"
      ShowPortLabels	      on
      sys		      "ss(c2d(C,Ts))"
      IC		      "181"
      Port {
	PortNumber		1
	LinearAnalysisInput	on
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [85, 35, 105, 55]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Throttle & Manifold"
      Ports		      [2, 1]
      Position		      [305, 28, 405, 97]
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Throttle & Manifold"
	Location		[77, 408, 657, 761]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Throttle Ang."
	  Position		  [30, 50, 50, 70]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Engine Speed, N"
	  Position		  [130, 220, 150, 240]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Saturate
	  Name			  "0 <= theta <= 90"
	  Position		  [115, 48, 135, 72]
	  NamePlacement		  "alternate"
	  UpperLimit		  "90"
	  LowerLimit		  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Atmospheric\nPressure, Pa\n(bar)"
	  Position		  [100, 110, 120, 130]
	  Value			  "1.0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Intake Manifold"
	  Ports			  [2, 2]
	  Position		  [215, 178, 450, 247]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Intake Manifold"
	    Location		    [28, 852, 701, 1111]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "mdot Input \n(g/s)"
	      Position		      [30, 80, 50, 100]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "N (rad/sec)"
	      Position		      [225, 140, 245, 160]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Convert to mass charge"
	      Position		      [510, 64, 575, 86]
	      Expr		      "p(1)*u(2)+p(2)*u(1)+p(3)*u(1)*u(1)+p(4)"
"*u(1)*u(2)+p(5)"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [325, 61, 330, 179]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Pumping1"
	      Position		      [370, 109, 435, 131]
	      Expr		      "-0.366 + 0.08979*u[1]*u[2] - 0.0337*u[2"
"]*u[1]*u[1] + 0.0001*u[1]*u[2]*u[2]"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "RT/Vm"
	      Position		      [145, 70, 240, 110]
	      Gain		      "0.41328"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [100, 80, 120, 100]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|+-"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "p0 = 0.543 bar"
	      Ports		      [1, 1]
	      Position		      [260, 61, 290, 119]
	      InitialCondition	      ".543"
	      IgnoreLimit	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Air charge"
	      Position		      [620, 65, 640, 85]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Manifold Pressure,\nPm (bar)"
	      Position		      [405, 15, 425, 35]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Pumping1"
	      SrcPort		      1
	      Points		      [25, 0; 0, 90; -355, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "RT/Vm"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "p0 = 0.543 bar"
	      SrcPort		      1
	      Points		      [5, 0]
	      Branch {
		Points			[0, -65]
		DstBlock		"Manifold Pressure,\nPm (bar)"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Mux"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Pumping1"
		DstPort			1
	      }
	      Branch {
		Points			[0, -45]
		DstBlock		"Convert to mass charge"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "N (rad/sec)"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "RT/Vm"
	      SrcPort		      1
	      DstBlock		      "p0 = 0.543 bar"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "mdot Input \n(g/s)"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Convert to mass charge"
	      SrcPort		      1
	      DstBlock		      "Air charge"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "Intake Manifold Vacuum"
	      Position		      [267, 243]
	      FontSize		      16
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Throttle"
	  Ports			  [3, 1]
	  Position		  [180, 48, 485, 132]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Throttle"
	    Location		    [379, 147, 963, 592]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Throttle Angle,\ntheta (deg)"
	      Position		      [65, 65, 85, 85]
	      NamePlacement	      "alternate"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Manifold Pressure,\nPm (bar)"
	      Position		      [65, 110, 85, 130]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Atmospheric Pressure,\nPa (bar) "
	      Position		      [65, 180, 85, 200]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      MinMax
	      Name		      "MinMax"
	      Ports		      [2, 1]
	      Position		      [240, 100, 265, 215]
	      ShowName		      off
	      Function		      "min"
	      Inputs		      "2"
	      Port {
		PortNumber		1
		Name			"pratio"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [3, 1]
	      Position		      [470, 22, 490, 338]
	      ShowName		      off
	      Inputs		      "3"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product1"
	      Ports		      [2, 1]
	      Position		      [180, 112, 210, 143]
	      ShowName		      off
	      Inputs		      "*/"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product2"
	      Ports		      [2, 1]
	      Position		      [180, 167, 210, 198]
	      ShowName		      off
	      Inputs		      "/*"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Sonic Flow "
	      Position		      [345, 190, 365, 210]
	      Value		      "1.0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [150, 275, 170, 295]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "+-|"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [420, 148, 445, 212]
	      ShowName		      off
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "f(theta)"
	      Position		      [110, 64, 440, 86]
	      NamePlacement	      "alternate"
	      Expr		      "2.821 - 0.05231*u + 0.10299*u*u - 0.000"
"63*u*u*u"
	    }
	    Block {
	      BlockType		      Signum
	      Name		      "flow direction"
	      Position		      [300, 269, 335, 301]
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "g(pratio)"
	      Position		      [315, 148, 390, 172]
	      NamePlacement	      "alternate"
	      Expr		      "2*sqrt(u - u*u)"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Throttle \nFlow, mdot\n (g/s)"
	      Position		      [535, 170, 555, 190]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "f(theta)"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Throttle \nFlow, mdot\n (g/s)"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Throttle Angle,\ntheta (deg)"
	      SrcPort		      1
	      DstBlock		      "f(theta)"
	      DstPort		      1
	    }
	    Line {
	      Name		      "pratio"
	      Labels		      [1, 0]
	      SrcBlock		      "MinMax"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"g(pratio)"
		DstPort			1
	      }
	      Branch {
		Points			[0, 20]
		DstBlock		"Switch"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "flow direction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "flow direction"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sonic Flow "
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "g(pratio)"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Atmospheric Pressure,\nPa (bar) "
	      SrcPort		      1
	      Points		      [70, 0]
	      Branch {
		Points			[0, -55]
		DstBlock		"Product1"
		DstPort			2
	      }
	      Branch {
		Points			[0, 0]
		Branch {
		  DstBlock		  "Product2"
		  DstPort		  2
		}
		Branch {
		  DstBlock		  "Sum"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      DstBlock		      "MinMax"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product2"
	      SrcPort		      1
	      DstBlock		      "MinMax"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Manifold Pressure,\nPm (bar)"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"Product1"
		DstPort			1
	      }
	      Branch {
		Points			[0, 55]
		Branch {
		  DstBlock		  "Product2"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, 110]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
	      }
	    }
	    Annotation {
	      Name		      "Throttle Flow vs. Valve Angle and Press"
"ure"
	      Position		      [291, 372]
	      FontSize		      16
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Air charge"
	  Position		  [510, 185, 530, 205]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Atmospheric\nPressure, Pa\n(bar)"
	  SrcPort		  1
	  DstBlock		  "Throttle"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Intake Manifold"
	  SrcPort		  1
	  DstBlock		  "Air charge"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Intake Manifold"
	  SrcPort		  2
	  Points		  [20, 0; 0, 40; -410, 0; 0, -180]
	  DstBlock		  "Throttle"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Engine Speed, N"
	  SrcPort		  1
	  DstBlock		  "Intake Manifold"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Throttle"
	  SrcPort		  1
	  Points		  [35, 0; 0, 70; -325, 0]
	  DstBlock		  "Intake Manifold"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Throttle Ang."
	  SrcPort		  1
	  DstBlock		  "0 <= theta <= 90"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "0 <= theta <= 90"
	  SrcPort		  1
	  DstBlock		  "Throttle"
	  DstPort		  1
	}
	Annotation {
	  Name			  "Air Intake Dynamics"
	  Position		  [302, 318]
	  FontSize		  16
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Vehicle\nDynamics"
      Ports		      [2, 1]
      Position		      [730, 82, 770, 158]
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Vehicle\nDynamics"
	Location		[128, 890, 498, 1038]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Teng"
	  Position		  [40, 25, 60, 45]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tload"
	  Position		  [40, 85, 60, 105]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Inverse Inertia,\n1/J"
	  Position		  [165, 51, 215, 79]
	  Gain			  "1/0.14"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [110, 55, 130, 75]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "w = T/J\nw0 = 209 rad/s"
	  Ports			  [1, 1]
	  Position		  [250, 47, 270, 83]
	  InitialCondition	  "209.48"
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "N"
	  Position		  [305, 55, 325, 75]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Inverse Inertia,\n1/J"
	  SrcPort		  1
	  DstBlock		  "w = T/J\nw0 = 209 rad/s"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "w = T/J\nw0 = 209 rad/s"
	  SrcPort		  1
	  DstBlock		  "N"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Inverse Inertia,\n1/J"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Teng"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tload"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "rad/s\nto rpm"
      Position		      [805, 103, 845, 137]
      NamePlacement	      "alternate"
      Gain		      "30/pi"
    }
    Line {
      SrcBlock		      "rad/s\nto rpm"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Engine\nSpeed\n(rpm)"
	DstPort			1
      }
      Branch {
	Points			[0, 175]
	DstBlock		"Continuous\nZero Order Hold"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Spark Advance"
      SrcPort		      1
      DstBlock		      "Goto1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Throttle & Manifold"
      SrcPort		      1
      DstBlock		      "Induction to \nPower Stroke Delay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Vehicle\nDynamics"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	Points			[0, 90; -190, 0]
	Branch {
	  Points		  [0, -90]
	  DstBlock		  "Combustion"
	  DstPort		  2
	}
	Branch {
	  Points		  [-180, 0]
	  Branch {
	    Points		    [-140, 0; 0, -130]
	    DstBlock		    "Throttle & Manifold"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -115]
	    DstBlock		    "Induction to \nPower Stroke Delay"
	    DstPort		    2
	  }
	}
      }
      Branch {
	DstBlock		"rad/s\nto rpm"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Combustion"
      SrcPort		      1
      DstBlock		      "Vehicle\nDynamics"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Drag Torque"
      SrcPort		      1
      Points		      [15, 0; 0, -30]
      DstBlock		      "Vehicle\nDynamics"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Induction to \nPower Stroke Delay"
      SrcPort		      1
      DstBlock		      "Combustion"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Speed Controller"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Speed\nReference"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Speed Controller"
      SrcPort		      1
      DstBlock		      "Computational\nDelay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Computational\nDelay"
      SrcPort		      1
      DstBlock		      "Throttle & Manifold"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Continuous\nZero Order Hold"
      SrcPort		      1
      Points		      [-410, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Annotation {
      Name		      "Spark Advance\n(Degrees)"
      Position		      [409, 254]
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    X     8    (     @         %    "
"\"     $    !     0         %  0 !@    $    ,    3F%M90  5F%L=64       X    P"
"    !@    @    $          4    (     0    $    !         !   0!P    #@   %@  "
"  &    \"     8         !0    @    %     0    $         \"0   \"@   #!.SD9FX8"
"4OP1S\\ROK,<<_$;8/%2R/LK\\&TI -O=\\_/_G%6+2*A*(_"
  }
}
