Model { Name "MarkIIIRevB" 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.103" 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 "Wed Feb 18 10:50:27 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 "2" AbsTol "auto" FixedStep ".0001" 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 Derivative LinearizePole "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 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 Memory X0 "0" InheritSampleTime off LinearizeMemory off LinearizeAsDelay off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } 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 Trigonometry Operator "sin" OutputSignalType "auto" SampleTime "-1" } } System { Name "MarkIIIRevB" Location [2, 82, 1605, 991] 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 "Burn" Ports [4, 1] Position [1325, 203, 1400, 272] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Burn" Location [243, 238, 1436, 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 "Flame Speed" Position [250, 368, 280, 382] IconDisplay "Port number" } Block { BlockType Inport Name "Cylinder Diameter" Position [115, 103, 145, 117] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Volume" Position [250, 418, 280, 432] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Diameter" Position [300, 443, 330, 457] Port "4" IconDisplay "Port number" } Block { BlockType SubSystem Name "Flame Everywhere" Ports [2, 1] Position [730, 161, 770, 234] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Flame Everywhere" Location [850, 505, 1400, 723] 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 "Dia" Position [65, 83, 95, 97] IconDisplay "Port number" } Block { BlockType Inport Name "h" Position [45, 148, 75, 162] Port "2" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" Position [140, 100, 170, 130] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [210, 82, 240, 113] 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 "Product" Ports [3, 1] Position [345, 78, 375, 112] 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 Fcn Name "Round1" Position [410, 80, 470, 110] Expr "pi()*u(1)" } Block { BlockType Outport Name "v" Position [495, 88, 525, 102] IconDisplay "Port number" } Line { SrcBlock "h" SrcPort 1 Points [250, 0] DstBlock "Product" DstPort 3 } Line { SrcBlock "Divide" SrcPort 1 Points [40, 0; 0, -15; 15, 0] Branch { Points [0, 10] DstBlock "Product" DstPort 2 } Branch { DstBlock "Product" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0; 0, -10] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Dia" SrcPort 1 DstBlock "Divide" DstPort 1 } Line { SrcBlock "Round1" SrcPort 1 DstBlock "v" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Round1" DstPort 1 } } } Block { BlockType Fcn Name "Flame Round" Position [715, 480, 775, 510] Expr "((((u(1)^3)/3) + ((u(1)^3)/3))*pi)" } Block { BlockType SubSystem Name "Flame touch piston" Ports [3, 1] Position [730, 364, 770, 436] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Flame touch piston" Location [1069, 587, 1618, 805] 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 "b" Position [60, 33, 90, 47] IconDisplay "Port number" } Block { BlockType Inport Name "r" Position [25, 88, 55, 102] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h" Position [45, 148, 75, 162] Port "3" IconDisplay "Port number" } Block { BlockType Fcn Name "3b^2" Position [115, 25, 175, 55] Expr "3*u(1)^2" } Block { BlockType Fcn Name "3r^2" Position [115, 80, 175, 110] Expr "3*u(1)^2" } Block { BlockType Sum Name "Add" Ports [3, 1] Position [240, 64, 270, 96] 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 "Product" Ports [2, 1] Position [345, 71, 375, 104] 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 "Round1" Position [410, 80, 470, 110] Expr "(1/6)*pi()*u(1)" } Block { BlockType Fcn Name "height^2" Position [115, 140, 175, 170] Expr "u(1)^2" } Block { BlockType Outport Name "v" Position [495, 88, 525, 102] IconDisplay "Port number" } Line { SrcBlock "r" SrcPort 1 DstBlock "3r^2" DstPort 1 } Line { SrcBlock "h" SrcPort 1 Points [5, 0] Branch { Points [0, 45; 210, 0; 0, -105] DstBlock "Product" DstPort 2 } Branch { DstBlock "height^2" DstPort 1 } } Line { SrcBlock "Round1" SrcPort 1 DstBlock "v" DstPort 1 } Line { SrcBlock "b" SrcPort 1 DstBlock "3b^2" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [5, 0; 0, 5] DstBlock "Round1" DstPort 1 } Line { SrcBlock "Add" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "height^2" SrcPort 1 Points [45, 0] DstBlock "Add" DstPort 3 } Line { SrcBlock "3r^2" SrcPort 1 Points [20, 0; 0, -15] DstBlock "Add" DstPort 2 } Line { SrcBlock "3b^2" SrcPort 1 Points [20, 0; 0, 30] DstBlock "Add" DstPort 1 } } } Block { BlockType SubSystem Name "Flame touch piston and wall" Ports [3, 1] Position [730, 259, 770, 331] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Flame touch piston and wall" Location [850, 505, 1478, 832] 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 "r" Position [25, 88, 55, 102] IconDisplay "Port number" } Block { BlockType Inport Name "h" Position [30, 148, 60, 162] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "ystart" Position [30, 213, 60, 227] Port "3" IconDisplay "Port number" } Block { BlockType Sum Name "Add" Ports [4, 1] Position [330, 48, 365, 117] 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 [185, 189, 220, 231] 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 "Product" Ports [2, 1] Position [430, 71, 460, 104] 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 [260, 256, 290, 289] 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 "Round1" Position [495, 75, 555, 105] Expr "pi()*u(1)" } Block { BlockType Fcn Name "r^2" Position [115, 80, 175, 110] Expr "u(1)^2" } Block { BlockType Fcn Name "ystart^1" Position [240, 100, 300, 130] Expr "(1/3)*u(1)^2" } Block { BlockType Fcn Name "ystart^2" Position [145, 140, 205, 170] Expr "u(1)^2" } Block { BlockType Outport Name "v" Position [580, 83, 610, 97] IconDisplay "Port number" } Line { SrcBlock "ystart^1" SrcPort 1 Points [10, 0] DstBlock "Add" DstPort 4 } Line { SrcBlock "Product1" SrcPort 1 Points [20, 0] DstBlock "Add" DstPort 3 } Line { SrcBlock "ystart^2" SrcPort 1 Points [5, 0; 0, -80] DstBlock "Add" DstPort 2 } Line { SrcBlock "Add1" SrcPort 1 Points [40, 0] Branch { Points [-5, 0] Branch { Points [-35, 0] DstBlock "ystart^1" DstPort 1 } Branch { Points [-15, 0] DstBlock "Product1" DstPort 1 } } Branch { Points [120, 0; 0, -115] DstBlock "Product" DstPort 2 } } Line { SrcBlock "ystart" SrcPort 1 Points [55, 0] Branch { Points [45, 0] Branch { Points [0, 60] DstBlock "Product1" DstPort 2 } Branch { DstBlock "Add1" DstPort 2 } } Branch { Points [0, -65] DstBlock "ystart^2" DstPort 1 } } Line { SrcBlock "r^2" SrcPort 1 Points [20, 0; 0, -35] DstBlock "Add" DstPort 1 } Line { SrcBlock "Add" SrcPort 1 Points [0, -5] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Round1" DstPort 1 } Line { SrcBlock "Round1" SrcPort 1 DstBlock "v" DstPort 1 } Line { SrcBlock "h" SrcPort 1 Points [25, 0; 0, 45] DstBlock "Add1" DstPort 1 } Line { SrcBlock "r" SrcPort 1 DstBlock "r^2" DstPort 1 } } } Block { BlockType SubSystem Name "b solver" Ports [4, 4] Position [390, 366, 490, 459] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "b solver" Location [114, 195, 772, 604] 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 "Flame Speed" Position [20, 28, 50, 42] IconDisplay "Port number" } Block { BlockType Inport Name "Reset" Position [70, 68, 100, 82] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Volume" Position [30, 113, 60, 127] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Diamter" Position [20, 148, 50, 162] Port "4" IconDisplay "Port number" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [420, 47, 450, 78] 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 [410, 307, 440, 338] 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 "Constant" Position [155, 320, 185, 350] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [215, 112, 245, 143] 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 [135, 27, 165, 58] ExternalReset "rising" } Block { BlockType Fcn Name "Piston Area" Position [100, 140, 160, 170] Expr "pi()*(u(1)/2)^2" } Block { BlockType Product Name "Product" Ports [2, 1] Position [270, 37, 300, 68] 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 [310, 122, 340, 153] 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 "Radius" Ports [2, 1] Position [250, 292, 280, 323] 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 "sqrt" Position [485, 50, 545, 80] Expr "sqrt(u(1))" } Block { BlockType Fcn Name "sqrt1" Position [490, 310, 550, 340] Expr "sqrt(u(1))" } Block { BlockType Outport Name "b" Position [570, 58, 600, 72] IconDisplay "Port number" } Block { BlockType Outport Name "Flame Radius" Position [225, 13, 255, 27] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "height" Position [305, 183, 335, 197] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "ystart" Position [575, 318, 605, 332] Port "4" IconDisplay "Port number" } Line { SrcBlock "sqrt1" SrcPort 1 DstBlock "ystart" DstPort 1 } Line { SrcBlock "Radius" SrcPort 1 Points [55, 0; 0, 20] DstBlock "Add1" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 Points [20, 0; 0, -20] DstBlock "Radius" DstPort 2 } Line { SrcBlock "Add1" SrcPort 1 DstBlock "sqrt1" DstPort 1 } Line { SrcBlock "Diamter" SrcPort 1 Points [20, 0] Branch { Points [0, 145] DstBlock "Radius" DstPort 1 } Branch { DstBlock "Piston Area" DstPort 1 } } Line { SrcBlock "Volume" SrcPort 1 DstBlock "Divide" DstPort 1 } Line { SrcBlock "sqrt" SrcPort 1 DstBlock "b" DstPort 1 } Line { SrcBlock "Reset" SrcPort 1 Points [0, -25] DstBlock "Integrator" DstPort 2 } Line { SrcBlock "Flame Speed" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Add" SrcPort 1 DstBlock "sqrt" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [30, 0; 0, -70] DstBlock "Add" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [55, 0] Branch { Points [0, 260] DstBlock "Add1" DstPort 1 } Branch { DstBlock "Add" DstPort 1 } } Line { SrcBlock "Divide" SrcPort 1 Points [15, 0] Branch { Points [0, 15; 10, 0] Branch { Points [0, 45] DstBlock "height" DstPort 1 } Branch { DstBlock "Product1" DstPort 2 } } Branch { DstBlock "Product1" DstPort 1 } } Line { SrcBlock "Piston Area" SrcPort 1 Points [5, 0; 0, -20] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { Points [0, -25] DstBlock "Flame Radius" DstPort 1 } Branch { Points [65, 0] Branch { Points [0, 15] DstBlock "Product" DstPort 2 } Branch { DstBlock "Product" DstPort 1 } } } } } Block { BlockType Outport Name "Energy " Position [940, 193, 970, 207] IconDisplay "Port number" } Line { SrcBlock "b solver" SrcPort 4 Points [120, 0; 0, -130] DstBlock "Flame touch piston and wall" DstPort 3 } Line { SrcBlock "b solver" SrcPort 3 Points [105, 0] Branch { Points [0, -130] DstBlock "Flame touch piston and wall" DstPort 2 } Branch { Points [50, 0] Branch { Points [0, -210] DstBlock "Flame Everywhere" DstPort 2 } Branch { DstBlock "Flame touch piston" DstPort 3 } } } Line { SrcBlock "b solver" SrcPort 2 Points [90, 0] Branch { Points [0, -130] DstBlock "Flame touch piston and wall" DstPort 1 } Branch { Points [85, 0] Branch { Points [0, 95] DstBlock "Flame Round" DstPort 1 } Branch { DstBlock "Flame touch piston" DstPort 2 } } } Line { SrcBlock "Flame touch piston" SrcPort 1 Points [295, 0] } Line { SrcBlock "b solver" SrcPort 1 DstBlock "Flame touch piston" DstPort 1 } Line { SrcBlock "Volume" SrcPort 1 DstBlock "b solver" DstPort 3 } Line { SrcBlock "Diameter" SrcPort 1 Points [15, 0] Branch { Points [0, -270] DstBlock "Flame Everywhere" DstPort 1 } Branch { DstBlock "b solver" DstPort 4 } } Line { SrcBlock "Flame Speed" SrcPort 1 DstBlock "b solver" DstPort 1 } } } Block { BlockType SubSystem Name "Burn1" Ports [3, 2] Position [700, 713, 840, 787] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Burn1" Location [326, 416, 1519, 989] 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 Constant Name "Constant" Position [235, 105, 265, 135] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [260, 320, 290, 350] 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 Constant Name "Initial Position" Position [145, 438, 190, 472] Value "17/9*pi()" OutDataType "sfix(16)" OutScaling "2^0" } 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 [468, 117, 1523, 723] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "8" 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.00955556" YMax "0.00955556" 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.043" YMax "0.043" 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 "Relational\nOperator" SrcPort 1 Points [20, 0] Branch { Points [0, -60] DstBlock "Integrator" DstPort 2 } Branch { DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Theta" SrcPort 1 Points [20, 0] Branch { DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [0, -45] DstBlock "Scope4" DstPort 1 } } Line { SrcBlock "Initial Position" SrcPort 1 Points [50, 0; 0, -30] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Divide1" SrcPort 1 Points [30, 0; 0, -15] Branch { Points [0, -90] DstBlock "Mux" DstPort 2 } Branch { DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "Piston Area" SrcPort 1 Points [15, 0; 0, -35] DstBlock "Divide1" DstPort 2 } Line { SrcBlock "Volume" SrcPort 1 Points [60, 0] Branch { DstBlock "Divide1" DstPort 1 } Branch { Points [0, -35] DstBlock "Divide2" DstPort 2 } } Line { SrcBlock "MATLAB Fcn1" SrcPort 1 Points [20, 0] Branch { DstBlock "Vburn" DstPort 1 } Branch { Points [0, 45] DstBlock "Divide2" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [15, 0; 0, -20] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Cylinder Diameter" SrcPort 1 Points [45, 0] Branch { DstBlock "Divide" DstPort 1 } Branch { Points [0, 200] DstBlock "Piston Area" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "MATLAB Fcn1" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 Points [40, 0] Branch { Points [10, 0; 0, 5] DstBlock "Mux" DstPort 1 } Branch { Points [0, -55] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [15, 0; 0, -25] Branch { Points [0, -145] DstBlock "Mux" DstPort 3 } Branch { DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Divide2" SrcPort 1 Points [20, 0; 0, 5] DstBlock "mb" DstPort 1 } } } Block { BlockType SubSystem Name "Combustion" Ports [8, 1] Position [1050, 361, 1155, 589] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Combustion" Location [154, 100, 1298, 855] 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 "Atm Temp" Position [490, 213, 520, 227] IconDisplay "Port number" } Block { BlockType Inport Name "Atm Pressure" Position [150, 143, 180, 157] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vs+Vc" Position [495, 253, 525, 267] 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 [770, 253, 800, 267] Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Torque" Position [125, 238, 155, 252] Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Omega" Position [115, 308, 145, 322] Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "E Burn" Position [230, 228, 260, 242] Port "8" IconDisplay "Port number" } Block { BlockType Sum Name "Add2" Ports [2, 1] Position [450, 267, 480, 298] 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 "Add3" Ports [2, 1] Position [705, 352, 735, 383] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Derivative Name "Derivative" Position [375, 205, 405, 235] } Block { BlockType Product Name "Divide1" Ports [3, 1] Position [600, 380, 655, 430] 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 [595, 206, 730, 274] 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 [205, 370, 270, 400] Value "300000" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Memory Name "Memory" Position [810, 415, 840, 445] } Block { BlockType Product Name "P x V2" Ports [2, 1] Position [205, 270, 255, 305] 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/V" Ports [3, 1] Position [875, 206, 1010, 274] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "P=nRT/V" 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 "Temperature" SrcPort 1 DstBlock "P x V1" DstPort 1 } Line { SrcBlock "R" SrcPort 1 Points [30, 0; 0, -45] DstBlock "P x V1" DstPort 2 } Line { SrcBlock "m (kg)" SrcPort 1 Points [0, 5] DstBlock "Mole Solver" DstPort 1 } Line { SrcBlock "R2" SrcPort 1 Points [25, 0; 0, -35] DstBlock "Mole Solver" DstPort 2 } Line { SrcBlock "Mole Solver" SrcPort 1 Points [15, 0; 0, -95] DstBlock "P x V1" DstPort 3 } Line { SrcBlock "P x V1" SrcPort 1 Points [0, -10] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "Volume (m^3)" SrcPort 1 Points [0, -95] DstBlock "Divide1" DstPort 2 } Line { SrcBlock "Divide1" SrcPort 1 Points [80, 0; 0, 15] DstBlock "Pressure" DstPort 1 } Line { SrcBlock "R1" SrcPort 1 Points [75, 0] DstBlock "P x V1" DstPort 4 } } } Block { BlockType Scope Name "Scope1" Ports [1] Position [1065, 369, 1095, 401] Floating off Location [6, 47, 1446, 894] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "200" YMax "1800" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" Ports [1] Position [1065, 259, 1095, 291] Floating off Location [1, 52, 1441, 899] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-1e+006" YMax "1.5e+006" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Switch For Heat Addition" Ports [3, 1] Position [665, 71, 825, 169] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Switch For Heat Addition" 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 "Intake\nCompression\nSwitch" SrcPort 1 DstBlock "Compression\nExpansion\nSwitch" DstPort 3 } Line { SrcBlock "Compression\nExpansion\nSwitch" SrcPort 1 Points [30, 0] DstBlock "Expansion\nExhaust\nSwitch" DstPort 3 } Line { SrcBlock "Crank Position" SrcPort 1 Points [75, 0] Branch { DstBlock "Intake\nCompression\nSwitch" DstPort 2 } Branch { Points [0, 75; 115, 0; 0, -85; 140, 0] Branch { DstBlock "Compression\nExpansion\nSwitch" DstPort 2 } Branch { Points [0, -45] DstBlock "Expansion\nExhaust\nSwitch" DstPort 2 } } } Line { SrcBlock "Expansion\nExhaust\nSwitch" SrcPort 1 DstBlock "Piston Pressure" DstPort 1 } Line { SrcBlock "C/P Strok\nPressure" SrcPort 1 Points [20, 0; 0, 10] Branch { Points [0, 35] DstBlock "Intake\nCompression\nSwitch" DstPort 1 } Branch { Points [210, 0; 0, 25] DstBlock "Compression\nExpansion\nSwitch" DstPort 1 } } Line { SrcBlock "Atmospheric Pressure" SrcPort 1 Points [20, 0; 0, -55] Branch { DstBlock "Intake\nCompression\nSwitch" DstPort 3 } Branch { Points [0, -75] DstBlock "Expansion\nExhaust\nSwitch" DstPort 1 } } } } Block { BlockType Switch Name "Temp Switch" Position [415, 345, 445, 375] Criteria "u2 > Threshold" Threshold "pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Time Step Size" Position [455, 405, 520, 435] Value ".0001" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "U -> T" Ports [1, 1] Position [820, 315, 960, 385] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "U -> T" 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 "Internal Energy" SrcPort 1 Points [110, 0] DstBlock "This stuff is place holders\nDelete this multiplication block and the time holder\nblock" DstPort 1 } 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 "Holder" SrcPort 1 Points [0, 30] DstBlock "This stuff is place holders\nDelete this multiplication block and the time holder\nblock" DstPort 2 } } } Block { BlockType SubSystem Name "Weibe" Ports [2, 1] Position [275, 184, 350, 251] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Weibe" Location [537, 437, 1280, 782] 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 "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 Outport Name "Pressure" Position [870, 113, 900, 127] IconDisplay "Port number" } Line { Labels [0, 0] SrcBlock "Atm Pressure" SrcPort 1 Points [390, 0] Branch { Labels [1, 0] DstBlock "Switch For Heat Addition" DstPort 3 } Branch { Points [0, 90] 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 DstBlock "Add2" DstPort 2 } Line { SrcBlock "P=nRT/V" SrcPort 1 Points [15, 0] Branch { Points [0, -195; -440, 0; 0, 45] DstBlock "Switch For Heat Addition" DstPort 1 } Branch { Points [20, 0] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Weibe" SrcPort 1 DstBlock "Derivative" DstPort 1 } Line { SrcBlock "Theta" SrcPort 1 Points [0, 35] Branch { Points [15, 0] Branch { DstBlock "Switch For Heat Addition" DstPort 2 } Branch { Labels [0, 0] Points [0, 80] DstBlock "Weibe" DstPort 1 } } Branch { Labels [0, 0] Points [0, 240] DstBlock "Temp Switch" DstPort 2 } } Line { SrcBlock "Volume" SrcPort 1 DstBlock "P=nRT/V" DstPort 3 } Line { SrcBlock "Torque" SrcPort 1 Points [30, 0] DstBlock "P x V2" DstPort 1 } Line { SrcBlock "Omega" SrcPort 1 Points [40, 0] DstBlock "P x V2" DstPort 2 } Line { SrcBlock "Vs+Vc" SrcPort 1 DstBlock "Initial Air Mass Calculator" DstPort 3 } Line { SrcBlock "Switch For Heat Addition" SrcPort 1 DstBlock "Pressure" DstPort 1 } Line { SrcBlock "Initial Air Mass Calculator" SrcPort 1 Points [20, 0] Branch { DstBlock "P=nRT/V" DstPort 2 } Branch { Points [0, 75; -210, 0; 0, 90] DstBlock "Divide1" DstPort 2 } } Line { SrcBlock "E Burn" SrcPort 1 DstBlock "Weibe" DstPort 2 } Line { SrcBlock "Derivative" SrcPort 1 Points [25, 0] DstBlock "Add2" DstPort 1 } Line { SrcBlock "Divide1" SrcPort 1 Points [0, -30] DstBlock "Add3" DstPort 2 } Line { SrcBlock "Add3" SrcPort 1 Points [40, 0] Branch { Points [0, 60] DstBlock "Memory" DstPort 1 } Branch { Points [0, -20] DstBlock "U -> T" DstPort 1 } } Line { SrcBlock "Add2" SrcPort 1 Points [35, 0; 0, 105] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "Temp Switch" SrcPort 1 DstBlock "Add3" DstPort 1 } Line { SrcBlock "Initial Energy of Air (J/kg)" SrcPort 1 Points [110, 0; 0, -15] DstBlock "Temp Switch" DstPort 3 } Line { SrcBlock "Memory" SrcPort 1 Points [5, 0; 0, 50; -500, 0; 0, -130] DstBlock "Temp Switch" DstPort 1 } Line { SrcBlock "Time Step Size" SrcPort 1 DstBlock "Divide1" DstPort 3 } Line { SrcBlock "U -> T" SrcPort 1 Points [30, 0] Branch { Points [0, -55; -150, 0; 0, -75] DstBlock "P=nRT/V" DstPort 1 } Branch { Points [0, 35] DstBlock "Scope1" DstPort 1 } } Annotation { Position [685, 554] } } } 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, 47, 365, 193] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Crank Position" Location [582, 297, 1310, 757] 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 [20, 128, 50, 142] IconDisplay "Port number" } Block { BlockType Inport Name "Torque" Position [15, 88, 45, 102] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Initial RPM" Position [55, 259, 85, 281] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Display Name "Angular Acc" Ports [1] Position [230, 90, 320, 120] Decimation "1" Lockdown off } Block { BlockType Product Name "Divide" Ports [2, 1] Position [80, 87, 110, 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 [320, 350, 350, 380] Value "4*pi" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Integrator Name "Integrator" Ports [2, 1] Position [155, 219, 200, 286] InitialConditionSource "external" } Block { BlockType Integrator Name "Integrator1" Ports [2, 2] Position [260, 267, 295, 338] ExternalReset "rising" UpperSaturationLimit "720" ShowSaturationPort on } Block { BlockType Scope Name "Omega" Ports [1] Position [435, 244, 465, 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 [320, 149, 350, 181] Floating off Location [1948, 758, 2272, 997] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [420, 332, 450, 363] InputSameDT off LogicOutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Outport Name "A" Position [290, 28, 320, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "w" Position [355, 203, 385, 217] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "O" Position [555, 288, 585, 302] 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 { DstBlock "Integrator" DstPort 1 } Branch { Points [0, -70] DstBlock "A" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [30, 0] Branch { Points [0, 30] DstBlock "Integrator1" DstPort 1 } Branch { Points [70, 0; 0, -25] Branch { DstBlock "Omega dot" DstPort 1 } Branch { Points [0, -20] DstBlock "w" DstPort 1 } } } Line { SrcBlock "Integrator1" SrcPort 1 Points [5, 0] Branch { Points [0, -25] DstBlock "Omega" DstPort 1 } Branch { Points [100, 0; 0, 15] Branch { DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [0, -5] DstBlock "O" DstPort 1 } } } Line { SrcBlock "Initial Position" SrcPort 1 Points [50, 0] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [15, 0; 0, 85; -225, 0] DstBlock "Integrator1" DstPort 2 } Line { SrcBlock "Crank Inertia" SrcPort 1 Points [10, 0] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Torque" SrcPort 1 DstBlock "Divide" DstPort 1 } Line { SrcBlock "Initial RPM" SrcPort 1 DstBlock "Integrator" DstPort 2 } } } Block { BlockType Constant Name "Crank offeset (half stroke) (m)" Position [45, 250, 105, 280] Value "0.043" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Energy Input (J)" Position [945, 565, 1010, 595] 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 "500" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Initial rad/s" Position [45, 155, 75, 185] Value "20" 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 Reference Name "Pressure Volume Graph1" Ports [2] Position [1125, 693, 1205, 762] 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 "1.1" st "-1" } Block { BlockType Scope Name "Scope" Ports [1] Position [880, 709, 910, 741] Floating off Location [176, 299, 977, 781] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "6e-005" SaveName "ScopeData4" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [1] Position [885, 774, 915, 806] Floating off Location [5, 47, 1685, 1044] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "1" YMax "1" SaveName "ScopeData10" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } 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 SubSystem Name "Switch for Burn" Ports [2, 1] Position [965, 716, 1035, 774] 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 "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 "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 "(17/9)*pi" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "%" Position [730, 123, 760, 137] IconDisplay "Port number" } Line { SrcBlock "Crank Position" SrcPort 1 DstBlock "Intake\nCompression\nSwitch" DstPort 2 } Line { SrcBlock "Weibe Input" SrcPort 1 Points [20, 0; 0, 45] DstBlock "Intake\nCompression\nSwitch" DstPort 1 } Line { SrcBlock "Before Burn Value" SrcPort 1 Points [40, 0; 0, -55] DstBlock "Intake\nCompression\nSwitch" DstPort 3 } Line { SrcBlock "Intake\nCompression\nSwitch" SrcPort 1 Points [110, 0; 0, 35] DstBlock "%" DstPort 1 } } } 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 Display Name "total v" Ports [1] Position [905, 280, 995, 310] Decimation "1" Lockdown off } 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, 113, 470, 127] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "O" Position [445, 163, 475, 177] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Inertia" SrcPort 1 DstBlock "Crank Position" DstPort 1 } Line { SrcBlock "Crank Position" SrcPort 1 Points [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, 410] DstBlock "Combustion" DstPort 7 } } Line { SrcBlock "Crank Position" SrcPort 3 Points [40, 0; 0, 0] Branch { Points [0, 0] DstBlock "O" DstPort 1 } Branch { Labels [0, 0] Points [0, 40; -30, 0; 0, 190] DstBlock "Piston Position based on Geometry" DstPort 2 } Branch { Labels [0, 0] Points [0, 40; 35, 0] Branch { Points [90, 0] Branch { Points [330, 0; 0, 250] DstBlock "Combustion" DstPort 4 } Branch { Points [0, -50] DstBlock "P vs theta" DstPort 1 } } Branch { Points [0, 565; 170, 0] Branch { DstBlock "Burn1" DstPort 3 } Branch { Points [0, 50; 335, 0] DstBlock "Switch for Burn" DstPort 2 } Branch { Points [-20, 0; 0, 95; 465, 0; 0, -160] DstBlock "Pressure Volume Graph1" DstPort 1 } } } } Line { SrcBlock "Piston Diameter (m)" SrcPort 1 Points [45, 0] Branch { DstBlock "Piston Force" DstPort 1 } Branch { Points [0, 305] DstBlock "Burn1" DstPort 1 } } Line { SrcBlock "Initial rad/s" SrcPort 1 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 { Points [-550, 0] DstBlock "Sum" DstPort 2 } Branch { Labels [0, 0] Points [200, 0; 0, -60] DstBlock "Combustion" DstPort 6 } } 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 [0, 15; 75, 0] Branch { Points [95, 0] Branch { Points [0, -130] DstBlock "Pressure Volume Graph" DstPort 1 } Branch { Labels [0, 0] Points [0, 105] DstBlock "Combustion" DstPort 5 } } Branch { Points [0, 295; -60, 0] DstBlock "Burn1" DstPort 2 } } 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 [45, 0] Branch { Points [100, 0; 0, -50] DstBlock "Combustion" DstPort 3 } Branch { Points [0, -185] DstBlock "total v" DstPort 1 } } Line { Labels [0, 0] SrcBlock "Piston Force" SrcPort 2 DstBlock "Piston Position based on Geometry" DstPort 4 } Line { SrcBlock "Sum" SrcPort 1 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 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 DstBlock "Combustion" DstPort 8 } Line { SrcBlock "Burn1" SrcPort 1 Points [0, -10] DstBlock "Scope" DstPort 1 } Line { SrcBlock "Burn1" SrcPort 2 Points [10, 0] Branch { Points [0, 20] DstBlock "Scope1" DstPort 1 } Branch { Points [75, 0; 0, -40] DstBlock "Switch for Burn" DstPort 1 } } Line { SrcBlock "Switch for Burn" SrcPort 1 DstBlock "Pressure Volume Graph1" DstPort 2 } } }