Model { Name "MarkIIIRevE" Version 7.2 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 3 Outport { BusObject "" BusOutputAsStruct "off" Name "A" } Outport { BusObject "" BusOutputAsStruct "off" Name "w" } Outport { BusObject "" BusOutputAsStruct "off" Name "O" } ParameterArgumentNames "" ComputedModelVersion "1.113" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" Created "Mon Jan 19 17:04:53 2009" Creator "Keith Wakeham" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Keith Wakeham" ModifiedDateFormat "%" LastModifiedDate "Sun Feb 22 21:16:00 2009" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "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 on ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.5.1" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 2 Version "1.5.1" StartTime "0" StopTime ".1" AbsTol "auto" FixedStep ".00003" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "0.001" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "ode4" SolverName "ode4" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } Simulink.DataIOCC { $ObjectID 3 Version "1.5.1" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "10000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.5.1" Array { Type "Cell" Dimension 4 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off EnforceIntegerDowncast on ExpressionFolding on EnableMemcpy on MemcpyThreshold 64 ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.5.1" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "warning" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "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 "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.5.1" 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.5.1" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.SFSimCC { $ObjectID 8 Version "1.5.1" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.5.1" Array { Type "Cell" Dimension 6 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" PropName "DisabledProps" } SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on 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 RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.5.1" Array { Type "Cell" Dimension 17 Cell "IgnoreCustomStorageClasses" Cell "IgnoreTestpoints" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.5.1" Array { Type "Cell" Dimension 16 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } hdlcoderui.hdlcc { $ObjectID 12 Version "1.5.1" Description "HDL Coder custom configuration component" Name "HDL Coder" Array { Type "Cell" Dimension 1 Cell "" PropName "HDLConfigFile" } HDLCActiveTab "0" } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" ConfigPrmDlgPosition " [ 400, 210, 1280, 840 ] " } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } 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" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" LockScale off SampleTime "inf" FramePeriod "inf" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off 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 ContinuousStateAttributes "''" } Block { BlockType Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" SampleTime "-1" } Block { BlockType MATLABFcn MATLABFcn "sin" OutputDimensions "-1" OutputSignalType "auto" Output1D on SampleTime "-1" } Block { BlockType Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } 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" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" ZeroCross on SampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } Block { BlockType Trigonometry Operator "sin" OutputSignalType "auto" SampleTime "-1" } } System { Name "MarkIIIRevE" Location [2, 82, 1678, 1026] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Atm Pressure(Pa)" Position [890, 385, 955, 415] Value "100000" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Atm Temp (K)" Position [980, 355, 1010, 385] Value "300" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Combustion" Ports [9, 1] Position [1050, 361, 1155, 589] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Combustion" Location [102, 129, 1578, 920] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Atm Temp" Position [595, 123, 625, 137] IconDisplay "Port number" } Block { BlockType Inport Name "Atm Pressure" Position [505, 143, 535, 157] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vs+Vc" Position [600, 163, 630, 177] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Theta" Position [30, 65, 60, 80] Orientation "down" Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Volume" Position [910, 163, 940, 177] Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Torque" Position [90, 248, 120, 262] Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Omega" Position [90, 293, 120, 307] Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "E Burn" Position [210, 153, 240, 167] Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "Cyl Dia" Position [100, 598, 130, 612] Port "9" IconDisplay "Port number" } Block { BlockType Scope Name "% Burn" Ports [1] Position [1000, 564, 1030, 596] Floating off Location [591, 417, 1435, 894] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.05" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Sum Name "Add1" Ports [2, 1] Position [490, 447, 520, 478] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add4" Ports [2, 1] Position [690, 492, 720, 523] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Burn Deg" Ports [2] Position [1055, 633, 1135, 702] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" xmin "0" xmax "720" ymin "0" ymax "1.1" st "-1" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [620, 457, 650, 493] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Initial Air Mass Calculator" Ports [3, 1] Position [660, 116, 795, 184] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Initial Air Mass Calculator" Location [85, 572, 840, 798] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [115, 28, 145, 42] IconDisplay "Port number" } Block { BlockType Inport Name "Pressure (Pa)" Position [155, 83, 185, 97] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Volume (m^3)" Position [155, 185, 185, 200] Orientation "up" Port "3" IconDisplay "Port number" } Block { BlockType Display Name "Angular Acc1" Ports [1] Position [225, 145, 380, 175] Format "long" Decimation "1" Lockdown off } Block { BlockType Product Name "Divide" Ports [2, 1] Position [390, 37, 420, 68] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide1" Ports [2, 1] Position [645, 67, 675, 98] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "P x V" Ports [2, 1] Position [235, 90, 285, 125] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "P x V1" Ports [2, 1] Position [250, 25, 300, 60] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "P x V2" Ports [2, 1] Position [525, 80, 575, 115] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "R" Position [25, 75, 115, 115] Value "8.314472" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "R1" Position [545, 161, 600, 199] Value "1000" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "R2" Position [385, 116, 440, 154] Value "28.97" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Mass (kg)" Position [700, 78, 730, 92] IconDisplay "Port number" } Line { SrcBlock "R" SrcPort 1 Points [0, -30; 115, 0] DstBlock "P x V1" DstPort 2 } Line { SrcBlock "P x V" SrcPort 1 Points [80, 0; 0, -65] DstBlock "Divide" DstPort 1 } Line { SrcBlock "P x V1" SrcPort 1 Points [35, 0; 0, 15] DstBlock "Divide" DstPort 2 } Line { SrcBlock "R2" SrcPort 1 Points [30, 0; 0, -30] DstBlock "P x V2" DstPort 2 } Line { SrcBlock "R1" SrcPort 1 Points [10, 0; 0, -90] DstBlock "Divide1" DstPort 2 } Line { SrcBlock "P x V2" SrcPort 1 Points [25, 0; 0, -25] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 Points [40, 0; 0, 35] DstBlock "P x V2" DstPort 1 } Line { SrcBlock "Pressure (Pa)" SrcPort 1 Points [0, 10] DstBlock "P x V" DstPort 1 } Line { SrcBlock "Volume (m^3)" SrcPort 1 Points [0, -15] Branch { Points [0, -50] DstBlock "P x V" DstPort 2 } Branch { Points [0, -5] DstBlock "Angular Acc1" DstPort 1 } } Line { SrcBlock "Temperature" SrcPort 1 DstBlock "P x V1" DstPort 1 } Line { SrcBlock "Divide1" SrcPort 1 DstBlock "Mass (kg)" DstPort 1 } } } Block { BlockType Constant Name "Initial Energy of Air (J/kg)" Position [470, 500, 535, 530] Value "300000" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Initial Position" Position [165, 506, 210, 534] Value "pi" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Initial Position1" Position [270, 631, 415, 669] Value "2*pi()-0.1570796326795" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Integrator Name "Integrator" Ports [2, 1] Position [325, 441, 365, 499] ExternalReset "rising" } Block { BlockType Product Name "P x V2" Ports [2, 1] Position [160, 275, 210, 310] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "P=nRT/V1" Ports [3, 1] Position [975, 116, 1110, 184] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "P=nRT/V1" Location [0, 76, 755, 456] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [60, 28, 90, 42] IconDisplay "Port number" } Block { BlockType Inport Name "m (kg)" Position [55, 138, 85, 152] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Volume (m^3)" Position [315, 165, 345, 180] Orientation "up" Port "3" IconDisplay "Port number" } Block { BlockType Product Name "Divide1" Ports [2, 1] Position [375, 42, 405, 73] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Mole Solver" Ports [2, 1] Position [165, 142, 195, 173] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "P x V1" Ports [4, 1] Position [250, 30, 300, 85] Inputs "4" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "R" Position [25, 75, 115, 115] Value "8.314472" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "R1" Position [100, 261, 155, 299] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "R2" Position [25, 180, 105, 220] Value "28.97*10^-3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Pressure" Position [590, 68, 620, 82] IconDisplay "Port number" } Line { SrcBlock "R1" SrcPort 1 Points [75, 0] DstBlock "P x V1" DstPort 4 } Line { SrcBlock "Divide1" SrcPort 1 Points [80, 0; 0, 15] DstBlock "Pressure" DstPort 1 } Line { SrcBlock "Volume (m^3)" SrcPort 1 Points [0, -95] DstBlock "Divide1" DstPort 2 } Line { SrcBlock "P x V1" SrcPort 1 Points [0, -10] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "Mole Solver" SrcPort 1 Points [15, 0; 0, -95] DstBlock "P x V1" DstPort 3 } Line { SrcBlock "R2" SrcPort 1 Points [25, 0; 0, -35] DstBlock "Mole Solver" DstPort 2 } Line { SrcBlock "m (kg)" SrcPort 1 Points [0, 5] DstBlock "Mole Solver" DstPort 1 } Line { SrcBlock "R" SrcPort 1 Points [30, 0; 0, -45] DstBlock "P x V1" DstPort 2 } Line { SrcBlock "Temperature" SrcPort 1 DstBlock "P x V1" DstPort 1 } } } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [240, 472, 270, 503] InputSameDT off LogicOutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType SubSystem Name "Sphere Burner" Ports [5, 2] Position [850, 591, 935, 679] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Sphere Burner" Location [409, 579, 1243, 817] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Cylinder Dia" Position [70, 28, 100, 42] IconDisplay "Port number" } Block { BlockType Inport Name "V" Position [75, 66, 110, 84] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "theta" Position [75, 116, 105, 134] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Spark theta" Position [190, 98, 220, 112] Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "1D Ub" Position [190, 128, 220, 142] Port "5" IconDisplay "Port number" } Block { BlockType SubSystem Name "Burn1" Ports [5, 2] Position [255, 48, 395, 122] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Burn1" Location [203, 238, 1396, 811] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Cylinder Diameter" Position [35, 78, 65, 92] IconDisplay "Port number" } Block { BlockType Inport Name "Volume" Position [150, 228, 180, 242] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Theta" Position [50, 401, 90, 419] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Spark abs" Position [95, 446, 135, 464] Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "1D Ub" Position [255, 326, 295, 344] Port "5" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" Position [235, 105, 265, 135] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [310, 77, 340, 108] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide1" Ports [2, 1] Position [280, 227, 310, 258] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide2" Ports [2, 1] Position [745, 177, 775, 208] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" Ports [2, 1] Position [370, 322, 410, 373] ExternalReset "rising" } Block { BlockType MATLABFcn Name "MATLAB Fcn1" Ports [1, 1] Position [545, 125, 605, 155] MATLABFcn "burn(u(1),u(2),u(3))" OutputSignalType "real" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [460, 83, 490, 197] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Fcn Name "Piston Area" Position [160, 270, 220, 300] Expr "pi()*(u(1)/2)^2" } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [280, 402, 310, 433] InputSameDT off LogicOutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Scope Name "Scope" Ports [1] Position [515, 309, 545, 341] Floating off Location [380, 117, 1435, 723] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "0.6" SaveName "ScopeData5" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [1] Position [430, 404, 460, 436] Floating off Location [867, 242, 1632, 814] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1" SaveName "ScopeData6" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope2" Ports [1] Position [380, 214, 410, 246] Floating off Location [188, 390, 512, 629] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0.00907778" YMax "0.0100333" SaveName "ScopeData7" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" Ports [1] Position [420, 24, 450, 56] Floating off Location [186, 504, 510, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0.04085" YMax "0.04515" SaveName "ScopeData8" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope4" Ports [1] Position [150, 349, 180, 381] Floating off Location [867, 242, 1632, 814] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "6.5" SaveName "ScopeData9" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Outport Name "Vburn" Position [655, 133, 685, 147] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "mb" Position [840, 193, 870, 207] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Spark abs" SrcPort 1 Points [40, 0; 0, -30] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Divide2" SrcPort 1 Points [20, 0; 0, 5] DstBlock "mb" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [15, 0; 0, -25] Branch { DstBlock "Scope" DstPort 1 } Branch { Points [0, -145] DstBlock "Mux" DstPort 3 } } Line { SrcBlock "Divide" SrcPort 1 Points [40, 0] Branch { Points [0, -55] DstBlock "Scope3" DstPort 1 } Branch { Points [10, 0; 0, 5] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "MATLAB Fcn1" DstPort 1 } Line { SrcBlock "Cylinder Diameter" SrcPort 1 Points [45, 0] Branch { Points [0, 200] DstBlock "Piston Area" DstPort 1 } Branch { DstBlock "Divide" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [15, 0; 0, -20] DstBlock "Divide" DstPort 2 } Line { SrcBlock "MATLAB Fcn1" SrcPort 1 Points [20, 0] Branch { Points [0, 45] DstBlock "Divide2" DstPort 1 } Branch { DstBlock "Vburn" DstPort 1 } } Line { SrcBlock "Volume" SrcPort 1 Points [60, 0] Branch { Points [0, -35] DstBlock "Divide2" DstPort 2 } Branch { DstBlock "Divide1" DstPort 1 } } Line { SrcBlock "Piston Area" SrcPort 1 Points [15, 0; 0, -35] DstBlock "Divide1" DstPort 2 } Line { SrcBlock "Divide1" SrcPort 1 Points [30, 0; 0, -15] Branch { DstBlock "Scope2" DstPort 1 } Branch { Points [0, -90] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "1D Ub" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Theta" SrcPort 1 Points [20, 0] Branch { Points [0, -45] DstBlock "Scope4" DstPort 1 } Branch { DstBlock "Relational\nOperator" DstPort 1 } } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [20, 0] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [0, -60] DstBlock "Integrator" DstPort 2 } } } } Block { BlockType SubSystem Name "Switch for Burn" Ports [2, 1] Position [520, 51, 590, 109] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Switch for Burn" Location [215, 512, 1201, 769] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Funct Input" Position [30, 33, 60, 47] IconDisplay "Port number" } Block { BlockType Inport Name "Crank Position" Position [30, 88, 60, 102] Port "2" IconDisplay "Port number" } Block { BlockType Constant Name "Before Burn Value" Position [290, 145, 355, 175] Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Switch Name "Intake\nCompression\nSwitch" Position [460, 80, 490, 110] Criteria "u2 > Threshold" Threshold "2*pi()-0.1570796326795" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "%" Position [730, 123, 760, 137] IconDisplay "Port number" } Line { SrcBlock "Intake\nCompression\nSwitch" SrcPort 1 Points [110, 0; 0, 35] DstBlock "%" DstPort 1 } Line { SrcBlock "Before Burn Value" SrcPort 1 Points [40, 0; 0, -55] DstBlock "Intake\nCompression\nSwitch" DstPort 3 } Line { SrcBlock "Funct Input" SrcPort 1 Points [20, 0; 0, 45] DstBlock "Intake\nCompression\nSwitch" DstPort 1 } Line { SrcBlock "Crank Position" SrcPort 1 DstBlock "Intake\nCompression\nSwitch" DstPort 2 } } } Block { BlockType Outport Name "Vburn" Position [420, 63, 450, 77] IconDisplay "Port number" } Block { BlockType Outport Name "% burn" Position [615, 73, 645, 87] Port "2" IconDisplay "Port number" } Line { SrcBlock "1D Ub" SrcPort 1 Points [15, 0] DstBlock "Burn1" DstPort 5 } Line { SrcBlock "Spark theta" SrcPort 1 Points [15, 0] DstBlock "Burn1" DstPort 4 } Line { SrcBlock "theta" SrcPort 1 Points [60, 0] Branch { Points [0, 35; 335, 0] DstBlock "Switch for Burn" DstPort 2 } Branch { Points [0, -40] DstBlock "Burn1" DstPort 3 } } Line { SrcBlock "Switch for Burn" SrcPort 1 DstBlock "% burn" DstPort 1 } Line { SrcBlock "Burn1" SrcPort 1 DstBlock "Vburn" DstPort 1 } Line { SrcBlock "V" SrcPort 1 Points [125, 0] DstBlock "Burn1" DstPort 2 } Line { SrcBlock "Cylinder Dia" SrcPort 1 Points [85, 0; 0, 20] DstBlock "Burn1" DstPort 1 } Line { SrcBlock "Burn1" SrcPort 2 Points [85, 0; 0, -40] DstBlock "Switch for Burn" DstPort 1 } } } Block { BlockType SubSystem Name "Switch For Heat Addition1" Ports [3, 1] Position [1165, 109, 1325, 181] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Switch For Heat Addition1" Location [103, 463, 1089, 720] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "C/P Strok\nPressure" Position [30, 33, 60, 47] IconDisplay "Port number" } Block { BlockType Inport Name "Crank Position" Position [30, 88, 60, 102] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Atmospheric Pressure" Position [55, 153, 85, 167] Port "3" IconDisplay "Port number" } Block { BlockType Switch Name "Compression\nExpansion\nSwitch" Position [470, 70, 500, 100] Criteria "u2 > Threshold" Threshold "2*pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Expansion\nExhaust\nSwitch" Position [550, 25, 580, 55] Criteria "u2 > Threshold" Threshold "3*pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Intake\nCompression\nSwitch" Position [175, 80, 205, 110] Criteria "u2 > Threshold" Threshold "pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Piston Pressure" Position [655, 33, 685, 47] IconDisplay "Port number" } Line { SrcBlock "Atmospheric Pressure" SrcPort 1 Points [20, 0; 0, -55] Branch { Points [0, -75] DstBlock "Expansion\nExhaust\nSwitch" DstPort 1 } Branch { DstBlock "Intake\nCompression\nSwitch" DstPort 3 } } Line { SrcBlock "C/P Strok\nPressure" SrcPort 1 Points [20, 0; 0, 10] Branch { Points [210, 0; 0, 25] DstBlock "Compression\nExpansion\nSwitch" DstPort 1 } Branch { Points [0, 35] DstBlock "Intake\nCompression\nSwitch" DstPort 1 } } Line { SrcBlock "Expansion\nExhaust\nSwitch" SrcPort 1 DstBlock "Piston Pressure" DstPort 1 } Line { SrcBlock "Crank Position" SrcPort 1 Points [75, 0] Branch { Points [0, 75; 115, 0; 0, -85; 140, 0] Branch { Points [0, -45] DstBlock "Expansion\nExhaust\nSwitch" DstPort 2 } Branch { DstBlock "Compression\nExpansion\nSwitch" DstPort 2 } } Branch { DstBlock "Intake\nCompression\nSwitch" DstPort 2 } } Line { SrcBlock "Compression\nExpansion\nSwitch" SrcPort 1 Points [30, 0] DstBlock "Expansion\nExhaust\nSwitch" DstPort 3 } Line { SrcBlock "Intake\nCompression\nSwitch" SrcPort 1 DstBlock "Compression\nExpansion\nSwitch" DstPort 3 } } } Block { BlockType ToWorkspace Name "To Workspace" Position [1085, 560, 1145, 590] VariableName "burn1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [1160, 700, 1220, 730] VariableName "deg1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "U -> T1" Ports [1, 1] Position [735, 475, 875, 545] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "U -> T1" Location [294, 271, 710, 483] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Internal Energy" Position [25, 28, 55, 42] IconDisplay "Port number" } Block { BlockType Constant Name "Holder" Position [65, 80, 130, 110] Value "1000" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "This stuff is place holders\nDelete this multiplication block and the time holder\nblock" Ports [2, 1] Position [185, 87, 240, 138] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Temperature" Position [315, 93, 345, 107] IconDisplay "Port number" } Line { SrcBlock "Holder" SrcPort 1 Points [0, 30] DstBlock "This stuff is place holders\nDelete this multiplication block and the time holder\nblock" DstPort 2 } Line { SrcBlock "This stuff is place holders\nDelete this multiplication block and the time holder\nblock" SrcPort 1 Points [50, 0; 0, -15] DstBlock "Temperature" DstPort 1 } Line { SrcBlock "Internal Energy" SrcPort 1 Points [110, 0] DstBlock "This stuff is place holders\nDelete this multiplication block and the time holder\nblock" DstPort 1 } } } Block { BlockType Constant Name "Velocity of Burn" Position [470, 673, 515, 707] Value "14.5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Weibe" Ports [2, 1] Position [275, 109, 350, 176] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Weibe" Location [537, 437, 1280, 782] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Theta" Position [45, 218, 75, 232] IconDisplay "Port number" } Block { BlockType Inport Name "E of Burn (J)" Position [340, 118, 370, 132] Port "2" IconDisplay "Port number" } Block { BlockType Product Name "% * E" Ports [2, 1] Position [550, 180, 600, 215] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Fcn Name "Fcn" Position [125, 165, 185, 195] Expr "1-(exp(-5*((u(1)-((17/9)*pi))/(pi*0.25))^3))" } Block { BlockType SubSystem Name "Switch for Weibe" Ports [2, 1] Position [265, 157, 390, 248] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Switch for Weibe" Location [215, 512, 1201, 769] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Weibe Input" Position [30, 33, 60, 47] IconDisplay "Port number" } Block { BlockType Inport Name "Crank Position" Position [30, 88, 60, 102] Port "2" IconDisplay "Port number" } Block { BlockType Constant Name "After Burn Value" Position [175, 15, 240, 45] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Before Burn Value" Position [20, 145, 85, 175] Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Switch Name "Compression\nExpansion\nSwitch" Position [470, 70, 500, 100] Criteria "u2 > Threshold" Threshold "(17/9+0.25)*pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Expansion\nExhaust\nSwitch" Position [550, 25, 580, 55] Criteria "u2 > Threshold" Threshold "3*pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Intake\nCompression\nSwitch" Position [175, 80, 205, 110] Criteria "u2 > Threshold" Threshold "(17/9)*pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "% E released" Position [655, 33, 685, 47] IconDisplay "Port number" } Line { SrcBlock "Before Burn Value" SrcPort 1 Points [20, 0; 0, -55] DstBlock "Intake\nCompression\nSwitch" DstPort 3 } Line { SrcBlock "Weibe Input" SrcPort 1 Points [20, 0; 0, 45] DstBlock "Intake\nCompression\nSwitch" DstPort 1 } Line { SrcBlock "Expansion\nExhaust\nSwitch" SrcPort 1 DstBlock "% E released" DstPort 1 } Line { SrcBlock "Crank Position" SrcPort 1 Points [75, 0] Branch { Points [0, 75; 115, 0; 0, -85; 140, 0] Branch { Points [0, -45] DstBlock "Expansion\nExhaust\nSwitch" DstPort 2 } Branch { DstBlock "Compression\nExpansion\nSwitch" DstPort 2 } } Branch { DstBlock "Intake\nCompression\nSwitch" DstPort 2 } } Line { SrcBlock "Compression\nExpansion\nSwitch" SrcPort 1 Points [30, 0] DstBlock "Expansion\nExhaust\nSwitch" DstPort 3 } Line { SrcBlock "Intake\nCompression\nSwitch" SrcPort 1 DstBlock "Compression\nExpansion\nSwitch" DstPort 3 } Line { SrcBlock "After Burn Value" SrcPort 1 Points [0, 5; 205, 0] Branch { Points [5, 0] DstBlock "Compression\nExpansion\nSwitch" DstPort 1 } Branch { Points [0, -5] DstBlock "Expansion\nExhaust\nSwitch" DstPort 1 } } } } Block { BlockType Outport Name "Energy " Position [670, 193, 700, 207] IconDisplay "Port number" } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "Switch for Weibe" DstPort 1 } Line { SrcBlock "Theta" SrcPort 1 Points [15, 0] Branch { DstBlock "Switch for Weibe" DstPort 2 } Branch { Points [0, -45] DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "% * E" SrcPort 1 DstBlock "Energy " DstPort 1 } Line { SrcBlock "Switch for Weibe" SrcPort 1 DstBlock "% * E" DstPort 2 } Line { SrcBlock "E of Burn (J)" SrcPort 1 Points [80, 0; 0, 65] DstBlock "% * E" DstPort 1 } } } Block { BlockType Fcn Name "rad -> deg" Position [885, 700, 945, 730] Expr "u(1)*(360/(2*pi()))" } Block { BlockType Outport Name "Pressure" Position [1345, 138, 1375, 152] IconDisplay "Port number" } Line { Labels [0, 0] SrcBlock "Atm Pressure" SrcPort 1 Points [15, 0] Branch { Points [0, 55; 595, 0] DstBlock "Switch For Heat Addition1" DstPort 3 } Branch { DstBlock "Initial Air Mass Calculator" DstPort 2 } } Line { SrcBlock "Atm Temp" SrcPort 1 DstBlock "Initial Air Mass Calculator" DstPort 1 } Line { SrcBlock "P x V2" SrcPort 1 Points [10, 0; 0, 160] DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Weibe" SrcPort 1 Points [100, 0; 0, 310] DstBlock "Add1" DstPort 1 } Line { SrcBlock "Theta" SrcPort 1 Points [0, 40] Branch { Labels [0, 0] Points [0, 355] DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [205, 0] Branch { DstBlock "Weibe" DstPort 1 } Branch { Points [0, -45; 885, 0; 0, 65] DstBlock "Switch For Heat Addition1" DstPort 2 } } Branch { Labels [3, 0] Points [0, 230; -20, 0; 0, 390; 835, 0; 0, -30] Branch { DstBlock "rad -> deg" DstPort 1 } Branch { Points [-65, 0; 0, -80] DstBlock "Sphere Burner" DstPort 3 } } } Line { SrcBlock "Volume" SrcPort 1 Points [10, 0] Branch { DstBlock "P=nRT/V1" DstPort 3 } Branch { Labels [2, 0] Points [0, 180; -235, 0; 0, 270] DstBlock "Sphere Burner" DstPort 2 } } Line { SrcBlock "Torque" SrcPort 1 Points [20, 0] DstBlock "P x V2" DstPort 1 } Line { SrcBlock "Omega" SrcPort 1 DstBlock "P x V2" DstPort 2 } Line { SrcBlock "Vs+Vc" SrcPort 1 DstBlock "Initial Air Mass Calculator" DstPort 3 } Line { SrcBlock "Initial Air Mass Calculator" SrcPort 1 Points [30, 0] Branch { Points [0, 75; -235, 0; 0, 260] DstBlock "Divide" DstPort 2 } Branch { DstBlock "P=nRT/V1" DstPort 2 } } Line { SrcBlock "E Burn" SrcPort 1 DstBlock "Weibe" DstPort 2 } Line { SrcBlock "Initial Energy of Air (J/kg)" SrcPort 1 DstBlock "Add4" DstPort 2 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Add1" DstPort 2 } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Divide" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 Points [20, 0] DstBlock "Add4" DstPort 1 } Line { SrcBlock "Add4" SrcPort 1 DstBlock "U -> T1" DstPort 1 } Line { SrcBlock "U -> T1" SrcPort 1 Points [15, 0; 0, -380] DstBlock "P=nRT/V1" DstPort 1 } Line { SrcBlock "Initial Position" SrcPort 1 Points [0, -25] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Integrator" DstPort 2 } Line { SrcBlock "P=nRT/V1" SrcPort 1 Points [5, 0; 0, -30] DstBlock "Switch For Heat Addition1" DstPort 1 } Line { SrcBlock "Switch For Heat Addition1" SrcPort 1 DstBlock "Pressure" DstPort 1 } Line { Labels [0, 0] SrcBlock "Cyl Dia" SrcPort 1 DstBlock "Sphere Burner" DstPort 1 } Line { SrcBlock "Initial Position1" SrcPort 1 DstBlock "Sphere Burner" DstPort 4 } Line { SrcBlock "Velocity of Burn" SrcPort 1 Points [0, -25] DstBlock "Sphere Burner" DstPort 5 } Line { SrcBlock "Sphere Burner" SrcPort 2 Points [20, 0] Branch { Points [25, 0; 0, -40] Branch { Points [85, 0] DstBlock "To Workspace" DstPort 1 } Branch { DstBlock "% Burn" DstPort 1 } } Branch { Points [0, 25] DstBlock "Burn Deg" DstPort 2 } } Line { SrcBlock "rad -> deg" SrcPort 1 Points [80, 0] Branch { DstBlock "To Workspace1" DstPort 1 } Branch { Points [0, -65] DstBlock "Burn Deg" DstPort 1 } } Annotation { Position [680, 464] } } } Block { BlockType Constant Name "Compression Ratio x:1" Position [40, 590, 105, 620] Value "10" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Connecting Rod Length (m)" Position [45, 305, 100, 335] Value ".11" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Crank Case Pressure (Pa)" Position [40, 455, 105, 485] Value "100000" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Crank Position" Ports [3, 3] Position [260, 55, 365, 205] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Crank Position" Location [387, 231, 1357, 841] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Crank Inertia" Position [110, 128, 140, 142] IconDisplay "Port number" } Block { BlockType Inport Name "Torque" Position [30, 88, 60, 102] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Initial RPM" Position [145, 259, 175, 281] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Display Name "Angular Acc" Ports [1] Position [320, 90, 410, 120] Decimation "1" Lockdown off } Block { BlockType Product Name "Divide" Ports [2, 1] Position [170, 87, 200, 118] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Initial Position" Position [365, 355, 395, 385] Value "3*pi" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Initial Position3" Position [365, 405, 395, 435] Value "4*pi" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Integrator Name "Integrator1" Ports [2, 1] Position [340, 268, 385, 337] ExternalReset "falling" } Block { BlockType Integrator Name "Integrator2" Ports [2, 1] Position [245, 218, 290, 287] InitialConditionSource "external" } Block { BlockType Integrator Name "Integrator3" Ports [2, 1] Position [130, 388, 175, 457] ExternalReset "falling" } Block { BlockType Logic Name "Logical\nOperator" Ports [2, 1] Position [550, 357, 580, 388] AllPortsSameDT off OutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Scope Name "Omega" Ports [1] Position [525, 244, 555, 276] Floating off Location [135, 76, 1435, 894] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "750" SaveName "ScopeData1" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Scope Name "Omega dot" Ports [1] Position [410, 149, 440, 181] Floating off Location [307, 226, 631, 465] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Scope Name "Omega1" Ports [1] Position [640, 369, 670, 401] Floating off Location [135, 76, 1435, 894] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1" SaveName "ScopeData12" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [465, 332, 495, 363] InputSameDT off LogicOutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType RelationalOperator Name "Relational\nOperator3" Position [460, 397, 490, 428] Operator "<=" InputSameDT off LogicOutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Reference Name "Sample & Hold" Ports [2, 1] Position [230, 470, 270, 510] DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Control \nBlocks/Sample & Hold" SourceType "Sample & Hold " ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ic "0" } Block { BlockType Scope Name "Torque1" Ports [1] Position [130, 24, 160, 56] Floating off Location [135, 76, 1435, 894] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "750" SaveName "ScopeData10" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Scope Name "Torquhmmm" Ports [1] Position [245, 409, 275, 441] Floating off Location [127, 108, 962, 603] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.3" YMax "1.8" SaveName "ScopeData4" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Scope Name "Torquhmmm1" Ports [1] Position [320, 474, 350, 506] Floating off Location [345, 343, 1230, 759] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "1.7805" YMax "1.78575" SaveName "ScopeData11" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Outport Name "A" Position [380, 28, 410, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "w" Position [440, 223, 470, 237] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "O" Position [645, 298, 675, 312] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Divide" SrcPort 1 Points [25, 0] Branch { DstBlock "Angular Acc" DstPort 1 } Branch { Points [0, -70] DstBlock "A" DstPort 1 } Branch { DstBlock "Integrator2" DstPort 1 } } Line { SrcBlock "Integrator2" SrcPort 1 Points [15, 0] Branch { Points [85, 0; 0, -25] Branch { DstBlock "Omega dot" DstPort 1 } Branch { DstBlock "w" DstPort 1 } } Branch { Points [0, 30] DstBlock "Integrator1" DstPort 1 } } Line { SrcBlock "Integrator1" SrcPort 1 Points [5, 0] Branch { Points [0, -45] DstBlock "Omega" DstPort 1 } Branch { Points [100, 0] Branch { Points [-100, 0; 0, 35; 35, 0] Branch { DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 1 } } Branch { DstBlock "O" DstPort 1 } } } Line { SrcBlock "Initial Position" SrcPort 1 Points [50, 0] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Crank Inertia" SrcPort 1 Points [10, 0] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Torque" SrcPort 1 Points [15, 0] Branch { DstBlock "Divide" DstPort 1 } Branch { Points [0, 310] DstBlock "Integrator3" DstPort 1 } Branch { Points [0, -55] DstBlock "Torque1" DstPort 1 } } Line { SrcBlock "Initial RPM" SrcPort 1 DstBlock "Integrator2" DstPort 2 } Line { SrcBlock "Integrator3" SrcPort 1 Points [10, 0] Branch { DstBlock "Torquhmmm" DstPort 1 } Branch { Points [0, 55] DstBlock "Sample & Hold" DstPort 1 } } Line { SrcBlock "Sample & Hold" SrcPort 1 DstBlock "Torquhmmm1" DstPort 1 } Line { SrcBlock "Initial Position3" SrcPort 1 DstBlock "Relational\nOperator3" DstPort 2 } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [0, 15] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 Points [15, 0; 0, 10] Branch { DstBlock "Omega1" DstPort 1 } Branch { Points [0, 75; -140, 0] Branch { Points [-135, 0] DstBlock "Integrator1" DstPort 2 } Branch { Points [0, 95; -265, 0] Branch { Points [-80, 0] DstBlock "Integrator3" DstPort 2 } Branch { Points [0, -55] DstBlock "Sample & Hold" DstPort 2 } } } } Line { SrcBlock "Relational\nOperator3" SrcPort 1 Points [15, 0; 0, -35] DstBlock "Logical\nOperator" DstPort 2 } } } Block { BlockType Constant Name "Crank offeset (half stroke) (m)" Position [45, 250, 105, 280] Value "0.0415" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Energy Input (J)" Position [940, 570, 1005, 600] Value "500" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Gas Prop" Ports [1, 14] Position [1250, 357, 1355, 773] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Gas Prop" Location [341, 112, 1227, 825] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temp" Position [85, 68, 115, 82] IconDisplay "Port number" } Block { BlockType SubSystem Name "C12H26" Ports [1, 1] Position [525, 34, 660, 106] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "C12H26" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType SubSystem Name "C8H18" Ports [1, 1] Position [215, 614, 350, 686] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "C8H18" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "CH4" Ports [1, 1] Position [525, 134, 660, 206] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "CH4" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "CO" Ports [1, 1] Position [215, 139, 350, 211] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "CO" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType SubSystem Name "CO2" Ports [1, 1] Position [215, 39, 350, 111] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "CO2" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(3.25125E1)+(2*(1.60781E-2)*u(1)^1)+(3*(-4.40782E-6)*u(1)^2)+(4*(6.03402E-10)*u(1)^3)+(5*(-3.19576" "E-14)*u(1)^4)" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "((3.25125E1)-8.3143)+(1.60781E-2)*u(1)^1+(-4.40782E-6)*u(1)^2+(6.03402E-10)*u(1)^3+(-3.19576E-14)*" "u(1)^4" } Block { BlockType Display Name "Display" Ports [1] Position [495, 30, 585, 60] Decimation "1" Lockdown off } Block { BlockType Display Name "Display1" Ports [1] Position [495, 90, 585, 120] Decimation "1" Lockdown off } Block { BlockType Display Name "Display2" Ports [1] Position [495, 244, 635, 276] Format "long" Decimation "1" Lockdown off } Block { BlockType Display Name "Display3" Ports [1] Position [495, 335, 585, 365] Decimation "1" Lockdown off } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(8.53180E3)+(3.25125E1)*u(1)+(1.60781E-2)*u(1)^2+(-4.40782E-6)*u(1)^3+(6.03402E-10)*u(1)^4+(-3.195" "76E-14)*u(1)^5" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 425, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(8.53180E3)+((3.25125E1)-8.3143)*u(1)+(1.60781E-2)*u(1)^2+(-4.40782E-6)*u(1)^3+(6.03402E-10)*u(1)^" "4+(-3.19576E-14)*u(1)^5" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 Points [30, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [0, -55] DstBlock "Display" DstPort 1 } } Line { SrcBlock "U" SrcPort 1 Points [30, 0] Branch { DstBlock "Mux" DstPort 2 } Branch { Points [0, -70] DstBlock "Display1" DstPort 1 } } Line { SrcBlock "Cp" SrcPort 1 Points [20, 0] Branch { DstBlock "Mux" DstPort 3 } Branch { Points [0, 10] DstBlock "Display2" DstPort 1 } } Line { SrcBlock "Cv" SrcPort 1 Points [30, 0] Branch { DstBlock "Mux" DstPort 4 } Branch { Points [0, 25] DstBlock "Display3" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "H" Ports [1, 1] Position [525, 229, 660, 301] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "H" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType SubSystem Name "H2" Ports [1, 1] Position [215, 519, 350, 591] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "H2" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType SubSystem Name "H2O" Ports [1, 1] Position [215, 334, 350, 406] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "H2O" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType SubSystem Name "N" Ports [1, 1] Position [525, 329, 660, 401] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "N" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "N2" Ports [1, 1] Position [215, 234, 350, 306] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "N2" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "NO" Ports [1, 1] Position [525, 429, 660, 501] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "NO" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType SubSystem Name "O" Ports [1, 1] Position [525, 514, 660, 586] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "O" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "O2" Ports [1, 1] Position [215, 434, 350, 506] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "O2" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, 10] DstBlock "U" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Cp" DstPort 1 } Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } } Branch { Points [0, -65] DstBlock "H" DstPort 1 } } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } } } Block { BlockType SubSystem Name "OH" Ports [1, 1] Position [525, 609, 660, 681] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "OH" Location [409, 240, 1164, 694] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Temperature" Position [50, 158, 80, 172] IconDisplay "Port number" } Block { BlockType Fcn Name "Cp" Position [285, 235, 345, 265] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "Cv" Position [285, 310, 345, 340] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Fcn Name "H" Position [280, 85, 340, 115] Expr "(2.75270E+1)+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E-15)*u(" "1)^4" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [410, 65, 445, 360] ShowName off DisplayOption "bar" } Block { BlockType Fcn Name "U" Position [285, 160, 345, 190] Expr "(2.75270E+1)-8.3143+2*(4.90270E-3)*u(1)+3*(-1.12290E-6)*u(1)^2+4*(1.56948E-10)*u(1)^3+5*(-8.99417E" "-15)*u(1)^4" } Block { BlockType Outport Name "Gas Properties" Position [550, 208, 580, 222] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gas Properties" DstPort 1 } Line { SrcBlock "Cv" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Cp" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "U" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "H" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Temperature" SrcPort 1 Points [120, 0] Branch { Points [0, -65] DstBlock "H" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 75] DstBlock "Cv" DstPort 1 } Branch { DstBlock "Cp" DstPort 1 } } Branch { Points [0, 10] DstBlock "U" DstPort 1 } } } } Block { BlockType Outport Name "CO Gas Prop" Position [385, 168, 415, 182] IconDisplay "Port number" } Block { BlockType Outport Name "CO2 Gas Prop" Position [390, 68, 420, 82] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "N2 Gas Prop" Position [385, 263, 415, 277] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "H2O Gas Prop" Position [385, 363, 415, 377] Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "O2 Gas Prop" Position [385, 463, 415, 477] Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "H2 Gas Prop" Position [385, 548, 415, 562] Port "6" IconDisplay "Port number" } Block { BlockType Outport Name "C8H18 Gas Prop" Position [385, 643, 415, 657] Port "7" IconDisplay "Port number" } Block { BlockType Outport Name "CH4 Gas Prop" Position [695, 163, 725, 177] Port "8" IconDisplay "Port number" } Block { BlockType Outport Name "C12H26 Gas Prop2" Position [700, 63, 730, 77] Port "9" IconDisplay "Port number" } Block { BlockType Outport Name "H Gas Prop" Position [695, 258, 725, 272] Port "10" IconDisplay "Port number" } Block { BlockType Outport Name "N Gas Prop" Position [695, 358, 725, 372] Port "11" IconDisplay "Port number" } Block { BlockType Outport Name "NO Gas Prop" Position [695, 458, 725, 472] Port "12" IconDisplay "Port number" } Block { BlockType Outport Name "O Gas Prop" Position [695, 543, 725, 557] Port "13" IconDisplay "Port number" } Block { BlockType Outport Name "OH Gas Prop" Position [695, 638, 725, 652] Port "14" IconDisplay "Port number" } Line { SrcBlock "CO" SrcPort 1 DstBlock "CO Gas Prop" DstPort 1 } Line { SrcBlock "Temp" SrcPort 1 Points [60, 0] Branch { DstBlock "CO2" DstPort 1 } Branch { Points [0, 100] Branch { DstBlock "CO" DstPort 1 } Branch { Points [0, 95] Branch { DstBlock "N2" DstPort 1 } Branch { Points [0, 100] Branch { DstBlock "H2O" DstPort 1 } Branch { Points [0, 100] Branch { DstBlock "O2" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "H2" DstPort 1 } Branch { Points [0, 95] DstBlock "C8H18" DstPort 1 } } } } } } Branch { Points [0, -65; 310, 0; 0, 60] Branch { Points [0, 100] Branch { Points [0, 95] Branch { Points [0, 100] Branch { Points [0, 100] Branch { Points [0, 85] Branch { Points [0, 95] DstBlock "OH" DstPort 1 } Branch { DstBlock "O" DstPort 1 } } Branch { DstBlock "NO" DstPort 1 } } Branch { DstBlock "N" DstPort 1 } } Branch { DstBlock "H" DstPort 1 } } Branch { DstBlock "CH4" DstPort 1 } } Branch { DstBlock "C12H26" DstPort 1 } } } Line { SrcBlock "CO2" SrcPort 1 DstBlock "CO2 Gas Prop" DstPort 1 } Line { SrcBlock "N2" SrcPort 1 DstBlock "N2 Gas Prop" DstPort 1 } Line { SrcBlock "H2O" SrcPort 1 DstBlock "H2O Gas Prop" DstPort 1 } Line { SrcBlock "O2" SrcPort 1 DstBlock "O2 Gas Prop" DstPort 1 } Line { SrcBlock "H2" SrcPort 1 DstBlock "H2 Gas Prop" DstPort 1 } Line { SrcBlock "C8H18" SrcPort 1 DstBlock "C8H18 Gas Prop" DstPort 1 } Line { SrcBlock "CH4" SrcPort 1 DstBlock "CH4 Gas Prop" DstPort 1 } Line { SrcBlock "C12H26" SrcPort 1 DstBlock "C12H26 Gas Prop2" DstPort 1 } Line { SrcBlock "H" SrcPort 1 DstBlock "H Gas Prop" DstPort 1 } Line { SrcBlock "N" SrcPort 1 DstBlock "N Gas Prop" DstPort 1 } Line { SrcBlock "NO" SrcPort 1 DstBlock "NO Gas Prop" DstPort 1 } Line { SrcBlock "O" SrcPort 1 DstBlock "O Gas Prop" DstPort 1 } Line { SrcBlock "OH" SrcPort 1 DstBlock "OH Gas Prop" DstPort 1 } } } Block { BlockType Constant Name "Inertia" Position [45, 55, 75, 85] Value "25" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Initial rad/s" Position [35, 155, 130, 185] Value "251.327" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "P vs theta" Ports [2] Position [1220, 143, 1300, 212] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" xmin "0" xmax "4.5*pi" ymin "0" ymax "3e6" st "-1" } Block { BlockType Constant Name "Piston Diameter (m)" Position [40, 405, 100, 435] Value "0.083" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Piston Force" Ports [3, 3] Position [175, 397, 345, 543] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Piston Force" Location [480, 289, 1261, 752] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Piston Dia (m)" Position [180, 83, 210, 97] IconDisplay "Port number" } Block { BlockType Inport Name "Case Pressure" Position [140, 233, 170, 247] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Piston Pressure Top" Position [195, 335, 225, 350] Orientation "up" Port "3" IconDisplay "Port number" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [240, 222, 270, 253] Inputs "-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Force" Ports [2, 1] Position [410, 157, 440, 188] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Fcn Name "P area" Position [235, 75, 295, 105] Expr "pi*(u/2)^2" } Block { BlockType Outport Name "Piston Force" Position [600, 158, 630, 172] IconDisplay "Port number" } Block { BlockType Outport Name "Piston Area" Position [330, 148, 360, 162] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Piston\nPressure" Position [370, 303, 400, 317] Port "3" IconDisplay "Port number" } Line { SrcBlock "P area" SrcPort 1 Points [10, 0] Branch { Points [85, 0] DstBlock "Force" DstPort 1 } Branch { Points [5, 0] DstBlock "Piston Area" DstPort 1 } } Line { SrcBlock "Add" SrcPort 1 Points [25, 0] Branch { Points [95, 0] DstBlock "Force" DstPort 2 } Branch { Points [55, 0] DstBlock "Piston\nPressure" DstPort 1 } } Line { SrcBlock "Piston Pressure Top" SrcPort 1 Points [15, 0] DstBlock "Add" DstPort 2 } Line { SrcBlock "Piston Dia (m)" SrcPort 1 DstBlock "P area" DstPort 1 } Line { SrcBlock "Force" SrcPort 1 Points [0, -10] DstBlock "Piston Force" DstPort 1 } Line { SrcBlock "Case Pressure" SrcPort 1 Points [0, -10] DstBlock "Add" DstPort 1 } } } Block { BlockType SubSystem Name "Piston Position based on Geometry" Ports [6, 4] Position [465, 344, 665, 561] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Piston Position based on Geometry" Location [70, 219, 1365, 852] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Crank Offset" Position [25, 28, 55, 42] IconDisplay "Port number" } Block { BlockType Inport Name "Omega" Position [200, 33, 230, 47] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Connecting Rod Length" Position [95, 83, 125, 97] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Piston Area" Position [15, 200, 45, 215] Orientation "down" Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Piston Force" Position [530, 343, 560, 357] Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Compression Ratio" Position [195, 418, 225, 432] Port "6" IconDisplay "Port number" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [720, 517, 750, 548] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Clearance Volume Solver" Ports [3, 2] Position [250, 365, 445, 435] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Clearance Volume Solver" Location [269, 153, 957, 484] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Piston Area" Position [200, 65, 230, 80] Orientation "down" IconDisplay "Port number" } Block { BlockType Inport Name "Half Stroke" Position [100, 68, 130, 82] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Compression Ratio" Position [95, 198, 125, 212] Port "3" IconDisplay "Port number" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [435, 157, 465, 188] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Fcn Name "Fcn" Position [195, 190, 255, 220] Expr "u-1" } Block { BlockType Constant Name "Stroke" Position [70, 125, 135, 155] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Swept Volume calc" Ports [3, 1] Position [230, 91, 270, 149] Inputs "3" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Clearance Volume" Position [550, 168, 580, 182] IconDisplay "Port number" } Block { BlockType Outport Name "Swept Volume" Position [385, 73, 415, 87] Port "2" IconDisplay "Port number" } Line { SrcBlock "Stroke" SrcPort 1 DstBlock "Swept Volume calc" DstPort 3 } Line { SrcBlock "Fcn" SrcPort 1 Points [160, 0] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Swept Volume calc" SrcPort 1 Points [70, 0; 0, 45; 20, 0] Branch { DstBlock "Divide" DstPort 1 } Branch { Points [-10, 0; 0, -85] DstBlock "Swept Volume" DstPort 1 } } Line { SrcBlock "Piston Area" SrcPort 1 DstBlock "Swept Volume calc" DstPort 1 } Line { SrcBlock "Half Stroke" SrcPort 1 Points [25, 0; 0, 45] DstBlock "Swept Volume calc" DstPort 2 } Line { SrcBlock "Divide" SrcPort 1 DstBlock "Clearance Volume" DstPort 1 } Line { SrcBlock "Compression Ratio" SrcPort 1 DstBlock "Fcn" DstPort 1 } } } Block { BlockType SubSystem Name "Phi solver" Ports [3, 1] Position [395, 222, 540, 298] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Phi solver" Location [620, 446, 1272, 804] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Omega" Position [25, 25, 55, 40] Orientation "down" IconDisplay "Port number" } Block { BlockType Inport Name "Crank offset (half Stroke)" Position [80, 158, 110, 172] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Connecting Rod Length" Position [200, 198, 230, 212] Port "3" IconDisplay "Port number" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [250, 97, 280, 128] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Inverse to Phi" Ports [1, 1] Position [330, 100, 360, 130] Operator "asin" } Block { BlockType Product Name "Product" Ports [2, 1] Position [170, 87, 200, 118] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [55, 45, 85, 75] } Block { BlockType Outport Name "Phi" Position [385, 108, 415, 122] IconDisplay "Port number" } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [30, 0; 0, 35] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Divide" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 DstBlock "Inverse to Phi" DstPort 1 } Line { SrcBlock "Omega" SrcPort 1 DstBlock "Trigonometric\nFunction" DstPort 1 } Line { SrcBlock "Crank offset (half Stroke)" SrcPort 1 Points [0, -55] DstBlock "Product" DstPort 2 } Line { SrcBlock "Connecting Rod Length" SrcPort 1 DstBlock "Divide" DstPort 2 } Line { SrcBlock "Inverse to Phi" SrcPort 1 DstBlock "Phi" DstPort 1 } } } Block { BlockType SubSystem Name "Piston Resolver" Ports [3, 1] Position [315, 26, 480, 104] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Piston Resolver" Location [374, 271, 1305, 778] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Crank Position" Position [250, 28, 280, 42] Orientation "left" IconDisplay "Port number" } Block { BlockType Inport Name "Crank Length A" Position [85, 178, 115, 192] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Crank Length L" Position [25, 243, 55, 257] Port "3" IconDisplay "Port number" } Block { BlockType Math Name "Math\nFunction" Ports [1, 1] Position [605, 370, 635, 400] Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product" Ports [2, 1] Position [255, 162, 285, 193] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [215, 227, 245, 258] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [105, 242, 135, 273] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [435, 247, 465, 278] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" Ports [2, 1] Position [380, 207, 410, 238] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Subtract" Ports [2, 1] Position [540, 367, 570, 398] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [630, 170, 650, 190] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [160, 90, 190, 120] Operator "cos" OutputSignalType "real" } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" Ports [1, 1] Position [265, 90, 295, 120] OutputSignalType "real" } Block { BlockType Outport Name "Length S" Position [700, 173, 730, 187] IconDisplay "Port number" } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [20, 0; 0, 65] DstBlock "Product" DstPort 1 } Line { SrcBlock "Crank Length A" SrcPort 1 Points [50, 0] Branch { Points [0, 50; 20, 0] Branch { Points [0, 15] DstBlock "Product1" DstPort 2 } Branch { DstBlock "Product1" DstPort 1 } } Branch { DstBlock "Product" DstPort 2 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Crank Length L" SrcPort 1 Points [15, 0] Branch { Points [0, 15] DstBlock "Product2" DstPort 2 } Branch { DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [45, 0; 0, 110; 0, 0] Branch { DstBlock "Product4" DstPort 1 } Branch { Points [0, 15] DstBlock "Product4" DstPort 2 } } Line { SrcBlock "Product2" SrcPort 1 Points [10, 0; 0, 115] DstBlock "Subtract" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 Points [30, 0; 0, 125] DstBlock "Subtract" DstPort 2 } Line { SrcBlock "Subtract" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Crank Position" SrcPort 1 Points [-15, 0] Branch { Points [-85, 0] DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, 70] DstBlock "Trigonometric\nFunction1" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Length S" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [85, 0; 0, 25] DstBlock "Product3" DstPort 2 } Line { SrcBlock "Product4" SrcPort 1 Points [5, 0] DstBlock "Product3" DstPort 1 } } } Block { BlockType SubSystem Name "Torque Solver" Ports [4, 1] Position [685, 307, 880, 418] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Torque Solver" Location [221, 379, 1175, 765] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Connecting Rod Angle" Position [510, 28, 540, 42] Orientation "left" IconDisplay "Port number" } Block { BlockType Inport Name "Force on Piston" Position [70, 58, 100, 72] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Crank Angle Omega" Position [305, 200, 335, 215] Orientation "down" Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Crank Length" Position [615, 295, 645, 310] Orientation "up" Port "4" IconDisplay "Port number" } Block { BlockType Sum Name "B" Ports [3, 1] Position [455, 151, 505, 209] Inputs "+--" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Connecting Rod Length1" Position [315, 145, 345, 175] Value "pi/2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "F CR" Ports [2, 1] Position [195, 57, 225, 88] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Force1" Ports [3, 1] Position [645, 185, 695, 245] Inputs "3" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [280, 50, 310, 80] Operator "cos" } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" Ports [1, 1] Position [555, 165, 585, 195] Operator "cos" } Block { BlockType Outport Name "Torque Output" Position [785, 208, 815, 222] IconDisplay "Port number" } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [40, 0; 0, 45; -175, 0] DstBlock "F CR" DstPort 2 } Line { SrcBlock "Connecting Rod Length1" SrcPort 1 DstBlock "B" DstPort 1 } Line { SrcBlock "B" SrcPort 1 DstBlock "Trigonometric\nFunction1" DstPort 1 } Line { SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [40, 0] DstBlock "Force1" DstPort 1 } Line { SrcBlock "F CR" SrcPort 1 Points [15, 0; 0, 165; 375, 0; 0, -25] DstBlock "Force1" DstPort 2 } Line { SrcBlock "Connecting Rod Angle" SrcPort 1 Points [-105, 0] Branch { Points [-135, 0] DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, 145] DstBlock "B" DstPort 2 } } Line { SrcBlock "Crank Angle Omega" SrcPort 1 Points [120, 0] DstBlock "B" DstPort 3 } Line { SrcBlock "Crank Length" SrcPort 1 DstBlock "Force1" DstPort 3 } Line { SrcBlock "Force on Piston" SrcPort 1 DstBlock "F CR" DstPort 1 } Line { SrcBlock "Force1" SrcPort 1 DstBlock "Torque Output" DstPort 1 } } } Block { BlockType SubSystem Name "Volume Calc" Ports [5, 1] Position [1060, 88, 1215, 192] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Volume Calc" Location [401, 245, 1051, 688] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Half Stroke" Position [25, 33, 55, 47] IconDisplay "Port number" } Block { BlockType Inport Name "Connecting Rod" Position [25, 78, 55, 92] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "S" Position [25, 118, 55, 132] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Piston Area" Position [150, 88, 180, 102] Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Clearance Volume" Position [225, 228, 255, 242] Port "5" IconDisplay "Port number" } Block { BlockType Sum Name "Add" Ports [3, 1] Position [90, 29, 130, 131] Inputs "++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" Ports [2, 1] Position [280, 196, 320, 249] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Force1" Ports [2, 1] Position [215, 72, 245, 103] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Volume" Position [345, 218, 375, 232] IconDisplay "Port number" } Line { SrcBlock "Add" SrcPort 1 DstBlock "Force1" DstPort 1 } Line { SrcBlock "Force1" SrcPort 1 Points [0, 125; 15, 0] DstBlock "Add1" DstPort 1 } Line { SrcBlock "Half Stroke" SrcPort 1 Points [15, 0] DstBlock "Add" DstPort 1 } Line { SrcBlock "Connecting Rod" SrcPort 1 Points [15, 0] DstBlock "Add" DstPort 2 } Line { SrcBlock "S" SrcPort 1 Points [15, 0] DstBlock "Add" DstPort 3 } Line { SrcBlock "Piston Area" SrcPort 1 DstBlock "Force1" DstPort 2 } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Volume" DstPort 1 } Line { SrcBlock "Clearance Volume" SrcPort 1 DstBlock "Add1" DstPort 2 } } } Block { BlockType Outport Name "V" Position [1240, 133, 1270, 147] IconDisplay "Port number" } Block { BlockType Outport Name "Torque" Position [905, 358, 935, 372] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Total Cylinder Volume" Position [870, 528, 900, 542] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Clearance" Position [845, 573, 875, 587] Port "4" IconDisplay "Port number" } Line { SrcBlock "Clearance Volume Solver" SrcPort 1 Points [80, 0] Branch { Points [95, 0] Branch { Points [40, 0; 0, -85; 370, 0; 0, -120] DstBlock "Volume Calc" DstPort 5 } Branch { Points [0, 140] DstBlock "Add" DstPort 1 } } Branch { Points [0, 195] DstBlock "Clearance" DstPort 1 } } Line { SrcBlock "Phi solver" SrcPort 1 Points [0, 5; 95, 0; 0, 60] DstBlock "Torque Solver" DstPort 1 } Line { Labels [0, 0] SrcBlock "Connecting Rod Length" SrcPort 1 Points [95, 0] Branch { Labels [0, 0] Points [0, 30] DstBlock "Volume Calc" DstPort 2 } Branch { Points [45, 0] Branch { Labels [0, 0] Points [0, 195] DstBlock "Phi solver" DstPort 3 } Branch { DstBlock "Piston Resolver" DstPort 3 } } } Line { Labels [0, 0] SrcBlock "Crank Offset" SrcPort 1 Points [15, 0] Branch { Labels [0, 0] Points [0, 365] DstBlock "Clearance Volume Solver" DstPort 2 } Branch { Points [65, 0; 0, 30; 35, 0] Branch { Points [20, 0] Branch { Labels [0, 0] Points [0, 35] DstBlock "Volume Calc" DstPort 1 } Branch { Points [85, 0] Branch { Labels [0, 0] Points [0, 195] DstBlock "Phi solver" DstPort 2 } Branch { DstBlock "Piston Resolver" DstPort 2 } } } Branch { Labels [0, 0] Points [0, 410; 495, 0] DstBlock "Torque Solver" DstPort 4 } } } Line { SrcBlock "Piston Resolver" SrcPort 1 Points [140, 0; 0, 75] DstBlock "Volume Calc" DstPort 3 } Line { SrcBlock "Omega" SrcPort 1 Points [15, 0] Branch { DstBlock "Piston Resolver" DstPort 1 } Branch { Points [0, 110; 125, 0; 0, -20; 5, 0] Branch { DstBlock "Phi solver" DstPort 1 } Branch { Labels [0, 0] Points [230, 0; 0, 245] DstBlock "Torque Solver" DstPort 3 } } } Line { SrcBlock "Piston Area" SrcPort 1 Points [0, 10; 205, 0] Branch { DstBlock "Clearance Volume Solver" DstPort 1 } Branch { Labels [0, 0] Points [0, -70] DstBlock "Volume Calc" DstPort 4 } } Line { SrcBlock "Volume Calc" SrcPort 1 DstBlock "V" DstPort 1 } Line { SrcBlock "Piston Force" SrcPort 1 DstBlock "Torque Solver" DstPort 2 } Line { SrcBlock "Torque Solver" SrcPort 1 DstBlock "Torque" DstPort 1 } Line { SrcBlock "Clearance Volume Solver" SrcPort 2 Points [35, 0; 0, 120] DstBlock "Add" DstPort 2 } Line { SrcBlock "Compression Ratio" SrcPort 1 DstBlock "Clearance Volume Solver" DstPort 3 } Line { SrcBlock "Add" SrcPort 1 DstBlock "Total Cylinder Volume" DstPort 1 } } } Block { BlockType Reference Name "Pressure Volume Graph" Ports [2] Position [1220, 238, 1300, 307] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" xmin "0" xmax "0.0006" ymin "0" ymax "3e6" st "-1" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [135, 110, 155, 130] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Terminator Name "Terminator2" Position [520, 90, 540, 110] } Block { BlockType Constant Name "Torque N/M" Position [45, 105, 75, 135] Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "A" Position [440, 63, 470, 77] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "w" Position [440, 123, 470, 137] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "O" Position [470, 173, 500, 187] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Inertia" SrcPort 1 Points [165, 0] DstBlock "Crank Position" DstPort 1 } Line { SrcBlock "Crank Position" SrcPort 1 Points [0, -10; 30, 0] Branch { DstBlock "A" DstPort 1 } Branch { Points [0, 30] DstBlock "Terminator2" DstPort 1 } } Line { SrcBlock "Crank Position" SrcPort 2 Points [40, 0] Branch { DstBlock "w" DstPort 1 } Branch { Points [0, 20; 360, 0; 0, 375] DstBlock "Combustion" DstPort 7 } } Line { SrcBlock "Piston Diameter (m)" SrcPort 1 DstBlock "Piston Force" DstPort 1 } Line { SrcBlock "Initial rad/s" SrcPort 1 Points [110, 0] DstBlock "Crank Position" DstPort 3 } Line { SrcBlock "Piston Force" SrcPort 1 Points [25, 0; 0, 85] DstBlock "Piston Position based on Geometry" DstPort 5 } Line { SrcBlock "Piston Position based on Geometry" SrcPort 2 Points [25, 0; 0, 155] Branch { Labels [0, 0] Points [200, 0; 0, -80] DstBlock "Combustion" DstPort 6 } Branch { Points [-550, 0] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Torque N/M" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Compression Ratio x:1" SrcPort 1 Points [285, 0; 0, -65] DstBlock "Piston Position based on Geometry" DstPort 6 } Line { SrcBlock "Piston Position based on Geometry" SrcPort 1 Points [170, 0] Branch { Points [0, -115] DstBlock "Pressure Volume Graph" DstPort 1 } Branch { Labels [0, 0] Points [0, 105] DstBlock "Combustion" DstPort 5 } } Line { Labels [0, 0] SrcBlock "Crank offeset (half stroke) (m)" SrcPort 1 Points [305, 0; 0, 100] DstBlock "Piston Position based on Geometry" DstPort 1 } Line { Labels [0, 0] SrcBlock "Connecting Rod Length (m)" SrcPort 1 Points [295, 0; 0, 115] DstBlock "Piston Position based on Geometry" DstPort 3 } Line { SrcBlock "Piston Position based on Geometry" SrcPort 3 Points [145, 0; 0, -55] DstBlock "Combustion" DstPort 3 } Line { Labels [0, 0] SrcBlock "Piston Force" SrcPort 2 DstBlock "Piston Position based on Geometry" DstPort 4 } Line { SrcBlock "Sum" SrcPort 1 Points [85, 0] DstBlock "Crank Position" DstPort 2 } Line { SrcBlock "Combustion" SrcPort 1 Points [20, 0] Branch { Points [0, 165; -1020, 0] DstBlock "Piston Force" DstPort 3 } Branch { Points [0, -185] Branch { DstBlock "Pressure Volume Graph" DstPort 2 } Branch { Points [0, -95] DstBlock "P vs theta" DstPort 2 } } } Line { SrcBlock "Crank Case Pressure (Pa)" SrcPort 1 DstBlock "Piston Force" DstPort 2 } Line { Labels [0, 0] SrcBlock "Atm Temp (K)" SrcPort 1 Points [20, 0] DstBlock "Combustion" DstPort 1 } Line { Labels [0, 0] SrcBlock "Atm Pressure(Pa)" SrcPort 1 DstBlock "Combustion" DstPort 2 } Line { SrcBlock "Energy Input (J)" SrcPort 1 Points [0, -35] DstBlock "Combustion" DstPort 8 } Line { SrcBlock "Crank Position" SrcPort 3 Points [40, 0] Branch { Points [0, 30] Branch { Labels [0, 0] Points [-30, 0; 0, 190] DstBlock "Piston Position based on Geometry" DstPort 2 } Branch { Labels [0, 0] Points [125, 0] Branch { Points [330, 0; 0, 240] DstBlock "Combustion" DstPort 4 } Branch { Points [0, -50] DstBlock "P vs theta" DstPort 1 } } } Branch { DstBlock "O" DstPort 1 } } } }