Model { Name "hustemp_OS" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off PreLoadFcn "thermdat" Created "Thu Sep 10 09:44:42 1998" Creator "nikita" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ielolof" ModifiedDateFormat "%" LastModifiedDate "Mon Feb 14 14:59:18 2011" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock off BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode45" SolverMode "SingleTasking" StartTime "0.0" StopTime "31536000" MaxOrder 5 MaxStep "auto" MinStep "100" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "100" RelTol "1e-3" AbsTol "1e-6" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[]" LoadInitialState off InitialState "[]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints off MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "none" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt off BooleanDataType off ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off RTWOptions "-aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -a" "InlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr" "eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn" "itFltsAndDblsToZero=0 -aForceBlockIOInitOptimize=0 -aGenerateReport=0 -aGenCo" "deOnly=0 -aRTWVerbose=1 -aIncludeHyperlinkInReport=0 -aLaunchReport=0 -aGener" "ateTraceInfo=0 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCust" "omStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdLen=31 -aShowEliminatedSta" "tements=0 -aIncDataTypeInIds=0 -aInsertBlockDesc=0 -aIgnoreTestpoints=0 -aSim" "ulinkBlockComments=1 -aInlinedPrmAccess=\"Literals\" -aSuppressErrorStatus=0" " -aModelReferenceCompliant=0 -aParenthesesLevel=\"Nominal\" -aModelStepFuncti" "onPrototypeControlCompliant=0 -aPortableWordSizes=0 -aSupportNonInlinedSFcns=" "1 -aSupportContinuousTime=1 -aSupportComplex=1 -aSupportNonFinite=1 -aSupport" "AbsoluteTime=1 -aMultiwordLength=2048 -aTargetPreCompLibLocation=\"\" -aTarge" "tLibSuffix=\"\" -aTargetFunctionLibrary=\"ANSI_C\" -aTargetFcnLib=\"ansi_tfl_" "tmw.mat\" -aMultiInstanceERTCode=0 -aLogVarNameModifier=\"rt_\" -aERTFirstTim" "eCompliant=0 -aIsPILTarget=0 -aCombineOutputUpdateFcns=0 -aGenerateClassInter" "face=0 -aGenerateTestInterfaces=0 -aGenerateSampleERTMain=0 -aGenerateFullHea" "der=1 -aUtilityFuncGeneration=\"Auto\" -aIncludeFileDelimiter=\"Auto\" -aIncl" "udeMdlTerminateFcn=1 -aPurelyIntegerCode=0 -aAutosarCompliant=0 -aERTCustomFi" "leBanners=0 -aMatFileLogging=0 -aCompOptLevelCompliant=0 -aCPPClassGenComplia" "nt=0 -aERTMultiwordLength=256 -aERTMultiwordTypeDef=\"System defined\" " BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType FromWorkspace VariableName "simulink_input" SampleTime "-1" Interpolate on OutputAfterFinalValue "Extrapolation" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Relay OnSwitchValue "eps" OffSwitchValue "eps" OnOutputValue "1" OffOutputValue "0" ShowAdditionalParam off OutputDataTypeScalingMode "All ports same datatype" OutDataType "sfix(16)" OutScaling "2^0" ConRadixGroup "Use specified scaling" ZeroCross on } Block { BlockType Scope Floating off 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 "0" } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType TransportDelay DelayTime "1" InitialInput "0" BufferSize "1024" PadeOrder "0" TransDelayFeedthrough off } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "hustemp_OS" Location [126, 102, 1025, 541] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Display Name "Elkostnad" Ports [1] Position [485, 105, 575, 135] Decimation "1" } Block { BlockType FromWorkspace Name "From\nWorkspace" Position [150, 216, 210, 244] VariableName "Timtemp" SampleTime "3600" } Block { BlockType Gain Name "Gain" Position [410, 30, 440, 60] Gain "1/3600/1000" } Block { BlockType SubSystem Name "Hus" Ports [2, 1] Position [290, 152, 340, 208] DropShadow on TreatAsAtomicUnit off MaskDisplay "plot(0,0,100,100,[20,80,80,20,20],[20,20,70,70," "20],[15,50,85,15],[70,90,70,70],[42,42,29,29],[20,44,44,20],[52,68,68,52,52]," "[55,55,44,44,55])" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "Tinne" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } System { Name "Hus" Location [204, 303, 556, 482] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Pt" Position [20, 37, 50, 53] } Block { BlockType Inport Name "Tout" Position [20, 112, 50, 128] Port "2" } Block { BlockType Gain Name "1/Mc" Position [125, 26, 170, 64] ShowName off Gain "1/Ct" } Block { BlockType Gain Name "1/Req" Position [105, 63, 150, 107] Orientation "left" ShowName off Gain "1/Rt" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [185, 35, 205, 55] ShowName off InitialCondition "22" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [75, 35, 95, 55] ShowName off IconShape "round" Inputs "|++" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [170, 75, 190, 95] Orientation "left" ShowName off IconShape "round" Inputs "|-+" } Block { BlockType Outport Name "T" Position [235, 37, 265, 53] InitialOutput "0" } Line { Labels [0, 0] SrcBlock "Tout" SrcPort 1 Points [125, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Pt" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "1/Mc" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "1/Req" DstPort 1 } Line { SrcBlock "1/Req" SrcPort 1 Points [-15, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "1/Mc" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { Points [0, 40] DstBlock "Sum2" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } } } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [295, 110, 315, 130] ShowName off } Block { BlockType Relay Name "Relay" Position [170, 150, 200, 180] OnSwitchValue "dt/2" OffSwitchValue "-dt/2" OnOutputValue "Pt" } Block { BlockType Gain Name "SEK / kWh" Position [345, 107, 385, 133] Gain "0.7/3600/1000" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [125, 155, 145, 175] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [370, 35, 390, 55] ShowName off IconShape "round" Inputs "|-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Scope Name "Temp, effekt och kostnad" Ports [5] Position [475, 262, 535, 328] Location [95, 320, 592, 834] Open off NumInputPorts "5" TickLabels "on" List { ListType AxesTitles axes1 "Tute [Celcius]" axes2 "Tinne [Celcius]" axes3 "P [W]" axes4 "Pn [kW]" axes5 "Årskostnad [SEK]" } List { ListType SelectedSignals axes1 "" axes2 "" axes3 "" axes4 "" axes5 "" } TimeRange "31536000" YMin "-30~19~0~-2.5~0" YMax "40~30~12500~12.5~20000" SaveToWorkspace on DataFormat "StructureWithTime" MaxDataPoints "5000000" } Block { BlockType TransportDelay Name "Transport\nDelay" Position [300, 30, 330, 60] DelayTime "3600" } Block { BlockType Constant Name "Tref" Position [70, 152, 110, 178] Value "20" } Line { SrcBlock "Integrator" SrcPort 1 Points [5, 0] Branch { DstBlock "SEK / kWh" DstPort 1 } Branch { Points [-40, 0] DstBlock "Transport\nDelay" DstPort 1 } Branch { Labels [1, 0] DstBlock "Sum1" DstPort 2 } } Line { Name "Tinne" Labels [0, 1] SrcBlock "Hus" SrcPort 1 Points [25, 0; 0, 105] Branch { Points [90, 0] DstBlock "Temp, effekt och kostnad" DstPort 2 } Branch { Points [-235, 0] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "SEK / kWh" SrcPort 1 Points [5, 0] Branch { DstBlock "Elkostnad" DstPort 1 } Branch { Points [0, 205] DstBlock "Temp, effekt och kostnad" DstPort 5 } } Line { SrcBlock "From\nWorkspace" SrcPort 1 Points [0, 0; 60, 0] Branch { Points [0, 35] DstBlock "Temp, effekt och kostnad" DstPort 1 } Branch { DstBlock "Hus" DstPort 2 } } Line { SrcBlock "Relay" SrcPort 1 Points [45, 0] Branch { Points [25, 0] Branch { DstBlock "Hus" DstPort 1 } Branch { Points [0, -45] DstBlock "Integrator" DstPort 1 } } Branch { Points [0, 130] DstBlock "Temp, effekt och kostnad" DstPort 3 } } Line { SrcBlock "Tref" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Relay" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [5, 0; 0, 265] DstBlock "Temp, effekt och kostnad" DstPort 4 } Annotation { Name "Tute" Position [236, 221] } Annotation { Name "P" Position [261, 158] } } }