Model { Name "reactor" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Feb 21 15:48:32 2008" Creator "anton" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "anton" ModifiedDateFormat "%" LastModifiedDate "Fri Mar 6 14:27:57 2009" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" StartTime "0.0" StopTime "20.0" SolverMode "Auto" Solver "ode45" RelTol "1e-6" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" LimitDataPoints on MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWOptions "-aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -a" "InlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr" "eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn" "itFltsAndDblsToZero=1 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aInc" "ludeHyperlinkInReport=0 -aLaunchReport=0 -aGenerateTraceInfo=0 -aForceParamT" "railComments=0 -aGenerateComments=1 -aIgnoreCustomStorageClasses=0 -aIncHiera" "rchyInIds=0 -aMaxRTWIdLen=31 -aShowEliminatedStatements=1 -aIncDataTypeInIds=" "0 -aInsertBlockDesc=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess=\"Literals" "\" -aSuppressErrorStatus=0 -aModelReferenceCompliant=1 -aParenthesesLevel=\"" "Nominal\" -aModelStepFunctionPrototypeControlCompliant=0 -aPortableWordSizes=" "0 -aSupportNonInlinedSFcns=1 -aSupportContinuousTime=1 -aSupportComplex=1 -aS" "upportNonFinite=1 -aSupportAbsoluteTime=1 -aTargetPreCompLibLocation=\"\" -aT" "argetLibSuffix=\"\" -aTargetFunctionLibrary=\"ANSI_C\" -aTargetFcnLib=\"ansi_" "tfl_tmw.mat\" -aMultiInstanceERTCode=0 -aLogVarNameModifier=\"rt_\" -aERTFirs" "tTimeCompliant=0 -aIsPILTarget=0 -aCombineOutputUpdateFcns=0 -aGenerateASAP2=" "0 -aGenerateClassInterface=0 -aGenerateTestInterfaces=0 -aGenerateSampleERTMa" "in=0 -aGenerateFullHeader=1 -aUtilityFuncGeneration=\"Auto\" -aIncludeFileDel" "imiter=\"Auto\" -aIncludeMdlTerminateFcn=1 -aPurelyIntegerCode=0 -aAutosarCom" "pliant=0 -aERTCustomFileBanners=0 -aRTWCAPIStates=0 -aRTWCAPIParams=0 -aRTWCA" "PISignals=0 -aMatFileLogging=1 -aCompOptLevelCompliant=1 -aExtModeIntrfLevel=" "\"Level1\" -aExtModeMexFile=\"ext_comm\" -aExtModeTransport=0 -aExtModeStatic" "AllocSize=1000000 -aExtModeTesting=0 -aExtModeStaticAlloc=0 -aExtMode=0 " RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock off OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt on RTWExpressionDepthLimit 5 BooleanDataType off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "reactor" Location [275, 381, 828, 701] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Clock Name "Clock" Position [40, 40, 60, 60] DisplayTime off Decimation "10" } Block { BlockType Constant Name "Constant" Position [90, 150, 120, 180] Value "0.5" VectorParams1D on } Block { BlockType SubSystem Name "Reactor" Ports [1, 2] Position [205, 115, 305, 215] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Reactor" Location [354, 340, 1007, 736] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "D" Position [30, 88, 60, 102] Port "1" LatchInput off Interpolate on } Block { BlockType Gain Name "1/Y_X/S" Position [245, 175, 280, 205] Gain "2" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "K_S" Position [410, 310, 440, 340] Value "0.2" VectorParams1D on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [570, 224, 595, 251] ShowName off Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "mu" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Product Name "Product2" Ports [2, 1] Position [225, 74, 250, 101] ShowName off Inputs "**" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product3" Ports [2, 1] Position [135, 234, 160, 261] ShowName off Inputs "**" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product4" Ports [2, 1] Position [345, 169, 370, 196] ShowName off Inputs "**" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "S" Ports [1, 1] Position [430, 167, 460, 203] FontSize 11 ExternalReset "none" InitialConditionSource "internal" InitialCondition "2" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Constant Name "S_in" Position [25, 240, 55, 270] Value "10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [170, 85, 190, 105] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [85, 245, 105, 265] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [390, 175, 410, 195] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [470, 315, 490, 335] ShowName off IconShape "round" Inputs "++|" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "X" Ports [1, 1] Position [275, 70, 305, 110] FontSize 11 ExternalReset "none" InitialConditionSource "internal" InitialCondition "2" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "mu_max" Position [505, 170, 540, 200] Gain "1" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Outport Name " X " Position [365, 83, 395, 97] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name " S " Position [520, 128, 550, 142] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "S" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [15, 0] DstBlock "mu_max" DstPort 1 } Branch { Points [0, 105; 0, 0] Branch { Points [-385, 0] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Sum3" DstPort 1 } } Branch { Points [0, -50] DstBlock " S " DstPort 1 } } Line { SrcBlock "mu_max" SrcPort 1 Points [0, 45] DstBlock "Product1" DstPort 1 } Line { SrcBlock "X" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, -60; -125, 0; 0, 50] DstBlock "Product2" DstPort 1 } Branch { Points [0, 85] DstBlock "Product4" DstPort 1 } Branch { DstBlock " X " DstPort 1 } } Line { SrcBlock "Product2" SrcPort 1 DstBlock "X" DstPort 1 } Line { SrcBlock "D" SrcPort 1 Points [50, 0] Branch { Points [0, 145] DstBlock "Product3" DstPort 1 } Branch { DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product2" DstPort 2 } Line { SrcBlock "S_in" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product3" DstPort 2 } Line { SrcBlock "Product3" SrcPort 1 Points [235, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "S" DstPort 1 } Line { SrcBlock "1/Y_X/S" SrcPort 1 DstBlock "Product4" DstPort 2 } Line { SrcBlock "Product4" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "K_S" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 Points [30, 0; 0, -80] DstBlock "Product1" DstPort 2 } Line { Name "mu" FontSize 10 Labels [0, 0] SrcBlock "Product1" SrcPort 1 Points [25, 0; 0, 130; -445, 0; 0, -180] Branch { DstBlock "Sum" DstPort 2 } Branch { DstBlock "1/Y_X/S" DstPort 1 } } } } Block { BlockType Scope Name "Scope S" Ports [1] Position [395, 174, 425, 206] Floating off Location [16, 429, 340, 668] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Scope X" Ports [1] Position [395, 124, 425, 156] Floating off Location [188, 390, 512, 629] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType ToWorkspace Name "To Workspace" Position [380, 60, 440, 90] VariableName "X" MaxDataPoints "inf" Decimation "1" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [380, 240, 440, 270] VariableName "S" MaxDataPoints "inf" Decimation "1" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [100, 35, 160, 65] VariableName "t" MaxDataPoints "inf" Decimation "1" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Reactor" DstPort 1 } Line { SrcBlock "Reactor" SrcPort 1 Points [35, 0] Branch { DstBlock "Scope X" DstPort 1 } Branch { Points [0, -65] DstBlock "To Workspace" DstPort 1 } } Line { SrcBlock "Reactor" SrcPort 2 Points [35, 0] Branch { DstBlock "Scope S" DstPort 1 } Branch { Points [0, 65] DstBlock "To Workspace1" DstPort 1 } } Line { SrcBlock "Clock" SrcPort 1 DstBlock "To Workspace2" DstPort 1 } } }