Model {
  Name                    "detailed_components"
  Version                 6.5
  MdlSubVersion           0
  GraphicalInterface {
    NumRootInports          0
    NumRootOutports         0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.1452"
    NumModelReferences      0
    NumTestPointedSignals   28
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "detailed_components/Dynamic_HX_/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "detailed_components/Mixing_Point_3D_/Unit Delay"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Mixing_Point_3D_/Unit Delay"
"2"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "detailed_components/Mixing_Unit_1D_/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Mixing_Unit_1D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "detailed_components/Mixing_Unit_1D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "detailed_components/Mixing_Unit_1D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "detailed_components/Mixing_Unit_1D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               6
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "detailed_components/Mixing_Unit_2D_/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Mixing_Unit_2D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "detailed_components/Mixing_Unit_2D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "detailed_components/Mixing_Unit_2D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "detailed_components/Mixing_Unit_2D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               6
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "detailed_components/Mixing_Unit_3D_/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Mixing_Unit_3D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "detailed_components/Mixing_Unit_3D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "detailed_components/Mixing_Unit_3D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "detailed_components/Mixing_Unit_3D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               6
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "detailed_components/Mixing_Unit_4D_/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Mixing_Unit_4D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "detailed_components/Mixing_Unit_4D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "detailed_components/Mixing_Unit_4D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "detailed_components/Mixing_Unit_4D_/Embedded_MA"
"TLAB_Function_2"
      PortIndex               6
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Turbine_/Unit Delay"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_outlet_re_init"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "detailed_components/Vol_Isobaric_2D_/Embedded_M"
"ATLAB_Function_2"
      PortIndex               2
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "detailed_components/Vol_Isobaric_2D_/Embedded_M"
"ATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "detailed_components/Vol_Isobaric_2D_/Embedded_M"
"ATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "detailed_components/Vol_Isobaric_2D_/Embedded_M"
"ATLAB_Function_2"
      PortIndex               6
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
  }
  SavedCharacterEncoding  "windows-1252"
  SaveDefaultBlockParams  on
  SampleTimeColors        off
  LibraryLinkDisplay      "none"
  WideLines               off
  ShowLineDimensions      off
  ShowPortDataTypes       off
  ShowLoopsOnError        on
  IgnoreBidirectionalLines off
  ShowStorageClass        off
  ShowTestPointIcons      on
  ShowViewerIcons         on
  SortedOrder             off
  ExecutionContextIcon    off
  ShowLinearizationAnnotations on
  ScopeRefreshTime        0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes        off
  DataTypeOverride        "UseLocalSettings"
  MinMaxOverflowLogging   "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip        off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip off
  ToolBar                 on
  StatusBar               on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks   off
  Created                 "Mon Jan 16 11:17:42 2006"
  Creator                 "cm"
  UpdateHistory           "UpdateHistoryNever"
  ModifiedByFormat        "%<Auto>"
  LastModifiedBy          "cm"
  ModifiedDateFormat      "%<Auto>"
  LastModifiedDate        "Thu Mar 06 15:39:01 2008"
  ModelVersionFormat      "1.%<AutoIncrement:1452>"
  ConfigurationManager    "None"
  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
  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
  ProdHWDeviceType        "32-bit Generic"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type                    "Handle"
    Dimension               1
    Simulink.ConfigSet {
      $ObjectID               1
      Version                 "1.2.0"
      Array {
        Type                    "Handle"
        Dimension               7
        Simulink.SolverCC {
          $ObjectID               2
          Version                 "1.2.0"
          StartTime               "0.0"
          StopTime                "10.0"
          AbsTol                  "auto"
          FixedStep               "auto"
          InitialStep             "auto"
          MaxNumMinSteps          "-1"
          MaxOrder                5
          ConsecutiveZCsStepRelTol "10*128*eps"
          MaxConsecutiveZCs       "1000"
          ExtrapolationOrder      4
          NumberNewtonIterations  1
          MaxStep                 "auto"
          MinStep                 "auto"
          MaxConsecutiveMinStep   "1"
          RelTol                  "1e-3"
          SolverMode              "Auto"
          Solver                  "ode45"
          SolverName              "ode45"
          ZeroCrossControl        "UseLocalSettings"
          AlgebraicLoopSolver     "TrustRegion"
          SolverResetMethod       "Fast"
          PositivePriorityOrder   off
          AutoInsertRateTranBlk   off
          SampleTimeConstraint    "Unconstrained"
          RateTranMode            "Deterministic"
        }
        Simulink.DataIOCC {
          $ObjectID               3
          Version                 "1.2.0"
          Decimation              "1"
          ExternalInput           "[t, u]"
          FinalStateName          "xFinal"
          InitialState            "xInitial"
          LimitDataPoints         on
          MaxDataPoints           "1000"
          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
          Array {
            Type                    "Cell"
            Dimension               5
            Cell                    "ZeroExternalMemoryAtStartup"
            Cell                    "ZeroInternalMemoryAtStartup"
            Cell                    "InitFltsAndDblsToZero"
            Cell                    "OptimizeModelRefInitCode"
            Cell                    "NoFixptDivByZeroProtection"
            PropName                "DisabledProps"
          }
          Version                 "1.2.0"
          BlockReduction          on
          BooleanDataType         on
          ConditionallyExecuteInputs on
          InlineParams            off
          InlineInvariantSignals  off
          OptimizeBlockIOStorage  on
          BufferReuse             on
          EnforceIntegerDowncast  on
          ExpressionFolding       on
          FoldNonRolledExpr       on
          LocalBlockOutputs       on
          ParameterPooling        on
          RollThreshold           5
          SystemCodeInlineAuto    off
          StateBitsets            off
          DataBitsets             off
          UseTempVars             off
          ZeroExternalMemoryAtStartup on
          ZeroInternalMemoryAtStartup on
          InitFltsAndDblsToZero   on
          NoFixptDivByZeroProtection off
          EfficientFloat2IntCast  off
          OptimizeModelRefInitCode off
          LifeSpan                "inf"
          BufferReusableBoundary  on
        }
        Simulink.DebuggingCC {
          $ObjectID               5
          Version                 "1.2.0"
          RTPrefix                "error"
          ConsistencyChecking     "none"
          ArrayBoundsChecking     "none"
          SignalInfNanChecking    "none"
          ReadBeforeWriteMsg      "UseLocalSettings"
          WriteAfterWriteMsg      "UseLocalSettings"
          WriteAfterReadMsg       "UseLocalSettings"
          AlgebraicLoopMsg        "warning"
          ArtificialAlgebraicLoopMsg "warning"
          CheckSSInitialOutputMsg on
          CheckExecutionContextPreStartOutputMsg off
          CheckExecutionContextRuntimeOutputMsg off
          SignalResolutionControl "TryResolveAllWithWarning"
          BlockPriorityViolationMsg "warning"
          MinStepSizeMsg          "warning"
          TimeAdjustmentMsg       "none"
          MaxConsecutiveZCsMsg    "error"
          SolverPrmCheckMsg       "warning"
          InheritedTsInSrcMsg     "warning"
          DiscreteInheritContinuousMsg "warning"
          MultiTaskDSMMsg         "warning"
          MultiTaskCondExecSysMsg "none"
          MultiTaskRateTransMsg   "error"
          SingleTaskRateTransMsg  "none"
          TasksWithSamePriorityMsg "warning"
          SigSpecEnsureSampleTimeMsg "warning"
          CheckMatrixSingularityMsg "none"
          IntegerOverflowMsg      "warning"
          Int32ToFloatConvMsg     "warning"
          ParameterDowncastMsg    "error"
          ParameterOverflowMsg    "error"
          ParameterUnderflowMsg   "none"
          ParameterPrecisionLossMsg "warning"
          UnderSpecifiedDataTypeMsg "none"
          UnnecessaryDatatypeConvMsg "none"
          VectorMatrixConversionMsg "none"
          InvalidFcnCallConnMsg   "error"
          FcnCallInpInsideContextMsg "Use local settings"
          SignalLabelMismatchMsg  "none"
          UnconnectedInputMsg     "warning"
          UnconnectedOutputMsg    "warning"
          UnconnectedLineMsg      "warning"
          SFcnCompatibilityMsg    "none"
          UniqueDataStoreMsg      "none"
          BusObjectLabelMismatch  "warning"
          RootOutportRequireBusObject "warning"
          AssertControl           "UseLocalSettings"
          EnableOverflowDetection off
          ModelReferenceIOMsg     "none"
          ModelReferenceVersionMismatchMessage "none"
          ModelReferenceIOMismatchMessage "none"
          ModelReferenceCSMismatchMessage "none"
          ModelReferenceSimTargetVerbose off
          UnknownTsInhSupMsg      "warning"
          ModelReferenceDataLoggingMessage "warning"
          ModelReferenceSymbolNameMessage "warning"
          ModelReferenceExtraNoncontSigs "error"
          StrictBusMsg            "Warning"
        }
        Simulink.HardwareCC {
          $ObjectID               6
          Version                 "1.2.0"
          ProdBitPerChar          8
          ProdBitPerShort         16
          ProdBitPerInt           32
          ProdBitPerLong          32
          ProdIntDivRoundTo       "Undefined"
          ProdEndianess           "Unspecified"
          ProdWordSize            32
          ProdShiftRightIntArith  on
          ProdHWDeviceType        "32-bit Generic"
          TargetBitPerChar        8
          TargetBitPerShort       16
          TargetBitPerInt         32
          TargetBitPerLong        32
          TargetShiftRightIntArith on
          TargetIntDivRoundTo     "Undefined"
          TargetEndianess         "Unspecified"
          TargetWordSize          32
          TargetTypeEmulationWarnSuppressLevel 0
          TargetPreprocMaxBitsSint 32
          TargetPreprocMaxBitsUint 32
          TargetHWDeviceType      "Specified"
          TargetUnknown           off
          ProdEqTarget            on
        }
        Simulink.ModelReferenceCC {
          $ObjectID               7
          Version                 "1.2.0"
          UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
          CheckModelReferenceTargetMessage "error"
          ModelReferenceNumInstancesAllowed "Multi"
          ModelReferencePassRootInputsByReference on
          ModelReferenceMinAlgLoopOccurrences off
        }
        Simulink.RTWCC {
          $BackupClass            "Simulink.RTWCC"
          $ObjectID               8
          Array {
            Type                    "Cell"
            Dimension               1
            Cell                    "IncludeHyperlinkInReport"
            PropName                "DisabledProps"
          }
          Version                 "1.2.0"
          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
          IncludeHyperlinkInReport off
          LaunchReport            off
          TargetLang              "C"
          IncludeBusHierarchyInRTWFileBlockHierarchyMap off
          IncludeERTFirstTime     on
          Array {
            Type                    "Handle"
            Dimension               2
            Simulink.CodeAppCC {
              $ObjectID               9
              Array {
                Type                    "Cell"
                Dimension               9
                Cell                    "IgnoreCustomStorageClasses"
                Cell                    "InsertBlockDesc"
                Cell                    "SFDataObjDesc"
                Cell                    "SimulinkDataObjDesc"
                Cell                    "DefineNamingRule"
                Cell                    "SignalNamingRule"
                Cell                    "ParamNamingRule"
                Cell                    "InlinedPrmAccess"
                Cell                    "CustomSymbolStr"
                PropName                "DisabledProps"
              }
              Version                 "1.2.0"
              ForceParamTrailComments off
              GenerateComments        on
              IgnoreCustomStorageClasses on
              IncHierarchyInIds       off
              MaxIdLength             31
              PreserveName            off
              PreserveNameWithParent  off
              ShowEliminatedStatement off
              IncAutoGenComments      off
              SimulinkDataObjDesc     off
              SFDataObjDesc           off
              IncDataTypeInIds        off
              PrefixModelToSubsysFcnNames on
              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
            }
            Simulink.GRTTargetCC {
              $BackupClass            "Simulink.TargetCC"
              $ObjectID               10
              Array {
                Type                    "Cell"
                Dimension               12
                Cell                    "IncludeMdlTerminateFcn"
                Cell                    "CombineOutputUpdateFcns"
                Cell                    "SuppressErrorStatus"
                Cell                    "ERTCustomFileBanners"
                Cell                    "GenerateSampleERTMain"
                Cell                    "MultiInstanceERTCode"
                Cell                    "PurelyIntegerCode"
                Cell                    "SupportNonFinite"
                Cell                    "SupportComplex"
                Cell                    "SupportAbsoluteTime"
                Cell                    "SupportContinuousTime"
                Cell                    "SupportNonInlinedSFcns"
                PropName                "DisabledProps"
              }
              Version                 "1.2.0"
              TargetFcnLib            "ansi_tfl_tmw.mat"
              TargetLibSuffix         ""
              TargetPreCompLibLocation ""
              GenFloatMathFcnCalls    "ANSI_C"
              UtilityFuncGeneration   "Auto"
              GenerateFullHeader      on
              GenerateSampleERTMain   off
              GenerateTestInterfaces  off
              IsPILTarget             off
              ModelReferenceCompliant on
              IncludeMdlTerminateFcn  on
              CombineOutputUpdateFcns off
              SuppressErrorStatus     off
              IncludeFileDelimiter    "Auto"
              ERTCustomFileBanners    off
              SupportAbsoluteTime     on
              LogVarNameModifier      "rt_"
              MatFileLogging          on
              MultiInstanceERTCode    off
              SupportNonFinite        on
              SupportComplex          on
              PurelyIntegerCode       off
              SupportContinuousTime   on
              SupportNonInlinedSFcns  on
              EnableShiftOperators    on
              ParenthesesLevel        "Nominal"
              ExtMode                 off
              ExtModeStaticAlloc      off
              ExtModeTesting          off
              ExtModeStaticAllocSize  1000000
              ExtModeTransport        0
              ExtModeMexFile          "ext_comm"
              RTWCAPISignals          off
              RTWCAPIParams           off
              RTWCAPIStates           off
              GenerateASAP2           off
            }
            PropName                "Components"
          }
        }
        PropName                "Components"
      }
      Name                    "Configuration"
      SimulationMode          "normal"
      CurrentDlgPage          "Solver"
    }
    PropName                "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName               "ActiveConfigurationSet"
    $ObjectID               1
  }
  BlockDefaults {
    Orientation             "right"
    ForegroundColor         "black"
    BackgroundColor         "white"
    DropShadow              off
    NamePlacement           "normal"
    FontName                "arial"
    FontSize                10
    FontWeight              "normal"
    FontAngle               "normal"
    ShowName                on
  }
  BlockParameterDefaults {
    Block {
      BlockType               BusCreator
      Inputs                  "4"
      DisplayOption           "none"
      UseBusObject            off
      BusObject               "BusObject"
      NonVirtualBus           off
    }
    Block {
      BlockType               BusSelector
      OutputAsBus             off
    }
    Block {
      BlockType               Constant
    }
    Block {
      BlockType               Demux
      Outputs                 "4"
      DisplayOption           "none"
      BusSelectionMode        off
    }
    Block {
      BlockType               Gain
      Gain                    "1"
      Multiplication          "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType       "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling        "2^0"
      OutDataTypeMode         "Same as input"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      LockScale               off
      RndMeth                 "Floor"
      SaturateOnIntegerOverflow on
      SampleTime              "-1"
    }
    Block {
      BlockType               Inport
      Port                    "1"
      UseBusObject            off
      BusObject               "BusObject"
      BusOutputAsStruct       off
      PortDimensions          "-1"
      SampleTime              "-1"
      DataType                "auto"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      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
    }
    Block {
      BlockType               Lookup
    }
    Block {
      BlockType               Lookup2D
      RowIndex                "[0 1]"
      ColumnIndex             "[0 1]"
      OutputValues            "[0 0;0 0]"
      LookUpMeth              "Interpolation-Extrapolation"
      InputSameDT             on
      OutDataTypeMode         "Same as first input"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      LockScale               off
      RndMeth                 "Floor"
      SaturateOnIntegerOverflow on
      SampleTime              "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError       "0.01"
      LUTDesignAbsError       "1e-6"
    }
    Block {
      BlockType               Outport
      Port                    "1"
      UseBusObject            off
      BusObject               "BusObject"
      BusOutputAsStruct       off
      PortDimensions          "-1"
      SampleTime              "-1"
      DataType                "auto"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      SignalType              "auto"
      SamplingMode            "auto"
      OutputWhenDisabled      "held"
      InitialOutput           "[]"
    }
    Block {
      BlockType               Product
      Inputs                  "2"
      Multiplication          "Element-wise(.*)"
      InputSameDT             on
      OutDataTypeMode         "Same as first input"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      LockScale               off
      RndMeth                 "Zero"
      SaturateOnIntegerOverflow on
      SampleTime              "-1"
    }
    Block {
      BlockType               Saturate
      UpperLimit              "0.5"
      LowerLimit              "-0.5"
      LinearizeAsGain         on
      ZeroCross               on
      SampleTime              "-1"
    }
    Block {
      BlockType               "S-Function"
      FunctionName            "system"
      SFunctionModules        "''"
      PortCounts              "[]"
    }
    Block {
      BlockType               SubSystem
      ShowPortLabels          on
      Permissions             "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit       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                  "++"
      InputSameDT             on
      OutDataTypeMode         "Same as first input"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      LockScale               off
      RndMeth                 "Floor"
      SaturateOnIntegerOverflow on
      SampleTime              "-1"
    }
    Block {
      BlockType               Terminator
    }
    Block {
      BlockType               TransferFcn
      Numerator               "[1]"
      Denominator             "[1 2 1]"
      AbsoluteTolerance       "auto"
      Realization             "auto"
    }
    Block {
      BlockType               UnitDelay
      X0                      "0"
      SampleTime              "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment     "center"
    VerticalAlignment       "middle"
    ForegroundColor         "black"
    BackgroundColor         "white"
    DropShadow              off
    FontName                "arial"
    FontSize                10
    FontWeight              "normal"
    FontAngle               "normal"
  }
  LineDefaults {
    FontName                "arial"
    FontSize                9
    FontWeight              "normal"
    FontAngle               "normal"
  }
  System {
    Name                    "detailed_components"
    Location                [6, 82, 1274, 966]
    Open                    on
    ModelBrowserVisibility  off
    ModelBrowserWidth       200
    ScreenColor             "white"
    PaperOrientation        "landscape"
    PaperPositionMode       "auto"
    PaperType               "a4letter"
    PaperUnits              "centimeters"
    TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale          1
    ShowPageBoundaries      off
    ZoomFactor              "100"
    ReportName              "simulink-default.rpt"
    Block {
      BlockType               SubSystem
      Name                    "Compressor_"
      Ports                   [4, 4]
      Position                [305, 20, 495, 85]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Range Rotation Speed [1/min]|Range Pressure Rat"
"io: p_out/p_in|Map Mass Flow [kg/s]: Left Side|Map Mass Flow [kg/s]: Right Si"
"de|Mass Flow for the Maximum Pressure Ratio [kg/s]|Map Efficiency|Map Efficie"
"ncy: Range Mass Flow [kg/s]"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on"
      MaskCallbackString      "||||||"
      MaskEnableString        "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,"
      MaskVariables           "Range_N=@1;Range_p_out_p_in=@2;Map_m_dot_left=@"
"3;Map_m_dot_right=@4;Function_m_dot_N=@5;Map_eff=@6;Range_m_dot_eff=@7;"
      MaskDisplay             "disp('COMP')\nport_label('input',1,'Inlet_in')"
"\nport_label('input',2,'Outlet_in')\nport_label('input',3,'n')\nport_label('i"
"nput',4,'m_dot_ref')\nport_label('output',1,'Inlet_out')\nport_label('output'"
",2,'Outlet_out')\nport_label('output',3,'P_comp')\nport_label('output',4,'eff"
"_comp')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "Range_N_comp|Range_p_out_p_in_comp|M_m_dot_comp"
"_left|M_m_dot_comp_right|Function_m_dot_N_comp|M_eff_comp|Range_m_dot_eff_com"
"p"
      MaskTabNameString       ",,,,,,"
      System {
        Name                    "Compressor_"
        Location                [0, 112, 996, 758]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "80"
        Block {
          BlockType               Inport
          Name                    "Inlet_in"
          Position                [35, 193, 65, 207]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Outlet_in"
          Position                [35, 268, 65, 282]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "n"
          Position                [35, 533, 65, 547]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "m_dot_ref"
          Position                [35, 618, 65, 632]
          ForegroundColor         "green"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1662, 1065, 1783, 1070]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1527, 1065, 1648, 1070]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector"
          Ports                   [1, 1]
          Position                [90, 256, 95, 294]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [90, 147, 95, 248]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Product
          Name                    "Divide"
          Ports                   [2, 1]
          Position                [507, 300, 538, 330]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "*/"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          RndMeth                 "Floor"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function1"
          Ports                   [7, 5]
          Position                [999, 775, 1461, 945]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_2');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "T"
            PropagatedSignals       "T_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_outlet"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "eff"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 280, 320, 320]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 6"
              Ports                   [7, 6]
              Position                [180, 104, 230, 266]
              FunctionName            "sf_sfun"
              PortCounts              "[7 6]"
              Port {
                PortNumber              2
                Name                    "rho_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "T_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_air_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_air_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "P_comp"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 291, 480, 309]
            }
            Block {
              BlockType               Outport
              Name                    "rho_outlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_outlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_inlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_outlet"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "P_comp"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 175]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_outlet"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "m_dot_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "eff"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              Name                    "rho_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "T_outlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_air_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_air_outlet"
              DstPort                 1
            }
            Line {
              Name                    "P_comp"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "P_comp"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function2"
          Ports                   [8, 2]
          Position                [685, 297, 840, 703]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_1');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_0"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_left"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_right"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_ref"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_max"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 285, 320, 325]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 2"
              Ports                   [8, 3]
              Position                [180, 105, 230, 285]
              FunctionName            "sf_sfun"
              PortCounts              "[8 3]"
              Port {
                PortNumber              2
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air_corr"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 296, 480, 314]
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_corr"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 170]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_inlet"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "p_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_dot_left"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "m_dot_right"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "m_dot_ref"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "m_dot_max"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_corr"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air_corr"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function3"
          Ports                   [3, 1]
          Position                [425, 463, 505, 557]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_N');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function3"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T_air_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "n"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 180, 320, 220]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 22"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "N"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "N"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_air_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "n"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "N"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "N"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function4"
          Ports                   [3, 1]
          Position                [205, 31, 360, 119]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_T_air');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function4"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 180, 320, 220]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 15"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "T_air_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "T_air_inlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "T_air_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_air_inlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)2"
          Position                [575, 498, 630, 547]
          NamePlacement           "alternate"
          ShowName                off
          RowIndex                "Range_N"
          ColumnIndex             "Range_p_out_p_in"
          OutputValues            "Map_m_dot_left"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)3"
          Position                [575, 548, 630, 597]
          NamePlacement           "alternate"
          ShowName                off
          RowIndex                "Range_N"
          ColumnIndex             "Range_p_out_p_in"
          OutputValues            "Map_m_dot_right"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)4"
          Position                [870, 708, 925, 757]
          NamePlacement           "alternate"
          ShowName                off
          RowIndex                "Range_N"
          ColumnIndex             "Range_m_dot_eff"
          OutputValues            "Map_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup
          Name                    "Lookup Table1"
          Position                [575, 650, 630, 700]
          ShowName                off
          InputValues             "Range_N"
          OutputValues            "Function_m_dot_N"
          LookUpMeth              "Interpolation-Extrapolation"
          OutDataTypeMode         "Same as input"
          OutDataType             "sfix(16)"
          OutScaling              "2^0"
          LockScale               off
          RndMeth                 "Floor"
          SaturateOnIntegerOverflow off
          SampleTime              "-1"
          LUTDesignTableMode      "Redesign Table"
          LUTDesignDataSource     "Block Dialog"
          LUTDesignFunctionName   "sqrt(x)"
          LUTDesignUseExistingBP  on
          LUTDesignRelError       "0.01"
          LUTDesignAbsError       "1e-6"
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation1"
          Position                [945, 720, 970, 750]
          NamePlacement           "alternate"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Constant
          Name                    "T_0"
          Position                [585, 459, 630, 491]
          ForegroundColor         "green"
          ShowName                off
          Value                   "288.15"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [1465, 1015, 1495, 1045]
          ForegroundColor         "red"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_0"
          Position                [585, 409, 630, 441]
          ForegroundColor         "green"
          ShowName                off
          Value                   "101300"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Cold_inlet_out"
          Position                [1583, 1095, 1597, 1125]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Cold_outlet_out"
          Position                [1718, 1095, 1732, 1125]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "P_comp"
          Position                [1403, 1095, 1417, 1125]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "eff"
          Position                [978, 1095, 992, 1125]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Cold_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector"
          SrcPort                 1
          Points                  [0, 0; 415, 0]
          Branch {
            DstBlock                "Divide"
            DstPort                 1
          }
          Branch {
            Points                  [585, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 2
            }
            Branch {
              Points                  [435, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Cold_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [0, 0; 430, 0]
          Branch {
            DstBlock                "Divide"
            DstPort                 2
          }
          Branch {
            Points                  [125, 0]
            Branch {
              Points                  [380, 0]
              Branch {
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 1
              }
              Branch {
                Points                  [635, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 1
              }
            }
            Branch {
              Points                  [0, 165]
              DstBlock                "Embedded\nMATLA Function2"
              DstPort                 1
            }
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [0, 0; 70, 0]
          Branch {
            Points                  [1060, 0]
            Branch {
              Points                  [380, 0; 0, 810]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 4
            }
          }
          Branch {
            Points                  [0, -130]
            DstBlock                "Embedded\nMATLA Function4"
            DstPort                 2
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [0, 0; 75, 0]
          Branch {
            Points                  [1120, 0]
            Branch {
              Points                  [330, 0; 0, 800]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 5
            }
          }
          Branch {
            Points                  [0, -115]
            DstBlock                "Embedded\nMATLA Function4"
            DstPort                 3
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [0, 0; 65, 0]
          Branch {
            Points                  [0, -145]
            DstBlock                "Embedded\nMATLA Function4"
            DstPort                 1
          }
          Branch {
            Points                  [480, 0]
            Branch {
              Points                  [520, 0]
              Branch {
                Points                  [400, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 3
              }
            }
            Branch {
              Points                  [0, 185]
              DstBlock                "Embedded\nMATLA Function2"
              DstPort                 2
            }
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [1450, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [1540, 0; 0, 790]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 80, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Divide"
          SrcPort                 1
          Points                  [0, 0; 0, 200]
          Branch {
            DstBlock                "Lookup\nTable (2-D)2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 50]
            DstBlock                "Lookup\nTable (2-D)3"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)2"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)3"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 6
        }
        Line {
          SrcBlock                "m_dot_ref"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 7
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function2"
          SrcPort                 1
          Points                  [515, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 6
        }
        Line {
          SrcBlock                "Lookup Table1"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)4"
          SrcPort                 1
          DstBlock                "Saturation1"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 60; 410, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 45; 365, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 50; 635, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          Points                  [0, 55; 560, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 5
          DstBlock                "P_comp"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function2"
          SrcPort                 2
          Points                  [10, 0]
          DstBlock                "Lookup\nTable (2-D)4"
          DstPort                 2
        }
        Line {
          SrcBlock                "p_0"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 3
        }
        Line {
          SrcBlock                "T_0"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 4
          }
          Branch {
            Points                  [0, -75; -250, 0]
            DstBlock                "Embedded\nMATLA Function3"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "n"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLA Function3"
          DstPort                 3
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function3"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            DstBlock                "Lookup\nTable (2-D)2"
            DstPort                 1
          }
          Branch {
            Points                  [0, 50]
            Branch {
              DstBlock                "Lookup\nTable (2-D)3"
              DstPort                 1
            }
            Branch {
              Points                  [0, 115]
              Branch {
                DstBlock                "Lookup Table1"
                DstPort                 1
              }
              Branch {
                Points                  [0, 45]
                DstBlock                "Lookup\nTable (2-D)4"
                DstPort                 1
              }
            }
          }
        }
        Line {
          SrcBlock                "Saturation1"
          SrcPort                 1
          Points                  [0, 0; 10, 0]
          Branch {
            DstBlock                "eff"
            DstPort                 1
          }
          Branch {
            Points                  [440, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 7
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function4"
          SrcPort                 1
          Points                  [35, 0; 0, 405]
          DstBlock                "Embedded\nMATLA Function3"
          DstPort                 1
        }
        Annotation {
          Position                [740, 966]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Dynamic_HX_"
      Ports                   [4, 4]
      Position                [570, 240, 760, 305]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Hot Side: Pressure Drop Parameter: K_1|Hot Side"
": Pressure Drop Parameter:m_1|Cold Side: Pressure Drop Parameter: K_1|Cold Si"
"de: Pressure Drop Parameter: m_1|Mass Transfer Surface|Specific Heat Capacity"
" Transfer Surface|Temperature Wall|Effiency Map|Range Mass Flow Hot Side|Rang"
"e Mass Flow Cold Side"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,"
      MaskVariables           "K_1_hot=@1;m_1_hot=@2;K_1_cold=@3;m_1_cold=@4;m"
"_wall=@5;c_wall=@6;T_wall_init=@7;M_eff=@8;m_dot_hot=@9;m_dot_cold=@10;"
      MaskDisplay             "disp('HX')\nport_label('input',1,'Cold_inlet_in"
"')\nport_label('input',2,'Cold_outlet_in')\nport_label('input',3,'Hot_inlet_i"
"n')\nport_label('input',4,'Hot_outlet_in')\nport_label('output',1,'Cold_inlet"
"_out')\nport_label('output',2,'Cold_outlet_out')\nport_label('output',3,'Hot_"
"inlet_out')\nport_label('output',4,'Hot_outlet_out')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN|NaN|M_eff|Range_m_dot_h"
"ot_air|Range_m_dot_cold_air"
      MaskTabNameString       ",,,,,,,,,"
      System {
        Name                    "Dynamic_HX_"
        Location                [2, 78, 1261, 957]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "Cold_inlet_in"
          Position                [25, 88, 55, 102]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Cold_outlet_in"
          Position                [25, 158, 55, 172]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Hot_inlet_in"
          Position                [25, 238, 55, 252]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Hot_outlet_in"
          Position                [25, 308, 55, 322]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1542, 1415, 1663, 1420]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1407, 1415, 1528, 1420]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator3"
          Ports                   [8, 1]
          Position                [1812, 1415, 1933, 1420]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator4"
          Ports                   [8, 1]
          Position                [1677, 1415, 1798, 1420]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 1]
          Position                [80, 146, 85, 184]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector2"
          Ports                   [1, 1]
          Position                [80, 296, 85, 334]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [80, 42, 85, 143]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector4"
          Ports                   [1, 6]
          Position                [80, 192, 85, 293]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function"
          Ports                   [17, 6]
          Position                [522, 1080, 1278, 1255]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_2');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "T"
            PropagatedSignals       "T_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "T"
            PropagatedSignals       "T_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "rho"
            PropagatedSignals       "rho_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "rho"
            PropagatedSignals       "rho_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "m_wall"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "c_wall"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_cold"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_hot"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_cold_inlet"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_hot_inlet"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_outlet"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_outlet"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_cold"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_cold"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_hot"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_hot"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_wall_1"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_wall_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "eff"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "eff_HT_cold"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "eff_HT_hot"
              Position                [20, 676, 40, 694]
              Port                    "17"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 480, 320, 520]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 16"
              Ports                   [17, 7]
              Position                [180, 120, 230, 480]
              FunctionName            "sf_sfun"
              PortCounts              "[17 7]"
              Port {
                PortNumber              2
                Name                    "T_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "T_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "rho_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "rho_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "T_dot_wall_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "T_dot_wall_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 491, 480, 509]
            }
            Block {
              BlockType               Outport
              Name                    "T_cold_outlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_hot_outlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_cold_outlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_hot_outlet"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_dot_wall_1"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_dot_wall_2"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 350]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_wall"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "c_wall"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_dot_air_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_dot_air_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "p_cold_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "p_hot_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_H2O_gas_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_CO2_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_H2O_gas_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "x_CO2_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "T_wall_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "T_wall_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "eff"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "eff_HT_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              SrcBlock                "eff_HT_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 17
            }
            Line {
              Name                    "T_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "T_hot_outlet"
              DstPort                 1
            }
            Line {
              Name                    "rho_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "rho_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "rho_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "rho_hot_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_dot_wall_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "T_dot_wall_1"
              DstPort                 1
            }
            Line {
              Name                    "T_dot_wall_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "T_dot_wall_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function1"
          Ports                   [16, 6]
          Position                [232, 660, 698, 830]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_1');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              2
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_cold_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_hot_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "K_1_hot"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_1_hot"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_hot_inlet"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "K_1_cold"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_1_cold"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_cold_inlet"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_inlet"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_outlet"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_inlet"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_outlet"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_cold"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_cold"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_hot"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_hot"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_0"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 460, 320, 500]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 33"
              Ports                   [16, 7]
              Position                [180, 120, 230, 460]
              FunctionName            "sf_sfun"
              PortCounts              "[16 7]"
              Port {
                PortNumber              2
                Name                    "m_dot_air_cold"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air_cold_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_air_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_air_hot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_air_hot_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 471, 480, 489]
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_cold"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_cold_inlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_cold_outlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_hot"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_hot_inlet"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_hot_outlet"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 340]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "K_1_hot"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_1_hot"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "rho_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "K_1_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_1_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "rho_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "p_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "p_cold_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "p_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "p_hot_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_H2O_gas_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "x_CO2_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "x_H2O_gas_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_CO2_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "p_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air_cold"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_dot_air_cold"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_cold_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air_cold_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_air_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_hot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_air_hot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_hot_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_air_hot_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "m_dot_air_hot_outlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator"
          Ports                   [1, 1]
          Position                [1075, 1275, 1105, 1305]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          InitialCondition        "T_wall_init"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [1, 1]
          Position                [1200, 1275, 1230, 1305]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          InitialCondition        "T_wall_init"
          IgnoreLimit             off
          Port {
            PortNumber              1
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_wall_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Constant
          Name                    "K_1_cold"
          Position                [80, 425, 155, 455]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "K_1_cold"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "K_1_hot"
          Position                [80, 365, 155, 395]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "K_1_hot"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)1"
          Position                [1115, 962, 1155, 993]
          ShowName                off
          RowIndex                "m_dot_cold"
          ColumnIndex             "m_dot_hot"
          OutputValues            "M_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)2"
          Position                [1115, 892, 1155, 923]
          ShowName                off
          RowIndex                "m_dot_cold"
          ColumnIndex             "m_dot_hot"
          OutputValues            "M_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)3"
          Position                [1115, 927, 1155, 958]
          ShowName                off
          RowIndex                "m_dot_cold"
          ColumnIndex             "m_dot_hot"
          OutputValues            "M_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation1"
          Position                [1155, 1015, 1185, 1040]
          Orientation             "down"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation2"
          Position                [1200, 1015, 1230, 1040]
          Orientation             "down"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation3"
          Position                [1245, 1015, 1275, 1040]
          Orientation             "down"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Constant
          Name                    "T_0"
          Position                [80, 524, 125, 556]
          ForegroundColor         "green"
          ShowName                off
          Value                   "288.15"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "c_wall"
          Position                [380, 1020, 455, 1050]
          ForegroundColor         "green"
          ShowName                off
          Value                   "c_wall"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_1_cold"
          Position                [80, 455, 155, 485]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m_1_cold"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_1_hot"
          Position                [80, 395, 155, 425]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m_1_hot"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [1345, 1365, 1375, 1395]
          ForegroundColor         "red"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_wall"
          Position                [380, 990, 455, 1020]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m_wall"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "p_0"
          Position                [80, 489, 125, 521]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "101300"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Cold_inlet_out"
          Position                [1463, 1445, 1477, 1475]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Cold_outlet_out"
          Position                [1598, 1445, 1612, 1475]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Hot_inlet_out"
          Position                [1733, 1445, 1747, 1475]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Hot_outlet_out"
          Position                [1868, 1445, 1882, 1475]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Cold_inlet_in"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Hot_inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [390, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 9
          }
          Branch {
            Points                  [1340, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [330, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 7
          }
          Branch {
            Points                  [1130, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Cold_outlet_in"
          SrcPort                 1
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [360, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 8
          }
          Branch {
            Points                  [360, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Branch {
              Points                  [605, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
          }
        }
        Line {
          SrcBlock                "Hot_outlet_in"
          SrcPort                 1
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [420, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 10
          }
          Branch {
            Points                  [345, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Branch {
              Points                  [830, 0]
              DstBlock                "Bus\nCreator4"
              DstPort                 1
            }
          }
        }
        Line {
          SrcBlock                "Bus\nCreator3"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Hot_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator4"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Hot_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [450, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 11
          }
          Branch {
            Points                  [360, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Branch {
              Points                  [590, 0; 0, 1260]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
            }
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [510, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 13
          }
          Branch {
            Points                  [390, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Branch {
              Points                  [770, 0; 0, 1100]
              Branch {
                DstBlock                "Bus\nCreator4"
                DstPort                 6
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator3"
                DstPort                 6
              }
            }
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [540, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 14
          }
          Branch {
            Points                  [405, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Branch {
              Points                  [740, 0; 0, 1090]
              Branch {
                DstBlock                "Bus\nCreator4"
                DstPort                 7
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator3"
                DstPort                 7
              }
            }
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [480, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 12
          }
          Branch {
            Points                  [375, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Branch {
              Points                  [560, 0; 0, 1250]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
            }
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 150; 170, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 4
          }
          Branch {
            Points                  [410, 0]
            Branch {
              DstBlock                "Lookup\nTable (2-D)1"
              DstPort                 2
            }
            Branch {
              Points                  [0, -70]
              Branch {
                Points                  [0, -15]
                DstBlock                "Lookup\nTable (2-D)2"
                DstPort                 1
              }
              Branch {
                DstBlock                "Lookup\nTable (2-D)2"
                DstPort                 2
              }
            }
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 135; 350, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 3
          }
          Branch {
            Points                  [445, 0]
            Branch {
              DstBlock                "Lookup\nTable (2-D)1"
              DstPort                 1
            }
            Branch {
              Points                  [0, -20; 0, 0]
              Branch {
                Points                  [0, -15]
                DstBlock                "Lookup\nTable (2-D)3"
                DstPort                 1
              }
              Branch {
                DstBlock                "Lookup\nTable (2-D)3"
                DstPort                 2
              }
            }
          }
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)1"
          SrcPort                 1
          Points                  [10, 0]
          DstBlock                "Saturation1"
          DstPort                 1
        }
        Line {
          SrcBlock                "m_wall"
          SrcPort                 1
          Points                  [80, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "c_wall"
          SrcPort                 1
          Points                  [125, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [630, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 5
          }
          Branch {
            Points                  [725, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [675, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 6
          }
          Branch {
            Points                  [950, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          DstBlock                "Integrator"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator"
          SrcPort                 1
          Points                  [0, 10; 200, 0; 0, -255]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 13
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          Points                  [0, 30; 1120, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 35; 1180, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [300, 0]
          Branch {
            Points                  [1040, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 6
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [1430, 0; 0, 1240]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          Points                  [0, 90; 725, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 95; 990, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [210, 0]
          Branch {
            Points                  [1400, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 5
          Points                  [0, 40; 1165, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 5
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [1700, 0; 0, 1080]
          Branch {
            DstBlock                "Bus\nCreator4"
            DstPort                 8
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 8
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 85; 1135, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 3
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          Points                  [0, 80; 870, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 2
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 6
          Points                  [0, 45; 1225, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 5
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 80, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [135, 0]
            Branch {
              DstBlock                "Bus\nCreator1"
              DstPort                 4
            }
            Branch {
              Points                  [135, 0]
              Branch {
                DstBlock                "Bus\nCreator4"
                DstPort                 4
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator3"
                DstPort                 4
              }
            }
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 6
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator1"
          SrcPort                 1
          Points                  [0, 15; 70, 0; 0, -265; -160, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 14
        }
        Line {
          SrcBlock                "Saturation1"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 15
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)3"
          SrcPort                 1
          Points                  [55, 0]
          DstBlock                "Saturation2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Saturation2"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 16
        }
        Line {
          SrcBlock                "Saturation3"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 17
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)2"
          SrcPort                 1
          Points                  [100, 0]
          DstBlock                "Saturation3"
          DstPort                 1
        }
        Line {
          SrcBlock                "K_1_hot"
          SrcPort                 1
          Points                  [80, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 1
        }
        Line {
          SrcBlock                "m_1_hot"
          SrcPort                 1
          Points                  [110, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 2
        }
        Line {
          SrcBlock                "K_1_cold"
          SrcPort                 1
          Points                  [170, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 4
        }
        Line {
          SrcBlock                "m_1_cold"
          SrcPort                 1
          Points                  [200, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 5
        }
        Line {
          SrcBlock                "p_0"
          SrcPort                 1
          Points                  [530, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 15
        }
        Line {
          SrcBlock                "T_0"
          SrcPort                 1
          Points                  [560, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 16
        }
        Annotation {
          Position                [425, 696]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Generalized_Fan_"
      Ports                   [3, 3]
      Position                [335, 204, 460, 316]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Diameter [m]|Reference: Rotational Speed [1/min"
"]|Lower Limit: Rotational Speed [1/min]|Reference: Density [kg/m³]|a3 [Pa/(kg"
"/s)³]|a2 [Pa/(kg/s)²]|a1 [Pa/(kg/s)]|a0 [Pa]|V_dot_limit [m³/s]"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,"
      MaskVariables           "D=@1;n_0=@2;n_min=@3;rho_0=@4;a_3=@5;a_2=@6;a_1"
"=@7;a_0=@8;V_dot_limit=@9;"
      MaskDisplay             "plot([.5],[.5],[1 2 1 2 1],[1 1 2 2 1],[2.5],[2"
".5])\nport_label('input',1,'Inlet_in')\nport_label('input',2,'Outlet_in')\npo"
"rt_label('input',3,'n [1/min]')\nport_label('output',1,'Inlet_out')\nport_lab"
"el('output',2,'Outlet_out')\nport_label('output',3,'m_dot_pol')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,"
      System {
        Name                    "Generalized_Fan_"
        Location                [6, 82, 1257, 970]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "Inlet_In"
          Position                [40, 78, 70, 92]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Outlet_In"
          Position                [40, 168, 70, 182]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "n"
          Position                [40, 257, 70, 273]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Sum
          Name                    "Add"
          Ports                   [2, 1]
          Position                [832, 325, 863, 355]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "-+"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [452, 1125, 573, 1130]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [182, 1125, 303, 1130]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [95, 32, 100, 133]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector4"
          Ports                   [1, 1]
          Position                [95, 138, 100, 212]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function"
          Ports                   [17, 5]
          Position                [168, 690, 672, 820]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "T"
            PropagatedSignals       "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_in"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_out"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "n"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "n_0"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "n_min"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_0"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "a_0"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "a_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "a_2"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "a_3"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V_dot_limit"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "K"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_out"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_pol"
              Position                [20, 676, 40, 694]
              Port                    "17"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 480, 320, 520]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 12"
              Ports                   [17, 6]
              Position                [180, 120, 230, 480]
              FunctionName            "sf_sfun"
              PortCounts              "[17 6]"
              Port {
                PortNumber              2
                Name                    "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_in"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_out"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "Delta_p_pol"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 491, 480, 509]
            }
            Block {
              BlockType               Outport
              Name                    "rho"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_in"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_out"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_p_pol"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 350]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "n"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "n_0"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "n_min"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "rho_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "a_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "a_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "a_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "a_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "V_dot_limit"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "K"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "p_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "rho_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "T_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_H2O_gas_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "x_CO2_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "p_out"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              SrcBlock                "m_dot_pol"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 17
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho"
              DstPort                 1
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "T"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_in"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_in"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_out"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_out"
              DstPort                 1
            }
            Line {
              Name                    "Delta_p_pol"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "Delta_p_pol"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Gain
          Name                    "Gain"
          Position                [850, 825, 880, 855]
          Gain                    "-1"
          ParameterDataTypeMode   "Inherit via internal rule"
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "K"
          Position                [95, 607, 140, 643]
          ForegroundColor         "green"
          ShowName                off
          Value                   "0.1"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               SubSystem
          Name                    "Revers_Function_PT1"
          Ports                   [2, 1]
          Position                [905, 794, 985, 856]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Revers_Function_PT1"
            Location                [38, 86, 445, 252]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "Delta_p"
              Position                [25, 23, 55, 37]
              BackgroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_p_pol"
              Position                [25, 43, 55, 57]
              BackgroundColor         "green"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Constant
              Name                    "Constant1"
              Position                [25, 82, 110, 108]
              ShowName                off
              Value                   "0.1"
              VectorParams1D          on
              SamplingMode            "Sample based"
              OutDataTypeMode         "Inherit from 'Constant value'"
              OutDataType             "sfix(16)"
              ConRadixGroup           "Use specified scaling"
              OutScaling              "2^0"
              SampleTime              "inf"
              FramePeriod             "inf"
            }
            Block {
              BlockType               Constant
              Name                    "Constant2"
              Position                [155, 79, 260, 111]
              ShowName                off
              Value                   "100/(D^2)"
              VectorParams1D          on
              SamplingMode            "Sample based"
              OutDataTypeMode         "Inherit from 'Constant value'"
              OutDataType             "sfix(16)"
              ConRadixGroup           "Use specified scaling"
              OutScaling              "2^0"
              SampleTime              "inf"
              FramePeriod             "inf"
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator"
              Ports                   [1, 1]
              Position                [220, 40, 250, 70]
              ShowName                off
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "x"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Product
              Name                    "Product1"
              Ports                   [2, 1]
              Position                [140, 29, 160, 76]
              ShowName                off
              Inputs                  "*/"
              InputSameDT             off
              RndMeth                 "Floor"
              Port {
                PortNumber              1
                Name                    "x_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Product
              Name                    "Product2"
              Ports                   [2, 1]
              Position                [285, 44, 305, 91]
              ShowName                off
              Inputs                  "*/"
              InputSameDT             off
              RndMeth                 "Floor"
            }
            Block {
              BlockType               Sum
              Name                    "Sum"
              Ports                   [2, 1]
              Position                [75, 19, 90, 61]
              ShowName                off
              Inputs                  "+-"
              InputSameDT             off
              OutDataTypeMode         "Inherit via internal rule"
              Port {
                PortNumber              1
                Name                    "u - x"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_pol"
              Position                [330, 63, 360, 77]
              BackgroundColor         "red"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Name                    "u - x"
              Labels                  [0, 1]
              SrcBlock                "Sum"
              SrcPort                 1
              DstBlock                "Product1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Constant1"
              SrcPort                 1
              Points                  [10, 0]
              DstBlock                "Product1"
              DstPort                 2
            }
            Line {
              Name                    "x_dot"
              Labels                  [1, 0]
              SrcBlock                "Product1"
              SrcPort                 1
              DstBlock                "Integrator"
              DstPort                 1
            }
            Line {
              Name                    "x"
              Labels                  [0, 1]
              SrcBlock                "Integrator"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Product2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Constant2"
              SrcPort                 1
              Points                  [0, -15]
              DstBlock                "Product2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Delta_p"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 1
            }
            Line {
              SrcBlock                "Delta_p_pol"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 2
            }
            Line {
              SrcBlock                "Product2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "m_dot_pol"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "V_dot_limit"
          Position                [95, 566, 165, 604]
          ForegroundColor         "green"
          ShowName                off
          Value                   "V_dot_limit"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "a_0"
          Position                [95, 407, 140, 443]
          ForegroundColor         "green"
          ShowName                off
          Value                   "a_0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "a_1"
          Position                [95, 447, 140, 483]
          ForegroundColor         "green"
          ShowName                off
          Value                   "a_1"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "a_2"
          Position                [95, 487, 140, 523]
          ForegroundColor         "green"
          ShowName                off
          Value                   "a_2"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "a_3"
          Position                [95, 527, 140, 563]
          ForegroundColor         "green"
          ShowName                off
          Value                   "a_3"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [110, 1075, 140, 1105]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "n_0"
          Position                [95, 287, 140, 323]
          ForegroundColor         "green"
          ShowName                off
          Value                   "n_0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "n_min"
          Position                [95, 327, 140, 363]
          ForegroundColor         "green"
          ShowName                off
          Value                   "n_min"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "rho_0"
          Position                [95, 367, 140, 403]
          ForegroundColor         "green"
          ShowName                off
          Value                   "rho_0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Inlet_Out"
          Position                [238, 1155, 252, 1185]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Outlet_Out"
          Position                [508, 1155, 522, 1185]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "m_dot_pol"
          Position                [1020, 818, 1050, 832]
          ForegroundColor         "blue"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 130; 170, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 145; 255, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Gain"
          SrcPort                 1
          DstBlock                "Revers_Function_PT1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          Points                  [0, 15]
          DstBlock                "Gain"
          DstPort                 1
        }
        Line {
          SrcBlock                "Revers_Function_PT1"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            Points                  [0, -150]
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 17
          }
          Branch {
            DstBlock                "m_dot_pol"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Add"
          SrcPort                 1
          Points                  [0, 450]
          DstBlock                "Revers_Function_PT1"
          DstPort                 1
        }
        Line {
          SrcBlock                "K"
          SrcPort                 1
          Points                  [305, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 10
        }
        Line {
          SrcBlock                "V_dot_limit"
          SrcPort                 1
          Points                  [250, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 9
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          Points                  [0, 115; -170, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "a_0"
          SrcPort                 1
          Points                  [155, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "a_1"
          SrcPort                 1
          Points                  [185, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "a_2"
          SrcPort                 1
          Points                  [215, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 7
        }
        Line {
          SrcBlock                "a_3"
          SrcPort                 1
          Points                  [245, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 8
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [705, 0; 0, 955; -245, 0]
          Branch {
            Points                  [-270, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [495, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 15
          }
          Branch {
            Points                  [190, 0; 0, 955; -240, 0]
            Branch {
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Branch {
              Points                  [-270, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 7
            }
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [465, 0]
          Branch {
            Points                  [200, 0; 0, 955; -235, 0]
            Branch {
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Branch {
              Points                  [-270, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 6
            }
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 14
          }
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [525, 0]
          Branch {
            Points                  [60, 0]
            Branch {
              Points                  [0, 810; -500, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Branch {
              Points                  [150, 0]
              DstBlock                "Add"
              DstPort                 1
            }
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 16
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [435, 0]
          Branch {
            Points                  [210, 0; 0, 955; -530, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 13
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [405, 0]
          Branch {
            Points                  [220, 0; 0, 955; -525, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 12
          }
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [375, 0]
          Branch {
            Points                  [230, 0]
            Branch {
              Points                  [0, 0; 0, 955; -250, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Branch {
              Points                  [145, 0]
              DstBlock                "Add"
              DstPort                 2
            }
          }
          Branch {
            Points                  [0, 0]
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 11
          }
        }
        Line {
          SrcBlock                "rho_0"
          SrcPort                 1
          Points                  [125, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Outlet_Out"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 90, 0]
          Branch {
            Points                  [270, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "n"
          SrcPort                 1
          Points                  [105, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "n_0"
          SrcPort                 1
          Points                  [65, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Inlet_In"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "n_min"
          SrcPort                 1
          Points                  [95, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "Outlet_In"
          SrcPort                 1
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Inlet_Out"
          DstPort                 1
        }
        Annotation {
          Position                [440, 821]
          UseDisplayTextAsClickCallback off
        }
        Annotation {
          Position                [1255, 1532]
          UseDisplayTextAsClickCallback off
        }
        Annotation {
          Position                [1250, 1302]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Heat_Mass_Exchange_"
      Ports                   [2, 2]
      Position                [165, 72, 245, 128]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Exchange Surface [m²]|Exchange Length [m]|Ampli"
"fication Gain"
      MaskStyleString         "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString        "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString       "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables           "A=@1;L=@2;gain=@3;"
      MaskDisplay             "plot([.5],[.5],[1 1 2 2 2 2.5 3 4 4.5 5],[1 2 1"
" 2 1.5 1.5 2 1 1.5 1.5],[2.5],[2.5])\nport_label('input',1,'1')\nport_label('"
"input',2,'2')\nport_label('output',1,'1')\nport_label('output',2,'2')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "Heat_Mass_Exchange_"
        Location                [-70, 182, 926, 751]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [30, 83, 60, 97]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [30, 188, 60, 202]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [377, 755, 498, 760]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [152, 755, 273, 760]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 4]
          Position                [85, 141, 90, 244]
          ShowName                off
          OutputSignals           "rho,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 4]
          Position                [85, 36, 90, 139]
          ShowName                off
          OutputSignals           "rho,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Constant1"
          Position                [85, 280, 115, 310]
          ForegroundColor         "green"
          ShowName                off
          Value                   "L"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "Constant2"
          Position                [80, 665, 110, 695]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Constant3"
          Position                [80, 560, 110, 590]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "p"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Constant4"
          Position                [80, 595, 110, 625]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Constant5"
          Position                [85, 310, 125, 340]
          ForegroundColor         "green"
          ShowName                off
          Value                   "gain"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "Constant6"
          Position                [80, 630, 110, 660]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Constant7"
          Position                [85, 250, 115, 280]
          ForegroundColor         "green"
          ShowName                off
          Value                   "A"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function"
          Ports                   [11, 5]
          Position                [176, 360, 624, 485]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "A"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "L"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "gain"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_1"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_1"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_2"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 355, 320, 395]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 103"
              Ports                   [11, 6]
              Position                [180, 114, 230, 356]
              FunctionName            "sf_sfun"
              PortCounts              "[11 6]"
              Port {
                PortNumber              2
                Name                    "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_air_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 366, 480, 384]
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_1"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 240]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "A"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "L"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "gain"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "rho_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "rho_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              Name                    "m_dot_air_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_dot_air_1"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_air_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out_1"
          Position                [208, 785, 222, 815]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [433, 785, 447, 815]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [425, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 9
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [345, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 7
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [305, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 6
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [265, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [225, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "Constant5"
          SrcPort                 1
          Points                  [150, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "Constant1"
          SrcPort                 1
          Points                  [120, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "Constant7"
          SrcPort                 1
          Points                  [80, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "Constant2"
          SrcPort                 1
          Points                  [0, 0; 90, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [225, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          Points                  [0, 65; -135, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Out_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [385, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 8
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [465, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 10
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [505, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 11
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Constant3"
          SrcPort                 1
          Points                  [0, 0; 45, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 1
          }
          Branch {
            Points                  [225, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Constant4"
          SrcPort                 1
          Points                  [0, 0; 60, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
          Branch {
            Points                  [225, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Constant6"
          SrcPort                 1
          Points                  [0, 0; 75, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [225, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 20; 0, 0]
          Branch {
            Points                  [-75, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [150, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          Points                  [0, 35]
          Branch {
            Points                  [-150, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 7
          }
          Branch {
            Points                  [75, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          Points                  [0, 50]
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
          Branch {
            Points                  [-225, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Out_1"
          DstPort                 1
        }
        Annotation {
          Position                [410, 616]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Hot_Bar_"
      Ports                   [4, 4]
      Position                [570, 22, 745, 138]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Effiency Map|Range Mass Flow Hot Side|Range Mas"
"s Flow Cold Side"
      MaskStyleString         "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString        "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString       "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables           "M_eff=@1;m_dot_hot=@2;m_dot_cold=@3;"
      MaskDisplay             "disp('Hot_Bar')\nport_label('input',1,'Cold_inl"
"et_in')\nport_label('input',2,'Cold_outlet_in')\nport_label('input',3,'Hot_in"
"let_in')\nport_label('input',4,'Hot_outlet_in')\nport_label('output',1,'Cold_"
"inlet_out')\nport_label('output',2,'Cold_outlet_out')\nport_label('output',3,"
"'Hot_inlet_out')\nport_label('output',4,'Hot_outlet_out')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "M_eff_HOTBAR|Range_m_dot_hot_air|Range_m_dot_co"
"ld_air"
      MaskTabNameString       ",,"
      System {
        Name                    "Hot_Bar_"
        Location                [196, 113, 1209, 784]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "80"
        Block {
          BlockType               Inport
          Name                    "Cold_inlet_in"
          Position                [25, 223, 55, 237]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Cold_outlet_in"
          Position                [25, 323, 55, 337]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Hot_inlet_in"
          Position                [25, 433, 55, 447]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Hot_outlet_in"
          Position                [25, 533, 55, 547]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [372, 965, 493, 970]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [242, 965, 363, 970]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator3"
          Ports                   [8, 1]
          Position                [632, 965, 753, 970]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator4"
          Ports                   [8, 1]
          Position                [502, 965, 623, 970]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 8]
          Position                [80, 279, 85, 381]
          ShowName                off
          OutputSignals           "p,rho,T,m_air,m_dot_air,x_H2O_gas,x_CO2,x_H"
"2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<m_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              8
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector2"
          Ports                   [1, 6]
          Position                [80, 386, 85, 489]
          ShowName                off
          OutputSignals           "p,T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [80, 176, 85, 279]
          ShowName                off
          OutputSignals           "p,T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector4"
          Ports                   [1, 8]
          Position                [80, 489, 85, 591]
          ShowName                off
          OutputSignals           "p,rho,T,m_air,m_dot_air,x_H2O_gas,x_CO2,x_H"
"2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<m_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              8
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function1"
          Ports                   [11, 4]
          Position                [875, 635, 1335, 805]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "T"
            PropagatedSignals       "T_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "eff"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_cold"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_hot"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_cold_inlet"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_hot_inlet"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_outlet"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_outlet"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_cold"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_cold"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_hot"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_hot"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 355, 320, 395]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 1"
              Ports                   [11, 5]
              Position                [180, 114, 230, 356]
              FunctionName            "sf_sfun"
              PortCounts              "[11 5]"
              Port {
                PortNumber              2
                Name                    "rho_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "T_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 366, 480, 384]
            }
            Block {
              BlockType               Outport
              Name                    "rho_cold_outlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_hot_outlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_cold_outlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_hot_outlet"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 240]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "eff"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_dot_air_cold"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_dot_air_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "p_cold_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "p_hot_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_gas_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_CO2_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              Name                    "rho_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "rho_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_hot_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "T_hot_outlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)1"
          Position                [887, 560, 918, 600]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          RowIndex                "m_dot_cold"
          ColumnIndex             "m_dot_hot"
          OutputValues            "M_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [185, 895, 215, 925]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Outport
          Name                    "Cold_inlet_out"
          Position                [298, 995, 312, 1025]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Cold_outlet_out"
          Position                [428, 995, 442, 1025]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Hot_inlet_out"
          Position                [558, 995, 572, 1025]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Hot_outlet_out"
          Position                [688, 995, 702, 1025]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Cold_inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_inlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator3"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Hot_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator4"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Hot_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [160, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 1
          }
          Branch {
            Points                  [855, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 6
          }
        }
        Line {
          SrcBlock                "Cold_outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [175, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [190, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 3
        }
        Line {
          Name                    "<m_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [205, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 4
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [220, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 6
          Points                  [235, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 6
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 7
          Points                  [250, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 8
          Points                  [265, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 8
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [290, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [365, 0]
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
          Branch {
            Points                  [730, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 8
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [380, 0]
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
          Branch {
            Points                  [755, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 9
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [395, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)1"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 1
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [350, 0]
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 5
          }
          Branch {
            Points                  [455, 0]
            Branch {
              Points                  [50, 0]
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 2
            }
            Branch {
              DstBlock                "Lookup\nTable (2-D)1"
              DstPort                 1
            }
          }
        }
        Line {
          SrcBlock                "Hot_inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Hot_outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [420, 0]
          Branch {
            DstBlock                "Bus\nCreator4"
            DstPort                 1
          }
          Branch {
            Points                  [635, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 7
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [435, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 2
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [450, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 3
        }
        Line {
          Name                    "<m_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [465, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 4
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [480, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 5
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [495, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 6
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 7
          Points                  [510, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 7
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 8
          Points                  [525, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 8
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [550, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [625, 0]
          Branch {
            DstBlock                "Bus\nCreator3"
            DstPort                 6
          }
          Branch {
            Points                  [550, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 10
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [640, 0]
          Branch {
            DstBlock                "Bus\nCreator3"
            DstPort                 7
          }
          Branch {
            Points                  [575, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 11
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 6
          Points                  [655, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 8
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [610, 0]
          Branch {
            DstBlock                "Bus\nCreator3"
            DstPort                 5
          }
          Branch {
            Points                  [210, 0]
            Branch {
              Points                  [75, 0]
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 3
            }
            Branch {
              DstBlock                "Lookup\nTable (2-D)1"
              DstPort                 2
            }
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [935, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 4
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [975, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 5
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 35; -540, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 50; -755, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          Points                  [0, 65; -395, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 80; -610, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 3
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 205, 0]
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
          Branch {
            Points                  [260, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 4
          }
        }
        Annotation {
          Position                [425, 826]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "ISA_"
      Ports                   [2, 1]
      Position                [165, 22, 250, 53]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Temperature Bias [K]|Intrinsic Gas Constant [J/"
"kg K]|Water Vapor Content|CO2 Content|Water Content"
      MaskStyleString         "edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on"
      MaskCallbackString      "||||"
      MaskEnableString        "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables           "Delta_T=@1;R_i=@2;x_WV=@3;x_CO2=@4;x_H2O=@5;"
      MaskDisplay             "disp('ISA')\nport_label('input',2,'Ext')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "0|287.053|0|0|0"
      MaskTabNameString       ",,,,"
      System {
        Name                    "ISA_"
        Location                [37, 278, 1049, 928]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "In"
          Position                [175, 53, 205, 67]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Ext"
          Position                [175, 88, 205, 102]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [485, 218, 490, 372]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               Constant
          Name                    "Delta_T"
          Position                [175, 119, 225, 151]
          ForegroundColor         "green"
          ShowName                off
          Value                   "Delta_T"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [3, 3]
          Position                [270, 73, 380, 197]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "p"
            PropagatedSignals       "p"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLAB Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "h_flight"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_T"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "R"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 210, 320, 250]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 11"
              Ports                   [3, 4]
              Position                [180, 102, 230, 203]
              FunctionName            "sf_sfun"
              PortCounts              "[3 4]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 221, 480, 239]
            }
            Block {
              BlockType               Outport
              Name                    "p"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "h_flight"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "Delta_T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "R"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "p"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho"
              DstPort                 1
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "R"
          Position                [175, 159, 225, 191]
          ForegroundColor         "green"
          ShowName                off
          Value                   "R"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Terminator
          Name                    "Terminator"
          Position                [230, 50, 250, 70]
          ShowName                off
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [270, 205, 300, 235]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_dot_air"
          Position                [270, 240, 300, 270]
          ForegroundColor         "red"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "x_CO2"
          Position                [270, 313, 330, 347]
          ForegroundColor         "green"
          ShowName                off
          Value                   "x_CO2"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_gas"
          Position                [270, 278, 330, 312]
          ForegroundColor         "green"
          ShowName                off
          Value                   "x_H2O_gas"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_liq"
          Position                [270, 348, 330, 382]
          ForegroundColor         "green"
          ShowName                off
          Value                   "x_H2O_liq"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [515, 288, 545, 302]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Terminator"
          DstPort                 1
        }
        Line {
          SrcBlock                "R"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "Delta_T"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Ext"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [105, 0; 0, 50]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_gas"
          SrcPort                 1
          Points                  [60, 0; 0, 30]
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [45, 0; 0, 15]
          DstBlock                "Bus\nCreator1"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [70, 0; 0, 110]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [55, 0; 0, 130]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [85, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 1]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [120, 0; 0, 65]
          DstBlock                "Bus\nCreator1"
          DstPort                 4
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Mixing_Point_3D_"
      Ports                   [3, 1]
      Position                [25, 27, 105, 83]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Initial Parameter: Pressure [Pa]|Initial Parame"
"ter: Temperature [K]|Threshold Equality Input/Output Pressures [Pa]"
      MaskStyleString         "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString        "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString       "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables           "p_init=@1;T_init=@2;Delta_p_threshold=@3;"
      MaskDisplay             "plot([0],[0],[1.5 1.5],[1.5 2.5],[3.5],[3])\npl"
"ot([0],[0],[0.5 2.5],[1.5 1.5],[3],[3])\ntext(2.15,.45,'Mixing')\nport_label("
"'input',1,'1')\nport_label('input',2,'2')\nport_label('input',3,'3')\nport_la"
"bel('output',1,'3D')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "Mixing_Point_3D_"
        Location                [110, 174, 1106, 824]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [265, 88, 295, 102]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [265, 213, 295, 227]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_3"
          Position                [265, 338, 295, 352]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [650, 752, 655, 873]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 7]
          Position                [235, 36, 240, 154]
          Orientation             "left"
          ShowName                off
          OutputSignals           "p,rho,T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector2"
          Ports                   [1, 7]
          Position                [235, 286, 240, 404]
          Orientation             "left"
          ShowName                off
          OutputSignals           "p,rho,T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector4"
          Ports                   [1, 7]
          Position                [235, 161, 240, 279]
          Orientation             "left"
          ShowName                off
          OutputSignals           "p,rho,T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Delta_p_threshold"
          Position                [35, 878, 135, 902]
          ForegroundColor         "green"
          ShowName                off
          Value                   "Delta_p_threshold"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function"
          Ports                   [28, 6]
          Position                [185, 469, 350, 906]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded_MATLAB_Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p_old"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_old"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_old"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_old"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_old"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_old"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_1"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_1"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_1"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_2"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_2"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_2"
              Position                [20, 676, 40, 694]
              Port                    "17"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 711, 40, 729]
              Port                    "18"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 746, 40, 764]
              Port                    "19"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              Position                [20, 786, 40, 804]
              Port                    "20"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_3"
              Position                [20, 821, 40, 839]
              Port                    "21"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_3"
              Position                [20, 856, 40, 874]
              Port                    "22"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_3"
              Position                [20, 891, 40, 909]
              Port                    "23"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_3"
              Position                [20, 926, 40, 944]
              Port                    "24"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_3"
              Position                [20, 966, 40, 984]
              Port                    "25"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_3"
              Position                [20, 1001, 40, 1019]
              Port                    "26"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_3"
              Position                [20, 1036, 40, 1054]
              Port                    "27"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_p_threshold"
              Position                [20, 1071, 40, 1089]
              Port                    "28"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 700, 320, 740]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 24"
              Ports                   [28, 7]
              Position                [180, 120, 230, 700]
              FunctionName            "sf_sfun"
              PortCounts              "[28 7]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_gas_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 711, 480, 729]
            }
            Block {
              BlockType               Outport
              Name                    "p"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_bar"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_bar"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_bar"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_bar"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 550]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_old"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "rho_old"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_liq_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "p_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "rho_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "m_dot_air_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "p_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "rho_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              SrcBlock                "m_dot_air_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 17
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 18
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 19
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 20
            }
            Line {
              SrcBlock                "p_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 21
            }
            Line {
              SrcBlock                "rho_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 22
            }
            Line {
              SrcBlock                "T_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 23
            }
            Line {
              SrcBlock                "m_dot_air_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 24
            }
            Line {
              SrcBlock                "x_H2O_gas_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 25
            }
            Line {
              SrcBlock                "x_CO2_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 26
            }
            Line {
              SrcBlock                "x_H2O_liq_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 27
            }
            Line {
              SrcBlock                "Delta_p_threshold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 28
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "p"
              DstPort                 1
            }
            Line {
              Name                    "rho_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_bar"
              DstPort                 1
            }
            Line {
              Name                    "T_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_bar"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [375, 498, 410, 532]
          ShowName                off
          X0                      "p_init"
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "p"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay1"
          Position                [375, 568, 410, 602]
          ShowName                off
          X0                      "p_init/(287.058*T_init)"
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay2"
          Position                [375, 638, 410, 672]
          ShowName                off
          X0                      "T_init"
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay3"
          Position                [375, 708, 410, 742]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay4"
          Position                [375, 778, 410, 812]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay5"
          Position                [375, 848, 410, 882]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [460, 890, 490, 920]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_dot_air"
          Position                [460, 925, 490, 955]
          ForegroundColor         "red"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [680, 808, 710, 822]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 7
          Points                  [-195, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 27
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 6
          Points                  [-190, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 26
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-185, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 25
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-180, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 24
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-175, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 23
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-170, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 22
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-165, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 21
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 7
          Points                  [-160, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 20
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [-155, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [-150, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 18
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [-145, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 17
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [-140, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 16
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [-135, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 15
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [-130, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 7
          Points                  [-125, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 13
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 6
          Points                  [-120, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-115, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 11
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-110, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 10
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-105, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 9
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-100, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 8
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [-95, 0; 0, 525]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 7
        }
        Line {
          SrcBlock                "In_3"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay3"
          SrcPort                 1
          Points                  [65, 0]
          Branch {
            Points                  [25, 0; 0, 110]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
          Branch {
            Points                  [0, -285; -325, 0; 0, 90]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay5"
          SrcPort                 1
          Points                  [75, 0]
          Branch {
            Points                  [0, -415; -345, 0; 0, 110]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 6
          }
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay4"
          SrcPort                 1
          Points                  [70, 0]
          Branch {
            Points                  [35, 0; 0, 55]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
          Branch {
            Points                  [0, -350; -335, 0; 0, 100]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 5
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [55, 0; 0, -100]
          DstBlock                "Bus\nCreator1"
          DstPort                 4
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [40, 0; 0, -120]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [60, 0]
          Branch {
            Points                  [0, -220; -315, 0; 0, 80]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 3
          }
          Branch {
            Points                  [75, 0; 0, 135]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [55, 0]
          Branch {
            Points                  [0, -155; -305, 0; 0, 70]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 2
          }
          Branch {
            Points                  [65, 0; 0, 190]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [50, 0]
          Branch {
            Points                  [0, -90; -295, 0]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 1
          }
          Branch {
            Points                  [55, 0; 0, 245]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 6
          DstBlock                "Unit Delay5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 5
          DstBlock                "Unit Delay4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 4
          DstBlock                "Unit Delay3"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 1
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 2
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 3
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Delta_p_threshold"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 28
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Mixing_Unit_1D_"
      Ports                   [2, 1]
      Position                [25, 138, 105, 202]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Volume [m³]|Initial Parameter: Pressure [Pa]|In"
"itial Parameter: Temperature [K]|Initial Parameter: Water Vapor Content|Initi"
"al Parameter: CO2 Content|Initial Parameter: Water Content"
      MaskStyleString         "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString        "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables           "V=@1;p_init=@2;T_init=@3;x_H2O_gas_init=@4;x_CO"
"2_init=@5;x_H2O_liq_init=@6;"
      MaskDisplay             "plot([0],[0],[1 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"plot([0],[0],[1.5 1.5],[2 2.5],[3],[3])\nplot([0],[0],[0.5 1],[1.5 1.5],[3],["
"3])\nplot([0],[0],[2.0 2.5],[1.5 1.5],[3],[3])\ntext(1.88,.45,'Mixing')\ntext"
"(2.5,2.7,'1D')\nport_label('input',1,'1')\nport_label('input',2,'Q_dot')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Mixing_Unit_1D_"
        Location                [2, 82, 1253, 978]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [210, 78, 240, 92]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [210, 143, 240, 157]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1140, 551, 1145, 674]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector6"
          Ports                   [1, 5]
          Position                [180, 34, 185, 136]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [6, 4]
          Position                [370, 123, 510, 297]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Initial');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLAB Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_init"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_init"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_init"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_init"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_init"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 245, 320, 285]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 18"
              Ports                   [6, 5]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 5]"
              Port {
                PortNumber              2
                Name                    "m_air_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_H2O_gas_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_CO2_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_H2O_liq_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 256, 480, 274]
            }
            Block {
              BlockType               Outport
              Name                    "m_air_init"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_gas_init"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_CO2_init"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_liq_init"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 150]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_liq_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              Name                    "m_air_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_air_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_gas_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_H2O_gas_init"
              DstPort                 1
            }
            Line {
              Name                    "m_CO2_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_CO2_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_liq_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_H2O_liq_init"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_1"
          Ports                   [11, 5]
          Position                [320, 316, 510, 644]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('T_m');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded_MATLAB_Function_1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 355, 320, 395]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 19"
              Ports                   [11, 6]
              Position                [180, 114, 230, 356]
              FunctionName            "sf_sfun"
              PortCounts              "[11 6]"
              Port {
                PortNumber              2
                Name                    "T_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 366, 480, 384]
            }
            Block {
              BlockType               Outport
              Name                    "T_dot"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 240]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "m_dot_air_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_liq_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              Name                    "T_dot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_dot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_CO2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_2"
          Ports                   [9, 9]
          Position                [705, 425, 910, 815]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('p_rho');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "p"
            PropagatedSignals       "p"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho_bar"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              5
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_CO2_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_liq_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          System {
            Name                    "Embedded_MATLAB_Function_2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_T_old"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_gas_old"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_liq_old"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 425, 320, 465]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 21"
              Ports                   [9, 10]
              Position                [180, 110, 230, 330]
              FunctionName            "sf_sfun"
              PortCounts              "[9 10]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_gas_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "Delta_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "Delta_m_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "Delta_m_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 436, 480, 454]
            }
            Block {
              BlockType               Outport
              Name                    "p"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_bar"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_bar"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_bar"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_bar"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_T"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_gas"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_liq"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 315]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "Delta_T_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "Delta_m_H2O_gas_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "Delta_m_H2O_liq_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "p"
              DstPort                 1
            }
            Line {
              Name                    "rho_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_bar"
              DstPort                 1
            }
            Line {
              Name                    "T_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_bar"
              DstPort                 1
            }
            Line {
              Name                    "Delta_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "Delta_T"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "Delta_m_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "Delta_m_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [560, 600, 605, 635]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [560, 340, 605, 375]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [560, 405, 605, 440]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [560, 470, 605, 505]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [560, 535, 605, 570]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Product
          Name                    "Product"
          Ports                   [2, 1]
          Position                [565, 867, 595, 898]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Product
          Name                    "Product1"
          Ports                   [2, 1]
          Position                [565, 907, 595, 938]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [255, 181, 340, 209]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "T_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [925, 694, 960, 726]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay1"
          Position                [925, 739, 960, 771]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay2"
          Position                [925, 784, 960, 816]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               Constant
          Name                    "V"
          Position                [255, 121, 340, 149]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "V"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_dot_air"
          Position                [920, 315, 950, 345]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_init"
          Position                [255, 151, 340, 179]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "p_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_CO2_init"
          Position                [255, 241, 340, 269]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_CO2_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_gas_init"
          Position                [255, 211, 340, 239]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_gas_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_liq_init"
          Position                [255, 271, 340, 299]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_liq_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [1170, 608, 1200, 622]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 345]
          DstBlock                "Integrator1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 325]
          DstBlock                "Integrator5"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 305]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 285]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "x_H2O_liq_init"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "x_CO2_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "x_H2O_gas_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -80; 165, 0; 0, 250]
            DstBlock                "Integrator2"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "p_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, -25; 340, 0]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [150, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 255; -760, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          Points                  [90, 0; 0, 30]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [105, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [0, 255]
            DstBlock                "Product"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Integrator1"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [70, 0; 0, 40]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 3
        }
        Line {
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [60, 0; 0, 80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [15, 0]
          Branch {
            Points                  [60, 0; 0, 20]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 100; -335, 0; 0, -235]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -120; 430, 0; 0, 300]
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Labels                  [1, 1]
            Points                  [55, 0; 0, 60]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 235]
            Branch {
              Points                  [-320, 0; 0, -300]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 2
            }
            Branch {
              Points                  [0, 215]
              Branch {
                DstBlock                "Product"
                DstPort                 1
              }
              Branch {
                Points                  [0, 40]
                DstBlock                "Product1"
                DstPort                 1
              }
            }
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 6
          Points                  [90, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [0, 265]
            DstBlock                "Product1"
            DstPort                 2
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 5
          Points                  [-105, 0; 0, 475]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 4
          Points                  [-100, 0; 0, 465]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 3
          Points                  [-95, 0; 0, 455]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 2
          Points                  [-90, 0; 0, 445]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 1
          Points                  [-85, 0; 0, 435]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector6"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [165, 0; 0, 90]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [180, 0; 0, 120]
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [80, 0; 0, 290]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-165, 0; 0, 480]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 7
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [0, 130; -275, 0]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 7
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 8
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [5, 0; 0, 80; -285, 0; 0, -80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 9
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [10, 0; 0, 30; -295, 0; 0, -30]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 9
        }
        Line {
          SrcBlock                "Product"
          SrcPort                 1
          Points                  [-265, 0; 0, -495]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 3
        }
        Line {
          SrcBlock                "Product1"
          SrcPort                 1
          Points                  [-275, 0; 0, -475]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 5
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Mixing_Unit_2D_"
      Ports                   [3, 1]
      Position                [25, 223, 105, 287]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Volume [m³]|Initial Parameter: Pressure [Pa]|In"
"itial Parameter: Temperature [K]|Initial Parameter: Water Vapor Content|Initi"
"al Parameter: CO2 Content|Initial Parameter: Water Content"
      MaskStyleString         "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString        "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables           "V=@1;p_init=@2;T_init=@3;x_H2O_gas_init=@4;x_CO"
"2_init=@5;x_H2O_liq_init=@6;"
      MaskDisplay             "plot([0],[0],[1 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"plot([0],[0],[1.5 1.5],[2 2.5],[3],[3])\nplot([0],[0],[0.5 1],[1.5 1.5],[3],["
"3])\nplot([0],[0],[2.0 2.5],[1.5 1.5],[3],[3])\ntext(1.88,.45,'Mixing')\ntext"
"(2.5,2.7,'2D')\nport_label('input',1,'1')\nport_label('input',2,'2')\nport_la"
"bel('input',3,'Q_dot')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Mixing_Unit_2D_"
        Location                [6, 82, 1257, 970]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [210, 78, 240, 92]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [210, 183, 240, 197]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [210, 263, 240, 277]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1140, 541, 1145, 664]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector6"
          Ports                   [1, 5]
          Position                [180, 34, 185, 136]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector8"
          Ports                   [1, 5]
          Position                [180, 139, 185, 241]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [6, 4]
          Position                [370, 123, 510, 297]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Initial');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLAB Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_init"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_init"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_init"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_init"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_init"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 245, 320, 285]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 23"
              Ports                   [6, 5]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 5]"
              Port {
                PortNumber              2
                Name                    "m_air_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_H2O_gas_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_CO2_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_H2O_liq_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 256, 480, 274]
            }
            Block {
              BlockType               Outport
              Name                    "m_air_init"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_gas_init"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_CO2_init"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_liq_init"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 150]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_liq_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              Name                    "m_air_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_air_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_gas_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_H2O_gas_init"
              DstPort                 1
            }
            Line {
              Name                    "m_CO2_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_CO2_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_liq_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_H2O_liq_init"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_1"
          Ports                   [16, 5]
          Position                [320, 309, 510, 631]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('T_m');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded_MATLAB_Function_1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_2"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 460, 320, 500]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 27"
              Ports                   [16, 6]
              Position                [180, 120, 230, 460]
              FunctionName            "sf_sfun"
              PortCounts              "[16 6]"
              Port {
                PortNumber              2
                Name                    "T_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 471, 480, 489]
            }
            Block {
              BlockType               Outport
              Name                    "T_dot"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 325]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "m_dot_air_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "m_dot_air_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              Name                    "T_dot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_dot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_CO2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_2"
          Ports                   [9, 9]
          Position                [705, 415, 910, 805]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('p_rho');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "p"
            PropagatedSignals       "p"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho_bar"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              5
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_CO2_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_liq_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          System {
            Name                    "Embedded_MATLAB_Function_2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_T_old"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_gas_old"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_liq_old"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 425, 320, 465]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 31"
              Ports                   [9, 10]
              Position                [180, 110, 230, 330]
              FunctionName            "sf_sfun"
              PortCounts              "[9 10]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_gas_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "Delta_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "Delta_m_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "Delta_m_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 436, 480, 454]
            }
            Block {
              BlockType               Outport
              Name                    "p"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_bar"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_bar"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_bar"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_bar"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_T"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_gas"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_liq"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 315]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "Delta_T_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "Delta_m_H2O_gas_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "Delta_m_H2O_liq_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "p"
              DstPort                 1
            }
            Line {
              Name                    "rho_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_bar"
              DstPort                 1
            }
            Line {
              Name                    "T_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_bar"
              DstPort                 1
            }
            Line {
              Name                    "Delta_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "Delta_T"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "Delta_m_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "Delta_m_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [560, 590, 605, 625]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [560, 330, 605, 365]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [560, 395, 605, 430]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [560, 460, 605, 495]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [560, 525, 605, 560]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Product
          Name                    "Product"
          Ports                   [2, 1]
          Position                [565, 867, 595, 898]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Product
          Name                    "Product1"
          Ports                   [2, 1]
          Position                [565, 907, 595, 938]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [255, 181, 340, 209]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "T_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [925, 684, 960, 716]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay1"
          Position                [925, 729, 960, 761]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay2"
          Position                [925, 774, 960, 806]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               Constant
          Name                    "V"
          Position                [255, 121, 340, 149]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "V"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_dot_air"
          Position                [920, 315, 950, 345]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_init"
          Position                [255, 151, 340, 179]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "p_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_CO2_init"
          Position                [255, 241, 340, 269]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_CO2_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_gas_init"
          Position                [255, 211, 340, 239]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_gas_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_liq_init"
          Position                [255, 271, 340, 299]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_liq_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [1170, 598, 1200, 612]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 335]
          DstBlock                "Integrator1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 315]
          DstBlock                "Integrator5"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 295]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 275]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "x_H2O_liq_init"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "x_CO2_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "x_H2O_gas_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -80; 165, 0; 0, 240]
            DstBlock                "Integrator2"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "p_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, -25; 340, 0]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [150, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 265; -760, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          Points                  [90, 0; 0, 30]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [105, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [0, 265]
            DstBlock                "Product"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Integrator1"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [70, 0; 0, 40]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 3
        }
        Line {
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [60, 0; 0, 80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [15, 0]
          Branch {
            Points                  [60, 0; 0, 20]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 100; -335, 0; 0, -265]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -110; 430, 0; 0, 290]
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Labels                  [1, 1]
            Points                  [55, 0; 0, 60]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 235]
            Branch {
              Points                  [-320, 0; 0, -310]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 2
            }
            Branch {
              Points                  [0, 225]
              Branch {
                DstBlock                "Product"
                DstPort                 1
              }
              Branch {
                Points                  [0, 40]
                DstBlock                "Product1"
                DstPort                 1
              }
            }
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 6
          Points                  [90, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [0, 275]
            DstBlock                "Product1"
            DstPort                 2
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector8"
          SrcPort                 5
          Points                  [-130, 0; 0, 370]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 15
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector8"
          SrcPort                 4
          Points                  [-125, 0; 0, 370]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector8"
          SrcPort                 3
          Points                  [-120, 0; 0, 370]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector8"
          SrcPort                 2
          Points                  [-115, 0; 0, 370]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector8"
          SrcPort                 1
          Points                  [-110, 0; 0, 370]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 5
          Points                  [-105, 0; 0, 375]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 4
          Points                  [-100, 0; 0, 375]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 3
          Points                  [-95, 0; 0, 375]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 2
          Points                  [-90, 0; 0, 375]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 1
          Points                  [-85, 0; 0, 375]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector8"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector6"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [165, 0; 0, 90]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [180, 0; 0, 120]
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [80, 0; 0, 280]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-165, 0; 0, 350]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 16
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 7
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [0, 130; -275, 0]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 7
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 8
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [5, 0; 0, 80; -285, 0; 0, -80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 9
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [10, 0; 0, 30; -295, 0; 0, -30]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 9
        }
        Line {
          SrcBlock                "Product"
          SrcPort                 1
          Points                  [-265, 0; 0, -525]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 3
        }
        Line {
          SrcBlock                "Product1"
          SrcPort                 1
          Points                  [-275, 0; 0, -525]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 5
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Mixing_Unit_3D_"
      Ports                   [4, 1]
      Position                [25, 305, 105, 370]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Volume [m³]|Initial Parameter: Pressure [Pa]|In"
"itial Parameter: Temperature [K]|Initial Parameter: Water Vapor Content|Initi"
"al Parameter: CO2 Content|Initial Parameter: Water Content"
      MaskStyleString         "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString        "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables           "V=@1;p_init=@2;T_init=@3;x_H2O_gas_init=@4;x_CO"
"2_init=@5;x_H2O_liq_init=@6;"
      MaskDisplay             "plot([0],[0],[1 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"plot([0],[0],[1.5 1.5],[2 2.5],[3],[3])\nplot([0],[0],[0.5 1],[1.5 1.5],[3],["
"3])\nplot([0],[0],[2.0 2.5],[1.5 1.5],[3],[3])\ntext(1.88,.45,'Mixing')\ntext"
"(2.5,2.7,'3D')\nport_label('input',1,'1')\nport_label('input',2,'2')\nport_la"
"bel('input',3,'3')\nport_label('input',4,'Q_dot')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Mixing_Unit_3D_"
        Location                [2, 82, 1270, 978]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "80"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [225, 78, 255, 92]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [225, 183, 255, 197]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_3"
          Position                [225, 288, 255, 302]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [225, 368, 255, 382]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1155, 546, 1160, 669]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 5]
          Position                [195, 244, 200, 346]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector2"
          Ports                   [1, 5]
          Position                [195, 34, 200, 136]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector5"
          Ports                   [1, 5]
          Position                [195, 139, 200, 241]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [6, 4]
          Position                [385, 128, 525, 302]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Initial');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLAB Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_init"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_init"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_init"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_init"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_init"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 245, 320, 285]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 8"
              Ports                   [6, 5]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 5]"
              Port {
                PortNumber              2
                Name                    "m_air_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_H2O_gas_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_CO2_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_H2O_liq_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 256, 480, 274]
            }
            Block {
              BlockType               Outport
              Name                    "m_air_init"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_gas_init"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_CO2_init"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_liq_init"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 150]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_liq_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              Name                    "m_air_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_air_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_gas_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_H2O_gas_init"
              DstPort                 1
            }
            Line {
              Name                    "m_CO2_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_CO2_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_liq_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_H2O_liq_init"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_1"
          Ports                   [21, 5]
          Position                [340, 315, 530, 635]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('T_m');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded_MATLAB_Function_1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_2"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_3"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_3"
              Position                [20, 676, 40, 694]
              Port                    "17"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_3"
              Position                [20, 711, 40, 729]
              Port                    "18"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_3"
              Position                [20, 746, 40, 764]
              Port                    "19"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_3"
              Position                [20, 786, 40, 804]
              Port                    "20"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [20, 821, 40, 839]
              Port                    "21"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 560, 320, 600]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 9"
              Ports                   [21, 6]
              Position                [180, 120, 230, 560]
              FunctionName            "sf_sfun"
              PortCounts              "[21 6]"
              Port {
                PortNumber              2
                Name                    "T_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 571, 480, 589]
            }
            Block {
              BlockType               Outport
              Name                    "T_dot"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 425]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "m_dot_air_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "m_dot_air_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "T_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              SrcBlock                "m_dot_air_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 17
            }
            Line {
              SrcBlock                "x_H2O_gas_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 18
            }
            Line {
              SrcBlock                "x_CO2_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 19
            }
            Line {
              SrcBlock                "x_H2O_liq_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 20
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 21
            }
            Line {
              Name                    "T_dot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_dot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_CO2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_2"
          Ports                   [9, 9]
          Position                [720, 420, 925, 810]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('p_rho');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "p"
            PropagatedSignals       "p"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho_bar"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              5
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_CO2_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_liq_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          System {
            Name                    "Embedded_MATLAB_Function_2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_T_old"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_gas_old"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_liq_old"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 425, 320, 465]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 10"
              Ports                   [9, 10]
              Position                [180, 110, 230, 330]
              FunctionName            "sf_sfun"
              PortCounts              "[9 10]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_gas_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "Delta_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "Delta_m_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "Delta_m_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 436, 480, 454]
            }
            Block {
              BlockType               Outport
              Name                    "p"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_bar"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_bar"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_bar"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_bar"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_T"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_gas"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_liq"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 315]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "Delta_T_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "Delta_m_H2O_gas_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "Delta_m_H2O_liq_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "p"
              DstPort                 1
            }
            Line {
              Name                    "rho_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_bar"
              DstPort                 1
            }
            Line {
              Name                    "T_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_bar"
              DstPort                 1
            }
            Line {
              Name                    "Delta_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "Delta_T"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "Delta_m_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "Delta_m_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [575, 595, 620, 630]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [575, 335, 620, 370]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [575, 400, 620, 435]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [575, 465, 620, 500]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [575, 530, 620, 565]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Product
          Name                    "Product"
          Ports                   [2, 1]
          Position                [580, 872, 610, 903]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Product
          Name                    "Product1"
          Ports                   [2, 1]
          Position                [580, 912, 610, 943]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [270, 186, 355, 214]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "T_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [940, 689, 975, 721]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay1"
          Position                [940, 734, 975, 766]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay2"
          Position                [940, 779, 975, 811]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               Constant
          Name                    "V"
          Position                [270, 126, 355, 154]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "V"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_dot_air"
          Position                [935, 320, 965, 350]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_init"
          Position                [270, 156, 355, 184]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "p_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_CO2_init"
          Position                [270, 246, 355, 274]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_CO2_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_gas_init"
          Position                [270, 216, 355, 244]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_gas_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_liq_init"
          Position                [270, 276, 355, 304]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_liq_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [1185, 603, 1215, 617]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 335]
          DstBlock                "Integrator1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 315]
          DstBlock                "Integrator5"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 295]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 275]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "x_H2O_liq_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "x_CO2_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "x_H2O_gas_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -80; 165, 0; 0, 240]
            DstBlock                "Integrator2"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "p_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, -25; 340, 0]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [150, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 265; -755, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          Points                  [90, 0; 0, 30]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [105, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [0, 265]
            DstBlock                "Product"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Integrator1"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [70, 0; 0, 40]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 3
        }
        Line {
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [60, 0; 0, 80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [0, 0; 15, 0]
          Branch {
            Points                  [60, 0; 0, 20]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 100; -330, 0; 0, -280]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [0, 0; 10, 0]
          Branch {
            Points                  [0, -110; 430, 0; 0, 290]
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Labels                  [1, 1]
            Points                  [55, 0; 0, 60]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 235]
            Branch {
              Points                  [0, 225]
              Branch {
                DstBlock                "Product"
                DstPort                 1
              }
              Branch {
                Points                  [0, 40]
                DstBlock                "Product1"
                DstPort                 1
              }
            }
            Branch {
              Points                  [-315, 0; 0, -315]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 2
            }
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 6
          Points                  [0, 0; 90, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [0, 275]
            DstBlock                "Product1"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [165, 0; 0, 90]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [180, 0; 0, 120]
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [80, 0; 0, 280]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 7
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [0, 130; -275, 0]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 7
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 8
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [5, 0; 0, 80; -285, 0; 0, -80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 9
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [10, 0; 0, 30; -295, 0; 0, -30]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 9
        }
        Line {
          SrcBlock                "Product"
          SrcPort                 1
          Points                  [-260, 0; 0, -535]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 3
        }
        Line {
          SrcBlock                "Product1"
          SrcPort                 1
          Points                  [-270, 0; 0, -545]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-190, 0; 0, 250]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 21
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector5"
          DstPort                 1
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-85, 0; 0, 355]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-90, 0; 0, 350]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-95, 0; 0, 345]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-100, 0; 0, 340]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-105, 0; 0, 335]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 1
          Points                  [-110, 0; 0, 325]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 2
          Points                  [-115, 0; 0, 320]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 3
          Points                  [-120, 0; 0, 315]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 4
          Points                  [-125, 0; 0, 310]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 5
          Points                  [-130, 0; 0, 305]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 15
        }
        Line {
          SrcBlock                "In_3"
          SrcPort                 1
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [-135, 0; 0, 295]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 16
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-140, 0; 0, 290]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 17
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-145, 0; 0, 285]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 18
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-150, 0; 0, 280]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-155, 0; 0, 275]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 20
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Mixing_Unit_4D_"
      Ports                   [5, 1]
      Position                [25, 389, 105, 461]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Volume [m³]|Initial Parameter: Pressure [Pa]|In"
"itial Parameter: Temperature [K]|Initial Parameter: Water Vapor Content|Initi"
"al Parameter: CO2 Content|Initial Parameter: Water Content"
      MaskStyleString         "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString        "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables           "V=@1;p_init=@2;T_init=@3;x_H2O_gas_init=@4;x_CO"
"2_init=@5;x_H2O_liq_init=@6;"
      MaskDisplay             "plot([0],[0],[1 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"plot([0],[0],[1.5 1.5],[2 2.5],[3],[3])\nplot([0],[0],[0.5 1],[1.5 1.5],[3],["
"3])\nplot([0],[0],[2.0 2.5],[1.5 1.5],[3],[3])\ntext(1.88,.45,'Mixing')\ntext"
"(2.5,2.7,'4D')\nport_label('input',1,'1')\nport_label('input',2,'2')\nport_la"
"bel('input',3,'3')\nport_label('input',4,'4')\nport_label('input',5,'Q_dot')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Mixing_Unit_4D_"
        Location                [2, 82, 1270, 978]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "80"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [255, 68, 285, 82]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [255, 173, 285, 187]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_3"
          Position                [255, 278, 285, 292]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_4"
          Position                [255, 383, 285, 397]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [255, 463, 285, 477]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "5"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1190, 616, 1195, 739]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 5]
          Position                [225, 234, 230, 336]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector2"
          Ports                   [1, 5]
          Position                [225, 24, 230, 126]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 5]
          Position                [225, 339, 230, 441]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector5"
          Ports                   [1, 5]
          Position                [225, 129, 230, 231]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [6, 4]
          Position                [420, 258, 560, 432]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Initial');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLAB Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_init"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_init"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_init"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_init"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_init"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 245, 320, 285]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 13"
              Ports                   [6, 5]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 5]"
              Port {
                PortNumber              2
                Name                    "m_air_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_H2O_gas_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_CO2_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_H2O_liq_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 256, 480, 274]
            }
            Block {
              BlockType               Outport
              Name                    "m_air_init"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_gas_init"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_CO2_init"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_liq_init"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 150]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_liq_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              Name                    "m_air_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_air_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_gas_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_H2O_gas_init"
              DstPort                 1
            }
            Line {
              Name                    "m_CO2_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_CO2_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_liq_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_H2O_liq_init"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_1"
          Ports                   [26, 5]
          Position                [375, 448, 565, 837]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('T_m');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded_MATLAB_Function_1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_2"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_3"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_3"
              Position                [20, 676, 40, 694]
              Port                    "17"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_3"
              Position                [20, 711, 40, 729]
              Port                    "18"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_3"
              Position                [20, 746, 40, 764]
              Port                    "19"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_3"
              Position                [20, 786, 40, 804]
              Port                    "20"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_4"
              Position                [20, 821, 40, 839]
              Port                    "21"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_4"
              Position                [20, 856, 40, 874]
              Port                    "22"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_4"
              Position                [20, 891, 40, 909]
              Port                    "23"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_4"
              Position                [20, 926, 40, 944]
              Port                    "24"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_4"
              Position                [20, 966, 40, 984]
              Port                    "25"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [20, 1001, 40, 1019]
              Port                    "26"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 660, 320, 700]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 14"
              Ports                   [26, 6]
              Position                [180, 120, 230, 660]
              FunctionName            "sf_sfun"
              PortCounts              "[26 6]"
              Port {
                PortNumber              2
                Name                    "T_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 671, 480, 689]
            }
            Block {
              BlockType               Outport
              Name                    "T_dot"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 515]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "m_dot_air_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "m_dot_air_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "T_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              SrcBlock                "m_dot_air_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 17
            }
            Line {
              SrcBlock                "x_H2O_gas_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 18
            }
            Line {
              SrcBlock                "x_CO2_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 19
            }
            Line {
              SrcBlock                "x_H2O_liq_in_3"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 20
            }
            Line {
              SrcBlock                "T_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 21
            }
            Line {
              SrcBlock                "m_dot_air_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 22
            }
            Line {
              SrcBlock                "x_H2O_gas_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 23
            }
            Line {
              SrcBlock                "x_CO2_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 24
            }
            Line {
              SrcBlock                "x_H2O_liq_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 25
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 26
            }
            Line {
              Name                    "T_dot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_dot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_CO2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_2"
          Ports                   [9, 9]
          Position                [755, 490, 960, 880]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('p_rho');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "p"
            PropagatedSignals       "p"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho_bar"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              5
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_CO2_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_liq_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          System {
            Name                    "Embedded_MATLAB_Function_2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_T_old"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_gas_old"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_liq_old"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 425, 320, 465]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 17"
              Ports                   [9, 10]
              Position                [180, 110, 230, 330]
              FunctionName            "sf_sfun"
              PortCounts              "[9 10]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_gas_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "Delta_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "Delta_m_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "Delta_m_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 436, 480, 454]
            }
            Block {
              BlockType               Outport
              Name                    "p"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_bar"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_bar"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_bar"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_bar"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_T"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_gas"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_liq"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 315]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "Delta_T_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "Delta_m_H2O_gas_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "Delta_m_H2O_liq_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "p"
              DstPort                 1
            }
            Line {
              Name                    "rho_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_bar"
              DstPort                 1
            }
            Line {
              Name                    "T_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_bar"
              DstPort                 1
            }
            Line {
              Name                    "Delta_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "Delta_T"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "Delta_m_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "Delta_m_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [610, 785, 655, 820]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [610, 485, 655, 520]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [610, 560, 655, 595]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [610, 635, 655, 670]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [610, 710, 655, 745]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Product
          Name                    "Product"
          Ports                   [2, 1]
          Position                [615, 1002, 645, 1033]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Product
          Name                    "Product1"
          Ports                   [2, 1]
          Position                [615, 1042, 645, 1073]
          Orientation             "left"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [305, 316, 390, 344]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "T_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [975, 759, 1010, 791]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay1"
          Position                [975, 804, 1010, 836]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay2"
          Position                [975, 849, 1010, 881]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               Constant
          Name                    "V"
          Position                [305, 256, 390, 284]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "V"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_dot_air"
          Position                [970, 450, 1000, 480]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_init"
          Position                [305, 286, 390, 314]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "p_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_CO2_init"
          Position                [305, 376, 390, 404]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_CO2_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_gas_init"
          Position                [305, 346, 390, 374]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_gas_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_liq_init"
          Position                [305, 406, 390, 434]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_liq_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [1220, 673, 1250, 687]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 395]
          DstBlock                "Integrator1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 365]
          DstBlock                "Integrator5"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 335]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 305]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "x_H2O_liq_init"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "x_CO2_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "x_H2O_gas_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            Points                  [5, 0]
            Branch {
              Points                  [0, -80; 165, 0; 0, 260]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Branch {
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 3
            }
          }
          Branch {
            Points                  [0, -85; 340, 0]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
        }
        Line {
          SrcBlock                "p_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 1
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [150, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 325; -755, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          Points                  [90, 0; 0, 30]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [105, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [0, 325]
            DstBlock                "Product"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Integrator1"
          SrcPort                 1
          Points                  [60, 0; 0, -120]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [70, 0; 0, -60]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 3
        }
        Line {
          SrcBlock                "Integrator2"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [0, 0; 15, 0]
          Branch {
            Points                  [50, 0; 0, -90]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 120; -330, 0; 0, -350]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [0, 0; 10, 0]
          Branch {
            Points                  [0, -140; 430, 0; 0, 230]
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Labels                  [1, 1]
            Points                  [65, 0; 0, -30]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 275]
            Branch {
              Points                  [0, 155]
              Branch {
                DstBlock                "Product"
                DstPort                 1
              }
              Branch {
                Points                  [0, 40]
                DstBlock                "Product1"
                DstPort                 1
              }
            }
            Branch {
              Points                  [-315, 0; 0, -385]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 2
            }
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 6
          Points                  [80, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [0, 335]
            DstBlock                "Product1"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [165, 0; 0, 90]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [180, 0; 0, 120]
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          Points                  [0, 0]
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          Points                  [0, 0]
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          Points                  [0, 0]
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          Points                  [0, 0]
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [80, 0; 0, 220]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 7
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [0, 130; -275, 0]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 7
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 8
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [5, 0; 0, 80; -285, 0; 0, -80]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 9
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [10, 0; 0, 30; -295, 0; 0, -30]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 9
        }
        Line {
          SrcBlock                "Product"
          SrcPort                 1
          Points                  [-260, 0; 0, -535]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 3
        }
        Line {
          SrcBlock                "Product1"
          SrcPort                 1
          Points                  [-270, 0; 0, -545]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 5
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [-180, 0; 0, 385]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 25
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [-175, 0; 0, 390]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 24
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [-170, 0; 0, 395]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 23
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [-165, 0; 0, 400]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 22
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [-160, 0; 0, 405]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 21
        }
        Line {
          SrcBlock                "In_4"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-155, 0; 0, 415]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 20
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-150, 0; 0, 420]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-145, 0; 0, 425]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 18
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-140, 0; 0, 430]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 17
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [-135, 0; 0, 435]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 16
        }
        Line {
          SrcBlock                "In_3"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 5
          Points                  [-130, 0; 0, 445]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 15
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 4
          Points                  [-125, 0; 0, 450]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 3
          Points                  [-120, 0; 0, 455]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 2
          Points                  [-115, 0; 0, 460]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 1
          Points                  [-110, 0; 0, 465]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-105, 0; 0, 475]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-100, 0; 0, 480]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-95, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-90, 0; 0, 490]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-85, 0; 0, 495]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector5"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-215, 0; 0, 360]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 26
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Specialized_Fan_"
      Ports                   [3, 4]
      Position                [325, 349, 470, 416]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Range Rotation Speed [1/min]|Range Pressure Rat"
"io: p_out/p_in|Map Mass Flow [kg/s]|Range Rotation Speed [1/min]: Determinati"
"on Delta_T|Range  Mass Flow [kg/s]: Determination Delta_T|Map Delta_T/T|Maxim"
"um Mass Flow [kg/s]|Response Time [s]"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,"
      MaskVariables           "Range_N=@1;Range_p_out_p_in=@2;Map_m_dot=@3;Ran"
"ge_N_dT_T=@4;Range_m_dot_dT_T=@5;Map_dT_T=@6;m_dot_max=@7;tau=@8;"
      MaskDisplay             "disp('FAN')\nport_label('input',1,'Inlet_in')\n"
"port_label('input',2,'Outlet_in')\nport_label('input',3,'n')\nport_label('out"
"put',1,'Inlet_out')\nport_label('output',2,'Outlet_out')\nport_label('output'"
",3,'P_fan')\nport_label('output',4,'eff_fan')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "Range_N_fan|Range_p_out_p_in_fan|M_m_dot_fan|Ra"
"nge_N_fan_dT_T|Range_m_dot_fan_dT_T|M_dT_T_fan|NaN|NaN"
      MaskTabNameString       ",,,,,,,"
      System {
        Name                    "Specialized_Fan_"
        Location                [2, 82, 997, 760]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "64"
        Block {
          BlockType               Inport
          Name                    "Inlet_in"
          Position                [15, 238, 45, 252]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Outlet_in"
          Position                [15, 313, 45, 327]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "n"
          Position                [15, 583, 45, 597]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1377, 1110, 1498, 1115]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1242, 1110, 1363, 1115]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector"
          Ports                   [1, 1]
          Position                [70, 301, 75, 339]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [70, 192, 75, 293]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Product
          Name                    "Divide"
          Ports                   [2, 1]
          Position                [222, 345, 253, 375]
          Orientation             "down"
          NamePlacement           "alternate"
          Inputs                  "*/"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          RndMeth                 "Floor"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function1"
          Ports                   [9, 6]
          Position                [726, 820, 1194, 990]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_1');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "T"
            PropagatedSignals       "T_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p_0"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_inlet"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_outlet"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "dT_T"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_corr"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 315, 320, 355]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 60"
              Ports                   [9, 7]
              Position                [180, 109, 230, 311]
              FunctionName            "sf_sfun"
              PortCounts              "[9 7]"
              Port {
                PortNumber              2
                Name                    "rho_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "T_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_air_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_air_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "P_fan"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "eff"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 326, 480, 344]
            }
            Block {
              BlockType               Outport
              Name                    "rho_outlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_outlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_inlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_outlet"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "P_fan"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "eff"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 215]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_0"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "p_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "p_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "dT_T"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "m_dot_air_corr"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              Name                    "rho_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "T_outlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_air_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_air_outlet"
              DstPort                 1
            }
            Line {
              Name                    "P_fan"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "P_fan"
              DstPort                 1
            }
            Line {
              Name                    "eff"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "eff"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function2"
          Ports                   [3, 1]
          Position                [210, 61, 365, 149]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_T_air');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 180, 320, 220]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 3"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "T_air_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "T_air_inlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "T_air_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_air_inlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function3"
          Ports                   [3, 1]
          Position                [400, 513, 480, 607]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_N');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function3"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T_air_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "n"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 180, 320, 220]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 4"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "N"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "N"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_air_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "n"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "N"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "N"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)"
          Position                [705, 549, 750, 591]
          ShowName                off
          RowIndex                "Range_N_dT_T"
          ColumnIndex             "Range_m_dot_dT_T"
          OutputValues            "Map_dT_T"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)1"
          Position                [525, 604, 570, 646]
          ShowName                off
          RowIndex                "Range_N"
          ColumnIndex             "Range_p_out_p_in"
          OutputValues            "Map_m_dot"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation"
          Position                [590, 610, 620, 640]
          ShowName                off
          UpperLimit              "m_dot_max"
          LowerLimit              "-inf"
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation1"
          Position                [770, 555, 795, 585]
          NamePlacement           "alternate"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               SubSystem
          Name                    "Subsystem11"
          Ports                   [1, 1]
          Position                [635, 617, 670, 633]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Subsystem11"
            Location                [2, 82, 1270, 978]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "In"
              Position                [130, 63, 160, 77]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               TransferFcn
              Name                    "Transfer Fcn"
              Position                [190, 52, 250, 88]
              ShowName                off
              Denominator             "[tau 1]"
            }
            Block {
              BlockType               Outport
              Name                    "Out"
              Position                [280, 63, 310, 77]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Transfer Fcn"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In"
              SrcPort                 1
              DstBlock                "Transfer Fcn"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "T_0"
          Position                [560, 504, 605, 536]
          ForegroundColor         "green"
          ShowName                off
          Value                   "288.15"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [1180, 1060, 1210, 1090]
          ForegroundColor         "red"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_0"
          Position                [560, 454, 605, 486]
          ForegroundColor         "green"
          ShowName                off
          Value                   "101300"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Cold_inlet_out"
          Position                [1298, 1140, 1312, 1170]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Cold_outlet_out"
          Position                [1433, 1140, 1447, 1170]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "P_comp"
          Position                [1073, 1140, 1087, 1170]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "eff"
          Position                [1153, 1140, 1167, 1170]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector"
          SrcPort                 1
          Points                  [0, 0; 150, 0]
          Branch {
            DstBlock                "Divide"
            DstPort                 1
          }
          Branch {
            Points                  [680, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 4
            }
            Branch {
              Points                  [340, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [0, 0; 165, 0]
          Branch {
            DstBlock                "Divide"
            DstPort                 2
          }
          Branch {
            Points                  [615, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 3
            }
            Branch {
              Points                  [525, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [0, 0; 65, 0]
          Branch {
            Points                  [865, 0]
            Branch {
              Points                  [315, 0; 0, 810]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 6
            }
          }
          Branch {
            Points                  [0, -145]
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 2
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [70, 0]
          Branch {
            Points                  [0, 0; 910, 0]
            Branch {
              Points                  [280, 0; 0, 800]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 7
            }
          }
          Branch {
            Points                  [0, -130]
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 3
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [60, 0]
          Branch {
            Points                  [820, 0]
            Branch {
              Points                  [320, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 3
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 5
            }
          }
          Branch {
            Points                  [0, -160]
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 1
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [1185, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [1275, 0; 0, 790]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 80, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)"
          SrcPort                 1
          DstBlock                "Saturation1"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 60; 445, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 45; 390, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 50; 640, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          Points                  [0, 55; 575, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 5
          DstBlock                "P_comp"
          DstPort                 1
        }
        Line {
          SrcBlock                "p_0"
          SrcPort                 1
          Points                  [150, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 1
        }
        Line {
          SrcBlock                "T_0"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            Points                  [0, -75; -250, 0]
            DstBlock                "Embedded\nMATLA Function3"
            DstPort                 2
          }
          Branch {
            Points                  [175, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "n"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLA Function3"
          DstPort                 3
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function3"
          SrcPort                 1
          Points                  [0, 0; 5, 0]
          Branch {
            Points                  [0, 55]
            DstBlock                "Lookup\nTable (2-D)1"
            DstPort                 1
          }
          Branch {
            DstBlock                "Lookup\nTable (2-D)"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)1"
          SrcPort                 1
          DstBlock                "Saturation"
          DstPort                 1
        }
        Line {
          SrcBlock                "Divide"
          SrcPort                 1
          Points                  [0, 255]
          DstBlock                "Lookup\nTable (2-D)1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 6
          DstBlock                "eff"
          DstPort                 1
        }
        Line {
          SrcBlock                "Saturation"
          SrcPort                 1
          DstBlock                "Subsystem11"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function2"
          SrcPort                 1
          Points                  [5, 0; 0, 425]
          DstBlock                "Embedded\nMATLA Function3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Saturation1"
          SrcPort                 1
          Points                  [310, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 8
        }
        Line {
          SrcBlock                "Subsystem11"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -45]
            DstBlock                "Lookup\nTable (2-D)"
            DstPort                 2
          }
          Branch {
            Points                  [475, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 9
          }
        }
        Annotation {
          Position                [455, 1011]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Static_HX_"
      Ports                   [4, 4]
      Position                [570, 156, 760, 219]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Hot Side: Pressure Drop Parameter: K_1|Hot Side"
": Pressure Drop Parameter: m_1|Cold Side: Pressure Drop Parameter: K_1|Cold S"
"ide: Pressure Drop Parameter: m_1|Effiency Map|Range Mass Flow Hot Side|Range"
" Mass Flow Cold Side"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on"
      MaskCallbackString      "||||||"
      MaskEnableString        "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,"
      MaskVariables           "K_1_hot=@1;m_1_hot=@2;K_1_cold=@3;m_1_cold=@4;M"
"_eff=@5;m_dot_hot=@6;m_dot_cold=@7;"
      MaskDisplay             "disp('HX')\nport_label('input',1,'Cold_inlet_in"
"')\nport_label('input',2,'Cold_outlet_in')\nport_label('input',3,'Hot_inlet_i"
"n')\nport_label('input',4,'Hot_outlet_in')\nport_label('output',1,'Cold_inlet"
"_out')\nport_label('output',2,'Cold_outlet_out')\nport_label('output',3,'Hot_"
"inlet_out')\nport_label('output',4,'Hot_outlet_out')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|M_eff|Range_m_dot_hot_air|Range"
"_m_dot_cold_air"
      MaskTabNameString       ",,,,,,"
      System {
        Name                    "Static_HX_"
        Location                [6, 82, 1257, 953]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "Cold_inlet_in"
          Position                [25, 73, 55, 87]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Cold_outlet_in"
          Position                [25, 143, 55, 157]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Hot_inlet_in"
          Position                [25, 223, 55, 237]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Hot_outlet_in"
          Position                [25, 293, 55, 307]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [812, 820, 933, 825]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [682, 820, 803, 825]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator3"
          Ports                   [8, 1]
          Position                [1072, 820, 1193, 825]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator4"
          Ports                   [8, 1]
          Position                [942, 820, 1063, 825]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector1"
          Ports                   [1, 1]
          Position                [80, 131, 85, 169]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector2"
          Ports                   [1, 1]
          Position                [80, 281, 85, 319]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [80, 27, 85, 128]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector4"
          Ports                   [1, 6]
          Position                [80, 177, 85, 278]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function"
          Ports                   [16, 6]
          Position                [190, 555, 660, 725]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_1');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              2
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_cold_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_hot_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "K_1_hot"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_1_hot"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_hot_inlet"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "K_1_cold"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_1_cold"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_cold_inlet"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_inlet"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_outlet"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_inlet"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_outlet"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_cold"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_cold"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_hot"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_hot"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_0"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 641, 40, 659]
              Port                    "16"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 460, 320, 500]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 7"
              Ports                   [16, 7]
              Position                [180, 120, 230, 460]
              FunctionName            "sf_sfun"
              PortCounts              "[16 7]"
              Port {
                PortNumber              2
                Name                    "m_dot_air_cold"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air_cold_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_air_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_air_hot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_air_hot_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 471, 480, 489]
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_cold"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_cold_inlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_cold_outlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_hot"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_hot_inlet"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_hot_outlet"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 340]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "K_1_hot"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_1_hot"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "rho_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "K_1_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_1_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "rho_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "p_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "p_cold_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "p_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "p_hot_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_H2O_gas_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "x_CO2_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "x_H2O_gas_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_CO2_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "p_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air_cold"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_dot_air_cold"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_cold_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air_cold_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_air_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_hot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_air_hot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_hot_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_air_hot_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "m_dot_air_hot_outlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function1"
          Ports                   [11, 4]
          Position                [1245, 555, 1705, 725]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_2');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T_cold_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "T"
            PropagatedSignals       "T_hot_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "eff"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_cold"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_hot"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_cold_inlet"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_hot_inlet"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_cold_outlet"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_hot_outlet"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_cold"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_cold"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_hot"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_hot"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 355, 320, 395]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 5"
              Ports                   [11, 5]
              Position                [180, 114, 230, 356]
              FunctionName            "sf_sfun"
              PortCounts              "[11 5]"
              Port {
                PortNumber              2
                Name                    "rho_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T_cold_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "T_hot_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 366, 480, 384]
            }
            Block {
              BlockType               Outport
              Name                    "rho_cold_outlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "rho_hot_outlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_cold_outlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_hot_outlet"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 240]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "eff"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_dot_air_cold"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_dot_air_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_cold_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T_hot_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "p_cold_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "p_hot_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_cold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_gas_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "x_CO2_hot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              Name                    "rho_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "rho_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "rho_hot_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_cold_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "T_cold_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_hot_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "T_hot_outlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "K_1_cold"
          Position                [80, 390, 155, 420]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "K_1_cold"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "K_1_hot"
          Position                [80, 330, 155, 360]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "K_1_hot"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)"
          Position                [490, 948, 545, 997]
          ShowName                off
          RowIndex                "m_dot_cold"
          ColumnIndex             "m_dot_hot"
          OutputValues            "M_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation1"
          Position                [580, 960, 605, 990]
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Constant
          Name                    "T_0"
          Position                [80, 489, 125, 521]
          ForegroundColor         "green"
          ShowName                off
          Value                   "288.15"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_1_cold"
          Position                [80, 420, 155, 450]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m_1_cold"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_1_hot"
          Position                [80, 360, 155, 390]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m_1_hot"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [80, 765, 110, 795]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_0"
          Position                [80, 454, 125, 486]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "101300"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Cold_inlet_out"
          Position                [738, 850, 752, 880]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Cold_outlet_out"
          Position                [868, 850, 882, 880]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Hot_inlet_out"
          Position                [998, 850, 1012, 880]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Hot_outlet_out"
          Position                [1128, 850, 1142, 880]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_outlet_out"
          DstPort                 1
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "K_1_hot"
          SrcPort                 1
          Points                  [40, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "m_1_hot"
          SrcPort                 1
          Points                  [70, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Cold_inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Hot_inlet_in"
          SrcPort                 1
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [350, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 9
          }
          Branch {
            Points                  [640, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_inlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "K_1_cold"
          SrcPort                 1
          Points                  [130, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "m_1_cold"
          SrcPort                 1
          Points                  [160, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [290, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 7
          }
          Branch {
            Points                  [440, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Cold_outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [320, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 8
          }
          Branch {
            Points                  [280, 0]
            Branch {
              Points                  [0, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Branch {
              Points                  [785, 0]
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 6
            }
          }
        }
        Line {
          SrcBlock                "Hot_outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [380, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 10
          }
          Branch {
            Points                  [480, 0]
            Branch {
              DstBlock                "Bus\nCreator4"
              DstPort                 1
            }
            Branch {
              Points                  [565, 0]
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 7
            }
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 70; 445, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [410, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 11
          }
          Branch {
            Points                  [265, 0]
            Branch {
              DstBlock                "Bus\nCreator2"
              DstPort                 6
            }
            Branch {
              Points                  [130, 0]
              Branch {
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [660, 0]
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 8
              }
            }
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [440, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 12
          }
          Branch {
            Points                  [250, 0]
            Branch {
              DstBlock                "Bus\nCreator2"
              DstPort                 7
            }
            Branch {
              Points                  [130, 0]
              Branch {
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [685, 0]
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 9
              }
            }
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [470, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 13
          }
          Branch {
            Points                  [465, 0]
            Branch {
              DstBlock                "Bus\nCreator4"
              DstPort                 6
            }
            Branch {
              Points                  [130, 0]
              Branch {
                DstBlock                "Bus\nCreator3"
                DstPort                 6
              }
              Branch {
                Points                  [480, 0]
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 10
              }
            }
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [500, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 14
          }
          Branch {
            Points                  [450, 0]
            Branch {
              DstBlock                "Bus\nCreator4"
              DstPort                 7
            }
            Branch {
              Points                  [130, 0]
              Branch {
                DstBlock                "Bus\nCreator3"
                DstPort                 7
              }
              Branch {
                Points                  [505, 0]
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 11
              }
            }
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [0, 0; 705, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [130, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [260, 0]
          Branch {
            Points                  [355, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 6
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [0, 0; 630, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [675, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 4
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          Points                  [0, 65; 495, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator3"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Hot_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator4"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Hot_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          Points                  [0, 60; 465, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 6
          Points                  [0, 55; 515, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 5
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [0, 0; 965, 0]
          Branch {
            DstBlock                "Bus\nCreator4"
            DstPort                 8
          }
          Branch {
            Points                  [130, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 8
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 620, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [130, 0]
            Branch {
              DstBlock                "Bus\nCreator1"
              DstPort                 4
            }
            Branch {
              Points                  [130, 0]
              Branch {
                DstBlock                "Bus\nCreator4"
                DstPort                 4
              }
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator3"
                DstPort                 4
              }
            }
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [170, 0]
          Branch {
            Points                  [705, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 3
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [0, 0; 890, 0]
          Branch {
            DstBlock                "Bus\nCreator4"
            DstPort                 3
          }
          Branch {
            Points                  [455, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 5
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          Points                  [0, 200]
          Branch {
            Points                  [760, 0; 0, -400; 130, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 3
          }
          Branch {
            Points                  [0, 55]
            DstBlock                "Lookup\nTable (2-D)"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 205]
          Branch {
            Points                  [995, 0; 0, -400; 95, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 2
          }
          Branch {
            Points                  [0, 25]
            DstBlock                "Lookup\nTable (2-D)"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)"
          SrcPort                 1
          DstBlock                "Saturation1"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 45; -470, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 40; -685, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          Points                  [0, 35; -325, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 30; -540, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 3
        }
        Line {
          SrcBlock                "Saturation1"
          SrcPort                 1
          Points                  [605, 0; 0, -435]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 1
        }
        Line {
          SrcBlock                "p_0"
          SrcPort                 1
          Points                  [490, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 15
        }
        Line {
          SrcBlock                "T_0"
          SrcPort                 1
          Points                  [520, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 16
        }
        Annotation {
          Position                [425, 681]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Turbine_"
      Ports                   [3, 4]
      Position                [305, 104, 495, 171]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Range Rotation Speed [1/min]|Range Pressure Rat"
"io: p_in/p_out|Map Speed Factor:|Map Efficiency|Map Efficiency: Range Velocit"
"y Factor|Map Efficiency: Range Pressure Ratio: p_in/p_out|Correction Isentrop"
"ic Efficiency: eff_corr = eff + Delta_eff|Nominal Effective Nozzle Area|Initi"
"al Parameter: Temperature Outlet [K]"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,"
      MaskVariables           "Range_N=@1;Range_p_in_p_out=@2;Map_F_f=@3;Map_e"
"ff=@4;Range_F_v=@5;Range_p_in_p_out_eff=@6;Delta_eff=@7;A_n=@8;T_outlet_init="
"@9;"
      MaskDisplay             "disp('TRB')\nport_label('input',1,'Inlet_in')\n"
"port_label('input',2,'Outlet_in')\nport_label('input',3,'n')\nport_label('out"
"put',1,'Inlet_out')\nport_label('output',2,'Outlet_out')\nport_label('output'"
",3,'P_trb')\nport_label('output',4,'eff_trb')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "Range_N_trb|Range_p_in_p_out_trb|M_F_f_trb|M_ef"
"f_trb|Range_F_v_trb|Range_p_in_p_out_eff_trb|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,"
      System {
        Name                    "Turbine_"
        Location                [2, 82, 1253, 961]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "80"
        Block {
          BlockType               Inport
          Name                    "Inlet_in"
          Position                [20, 243, 50, 257]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Outlet_in"
          Position                [20, 318, 50, 332]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "n"
          Position                [20, 753, 50, 767]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A_n"
          Position                [535, 650, 565, 680]
          ForegroundColor         "green"
          ShowName                off
          Value                   "A_n"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Sum
          Name                    "Add"
          Ports                   [2, 1]
          Position                [1407, 695, 1438, 725]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1657, 1170, 1778, 1175]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1522, 1170, 1643, 1175]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector"
          Ports                   [1, 1]
          Position                [75, 306, 80, 344]
          ShowName                off
          OutputSignals           "p"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector3"
          Ports                   [1, 6]
          Position                [75, 197, 80, 298]
          ShowName                off
          OutputSignals           "p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<p>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<rho>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "Delta_eff"
          Position                [1455, 649, 1500, 681]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "Delta_eff"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Product
          Name                    "Divide"
          Ports                   [2, 1]
          Position                [502, 420, 533, 450]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "*/"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          RndMeth                 "Floor"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function1"
          Ports                   [10, 7]
          Position                [989, 840, 1456, 1010]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_2');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_inlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq_outlet"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          System {
            Name                    "Embedded\nMATLA Function1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_outlet"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_inlet"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "eff"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "eff_bar"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 350, 320, 390]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 25"
              Ports                   [10, 8]
              Position                [180, 110, 230, 330]
              FunctionName            "sf_sfun"
              PortCounts              "[10 8]"
              Port {
                PortNumber              2
                Name                    "rho_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "T_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_air_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_air_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_H2O_gas_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_outlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "P_trb"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 361, 480, 379]
            }
            Block {
              BlockType               Outport
              Name                    "rho_outlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_outlet"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_inlet"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_outlet"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_outlet"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_outlet"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "P_trb"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 235]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_inlet"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_outlet"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "rho_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "x_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "m_dot_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "eff"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "eff_bar"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              Name                    "rho_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho_outlet"
              DstPort                 1
            }
            Line {
              Name                    "T_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "T_outlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_air_inlet"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_air_outlet"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_gas_outlet"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_outlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_outlet"
              DstPort                 1
            }
            Line {
              Name                    "P_trb"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "P_trb"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function2"
          Ports                   [9, 2]
          Position                [655, 404, 805, 766]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_1');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_inlet"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_0"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_outlet"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "A_n"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "n"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "F_f"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 310, 320, 350]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 26"
              Ports                   [9, 3]
              Position                [180, 109, 230, 311]
              FunctionName            "sf_sfun"
              PortCounts              "[9 3]"
              Port {
                PortNumber              2
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "F_v"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 321, 480, 339]
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "F_v"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 185]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_inlet"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "rho_inlet"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "p_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_outlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "A_n"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "n"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "F_f"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "F_v"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "F_v"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function3"
          Ports                   [3, 1]
          Position                [405, 683, 485, 777]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_N');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function3"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T_air_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_0"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "n"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 180, 320, 220]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 28"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "N"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "N"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_air_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_0"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "n"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "N"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "N"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function4"
          Ports                   [3, 1]
          Position                [205, 76, 360, 164]
          NamePlacement           "alternate"
          ShowName                off
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Cal_T_air');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLA Function4"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T_inlet"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 180, 320, 220]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 29"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "T_air_inlet"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "T_air_inlet"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [20, 0]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T_inlet"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "T_air_inlet"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_air_inlet"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)2"
          Position                [570, 718, 625, 767]
          NamePlacement           "alternate"
          ShowName                off
          RowIndex                "Range_N"
          ColumnIndex             "Range_p_in_p_out"
          OutputValues            "Map_F_f"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Lookup2D
          Name                    "Lookup\nTable (2-D)4"
          Position                [835, 638, 890, 687]
          NamePlacement           "alternate"
          ShowName                off
          RowIndex                "Range_p_in_p_out_eff"
          ColumnIndex             "Range_F_v"
          OutputValues            "Map_eff"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation1"
          Position                [905, 650, 930, 680]
          NamePlacement           "alternate"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Saturate
          Name                    "Saturation2"
          Position                [1410, 760, 1440, 785]
          Orientation             "down"
          ShowName                off
          UpperLimit              "1"
          LowerLimit              "0"
        }
        Block {
          BlockType               Constant
          Name                    "T_0"
          Position                [315, 569, 360, 601]
          ForegroundColor         "green"
          ShowName                off
          Value                   "288.15"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [1078, 1030, 1112, 1065]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          X0                      "T_outlet_init"
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_outlet_re_init"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [1465, 1110, 1495, 1140]
          ForegroundColor         "red"
          ShowName                off
          Value                   "0"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p_0"
          Position                [315, 529, 360, 561]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "101300"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Cold_inlet_out"
          Position                [1578, 1200, 1592, 1230]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Cold_outlet_out"
          Position                [1713, 1200, 1727, 1230]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "P_trb"
          Position                [1413, 1195, 1427, 1225]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "eff_trb"
          Position                [933, 1195, 947, 1225]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_outlet_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Inlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Outlet_in"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector"
          SrcPort                 1
          Points                  [0, 0; 440, 0]
          Branch {
            Points                  [540, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 2
            }
            Branch {
              Points                  [465, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
          }
          Branch {
            DstBlock                "Divide"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Cold_inlet_out"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [0, 0; 425, 0]
          Branch {
            Points                  [90, 0]
            Branch {
              Points                  [420, 0]
              Branch {
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 1
              }
              Branch {
                Points                  [645, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 1
              }
            }
            Branch {
              Points                  [0, 215]
              DstBlock                "Embedded\nMATLA Function2"
              DstPort                 1
            }
          }
          Branch {
            DstBlock                "Divide"
            DstPort                 1
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [75, 0]
          Branch {
            Points                  [0, -135]
            DstBlock                "Embedded\nMATLA Function4"
            DstPort                 2
          }
          Branch {
            Points                  [1040, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 5
            }
            Branch {
              Points                  [405, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 6
            }
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [80, 0]
          Branch {
            Points                  [0, -120]
            DstBlock                "Embedded\nMATLA Function4"
            DstPort                 3
          }
          Branch {
            Points                  [1080, 0]
            Branch {
              Points                  [375, 0; 0, 830]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
              Branch {
                Points                  [135, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 6
            }
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [70, 0]
          Branch {
            Points                  [0, -150]
            DstBlock                "Embedded\nMATLA Function4"
            DstPort                 1
          }
          Branch {
            Points                  [435, 0]
            Branch {
              Points                  [565, 0]
              Branch {
                Points                  [405, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                DstBlock                "Embedded\nMATLA Function1"
                DstPort                 4
              }
            }
            Branch {
              Points                  [0, 265]
              DstBlock                "Embedded\nMATLA Function2"
              DstPort                 3
            }
          }
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [510, 0]
          Branch {
            Points                  [515, 0]
            Branch {
              Points                  [435, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 2
            }
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 3
            }
          }
          Branch {
            Points                  [0, 240]
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 2
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [1205, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 7
          }
          Branch {
            Points                  [345, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function2"
          SrcPort                 1
          Points                  [525, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 8
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)4"
          SrcPort                 1
          DstBlock                "Saturation1"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 75; 500, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 60; 430, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 65; 650, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 7
          DstBlock                "P_trb"
          DstPort                 1
        }
        Line {
          SrcBlock                "Lookup\nTable (2-D)2"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 9
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function2"
          SrcPort                 2
          DstBlock                "Lookup\nTable (2-D)4"
          DstPort                 2
        }
        Line {
          SrcBlock                "A_n"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 7
        }
        Line {
          Name                    "T"
          Labels                  [1, 1]
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [0, 15]
          Branch {
            Points                  [-570, 0; 0, -460]
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 6
          }
          Branch {
            Points                  [600, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 75, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [135, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "p_0"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function2"
          DstPort                 4
        }
        Line {
          SrcBlock                "T_0"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 5
          }
          Branch {
            Points                  [0, 145]
            DstBlock                "Embedded\nMATLA Function3"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function3"
          SrcPort                 1
          DstBlock                "Lookup\nTable (2-D)2"
          DstPort                 1
        }
        Line {
          SrcBlock                "n"
          SrcPort                 1
          Points                  [335, 0]
          Branch {
            Points                  [0, 40; 115, 0; 0, -95]
            DstBlock                "Embedded\nMATLA Function2"
            DstPort                 8
          }
          Branch {
            DstBlock                "Embedded\nMATLA Function3"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Saturation1"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            DstBlock                "eff_trb"
            DstPort                 1
          }
          Branch {
            Points                  [440, 0]
            Branch {
              DstBlock                "Embedded\nMATLA Function1"
              DstPort                 9
            }
            Branch {
              Points                  [35, 0]
              DstBlock                "Add"
              DstPort                 1
            }
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 5
          Points                  [0, 80; 450, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          SrcBlock                "Divide"
          SrcPort                 1
          Points                  [0, 300]
          Branch {
            DstBlock                "Lookup\nTable (2-D)2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 25; 300, 0]
            DstBlock                "Lookup\nTable (2-D)4"
            DstPort                 1
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 6
          Points                  [0, 90; 415, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function4"
          SrcPort                 1
          Points                  [25, 0]
          DstBlock                "Embedded\nMATLA Function3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Add"
          SrcPort                 1
          DstBlock                "Saturation2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Delta_eff"
          SrcPort                 1
          Points                  [-20, 0]
          DstBlock                "Add"
          DstPort                 2
        }
        Line {
          SrcBlock                "Saturation2"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 10
        }
        Annotation {
          Position                [735, 1016]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Vol_Isobaric_2D_"
      Ports                   [5, 1]
      Position                [25, 501, 220, 599]
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Volume [m³]|Initial Parameter: Temperature [K]|"
"Initial Parameter: Water Vapor Content|Initial Parameter: CO2 Content|Initial"
" Parameter: Water Content"
      MaskStyleString         "edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on"
      MaskCallbackString      "||||"
      MaskEnableString        "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables           "V=@1;T_init=@2;x_H2O_gas_init=@3;x_CO2_init=@4;"
"x_H2O_liq_init=@5;"
      MaskDisplay             "plot([-1],[-1],[1 2 2 1 1],[1 1 2 2 1],[4],[4])"
"\nplot([-1],[-1],[1.5 1.5],[2 2.5],[3],[3])\nplot([-1],[-1],[0.5 1],[1.5 1.5]"
",[3],[3])\nplot([-1],[-1],[2.0 2.5],[1.5 1.5],[3],[3])\ntext(2.1,1.0,'Mixing'"
")\ntext(2.1,2.0,'2D')\nport_label('input',1,'p_ext')\nport_label('input',2,'I"
"nlet')\nport_label('input',3,'Q_dot')\nport_label('input',4,'m_dot_H2O_gas_ex"
"t')\nport_label('input',5,'m_dot_CO2_ext')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,"
      System {
        Name                    "Vol_Isobaric_2D_"
        Location                [2, 82, 1270, 978]
        Open                    off
        ModelBrowserVisibility  off
        ModelBrowserWidth       200
        ScreenColor             "white"
        PaperOrientation        "landscape"
        PaperPositionMode       "auto"
        PaperType               "A4"
        PaperUnits              "centimeters"
        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
        TiledPageScale          1
        ShowPageBoundaries      off
        ZoomFactor              "100"
        Block {
          BlockType               Inport
          Name                    "p_vol"
          Position                [210, 38, 240, 52]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          Port {
            PortNumber              1
            Name                    "p"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Inport
          Name                    "In"
          Position                [210, 98, 240, 112]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [170, 393, 200, 407]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "m_dot_H2O_gas_human"
          Position                [170, 423, 200, 437]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "m_dot_CO2_human"
          Position                [170, 453, 200, 467]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "5"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [1140, 556, 1145, 679]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               BusSelector
          Name                    "Bus\nSelector6"
          Ports                   [1, 5]
          Position                [180, 54, 185, 156]
          Orientation             "left"
          ShowName                off
          OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "<m_dot_air>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "<x_H2O_gas>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "<x_CO2>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "<x_H2O_liq>"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [6, 4]
          Position                [370, 143, 510, 317]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Initial');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded\nMATLAB Function"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_init"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_init"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_init"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_init"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 245, 320, 285]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 74"
              Ports                   [6, 5]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 5]"
              Port {
                PortNumber              2
                Name                    "m_air_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_H2O_gas_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_CO2_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_H2O_liq_init"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 256, 480, 274]
            }
            Block {
              BlockType               Outport
              Name                    "m_air_init"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_gas_init"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_CO2_init"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_H2O_liq_init"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 150]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "p"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_H2O_gas_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_CO2_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_liq_init"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              Name                    "m_air_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "m_air_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_gas_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_H2O_gas_init"
              DstPort                 1
            }
            Line {
              Name                    "m_CO2_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_CO2_init"
              DstPort                 1
            }
            Line {
              Name                    "m_H2O_liq_init"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_H2O_liq_init"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_1"
          Ports                   [13, 5]
          Position                [320, 340, 510, 670]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('T_m');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Embedded_MATLAB_Function_1"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_H2O_gas_human"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_CO2_human"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 400, 320, 440]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 75"
              Ports                   [13, 6]
              Position                [180, 119, 230, 401]
              FunctionName            "sf_sfun"
              PortCounts              "[13 6]"
              Port {
                PortNumber              2
                Name                    "T_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_dot_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "m_dot_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 411, 480, 429]
            }
            Block {
              BlockType               Outport
              Name                    "T_dot"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 270]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "x_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "x_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "x_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "m_dot_air_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_gas_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_CO2_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "x_H2O_liq_in"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "m_dot_H2O_gas_human"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "m_dot_CO2_human"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              Name                    "T_dot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T_dot"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_dot_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_dot_CO2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded_MATLAB_Function_2"
          Ports                   [10, 9]
          Position                [705, 431, 910, 819]
          NamePlacement           "alternate"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('p_rho');"
          MaskSelfModifiable      on
          MaskIconFrame           on
          MaskIconOpaque          off
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          Port {
            PortNumber              1
            Name                    "rho"
            PropagatedSignals       "rho_bar"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              2
            Name                    "T"
            PropagatedSignals       "T_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              3
            Name                    "m_air"
            PropagatedSignals       "m_air_bar"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              5
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_CO2_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq_bar"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_liq_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          System {
            Name                    "Embedded_MATLAB_Function_2"
            Location                [257, 457, 812, 717]
            Open                    off
            ModelBrowserVisibility  off
            ModelBrowserWidth       200
            ScreenColor             "white"
            PaperOrientation        "landscape"
            PaperPositionMode       "auto"
            PaperType               "A4"
            PaperUnits              "centimeters"
            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
            TiledPageScale          1
            ShowPageBoundaries      off
            ZoomFactor              "100"
            Block {
              BlockType               Inport
              Name                    "p"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_gas"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_CO2"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_H2O_liq"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_T_old"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_gas_old"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_m_H2O_liq_old"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 425, 320, 465]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function detailed_component"
"s 101"
              Ports                   [10, 10]
              Position                [180, 110, 230, 330]
              FunctionName            "sf_sfun"
              PortCounts              "[10 10]"
              Port {
                PortNumber              2
                Name                    "rho_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "T_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "m_air_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_gas_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_liq_bar"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "Delta_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "Delta_m_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "Delta_m_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 436, 480, 454]
            }
            Block {
              BlockType               Outport
              Name                    "rho_bar"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "T_bar"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_air_bar"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas_bar"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq_bar"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_T"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_gas"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Delta_m_H2O_liq"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 315]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "m_air"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_H2O_gas"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_CO2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "m_H2O_liq"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "Delta_T_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "Delta_m_H2O_gas_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "Delta_m_H2O_liq_old"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              Name                    "rho_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho_bar"
              DstPort                 1
            }
            Line {
              Name                    "T_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "T_bar"
              DstPort                 1
            }
            Line {
              Name                    "m_air_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "m_air_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas_bar"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq_bar"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq_bar"
              DstPort                 1
            }
            Line {
              Name                    "Delta_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "Delta_T"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "Delta_m_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "Delta_m_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "Delta_m_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [560, 366, 615, 399]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [560, 431, 615, 464]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [560, 561, 615, 594]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [560, 626, 615, 659]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator6"
          Ports                   [2, 1]
          Position                [560, 496, 615, 529]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [250, 201, 335, 229]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "T_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [930, 698, 965, 732]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay1"
          Position                [930, 743, 965, 777]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay2"
          Position                [930, 788, 965, 822]
          ShowName                off
          SampleTime              "-1"
        }
        Block {
          BlockType               Constant
          Name                    "V"
          Position                [250, 141, 335, 169]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Value                   "V"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Sum
          Name                    "m_dot_air_out"
          Ports                   [2, 1]
          Position                [880, 322, 910, 353]
          Inputs                  "-+"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "x_CO2_init"
          Position                [250, 261, 335, 289]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_CO2_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_gas_init"
          Position                [250, 231, 335, 259]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_gas_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Constant
          Name                    "x_H2O_liq_init"
          Position                [250, 291, 335, 319]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "x_H2O_liq_init"
          VectorParams1D          on
          SamplingMode            "Sample based"
          OutDataTypeMode         "Inherit from 'Constant value'"
          OutDataType             "sfix(16)"
          ConRadixGroup           "Use specified scaling"
          OutScaling              "2^0"
          SampleTime              "inf"
          FramePeriod             "inf"
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [1170, 613, 1200, 627]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-100, 0; 0, 205]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          DstBlock                "Integrator6"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [165, 0; 0, 135]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          DstBlock                "Bus\nSelector6"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 1
          Points                  [-85, 0; 0, 415]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 2
          Points                  [-90, 0; 0, 245]
          Branch {
            Points                  [0, 175]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 7
          }
          Branch {
            DstBlock                "m_dot_air_out"
            DstPort                 1
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 3
          Points                  [-95, 0; 0, 425]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 4
          Points                  [-100, 0; 0, 430]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector6"
          SrcPort                 5
          Points                  [-105, 0; 0, 435]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 6
          Points                  [75, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [0, 200; -710, 0; 0, -415]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 5
          }
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 7
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 8
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [70, 0]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [15, 0; 0, 100]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 2
        }
        Line {
          SrcBlock                "Integrator6"
          SrcPort                 1
          Points                  [25, 0; 0, 50]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 4
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 6
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 9
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [5, 0; 0, 125; -285, 0]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [10, 0; 0, 75; -295, 0; 0, -70]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 9
        }
        Line {
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [15, 0; 0, 25; -305, 0; 0, -25]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 10
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [105, 0; 0, 60]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [0, 220; -730, 0; 0, -455]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 3
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          Points                  [90, 0; 0, 30]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 7
          }
          Branch {
            Points                  [0, 210; -720, 0; 0, -435]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [150, 0; 0, 105]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 255; -765, 0; 0, -495]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
          Branch {
            Points                  [0, -85; 170, 0; 0, 260]
            DstBlock                "Integrator2"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "x_H2O_gas_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "x_CO2_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "x_H2O_liq_init"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 310]
          DstBlock                "Integrator6"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 330]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 350]
          DstBlock                "Integrator5"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "p_vol"
          SrcPort                 1
          Points                  [100, 0]
          Branch {
            Points                  [0, 140]
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 2
          }
          Branch {
            Points                  [335, 0]
            Branch {
              Points                  [415, 0; 0, 520]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Branch {
              Points                  [0, 400]
              DstBlock                "Embedded_MATLAB_Function_2"
              DstPort                 1
            }
          }
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          Points                  [0, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, -45; 345, 0; 0, 575]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 7
          }
        }
        Line {
          SrcBlock                "m_dot_H2O_gas_human"
          SrcPort                 1
          Points                  [-105, 0; 0, 200]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          SrcBlock                "m_dot_CO2_human"
          SrcPort                 1
          Points                  [-110, 0; 0, 195]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          Points                  [0, 0]
          Branch {
            Points                  [0, -95]
            DstBlock                "m_dot_air_out"
            DstPort                 2
          }
          Branch {
            DstBlock                "Integrator3"
            DstPort                 1
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air_out"
          SrcPort                 1
          Points                  [120, 0; 0, 285]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [135, 0; 0, 75]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 245; -755, 0; 0, -475]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [20, 0; 0, 75]
          DstBlock                "Embedded_MATLAB_Function_2"
          DstPort                 3
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 290]
          DstBlock                "Integrator3"
          DstPort                 2
        }
      }
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.5 (R2006b) dated Aug  8 2006, 21:09:58
#
#

Stateflow {

        machine {
                id                              1
                name                            "detailed_components"
                created                         "16-Jan-2006 11:18:42"
                isLibrary                       0
                firstTarget                     694
                sfVersion                       65014000
        }

        chart {
                id                                                      2
                name                                                    "Hot_Bar_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [405.23 223.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 3 0 0]
                firstTransition                                         5
                firstJunction                                           4
                viewObj                                                 2
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               6
                chartFileNumber                                         1
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      3
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2
                treeNode                                [2 0 0 0]
                superState                              SUBCHART
                subviewer                               2
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho_cold_outlet,rho_hot_outlet,T_cold_outlet,T_ho"
                                                "t_outlet] = Cal(eff,m_dot_air_cold,m_dot_air_hot,T_cold_inl"
                                                "et,T_hot_inlet,p_cold_outlet,p_hot_outlet,x_H2O_gas_cold,x_"
                                                "CO2_cold,x_H2O_gas_hot,x_CO2_hot)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a hot bar\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Map:     Efficiency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Hot_Bar\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Mass flow dry air:                 m_dot_air_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Hot_Bar\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation mass flow.\n"
                                                "% * 3. Calculation heat transfer.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "rho_cold_outlet          = 0;\n"
                                                "rho_hot_outlet           = 0;\n"
                                                "T_cold_outlet            = 0;\n"
                                                "T_hot_outlet             = 0;\n"
                                                "check                    = 0; \n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air                    = 287.058;\n"
                                                "R_H2O_gas                = 461.523;\n"
                                                "R_CO2                    = 188.924;\n"
                                                "c_p_air                  = 1005;\n"
                                                "c_p_H2O_gas              = 1870;\n"
                                                "c_p_CO2                  = 830;\n"
                                                "\n"
                                                "R_cold                   = (R_air+x_H2O_gas_cold*R_H2O_gas+"
                                                "x_CO2_cold*R_CO2)/(1+x_H2O_gas_cold+x_CO2_cold);\n"
                                                "R_hot                    = (R_air+x_H2O_gas_hot*R_H2O_gas+x"
                                                "_CO2_hot*R_CO2)/(1+x_H2O_gas_hot+x_CO2_hot);\n"
                                                "c_p_cold                 = (c_p_air+x_H2O_gas_cold*c_p_H2O_"
                                                "gas+x_CO2_cold*c_p_CO2)/(1+x_H2O_gas_cold+x_CO2_cold);\n"
                                                "c_p_hot                  = (c_p_air+x_H2O_gas_hot*c_p_H2O_g"
                                                "as+x_CO2_hot*c_p_CO2)/(1+x_H2O_gas_hot+x_CO2_hot);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation mass flow\n"
                                                "m_dot_cold               = m_dot_air_cold*(1+x_H2O_gas_cold"
                                                "+x_CO2_cold);\n"
                                                "m_dot_hot                = m_dot_air_hot*(1+x_H2O_gas_hot+x"
                                                "_CO2_hot);\n"
                                                "\n"
                                                "if m_dot_cold > 0.001\n"
                                                "   if m_dot_hot > 0.001\n"
                                                "      check              = 1;\n"
                                                "   end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation heat transfer\n"
                                                "if check == 0\n"
                                                "   T_cold_outlet         = T_cold_inlet;\n"
                                                "   T_hot_outlet          = T_hot_inlet;\n"
                                                "   rho_cold_outlet       = p_cold_outlet/(R_cold*T_cold_inl"
                                                "et);\n"
                                                "   rho_hot_outlet        = p_hot_outlet/(R_hot*T_hot_inlet)"
                                                ";\n"
                                                "end\n"
                                                "\n"
                                                "if check > 0\n"
                                                "   H_dot_hot_inlet       = m_dot_hot*c_p_hot*T_hot_inlet;\n"
                                                "   H_dot_hot_outlet_min  = m_dot_hot*c_p_hot*T_cold_inlet;\n"
                                                "   H_dot_hot_outlet      = H_dot_hot_inlet-eff*(H_dot_hot_i"
                                                "nlet-H_dot_hot_outlet_min);\n"
                                                "   T_hot_outlet          = H_dot_hot_outlet/(m_dot_hot*c_p_"
                                                "hot);\n"
                                                "   \n"
                                                "   H_dot_cold_inlet      = m_dot_cold*c_p_cold*T_cold_inlet"
                                                ";\n"
                                                "   H_dot_cold_outlet     = H_dot_cold_inlet+(H_dot_hot_inle"
                                                "t-H_dot_hot_outlet);\n"
                                                "   T_cold_outlet         = H_dot_cold_outlet/(m_dot_cold*c_"
                                                "p_cold);\n"
                                                "\n"
                                                "   rho_cold_outlet       = p_cold_outlet/(R_cold*T_cold_out"
                                                "let);\n"
                                                "   rho_hot_outlet        = p_hot_outlet/(R_hot*T_hot_outlet"
                                                ");\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[13 97 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      4
                position                [23.5747 49.5747 7]
                chart                   2
                linkNode                [2 0 0]
                subviewer               2
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      5
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      4
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2
                linkNode                [2 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      6
                name                                    "rho_cold_outlet"
                linkNode                                [2 0 7]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      7
                name                                    "rho_hot_outlet"
                linkNode                                [2 6 8]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      8
                name                                    "eff"
                linkNode                                [2 7 9]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      9
                name                                    "m_dot_air_cold"
                linkNode                                [2 8 10]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      10
                name                                    "T_cold_outlet"
                linkNode                                [2 9 11]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      11
                name                                    "T_hot_outlet"
                linkNode                                [2 10 12]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      12
                name                                    "m_dot_air_hot"
                linkNode                                [2 11 13]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      13
                name                                    "T_cold_inlet"
                linkNode                                [2 12 14]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      14
                name                                    "T_hot_inlet"
                linkNode                                [2 13 15]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      15
                name                                    "p_cold_outlet"
                linkNode                                [2 14 16]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      16
                name                                    "p_hot_outlet"
                linkNode                                [2 15 17]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      17
                name                                    "x_H2O_gas_cold"
                linkNode                                [2 16 18]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      18
                name                                    "x_CO2_cold"
                linkNode                                [2 17 19]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      19
                name                                    "x_H2O_gas_hot"
                linkNode                                [2 18 20]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      20
                name                                    "x_CO2_hot"
                linkNode                                [2 19 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              21
                name            "Hot_Bar_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           2
        }

        chart {
                id                                                      22
                name                                                    "Compressor_/Embedded\n"
                                        "MATLA Function2"
                windowPosition                                          [378.23 249.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 23 0 0]
                firstTransition                                         25
                firstJunction                                           24
                viewObj                                                 22
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               26
                chartFileNumber                                         2
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_1"
                }
        }

        state {
                id                                      23
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   22
                treeNode                                [22 0 0 0]
                superState                              SUBCHART
                subviewer                               22
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_dot_air,m_dot_air_corr]  = Cal_1(p_inlet,T_inle"
                                                "t,p_0,T_0,m_dot_left,m_dot_right,m_dot_ref,m_dot_max)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Compressor\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Compressor\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Compressor\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_1:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1.      \n"
                                                "% *\n"
                                                "%   p_outlet/p_inlet |       Left Side       |        Right"
                                                " Side\n"
                                                "%                    |                     __|__      \n"
                                                "%                    |               ____    |    ____\n"
                                                "%                    |         ____          |          ___"
                                                "_          \n"
                                                "%                    |    ____               |             "
                                                "     _____\n"
                                                "%                   0|_______________________|_____________"
                                                "___________\n"
                                                "%                     0             Mass Flow Corrected    "
                                                " \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation mass flow\n"
                                                "m_dot_air_corr    = 0;\n"
                                                "\n"
                                                "if m_dot_max < 0\n"
                                                "   m_dot_max      = 0;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_left < 0\n"
                                                "   m_dot_left     = 0;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_right < 0\n"
                                                "   m_dot_right    = 0;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_left > m_dot_max\n"
                                                "   m_dot_left     = m_dot_max;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_right < m_dot_max\n"
                                                "   m_dot_right    = m_dot_max;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_ref >= m_dot_max\n"
                                                "   m_dot_air_corr = m_dot_right;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_ref < m_dot_max\n"
                                                "   m_dot_air_corr = m_dot_left;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air         = m_dot_air_corr*(p_inlet/p_0)*(1/sqrt(T_"
                                                "inlet/T_0));\n"
                                                "\n"
                                                "if m_dot_air < 0\n"
                                                "   m_dot_air      = 0;\n"
                                                "   m_dot_air_corr = 0;\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air > 5*m_dot_max\n"
                                                "   m_dot_air      = 5*m_dot_max;\n"
                                                "   m_dot_air_corr = 5*m_dot_max;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[210 18 1036 780]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      24
                position                [23.5747 49.5747 7]
                chart                   22
                linkNode                [22 0 0]
                subviewer               22
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      25
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      24
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   22
                linkNode                [22 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               22
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      26
                name                                    "p_inlet"
                linkNode                                [22 0 27]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      27
                name                                    "T_inlet"
                linkNode                                [22 26 28]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      28
                name                                    "p_0"
                linkNode                                [22 27 29]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      29
                name                                    "T_0"
                linkNode                                [22 28 30]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      30
                name                                    "m_dot_air"
                linkNode                                [22 29 31]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      31
                name                                    "m_dot_left"
                linkNode                                [22 30 32]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      32
                name                                    "m_dot_right"
                linkNode                                [22 31 33]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      33
                name                                    "m_dot_ref"
                linkNode                                [22 32 34]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      34
                name                                    "m_dot_max"
                linkNode                                [22 33 35]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      35
                name                                    "m_dot_air_corr"
                linkNode                                [22 34 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              36
                name            "Compressor_/Embedded\n"
                                        "MATLA Function2"
                machine         1
                chart           22
        }

        chart {
                id                                                      37
                name                                                    "Specialized_Fan_/Embedded\n"
                                        "MATLA Function2"
                windowPosition                                          [377.584 260.537 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 38 0 0]
                firstTransition                                         40
                firstJunction                                           39
                viewObj                                                 37
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               41
                chartFileNumber                                         3
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_T_air"
                }
        }

        state {
                id                                      38
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   37
                treeNode                                [37 0 0 0]
                superState                              SUBCHART
                subviewer                               37
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function T_air_inlet = Cal_T_air(T_inlet,x_H2O_gas,x_CO2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a specialized fan\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Specialized_Fan\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Specialized_Fan\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_T_air:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation dry bulb temperature T_air.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. The specific enthalpy of the inflowing gas mixture i"
                                                "s equal the enthalpy\n"
                                                "% *    of a dry air flow.      \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation dry bulb temperature T_air\n"
                                                "c_p_air     = 1005;\n"
                                                "c_p_H2O_gas = 1870;\n"
                                                "c_p_CO2     = 830;\n"
                                                "r_0         = 2500000;\n"
                                                "T_air_inlet = (c_p_air*T_inlet+x_H2O_gas*c_p_H2O_gas*T_inle"
                                                "t+x_CO2*c_p_CO2*T_inlet+x_H2O_gas*r_0)/c_p_air;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[103 236 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      39
                position                [23.5747 49.5747 7]
                chart                   37
                linkNode                [37 0 0]
                subviewer               37
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      40
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      39
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   37
                linkNode                [37 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               37
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      41
                name                                    "T_inlet"
                linkNode                                [37 0 42]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      42
                name                                    "x_H2O_gas"
                linkNode                                [37 41 43]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      43
                name                                    "x_CO2"
                linkNode                                [37 42 44]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      44
                name                                    "T_air_inlet"
                linkNode                                [37 43 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              45
                name            "Specialized_Fan_/Embedded\n"
                                        "MATLA Function2"
                machine         1
                chart           37
        }

        chart {
                id                                                      46
                name                                                    "Specialized_Fan_/Embedded\n"
                                        "MATLA Function3"
                windowPosition                                          [453.23 174.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 47 0 0]
                firstTransition                                         49
                firstJunction                                           48
                viewObj                                                 46
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               50
                chartFileNumber                                         4
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_N"
                }
        }

        state {
                id                                      47
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   46
                treeNode                                [46 0 0 0]
                superState                              SUBCHART
                subviewer                               46
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function N = Cal_N(T_air_inlet,T_0,n)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a specialized fan\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Specialized_Fan\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Specialized_Fan\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_N:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation corrected rotational speed N.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation corrected rotational speed N\n"
                                                "N = n/sqrt(T_air_inlet/T_0);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[122 196 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      48
                position                [23.5747 49.5747 7]
                chart                   46
                linkNode                [46 0 0]
                subviewer               46
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      49
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      48
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   46
                linkNode                [46 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               46
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      50
                name                                    "T_air_inlet"
                linkNode                                [46 0 51]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      51
                name                                    "T_0"
                linkNode                                [46 50 52]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      52
                name                                    "n"
                linkNode                                [46 51 53]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      53
                name                                    "N"
                linkNode                                [46 52 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              54
                name            "Specialized_Fan_/Embedded\n"
                                        "MATLA Function3"
                machine         1
                chart           46
        }

        chart {
                id                                                      55
                name                                                    "Static_HX_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [420.23 208.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 56 0 0]
                firstTransition                                         58
                firstJunction                                           57
                viewObj                                                 55
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               59
                chartFileNumber                                         5
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_2"
                }
        }

        state {
                id                                      56
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   55
                treeNode                                [55 0 0 0]
                superState                              SUBCHART
                subviewer                               55
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho_cold_outlet,rho_hot_outlet,T_cold_outlet,T_ho"
                                                "t_outlet] = Cal_2(eff,m_dot_air_cold,m_dot_air_hot,T_cold_i"
                                                "nlet,T_hot_inlet,p_cold_outlet,p_hot_outlet,x_H2O_gas_cold,"
                                                "x_CO2_cold,x_H2O_gas_hot,x_CO2_hot)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a static heat exchanger\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Map:     Efficiency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Static_HX\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Static_HX\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air_in\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_2:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation heat transfer.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "rho_cold_outlet         = 0;\n"
                                                "rho_hot_outlet          = 0;\n"
                                                "T_cold_outlet           = 0;\n"
                                                "T_hot_outlet            = 0;\n"
                                                "check                   = 0; \n"
                                                "\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "R_air                   = 287.058;\n"
                                                "R_H2O_gas               = 461.523;\n"
                                                "R_CO2                   = 188.924;\n"
                                                "c_p_air                 = 1005;\n"
                                                "c_p_H2O_gas             = 1870;\n"
                                                "c_p_CO2                 = 830;\n"
                                                "\n"
                                                "R_cold                  = (R_air+x_H2O_gas_cold*R_H2O_gas+x"
                                                "_CO2_cold*R_CO2)/(1+x_H2O_gas_cold+x_CO2_cold);\n"
                                                "R_hot                   = (R_air+x_H2O_gas_hot*R_H2O_gas+x_"
                                                "CO2_hot*R_CO2)/(1+x_H2O_gas_hot+x_CO2_hot);\n"
                                                "c_p_cold                = (c_p_air+x_H2O_gas_cold*c_p_H2O_g"
                                                "as+x_CO2_cold*c_p_CO2)/(1+x_H2O_gas_cold+x_CO2_cold);\n"
                                                "c_p_hot                 = (c_p_air+x_H2O_gas_hot*c_p_H2O_ga"
                                                "s+x_CO2_hot*c_p_CO2)/(1+x_H2O_gas_hot+x_CO2_hot);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation heat transfer\n"
                                                "m_dot_cold              = m_dot_air_cold*(1+x_H2O_gas_cold+"
                                                "x_CO2_cold);\n"
                                                "m_dot_hot               = m_dot_air_hot*(1+x_H2O_gas_hot+x_"
                                                "CO2_hot);\n"
                                                "\n"
                                                "if m_dot_cold > 0.01\n"
                                                "   if m_dot_hot > 0.01\n"
                                                "      check             = 1;\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if check == 0\n"
                                                "   T_cold_outlet        = T_cold_inlet;\n"
                                                "   T_hot_outlet         = T_hot_inlet;\n"
                                                "   rho_cold_outlet      = p_cold_outlet/(R_cold*T_cold_inle"
                                                "t);\n"
                                                "   rho_hot_outlet       = p_hot_outlet/(R_hot*T_hot_inlet);"
                                                "\n"
                                                "end\n"
                                                "\n"
                                                "if check > 0\n"
                                                "   H_dot_hot_inlet      = m_dot_hot*c_p_hot*T_hot_inlet;\n"
                                                "   H_dot_hot_outlet_min = m_dot_hot*c_p_hot*T_cold_inlet;\n"
                                                "   H_dot_hot_outlet     = H_dot_hot_inlet-eff*(H_dot_hot_in"
                                                "let-H_dot_hot_outlet_min);\n"
                                                "   T_hot_outlet         = H_dot_hot_outlet/(m_dot_hot*c_p_h"
                                                "ot);\n"
                                                "   \n"
                                                "   H_dot_cold_inlet     = m_dot_cold*c_p_cold*T_cold_inlet;"
                                                "\n"
                                                "   H_dot_cold_outlet    = H_dot_cold_inlet+(H_dot_hot_inlet"
                                                "-H_dot_hot_outlet);\n"
                                                "   T_cold_outlet        = H_dot_cold_outlet/(m_dot_cold*c_p"
                                                "_cold);\n"
                                                "\n"
                                                "   rho_cold_outlet      = p_cold_outlet/(R_cold*T_cold_outl"
                                                "et);\n"
                                                "   rho_hot_outlet       = p_hot_outlet/(R_hot*T_hot_outlet)"
                                                ";\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[146 146 1032 746]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      57
                position                [23.5747 49.5747 7]
                chart                   55
                linkNode                [55 0 0]
                subviewer               55
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      58
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      57
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   55
                linkNode                [55 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               55
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      59
                name                                    "rho_cold_outlet"
                linkNode                                [55 0 60]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      60
                name                                    "rho_hot_outlet"
                linkNode                                [55 59 61]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      61
                name                                    "eff"
                linkNode                                [55 60 62]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      62
                name                                    "m_dot_air_cold"
                linkNode                                [55 61 63]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      63
                name                                    "T_cold_outlet"
                linkNode                                [55 62 64]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      64
                name                                    "T_hot_outlet"
                linkNode                                [55 63 65]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      65
                name                                    "m_dot_air_hot"
                linkNode                                [55 64 66]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      66
                name                                    "T_cold_inlet"
                linkNode                                [55 65 67]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      67
                name                                    "T_hot_inlet"
                linkNode                                [55 66 68]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      68
                name                                    "p_cold_outlet"
                linkNode                                [55 67 69]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      69
                name                                    "p_hot_outlet"
                linkNode                                [55 68 70]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      70
                name                                    "x_H2O_gas_cold"
                linkNode                                [55 69 71]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      71
                name                                    "x_CO2_cold"
                linkNode                                [55 70 72]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      72
                name                                    "x_H2O_gas_hot"
                linkNode                                [55 71 73]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      73
                name                                    "x_CO2_hot"
                linkNode                                [55 72 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              74
                name            "Static_HX_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           55
        }

        chart {
                id                                                      75
                name                                                    "Compressor_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [363.23 264.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 76 0 0]
                firstTransition                                         78
                firstJunction                                           77
                viewObj                                                 75
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               79
                chartFileNumber                                         6
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_2"
                }
        }

        state {
                id                                      76
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   75
                treeNode                                [75 0 0 0]
                superState                              SUBCHART
                subviewer                               75
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho_outlet,T_outlet,m_dot_air_inlet,m_dot_air_out"
                                                "let,P_comp] = Cal_2(p_inlet,p_outlet,T_inlet,x_H2O_gas,x_CO"
                                                "2,m_dot_air,eff)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Compressor\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Compressor\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Compressor\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_2:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation specific work.\n"
                                                "% * 3. Calculation outlet temperature and density.\n"
                                                "% * 4. Calculation absorbed power.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:  \n"
                                                "% *\n"
                                                "%   Efficiency |                       |        \n"
                                                "%              |                     __|__      \n"
                                                "%              |               ____    |    ____\n"
                                                "%              |          ____         |          _________"
                                                "___          \n"
                                                "%              |  _______              |             \n"
                                                "%             0|_______________________|___________________"
                                                "_____\n"
                                                "%               0             Mass Flow Corrected     \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air            = 287.058;\n"
                                                "R_H2O_gas        = 461.523;\n"
                                                "R_CO2            = 188.924;\n"
                                                "c_p_air          = 1005;\n"
                                                "c_p_H2O_gas      = 1870;\n"
                                                "c_p_CO2          = 830;\n"
                                                "R_avg            = (R_air+x_H2O_gas*R_H2O_gas+x_CO2*R_CO2)/"
                                                "(1+x_H2O_gas+x_CO2);\n"
                                                "c_p_avg          = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2*c_p"
                                                "_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "c_v_avg          = c_p_avg-R_avg;\n"
                                                "gamma_avg        = c_p_avg/c_v_avg;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation specific work\n"
                                                "w_comp           = 0;\n"
                                                "\n"
                                                "if eff >= 0.01\n"
                                                "   w_comp        = (1/eff)*c_p_air*T_inlet*(((p_outlet/p_in"
                                                "let)^((gamma_avg-1)/gamma_avg))-1); \n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation outlet temperature and density \n"
                                                "T_outlet         = T_inlet+(1/c_p_air)*w_comp;\n"
                                                "\n"
                                                "if T_outlet < T_inlet\n"
                                                "   T_outlet      = T_inlet;\n"
                                                "end\n"
                                                "\n"
                                                "rho_outlet       = p_outlet/(R_avg*T_outlet);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation absorbed power\n"
                                                "if p_outlet == p_inlet\n"
                                                "   m_dot_air     = 0;\n"
                                                "end\n"
                                                "\n"
                                                "P_comp           = m_dot_air*c_p_air*(T_outlet-T_inlet);\n"
                                                "\n"
                                                "m_dot_air_inlet  = -m_dot_air;\n"
                                                "m_dot_air_outlet =  m_dot_air;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[129 146 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      77
                position                [23.5747 49.5747 7]
                chart                   75
                linkNode                [75 0 0]
                subviewer               75
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      78
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      77
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   75
                linkNode                [75 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               75
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      79
                name                                    "rho_outlet"
                linkNode                                [75 0 80]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      80
                name                                    "T_outlet"
                linkNode                                [75 79 81]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      81
                name                                    "p_inlet"
                linkNode                                [75 80 82]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      82
                name                                    "p_outlet"
                linkNode                                [75 81 83]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      83
                name                                    "T_inlet"
                linkNode                                [75 82 84]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      84
                name                                    "x_H2O_gas"
                linkNode                                [75 83 85]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      85
                name                                    "x_CO2"
                linkNode                                [75 84 86]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      86
                name                                    "m_dot_air"
                linkNode                                [75 85 87]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      87
                name                                    "eff"
                linkNode                                [75 86 88]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      88
                name                                    "m_dot_air_inlet"
                linkNode                                [75 87 89]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      89
                name                                    "m_dot_air_outlet"
                linkNode                                [75 88 90]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      90
                name                                    "P_comp"
                linkNode                                [75 89 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              91
                name            "Compressor_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           75
        }

        chart {
                id                                                      92
                name                                                    "Static_HX_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [408.23 219.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 93 0 0]
                firstTransition                                         95
                firstJunction                                           94
                viewObj                                                 92
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               96
                chartFileNumber                                         7
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_1"
                }
        }

        state {
                id                                      93
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   92
                treeNode                                [92 0 0 0]
                superState                              SUBCHART
                subviewer                               92
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_dot_air_cold,m_dot_air_cold_inlet,m_dot_air_col"
                                                "d_outlet,m_dot_air_hot,m_dot_air_hot_inlet,m_dot_air_hot_ou"
                                                "tlet] = Cal_1(K_1_hot,m_1_hot,rho_hot_inlet,K_1_cold,m_1_co"
                                                "ld,rho_cold_inlet,p_cold_inlet,p_cold_outlet,p_hot_inlet,p_"
                                                "hot_outlet,x_H2O_gas_cold,x_CO2_cold,x_H2O_gas_hot,x_CO2_ho"
                                                "t,p_0,T_0)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a static heat exchanger\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Map:     Efficiency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Static_HX\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Static_HX\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air_in\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_1:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation mass flow\n"
                                                "R_air                 = 287.058;\n"
                                                "rho_0                 = p_0/(R_air*T_0);\n"
                                                "rho_air_cold_inlet    = rho_cold_inlet/(1+x_H2O_gas_cold+x_"
                                                "CO2_cold);\n"
                                                "rho_air_hot_inlet     = rho_hot_inlet/(1+x_H2O_gas_hot+x_CO"
                                                "2_hot);\n"
                                                "sigma_1_cold          = rho_air_cold_inlet/rho_0;\n"
                                                "sigma_1_hot           = rho_air_hot_inlet/rho_0;\n"
                                                "m_dot_air_cold        = (abs(p_cold_inlet-p_cold_outlet)*si"
                                                "gma_1_cold/K_1_cold)^(1/m_1_cold);\n"
                                                "\n"
                                                "if p_cold_inlet < p_cold_outlet\n"
                                                "   m_dot_air_cold     = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air_hot         = (abs(p_hot_inlet-p_hot_outlet)*sigm"
                                                "a_1_hot/K_1_hot)^(1/m_1_hot);\n"
                                                "\n"
                                                "if p_hot_inlet < p_hot_outlet\n"
                                                "   m_dot_air_hot      = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air_cold_inlet  = -m_dot_air_cold;\n"
                                                "m_dot_air_cold_outlet =  m_dot_air_cold;\n"
                                                "m_dot_air_hot_inlet   = -m_dot_air_hot;\n"
                                                "m_dot_air_hot_outlet  =  m_dot_air_hot;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[8 28 1032 746]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      94
                position                [23.5747 49.5747 7]
                chart                   92
                linkNode                [92 0 0]
                subviewer               92
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      95
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      94
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   92
                linkNode                [92 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               92
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      96
                name                                    "m_dot_air_cold"
                linkNode                                [92 0 97]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      97
                name                                    "m_dot_air_cold_inlet"
                linkNode                                [92 96 98]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      98
                name                                    "m_dot_air_cold_outlet"
                linkNode                                [92 97 99]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      99
                name                                    "m_dot_air_hot"
                linkNode                                [92 98 100]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      100
                name                                    "m_dot_air_hot_inlet"
                linkNode                                [92 99 101]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      101
                name                                    "m_dot_air_hot_outlet"
                linkNode                                [92 100 102]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      102
                name                                    "K_1_hot"
                linkNode                                [92 101 103]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      103
                name                                    "m_1_hot"
                linkNode                                [92 102 104]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      104
                name                                    "rho_hot_inlet"
                linkNode                                [92 103 105]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      105
                name                                    "K_1_cold"
                linkNode                                [92 104 106]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      106
                name                                    "m_1_cold"
                linkNode                                [92 105 107]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      107
                name                                    "rho_cold_inlet"
                linkNode                                [92 106 108]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      108
                name                                    "p_cold_inlet"
                linkNode                                [92 107 109]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      109
                name                                    "p_cold_outlet"
                linkNode                                [92 108 110]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      110
                name                                    "p_hot_inlet"
                linkNode                                [92 109 111]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      111
                name                                    "p_hot_outlet"
                linkNode                                [92 110 112]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      112
                name                                    "x_H2O_gas_cold"
                linkNode                                [92 111 113]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      113
                name                                    "x_CO2_cold"
                linkNode                                [92 112 114]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      114
                name                                    "x_H2O_gas_hot"
                linkNode                                [92 113 115]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      115
                name                                    "x_CO2_hot"
                linkNode                                [92 114 116]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      116
                name                                    "p_0"
                linkNode                                [92 115 117]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      117
                name                                    "T_0"
                linkNode                                [92 116 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              118
                name            "Static_HX_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           92
        }

        chart {
                id                                                      119
                name                                                    "Mixing_Unit_3D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [420.45 153.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 120 0 0]
                firstTransition                                         122
                firstJunction                                           121
                viewObj                                                 119
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               123
                chartFileNumber                                         8
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      120
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   119
                treeNode                                [119 0 0 0]
                superState                              SUBCHART
                subviewer                               119
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_air_init,m_H2O_gas_init,m_CO2_init,m_H2O_liq_in"
                                                "it] = Initial(V,p_init,T_init,x_H2O_gas_init,x_CO2_init,x_H"
                                                "2O_liq_init)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 3 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_3D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_3D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function Initial:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature.\n"
                                                "% * 3. Calculation of the saturation mass.\n"
                                                "% * 4. Initialisation. \n"
                                                "% *    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. The saturation density is a function of the temperat"
                                                "ure. The used\n"
                                                "% *    function is described in literature. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature\n"
                                                "rho_H2O_gas_sat   = 4.44259*exp(15.05703*(T_init-273.15)/(2"
                                                "08.07254+(T_init-273.15)))/1000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the saturation mass\n"
                                                "m_H2O_gas_sat     = V*rho_H2O_gas_sat;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Initialisation\n"
                                                "m_air_init        = p_init*V/(T_init*(R_air+x_H2O_gas_init*"
                                                "R_H2O_gas+x_CO2_init*R_CO2));\n"
                                                "m_H2O_gas_init    = m_air_init*x_H2O_gas_init;\n"
                                                "\n"
                                                "if m_H2O_gas_init > m_H2O_gas_sat\n"
                                                "   m_H2O_gas_init = m_H2O_gas_sat;\n"
                                                "   m_air_init     = ((p_init*V/T_init)-(m_H2O_gas_init*R_H2"
                                                "O_gas))/(R_air+x_CO2_init*R_CO2);\n"
                                                "end\n"
                                                "\n"
                                                "m_CO2_init        = m_air_init*x_CO2_init;\n"
                                                "m_H2O_liq_init    = m_air_init*x_H2O_liq_init;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 43 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      121
                position                [23.5747 49.5747 7]
                chart                   119
                linkNode                [119 0 0]
                subviewer               119
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      122
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      121
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   119
                linkNode                [119 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               119
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      123
                name                                    "V"
                linkNode                                [119 0 124]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      124
                name                                    "p_init"
                linkNode                                [119 123 125]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      125
                name                                    "T_init"
                linkNode                                [119 124 126]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      126
                name                                    "x_H2O_gas_init"
                linkNode                                [119 125 127]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      127
                name                                    "x_CO2_init"
                linkNode                                [119 126 128]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      128
                name                                    "x_H2O_liq_init"
                linkNode                                [119 127 129]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      129
                name                                    "m_air_init"
                linkNode                                [119 128 130]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      130
                name                                    "m_H2O_gas_init"
                linkNode                                [119 129 131]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      131
                name                                    "m_CO2_init"
                linkNode                                [119 130 132]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      132
                name                                    "m_H2O_liq_init"
                linkNode                                [119 131 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              133
                name            "Mixing_Unit_3D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           119
        }

        chart {
                id                                                      134
                name                                                    "Mixing_Unit_3D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [480.45 93.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 135 0 0]
                firstTransition                                         137
                firstJunction                                           136
                viewObj                                                 134
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               138
                chartFileNumber                                         9
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      135
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   134
                treeNode                                [134 0 0 0]
                superState                              SUBCHART
                subviewer                               134
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [T_dot,m_dot_air,m_dot_H2O_gas,m_dot_CO2,m_dot_H2O"
                                                "_liq] = T_m(T,m_air,m_H2O_gas,m_CO2,m_H2O_liq,T_in_1,m_dot_"
                                                "air_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2O_liq_in_1,T_in_2,m_"
                                                "dot_air_in_2,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2,T_in_"
                                                "3,m_dot_air_in_3,x_H2O_gas_in_3,x_CO2_in_3,x_H2O_liq_in_3,Q"
                                                "_dot)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 3 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_3D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_3D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function T_m:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Redefinition of the input variables.\n"
                                                "% * 3. Modification of the mass inside the system.\n"
                                                "% * 4. Modification of the temperature inside the system.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. In the case of outgoing mass flow, the characteristi"
                                                "c variables of \n"
                                                "% *    the mass flow are defined by the state variables of "
                                                "the volume. \n"
                                                "% * 3. The increase or decrease of the mass inside the volu"
                                                "me is defined \n"
                                                "% *    by the incoming (sign: plus) or outgoing (sign: minu"
                                                "s) mass flow.\n"
                                                "% * 4. The Enthalpy equation of the gas inside the volume i"
                                                "s used. the \n"
                                                "% *    enthalpy of the liquid water inside the volume is ne"
                                                "glected. \n"
                                                "% *    Assuming that the liquid water is always in thermal "
                                                "equilibrium with \n"
                                                "% *    the gas.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "c_p_air           = 1005;\n"
                                                "c_p_H2O_gas       = 1870;\n"
                                                "c_p_CO2           = 830;\n"
                                                "c_v_air           = c_p_air-R_air;\n"
                                                "c_v_H2O_gas       = c_p_H2O_gas-R_H2O_gas;\n"
                                                "c_v_CO2           = c_p_CO2-R_CO2;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Redefinition of the input variables\n"
                                                "if m_dot_air_in_1 < 0\n"
                                                "   T_in_1         = T;\n"
                                                "   m_dot          = m_dot_air_in_1*(1+x_H2O_gas_in_1+x_CO2_"
                                                "in_1);\n"
                                                "   m_dot_air_in_1 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_1 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_1     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_1 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_2 < 0\n"
                                                "   T_in_2=T;\n"
                                                "   m_dot          = m_dot_air_in_2*(1+x_H2O_gas_in_2+x_CO2_"
                                                "in_2);\n"
                                                "   m_dot_air_in_2 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_2 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_2     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_2 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_3 < 0\n"
                                                "   T_in_3         = T;\n"
                                                "   m_dot          = m_dot_air_in_3*(1+x_H2O_gas_in_3+x_CO2_"
                                                "in_3);\n"
                                                "   m_dot_air_in_3 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_3 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_3     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_3 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Modification of the mass inside the system\n"
                                                "m_dot_air         = m_dot_air_in_1+m_dot_air_in_2+m_dot_air"
                                                "_in_3;\n"
                                                "m_dot_H2O_gas     = m_dot_air_in_1*x_H2O_gas_in_1+m_dot_air"
                                                "_in_2*x_H2O_gas_in_2+m_dot_air_in_3*x_H2O_gas_in_3;\n"
                                                "m_dot_CO2         = m_dot_air_in_1*x_CO2_in_1+m_dot_air_in_"
                                                "2*x_CO2_in_2+m_dot_air_in_3*x_CO2_in_3;\n"
                                                "m_dot_H2O_liq     = m_dot_air_in_1*x_H2O_liq_in_1+m_dot_air"
                                                "_in_2*x_H2O_liq_in_2+m_dot_air_in_3*x_H2O_liq_in_3;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Modification of the temperature inside the system\n"
                                                "T_dot             = (Q_dot+m_dot_air_in_1*(c_p_air*T_in_1-c"
                                                "_v_air*T)+m_dot_air_in_2*(c_p_air*T_in_2-c_v_air*T)+m_dot_a"
                                                "ir_in_3*(c_p_air*T_in_3-c_v_air*T)+m_dot_air_in_1*x_H2O_gas"
                                                "_in_1*(c_p_H2O_gas*T_in_1-c_v_H2O_gas*T)+m_dot_air_in_2*x_H"
                                                "2O_gas_in_2*(c_p_H2O_gas*T_in_2-c_v_H2O_gas*T)+m_dot_air_in"
                                                "_3*x_H2O_gas_in_3*(c_p_H2O_gas*T_in_3-c_v_H2O_gas*T)+m_dot_"
                                                "air_in_1*x_CO2_in_1*(c_p_CO2*T_in_1-c_v_CO2*T)+m_dot_air_in"
                                                "_2*x_CO2_in_2*(c_p_CO2*T_in_2-c_v_CO2*T)+m_dot_air_in_3*x_C"
                                                "O2_in_3*(c_p_CO2*T_in_3-c_v_CO2*T))/(c_v_air*m_air+c_v_H2O_"
                                                "gas*m_H2O_gas+c_v_CO2*m_CO2);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[98 179 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      136
                position                [23.5747 49.5747 7]
                chart                   134
                linkNode                [134 0 0]
                subviewer               134
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      137
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      136
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   134
                linkNode                [134 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               134
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      138
                name                                    "T"
                linkNode                                [134 0 139]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      139
                name                                    "T_dot"
                linkNode                                [134 138 140]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      140
                name                                    "m_dot_air"
                linkNode                                [134 139 141]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      141
                name                                    "m_air"
                linkNode                                [134 140 142]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      142
                name                                    "m_H2O_gas"
                linkNode                                [134 141 143]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      143
                name                                    "m_CO2"
                linkNode                                [134 142 144]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      144
                name                                    "m_H2O_liq"
                linkNode                                [134 143 145]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      145
                name                                    "T_in_1"
                linkNode                                [134 144 146]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      146
                name                                    "m_dot_air_in_1"
                linkNode                                [134 145 147]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      147
                name                                    "x_H2O_gas_in_1"
                linkNode                                [134 146 148]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      148
                name                                    "x_CO2_in_1"
                linkNode                                [134 147 149]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      149
                name                                    "x_H2O_liq_in_1"
                linkNode                                [134 148 150]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      150
                name                                    "T_in_2"
                linkNode                                [134 149 151]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      151
                name                                    "m_dot_air_in_2"
                linkNode                                [134 150 152]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      152
                name                                    "x_H2O_gas_in_2"
                linkNode                                [134 151 153]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      153
                name                                    "x_CO2_in_2"
                linkNode                                [134 152 154]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      154
                name                                    "x_H2O_liq_in_2"
                linkNode                                [134 153 155]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      155
                name                                    "T_in_3"
                linkNode                                [134 154 156]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      156
                name                                    "m_dot_air_in_3"
                linkNode                                [134 155 157]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      157
                name                                    "x_H2O_gas_in_3"
                linkNode                                [134 156 158]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      158
                name                                    "x_CO2_in_3"
                linkNode                                [134 157 159]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      159
                name                                    "x_H2O_liq_in_3"
                linkNode                                [134 158 160]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      160
                name                                    "Q_dot"
                linkNode                                [134 159 161]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      161
                name                                    "m_dot_H2O_gas"
                linkNode                                [134 160 162]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      162
                name                                    "m_dot_CO2"
                linkNode                                [134 161 163]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      163
                name                                    "m_dot_H2O_liq"
                linkNode                                [134 162 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        instance {
                id              164
                name            "Mixing_Unit_3D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           134
        }

        chart {
                id                                                      165
                name                                                    "Mixing_Unit_3D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [504.288 108.844 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 166 0 0]
                firstTransition                                         168
                firstJunction                                           167
                viewObj                                                 165
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               169
                chartFileNumber                                         10
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      166
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   165
                treeNode                                [165 0 0 0]
                superState                              SUBCHART
                subviewer                               165
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho_bar,T_bar,x_H2O_gas_bar,x_CO2,x_H2O_liq_bar"
                                                ",Delta_T,Delta_m_H2O_gas,Delta_m_H2O_liq] = p_rho(T,m_air,m"
                                                "_H2O_gas,m_CO2,m_H2O_liq,V,Delta_T_old,Delta_m_H2O_gas_old,"
                                                "Delta_m_H2O_liq_old)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 3 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_3D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_3D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function p_rho:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Redefinition of the input variables.\n"
                                                "% * 2. Definition specific gas constants.\n"
                                                "% * 3. Calculation of the density.\n"
                                                "% * 4. Calculation of the pressure.\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\n"
                                                "% * 6. Condensation/Evaporation \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 5. The differnt contents are defined in respect of the "
                                                "mass of the \n"
                                                "% *    dry air. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Redefinition of the input variables\n"
                                                "T                             = T+Delta_T_old;\n"
                                                "\n"
                                                "if T < 0\n"
                                                "   T                          = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_gas                     = m_H2O_gas+Delta_m_H2O_gas_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_gas < 0\n"
                                                "   m_H2O_gas                  = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_liq                     = m_H2O_liq+Delta_m_H2O_liq_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_liq < 0\n"
                                                "   m_H2O_liq                  = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition specific gas constants\n"
                                                "R_air                         = 287.058;\n"
                                                "R_H2O_gas                     = 461.523;\n"
                                                "R_CO2                         = 188.924;\n"
                                                "c_p_air                       = 1005;\n"
                                                "c_p_H2O_gas                   = 1870;\n"
                                                "c_p_CO2                       = 830;\n"
                                                "c_p_H2O_liq                   = 4173;\n"
                                                "c_p_H2O_ice                   = 2050;\n"
                                                "r_0                           = 2500000;\n"
                                                "r_ice                         = 333000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the density\n"
                                                "rho                           = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation of the pressure\n"
                                                "p                             = T*(m_air*R_air+m_H2O_gas*R_"
                                                "H2O_gas+m_CO2*R_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content\n"
                                                "x_H2O_gas                     = m_H2O_gas/m_air;\n"
                                                "x_CO2                         = m_CO2/m_air;\n"
                                                "x_H2O_liq                     = m_H2O_liq/m_air;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Condensation/Evaporation\n"
                                                "rho_bar                       = rho;\n"
                                                "T_bar                         = T;\n"
                                                "x_H2O_gas_bar                 = x_H2O_gas;\n"
                                                "x_H2O_liq_bar                 = x_H2O_liq;\n"
                                                "rho_H2O_gas_sat               = 4.44259*exp(15.05703*(T-273"
                                                ".15)/(208.07254+(T-273.15)))/1000;\n"
                                                "x_H2O_gas_sat                 = rho_H2O_gas_sat/(m_air/V);\n"
                                                "evap                          = 0;\n"
                                                "cond                          = 0;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   evap                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if x_H2O_gas_sat < x_H2O_gas\n"
                                                "   cond                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if evap>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   \n"
                                                "   while test>0\n"
                                                "         rho_H2O_gas_sat_evap = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_evap   = rho_H2O_gas_sat_evap/(m_air"
                                                "/V);\n"
                                                "         \n"
                                                "         if (x_H2O_gas_sat_evap-x_H2O_gas)<x_H2O_liq\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas_sat_evap;\n"
                                                "         else\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas+x_H2O_liq;\n"
                                                "         end\n"
                                                "\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas_bar-x_H2O_ga"
                                                "s);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T+(x_"
                                                "H2O_gas_bar-x_H2O_gas)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar >= T\n"
                                                "      T_bar                   = T;\n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "     x_H2O_liq_bar            = x_H2O_liq-(x_H2O_gas_bar-x_"
                                                "H2O_gas);\n"
                                                "     R_avg                    = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "     rho_bar                  = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if cond>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   x_H2O_gas_sat_cond         = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_cond = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_cond   = rho_H2O_gas_sat_cond/(m_air"
                                                "/V);\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas-x_H2O_gas_sa"
                                                "t_cond);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T-(x_"
                                                "H2O_gas-x_H2O_gas_sat_cond)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar <= T\n"
                                                "      T_bar                   = T; \n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas_sat_cond;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq+(x_H2O_gas-x_H2O_"
                                                "gas_sat_cond);\n"
                                                "      R_avg                   = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "      rho_bar                 = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "Delta_T                       = Delta_T_old+T_bar-T;\n"
                                                "Delta_m_H2O_gas               = Delta_m_H2O_gas_old+m_air*("
                                                "x_H2O_gas_bar-x_H2O_gas);\n"
                                                "Delta_m_H2O_liq               = Delta_m_H2O_liq_old+m_air*("
                                                "x_H2O_liq_bar-x_H2O_liq);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[98 228 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      167
                position                [23.5747 49.5747 7]
                chart                   165
                linkNode                [165 0 0]
                subviewer               165
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      168
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      167
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   165
                linkNode                [165 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               165
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      169
                name                                    "T"
                linkNode                                [165 0 170]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      170
                name                                    "p"
                linkNode                                [165 169 171]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      171
                name                                    "rho_bar"
                linkNode                                [165 170 172]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      172
                name                                    "m_air"
                linkNode                                [165 171 173]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      173
                name                                    "m_H2O_gas"
                linkNode                                [165 172 174]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      174
                name                                    "m_CO2"
                linkNode                                [165 173 175]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      175
                name                                    "m_H2O_liq"
                linkNode                                [165 174 176]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      176
                name                                    "V"
                linkNode                                [165 175 177]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      177
                name                                    "Delta_T_old"
                linkNode                                [165 176 178]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      178
                name                                    "T_bar"
                linkNode                                [165 177 179]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      179
                name                                    "x_H2O_gas_bar"
                linkNode                                [165 178 180]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      180
                name                                    "x_CO2"
                linkNode                                [165 179 181]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      181
                name                                    "x_H2O_liq_bar"
                linkNode                                [165 180 182]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      182
                name                                    "Delta_m_H2O_gas_old"
                linkNode                                [165 181 183]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      183
                name                                    "Delta_m_H2O_liq_old"
                linkNode                                [165 182 184]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      184
                name                                    "Delta_T"
                linkNode                                [165 183 185]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      185
                name                                    "Delta_m_H2O_gas"
                linkNode                                [165 184 186]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      186
                name                                    "Delta_m_H2O_liq"
                linkNode                                [165 185 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              187
                name            "Mixing_Unit_3D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           165
        }

        chart {
                id                                                      188
                name                                                    "ISA_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [341.813 269.45 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 189 0 0]
                firstTransition                                         191
                firstJunction                                           190
                viewObj                                                 188
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               192
                chartFileNumber                                         11
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      189
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   188
                treeNode                                [188 0 0 0]
                superState                              SUBCHART
                subviewer                               188
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,T]=Cal(h_flight,Delta_T,R)\n"
                                                "\n"
                                                "r_earth = 6.371*10^6;\n"
                                                "p_0     = 101325;\n"
                                                "rho_0   = 1.2250;\n"
                                                "T_0     = 288.15;\n"
                                                "L       = 6.5/1000;\n"
                                                "H_ISA   = (r_earth*h_flight)/(r_earth+h_flight);\n"
                                                "T       = T_0-L*H_ISA+Delta_T;\n"
                                                "\n"
                                                "if h_flight > 11000\n"
                                                "   T    = T_0-L*(r_earth*11000)/(r_earth+11000)+Delta_T;\n"
                                                "end\n"
                                                "\n"
                                                "p       = p_0*((1-(L*H_ISA/(T_0+Delta_T)))^5.25588);\n"
                                                "rho     = p/(R*T);"
                        editorLayout                            "100 M4x1[228 311 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      190
                position                [23.5747 49.5747 7]
                chart                   188
                linkNode                [188 0 0]
                subviewer               188
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      191
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      190
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   188
                linkNode                [188 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               188
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      192
                name                                    "p"
                linkNode                                [188 0 193]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      193
                name                                    "h_flight"
                linkNode                                [188 192 194]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      194
                name                                    "rho"
                linkNode                                [188 193 195]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      195
                name                                    "Delta_T"
                linkNode                                [188 194 196]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      196
                name                                    "R"
                linkNode                                [188 195 197]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      197
                name                                    "T"
                linkNode                                [188 196 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        instance {
                id              198
                name            "ISA_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           188
        }

        chart {
                id                                                      199
                name                                                    "Generalized_Fan_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [450.288 165.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 200 0 0]
                firstTransition                                         202
                firstJunction                                           201
                viewObj                                                 199
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               203
                chartFileNumber                                         12
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      200
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   199
                treeNode                                [199 0 0 0]
                superState                              SUBCHART
                subviewer                               199
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,m_dot_in,m_dot_out,Delta_p_pol] = Cal(n,n_0"
                                                ",n_min,rho_0,a_0,a_1,a_2,a_3,V_dot_limit,K,p_in,rho_in,T_in"
                                                ",x_H2O_gas_in,x_CO2_in,p_out,m_dot_pol)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a generalized fan\n"
                                                "% *\n"
                                                "% * Number of inputs :                 3\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Reference:              n_0, rho_0\n"
                                                "% *            Fan Curve:              a_0, a_1, a_2, a_3\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Generalized_Fan\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Generalized_Fan\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Definition state variables.\n"
                                                "% * 3. Calculation mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% FAN CURVE\n"
                                                "% =========\n"
                                                "% Delta_p_zero -|-------_______              ->|    |<- vol"
                                                "ume_margin\n"
                                                "%               |             -------_______        |\n"
                                                "% p_delta_end  -|------------------------------E____|\n"
                                                "%               |                              |    ---__\n"
                                                "%               |                              |    |    --"
                                                "_\n"
                                                "%             0 |______________________________|____|______"
                                                "_-______\n"
                                                "%                0                   V_dot_end      |\n"
                                                "%                                              V_dot_slope\n"
                                                "%                <------  linear curve  ------>|<-- cubic c"
                                                "urve -->\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants   \n"
                                                "R_air                      = 287.058;\n"
                                                "R_H2O_gas                  = 461.523;\n"
                                                "R_CO2                      = 188.924;\n"
                                                "c_p_air                    = 1005;\n"
                                                "c_p_H2O_gas                = 1870;\n"
                                                "c_p_CO2                    = 830;\n"
                                                "\n"
                                                "R_avg                      = (R_air+x_H2O_gas_in*R_H2O_gas+"
                                                "x_CO2_in*R_CO2)/(1+x_H2O_gas_in+x_CO2_in);\n"
                                                "c_p_avg                    = (c_p_air+x_H2O_gas_in*c_p_H2O_"
                                                "gas+x_CO2_in*c_p_CO2)/(1+x_H2O_gas_in+x_CO2_in);\n"
                                                "c_v_avg                    = c_p_avg-R_avg;\n"
                                                "gamma_avg                  = c_p_avg/c_v_avg;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition state variables\n"
                                                "rho                        = rho_in*((p_out/p_in)^(1/gamma_"
                                                "avg));\n"
                                                "rho_avg                    = (rho_in+rho)/2;\n"
                                                "T                          = T_in*((p_out/p_in)^((gamma_avg"
                                                "-1)/gamma_avg));\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation mass flow\n"
                                                "Delta_p                    = 0;\n"
                                                "Delta_p_end                = 0;\n"
                                                "Delta_p_pol                = 0;\n"
                                                "V_dot                      = 0;\n"
                                                "V_dot_end                  = 0;\n"
                                                "m_dot_in                   = 0;\n"
                                                "m_dot_out                  = 0;\n"
                                                "d_Delta_p_d_V_dot          = 0;\n"
                                                "\n"
                                                "a_1                        = abs(a_1);\n"
                                                "a_2                        = -abs(a_2);\n"
                                                "a_3                        = -abs(a_3);\n"
                                                "A_3                        = (rho_avg/rho_0)*a_3*(n/n_0)^(-"
                                                "1);\n"
                                                "A_2                        = (rho_avg/rho_0)*a_2*(n/n_0)^0;"
                                                "\n"
                                                "A_1                        = (rho_avg/rho_0)*a_1*(n/n_0)^1;"
                                                "\n"
                                                "A_0                        = (rho_avg/rho_0)*a_0*(n/n_0)^2;"
                                                "\n"
                                                "V_dot_limit                = abs(V_dot_limit);\n"
                                                "\n"
                                                "if n>0\n"
                                                "   Delta_p                 = abs(p_out-p_in);\n"
                                                "   n                       = max(n,n_min);\n"
                                                "   \n"
                                                "   if A_3<0\n"
                                                "      V_dot_end_1          = (-2*A_2+sqrt((2*A_2)^2-12*A_3*"
                                                "A_1))/(6*A_3);\n"
                                                "      V_dot_end_2          = (-2*A_2-sqrt((2*A_2)^2-12*A_3*"
                                                "A_1))/(6*A_3);\n"
                                                "      V_dot_end            = max(V_dot_end_1,V_dot_end_2);\n"
                                                "      Delta_p_end          = A_3*V_dot_end^3+A_2*V_dot_end^"
                                                "2+A_1*V_dot_end+A_0;\n"
                                                "      \n"
                                                "      if Delta_p_end < 0\n"
                                                "         Delta_p_end       = 0;\n"
                                                "      end\n"
                                                "      \n"
                                                "      if Delta_p <= Delta_p_end\n"
                                                "         A_max             = max(abs(A_3),abs(A_2));\n"
                                                "         A_max             = max(A_max,abs(A_1));\n"
                                                "         A_max             = max(A_max,abs(A_0));\n"
                                                "         Z_A_3             = A_3/A_max;\n"
                                                "         Z_A_2             = A_2/A_max;\n"
                                                "         Z_A_1             = A_1/A_max;\n"
                                                "         Z_A_0             = A_0/A_max;\n"
                                                "         Z_Delta_p         = Delta_p/A_max\n"
                                                "         K_1               = 3*Z_A_3*Z_A_1-(Z_A_2^2);\n"
                                                "         K_2               = 27*(Z_A_3^2)*(Z_A_0-Z_Delta_p)"
                                                "-9*Z_A_3*Z_A_2*Z_A_1+2*(Z_A_2^3);\n"
                                                "         K_3               = 0.5*((-4*K_2+4*sqrt((K_2^2)+4*"
                                                "(K_1^3)))^(1/3));\n"
                                                "         K_4               = 0.5*((-4*K_2-4*sqrt((K_2^2)+4*"
                                                "(K_1^3)))^(1/3));\n"
                                                "         V_dot             = (K_3+K_4-Z_A_2)/(3*Z_A_3);\n"
                                                "      end\n"
                                                "      \n"
                                                "      if Delta_p > Delta_p_end\n"
                                                "         Delta_V_dot       = 0.1*V_dot_end;\n"
                                                "         d_Delta_p_d_V_dot = (3*A_3*(V_dot_end+Delta_V_dot)"
                                                "^2+2*A_2*(V_dot_end+Delta_V_dot)+A_1);\n"
                                                "         d_Delta_p_d_V_dot = max(abs(d_Delta_p_d_V_dot),0.1"
                                                ");\n"
                                                "         Delta_p_zero      = Delta_p_end+d_Delta_p_d_V_dot*"
                                                "V_dot_end;         \n"
                                                "         V_dot_virtuell    = (Delta_p-Delta_p_end)/d_Delta_"
                                                "p_d_V_dot; \n"
                                                "         V_dot             = V_dot_end-V_dot_virtuell;\n"
                                                "      end\n"
                                                "      \n"
                                                "      if V_dot > V_dot_limit\n"
                                                "         V_dot             = V_dot_limit+K*log(1+(V_dot-V_d"
                                                "ot_limit));\n"
                                                "      end\n"
                                                "      \n"
                                                "      if V_dot < -V_dot_limit\n"
                                                "         V_dot             = -V_dot_limit-K*log(1+abs(V_dot"
                                                "+V_dot_limit));\n"
                                                "      end\n"
                                                "      \n"
                                                "      m_dot                = V_dot*rho_avg;\n"
                                                "      m_dot_in             = -m_dot/(1+x_H2O_gas_in+x_CO2_i"
                                                "n);\n"
                                                "      m_dot_out            =  m_dot/(1+x_H2O_gas_in+x_CO2_i"
                                                "n);\n"
                                                "      V_dot_pol            = m_dot_pol/rho_avg;\n"
                                                "      Delta_p_pol          = A_3*V_dot_pol^3+A_2*V_dot_pol^"
                                                "2+A_1*V_dot_pol+A_0;\n"
                                                "      \n"
                                                "      if V_dot_pol<V_dot_end\n"
                                                "         Delta_p_pol       = Delta_p_end+d_Delta_p_d_V_dot*"
                                                "(V_dot_end-V_dot_pol);\n"
                                                "      end\n"
                                                "   end\n"
                                                "   \n"
                                                "   if A_3==0\n"
                                                "      if A_2 == 0\n"
                                                "         V_dot_end         = 0; \n"
                                                "         Delta_p_end       = 0;\n"
                                                "         V_dot             = 0;\n"
                                                "      end\n"
                                                "      \n"
                                                "      if A_2 < 0\n"
                                                "         V_dot_end         = -A_1/(2*A_2);\n"
                                                "         Delta_p_end       = A_2*V_dot_end^2+A_1*V_dot_end+"
                                                "A_0;\n"
                                                "         \n"
                                                "         if Delta_p_end < 0\n"
                                                "            Delta_p_end    = 0;\n"
                                                "         end\n"
                                                "      end\n"
                                                "      \n"
                                                "      if Delta_p <= Delta_p_end\n"
                                                "         V_dot_1           = (-A_1+sqrt(A_1^2-4*A_2*(A_0-De"
                                                "lta_p)))/(2*A_2);\n"
                                                "         V_dot_2           = (-A_1-sqrt(A_1^2-4*A_2*(A_0-De"
                                                "lta_p)))/(2*A_2);\n"
                                                "         V_dot             = max(V_dot_1,V_dot_2);\n"
                                                "      end\n"
                                                "      \n"
                                                "      if Delta_p > Delta_p_end\n"
                                                "         Delta_V_dot       = 0.1*V_dot_end;\n"
                                                "         d_Delta_p_d_V_dot = (2*A_2*(V_dot_end+Delta_V_dot)"
                                                "+A_1);\n"
                                                "         d_Delta_p_d_V_dot = max(abs(d_Delta_p_d_V_dot),0.1"
                                                ");\n"
                                                "         Delta_p_zero      = Delta_p_end+d_Delta_p_d_V_dot*"
                                                "V_dot_end;\n"
                                                "         V_dot_virtuell    = (Delta_p-Delta_p_end)/d_Delta_"
                                                "p_d_V_dot; \n"
                                                "         V_dot             = V_dot_end-V_dot_virtuell;\n"
                                                "      end\n"
                                                "      \n"
                                                "      if V_dot > V_dot_limit\n"
                                                "         V_dot             =  V_dot_limit+K*log(1+(V_dot-V_"
                                                "dot_limit));\n"
                                                "      end\n"
                                                "      \n"
                                                "      if V_dot < -V_dot_limit\n"
                                                "         V_dot             = -V_dot_limit-K*log(1+abs(V_dot"
                                                "+V_dot_limit));\n"
                                                "      end\n"
                                                "      \n"
                                                "      m_dot                = V_dot*rho_avg;\n"
                                                "      m_dot_in             = -m_dot/(1+x_H2O_gas_in+x_CO2_i"
                                                "n);\n"
                                                "      m_dot_out            =  m_dot/(1+x_H2O_gas_in+x_CO2_i"
                                                "n);\n"
                                                "      V_dot_pol            = m_dot_pol/rho_avg;\n"
                                                "      Delta_p_pol          = A_2*V_dot_pol^2+A_1*V_dot_pol+"
                                                "A_0;\n"
                                                "      \n"
                                                "      if V_dot_pol < V_dot_end\n"
                                                "         Delta_p_pol       = Delta_p_end+d_Delta_p_d_V_dot*"
                                                "(V_dot_end-V_dot_pol);\n"
                                                "      end\n"
                                                "   end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[103 228 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      201
                position                [23.5747 49.5747 7]
                chart                   199
                linkNode                [199 0 0]
                subviewer               199
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      202
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      201
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   199
                linkNode                [199 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               199
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      203
                name                                    "rho"
                linkNode                                [199 0 204]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      204
                name                                    "T"
                linkNode                                [199 203 205]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      205
                name                                    "n"
                linkNode                                [199 204 206]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      206
                name                                    "n_0"
                linkNode                                [199 205 207]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      207
                name                                    "n_min"
                linkNode                                [199 206 208]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      208
                name                                    "rho_0"
                linkNode                                [199 207 209]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      209
                name                                    "a_0"
                linkNode                                [199 208 210]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      210
                name                                    "a_1"
                linkNode                                [199 209 211]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      211
                name                                    "a_2"
                linkNode                                [199 210 212]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      212
                name                                    "a_3"
                linkNode                                [199 211 213]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      213
                name                                    "V_dot_limit"
                linkNode                                [199 212 214]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      214
                name                                    "K"
                linkNode                                [199 213 215]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      215
                name                                    "p_in"
                linkNode                                [199 214 216]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      216
                name                                    "rho_in"
                linkNode                                [199 215 217]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      217
                name                                    "T_in"
                linkNode                                [199 216 218]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      218
                name                                    "x_H2O_gas_in"
                linkNode                                [199 217 219]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      219
                name                                    "x_CO2_in"
                linkNode                                [199 218 220]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      220
                name                                    "p_out"
                linkNode                                [199 219 221]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      221
                name                                    "m_dot_in"
                linkNode                                [199 220 222]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      222
                name                                    "m_dot_out"
                linkNode                                [199 221 223]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      223
                name                                    "m_dot_pol"
                linkNode                                [199 222 224]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      224
                name                                    "Delta_p_pol"
                linkNode                                [199 223 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              225
                name            "Generalized_Fan_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           199
        }

        chart {
                id                                                      226
                name                                                    "Mixing_Unit_4D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [435.45 138.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 227 0 0]
                firstTransition                                         229
                firstJunction                                           228
                viewObj                                                 226
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               230
                chartFileNumber                                         13
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      227
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   226
                treeNode                                [226 0 0 0]
                superState                              SUBCHART
                subviewer                               226
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_air_init,m_H2O_gas_init,m_CO2_init,m_H2O_liq_in"
                                                "it] = Initial(V,p_init,T_init,x_H2O_gas_init,x_CO2_init,x_H"
                                                "2O_liq_init)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 4 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_4D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_4D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function Initial:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature.\n"
                                                "% * 3. Calculation of the saturation mass.\n"
                                                "% * 4. Initialisation. \n"
                                                "% *    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. The saturation density is a function of the temperat"
                                                "ure. The used\n"
                                                "% *    function is described in literature. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature\n"
                                                "rho_H2O_gas_sat   = 4.44259*exp(15.05703*(T_init-273.15)/(2"
                                                "08.07254+(T_init-273.15)))/1000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the saturation mass\n"
                                                "m_H2O_gas_sat     = V*rho_H2O_gas_sat;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Initialisation\n"
                                                "m_air_init        = p_init*V/(T_init*(R_air+x_H2O_gas_init*"
                                                "R_H2O_gas+x_CO2_init*R_CO2));\n"
                                                "m_H2O_gas_init    = m_air_init*x_H2O_gas_init;\n"
                                                "\n"
                                                "if m_H2O_gas_init > m_H2O_gas_sat\n"
                                                "   m_H2O_gas_init = m_H2O_gas_sat;\n"
                                                "   m_air_init     = ((p_init*V/T_init)-(m_H2O_gas_init*R_H2"
                                                "O_gas))/(R_air+x_CO2_init*R_CO2);\n"
                                                "end\n"
                                                "\n"
                                                "m_CO2_init        = m_air_init*x_CO2_init;\n"
                                                "m_H2O_liq_init    = m_air_init*x_H2O_liq_init;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 43 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      228
                position                [23.5747 49.5747 7]
                chart                   226
                linkNode                [226 0 0]
                subviewer               226
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      229
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      228
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   226
                linkNode                [226 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               226
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      230
                name                                    "V"
                linkNode                                [226 0 231]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      231
                name                                    "p_init"
                linkNode                                [226 230 232]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      232
                name                                    "T_init"
                linkNode                                [226 231 233]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      233
                name                                    "x_H2O_gas_init"
                linkNode                                [226 232 234]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      234
                name                                    "x_CO2_init"
                linkNode                                [226 233 235]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      235
                name                                    "x_H2O_liq_init"
                linkNode                                [226 234 236]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      236
                name                                    "m_air_init"
                linkNode                                [226 235 237]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      237
                name                                    "m_H2O_gas_init"
                linkNode                                [226 236 238]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      238
                name                                    "m_CO2_init"
                linkNode                                [226 237 239]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      239
                name                                    "m_H2O_liq_init"
                linkNode                                [226 238 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              240
                name            "Mixing_Unit_4D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           226
        }

        chart {
                id                                                      241
                name                                                    "Mixing_Unit_4D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [483.36 117.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 242 0 0]
                firstTransition                                         244
                firstJunction                                           243
                viewObj                                                 241
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               245
                chartFileNumber                                         14
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      242
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   241
                treeNode                                [241 0 0 0]
                superState                              SUBCHART
                subviewer                               241
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [T_dot,m_dot_air,m_dot_H2O_gas,m_dot_CO2,m_dot_H2O"
                                                "_liq] = T_m(T,m_air,m_H2O_gas,m_CO2,m_H2O_liq,T_in_1,m_dot_"
                                                "air_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2O_liq_in_1,T_in_2,m_"
                                                "dot_air_in_2,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2,T_in_"
                                                "3,m_dot_air_in_3,x_H2O_gas_in_3,x_CO2_in_3,x_H2O_liq_in_3,T"
                                                "_in_4,m_dot_air_in_4,x_H2O_gas_in_4,x_CO2_in_4,x_H2O_liq_in"
                                                "_4,Q_dot)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 4 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_4D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_4D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function T_m:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Modification of the mass inside the system.\n"
                                                "% * 3. Redefinition of the input variables.\n"
                                                "% * 4. Modification of the temperature inside the system.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog).\n"
                                                "% * 2. The increase or decrease of the mass inside the volu"
                                                "me is defined \n"
                                                "% *    by the incoming (sign: plus) or outgoing (sign: minu"
                                                "s) mass flow. \n"
                                                "% * 3. In the case of outgoing mass flow, the characteristi"
                                                "c variables of \n"
                                                "% *    the mass flow are defined by the state variables of "
                                                "the volume. \n"
                                                "% * 4. The Enthalpy equation of the gas inside the volume i"
                                                "s used. the \n"
                                                "% *    enthalpy of the liquid water inside the volume is ne"
                                                "glected. \n"
                                                "% *    Assuming that the liquid water is always in thermal "
                                                "equilibrium with \n"
                                                "% *    the gas.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "c_p_air           = 1005;\n"
                                                "c_p_H2O_gas       = 1870;\n"
                                                "c_p_CO2           = 830;\n"
                                                "c_v_air           = c_p_air-R_air;\n"
                                                "c_v_H2O_gas       = c_p_H2O_gas-R_H2O_gas;\n"
                                                "c_v_CO2           = c_p_CO2-R_CO2;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Redefinition of the input variables\n"
                                                "if m_dot_air_in_1 < 0\n"
                                                "   T_in_1         = T;\n"
                                                "   m_dot          = m_dot_air_in_1*(1+x_H2O_gas_in_1+x_CO2_"
                                                "in_1);\n"
                                                "   m_dot_air_in_1 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_1 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_1     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_1 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_2 < 0\n"
                                                "   T_in_2         = T;\n"
                                                "   m_dot          = m_dot_air_in_2*(1+x_H2O_gas_in_2+x_CO2_"
                                                "in_2);\n"
                                                "   m_dot_air_in_2 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_2 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_2     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_2 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_3 < 0\n"
                                                "   T_in_3         = T;\n"
                                                "   m_dot          = m_dot_air_in_3*(1+x_H2O_gas_in_3+x_CO2_"
                                                "in_3);\n"
                                                "   m_dot_air_in_3 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_3 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_3     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_3 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_4 < 0\n"
                                                "   T_in_4         = T;\n"
                                                "   m_dot          = m_dot_air_in_4*(1+x_H2O_gas_in_4+x_CO2_"
                                                "in_4);\n"
                                                "   m_dot_air_in_4 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_4 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_4     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_4 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Modification of the mass inside the system\n"
                                                "m_dot_air         = m_dot_air_in_1+m_dot_air_in_2+m_dot_air"
                                                "_in_3+m_dot_air_in_4;\n"
                                                "m_dot_H2O_gas     = m_dot_air_in_1*x_H2O_gas_in_1+m_dot_air"
                                                "_in_2*x_H2O_gas_in_2+m_dot_air_in_3*x_H2O_gas_in_3+m_dot_ai"
                                                "r_in_4*x_H2O_gas_in_4;\n"
                                                "m_dot_CO2         = m_dot_air_in_1*x_CO2_in_1+m_dot_air_in_"
                                                "2*x_CO2_in_2+m_dot_air_in_3*x_CO2_in_3+m_dot_air_in_4*x_CO2"
                                                "_in_4;\n"
                                                "m_dot_H2O_liq     = m_dot_air_in_1*x_H2O_liq_in_1+m_dot_air"
                                                "_in_2*x_H2O_liq_in_2+m_dot_air_in_3*x_H2O_liq_in_3+m_dot_ai"
                                                "r_in_4*x_H2O_liq_in_4;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Modification of the temperature inside the system\n"
                                                "T_dot             = (Q_dot+m_dot_air_in_1*(c_p_air*T_in_1-c"
                                                "_v_air*T)+m_dot_air_in_2*(c_p_air*T_in_2-c_v_air*T)+m_dot_a"
                                                "ir_in_3*(c_p_air*T_in_3-c_v_air*T)+m_dot_air_in_4*(c_p_air*"
                                                "T_in_4-c_v_air*T)+m_dot_air_in_1*x_H2O_gas_in_1*(c_p_H2O_ga"
                                                "s*T_in_1-c_v_H2O_gas*T)+m_dot_air_in_2*x_H2O_gas_in_2*(c_p_"
                                                "H2O_gas*T_in_2-c_v_H2O_gas*T)+m_dot_air_in_3*x_H2O_gas_in_3"
                                                "*(c_p_H2O_gas*T_in_3-c_v_H2O_gas*T)+m_dot_air_in_4*x_H2O_ga"
                                                "s_in_4*(c_p_H2O_gas*T_in_4-c_v_H2O_gas*T)+m_dot_air_in_1*x_"
                                                "CO2_in_1*(c_p_CO2*T_in_1-c_v_CO2*T)+m_dot_air_in_2*x_CO2_in"
                                                "_2*(c_p_CO2*T_in_2-c_v_CO2*T)+m_dot_air_in_3*x_CO2_in_3*(c_"
                                                "p_CO2*T_in_3-c_v_CO2*T)+m_dot_air_in_4*x_CO2_in_4*(c_p_CO2*"
                                                "T_in_4-c_v_CO2*T))/(c_v_air*m_air+c_v_H2O_gas*m_H2O_gas+c_v"
                                                "_CO2*m_CO2);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 1036 780]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      243
                position                [23.5747 49.5747 7]
                chart                   241
                linkNode                [241 0 0]
                subviewer               241
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      244
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      243
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   241
                linkNode                [241 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               241
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      245
                name                                    "T"
                linkNode                                [241 0 246]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      246
                name                                    "T_dot"
                linkNode                                [241 245 247]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      247
                name                                    "m_dot_air"
                linkNode                                [241 246 248]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      248
                name                                    "m_air"
                linkNode                                [241 247 249]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      249
                name                                    "m_H2O_gas"
                linkNode                                [241 248 250]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      250
                name                                    "m_CO2"
                linkNode                                [241 249 251]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      251
                name                                    "m_H2O_liq"
                linkNode                                [241 250 252]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      252
                name                                    "T_in_1"
                linkNode                                [241 251 253]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      253
                name                                    "m_dot_air_in_1"
                linkNode                                [241 252 254]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      254
                name                                    "x_H2O_gas_in_1"
                linkNode                                [241 253 255]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      255
                name                                    "x_CO2_in_1"
                linkNode                                [241 254 256]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      256
                name                                    "x_H2O_liq_in_1"
                linkNode                                [241 255 257]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      257
                name                                    "T_in_2"
                linkNode                                [241 256 258]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      258
                name                                    "m_dot_air_in_2"
                linkNode                                [241 257 259]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      259
                name                                    "x_H2O_gas_in_2"
                linkNode                                [241 258 260]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      260
                name                                    "x_CO2_in_2"
                linkNode                                [241 259 261]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      261
                name                                    "x_H2O_liq_in_2"
                linkNode                                [241 260 262]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      262
                name                                    "T_in_3"
                linkNode                                [241 261 263]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      263
                name                                    "m_dot_air_in_3"
                linkNode                                [241 262 264]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      264
                name                                    "x_H2O_gas_in_3"
                linkNode                                [241 263 265]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      265
                name                                    "x_CO2_in_3"
                linkNode                                [241 264 266]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      266
                name                                    "x_H2O_liq_in_3"
                linkNode                                [241 265 267]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      267
                name                                    "T_in_4"
                linkNode                                [241 266 268]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      268
                name                                    "m_dot_air_in_4"
                linkNode                                [241 267 269]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      269
                name                                    "x_H2O_gas_in_4"
                linkNode                                [241 268 270]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      270
                name                                    "x_CO2_in_4"
                linkNode                                [241 269 271]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      271
                name                                    "x_H2O_liq_in_4"
                linkNode                                [241 270 272]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      272
                name                                    "Q_dot"
                linkNode                                [241 271 273]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      273
                name                                    "m_dot_H2O_gas"
                linkNode                                [241 272 274]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      274
                name                                    "m_dot_CO2"
                linkNode                                [241 273 275]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      275
                name                                    "m_dot_H2O_liq"
                linkNode                                [241 274 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        instance {
                id              276
                name            "Mixing_Unit_4D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           241
        }

        chart {
                id                                                      277
                name                                                    "Compressor_/Embedded\n"
                                        "MATLA Function4"
                windowPosition                                          [392.584 245.537 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 278 0 0]
                firstTransition                                         280
                firstJunction                                           279
                viewObj                                                 277
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               281
                chartFileNumber                                         15
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_T_air"
                }
        }

        state {
                id                                      278
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   277
                treeNode                                [277 0 0 0]
                superState                              SUBCHART
                subviewer                               277
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function T_air_inlet = Cal_T_air(T_inlet,x_H2O_gas,x_CO2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a compressor\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Compressor\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Compressor\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_T_air:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation dry bulb temperature T_air.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. The specific enthalpy of the inflowing gas mixture i"
                                                "s equal the enthalpy\n"
                                                "% *    of a dry air flow.      \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation dry bulb temperature T_air\n"
                                                "c_p_air     = 1005;\n"
                                                "c_p_H2O_gas = 1870;\n"
                                                "c_p_CO2     = 830;\n"
                                                "r_0         = 2500000;\n"
                                                "T_air_inlet = (c_p_air*T_inlet+x_H2O_gas*c_p_H2O_gas*T_inle"
                                                "t+x_CO2*c_p_CO2*T_inlet+x_H2O_gas*r_0)/c_p_air;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                ""
                        editorLayout                            "100 M4x1[57 78 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      279
                position                [23.5747 49.5747 7]
                chart                   277
                linkNode                [277 0 0]
                subviewer               277
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      280
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      279
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   277
                linkNode                [277 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               277
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      281
                name                                    "T_inlet"
                linkNode                                [277 0 282]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      282
                name                                    "x_H2O_gas"
                linkNode                                [277 281 283]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      283
                name                                    "x_CO2"
                linkNode                                [277 282 284]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      284
                name                                    "T_air_inlet"
                linkNode                                [277 283 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              285
                name            "Compressor_/Embedded\n"
                                        "MATLA Function4"
                machine         1
                chart           277
        }

        chart {
                id                                                      286
                name                                                    "Dynamic_HX_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [285.174 333.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 287 0 0]
                firstTransition                                         289
                firstJunction                                           288
                viewObj                                                 286
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               290
                chartFileNumber                                         16
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_2"
                }
        }

        state {
                id                                      287
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   286
                treeNode                                [286 0 0 0]
                superState                              SUBCHART
                subviewer                               286
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [T_cold_outlet,T_hot_outlet,rho_cold_outlet,rho_ho"
                                                "t_outlet,T_dot_wall_1,T_dot_wall_2] = Cal_2(m_wall,c_wall,m"
                                                "_dot_air_cold,m_dot_air_hot,T_cold_inlet,T_hot_inlet,p_cold"
                                                "_outlet,p_hot_outlet,x_H2O_gas_cold,x_CO2_cold,x_H2O_gas_ho"
                                                "t,x_CO2_hot,T_wall_1,T_wall_2,eff,eff_HT_cold,eff_HT_hot)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a dynamic heat exchanger\n"
                                                "% *\n"
                                                "% * Number of inputs :                         4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Map:             Efficiency\n"
                                                "% *            Mass HT Wall:                   m_wall\n"
                                                "% *            Specific Heat Capacity HT Wall: c_wall\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Dynamic_HX\n"
                                                "% *\n"
                                                "% * Pressure:                                  p_in\n"
                                                "% * Density:                                   rho_in\n"
                                                "% * Temperature:                               T_in\n"
                                                "% * Content water vapor:                       x_H2O_gas_in"
                                                "\n"
                                                "% * Content CO2:                               x_CO2_in\n"
                                                "% * Content water:                             x_H2O_liq_in"
                                                "\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Dynamic_HX\n"
                                                "% *\n"
                                                "% * Temperature:                               T\n"
                                                "% * Mass flow dry air:                         m_dot_air_in"
                                                "\n"
                                                "% * Content water vapor:                       x_H2O_gas\n"
                                                "% * Content CO2:                               x_CO2\n"
                                                "% * Content water:                             x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_2:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation heat transfer air-air and air-wall.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "rho_cold_outlet         = 0;\n"
                                                "rho_hot_outlet          = 0;\n"
                                                "T_cold_outlet           = 0;\n"
                                                "T_hot_outlet            = 0;\n"
                                                "T_dot_wall_1            = 0;\n"
                                                "T_dot_wall_2            = 0;\n"
                                                "check                   = 0; \n"
                                                "\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "R_air                   = 287.058;\n"
                                                "R_H2O_gas               = 461.523;\n"
                                                "R_CO2                   = 188.924;\n"
                                                "c_p_air                 = 1005;\n"
                                                "c_p_H2O_gas             = 1870;\n"
                                                "c_p_CO2                 = 830;\n"
                                                "\n"
                                                "R_cold                  = (R_air+x_H2O_gas_cold*R_H2O_gas+x"
                                                "_CO2_cold*R_CO2)/(1+x_H2O_gas_cold+x_CO2_cold);\n"
                                                "R_hot                   = (R_air+x_H2O_gas_hot*R_H2O_gas+x_"
                                                "CO2_hot*R_CO2)/(1+x_H2O_gas_hot+x_CO2_hot);\n"
                                                "c_p_cold                = (c_p_air+x_H2O_gas_cold*c_p_H2O_g"
                                                "as+x_CO2_cold*c_p_CO2)/(1+x_H2O_gas_cold+x_CO2_cold);\n"
                                                "c_p_hot                 = (c_p_air+x_H2O_gas_hot*c_p_H2O_ga"
                                                "s+x_CO2_hot*c_p_CO2)/(1+x_H2O_gas_hot+x_CO2_hot);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation heat transfer air-air and air-wall\n"
                                                "m_dot_cold              = m_dot_air_cold*(1+x_H2O_gas_cold+"
                                                "x_CO2_cold);\n"
                                                "m_dot_hot               = m_dot_air_hot*(1+x_H2O_gas_hot+x_"
                                                "CO2_hot);\n"
                                                "\n"
                                                "if m_dot_cold > 0.01\n"
                                                "   if m_dot_hot > 0.01\n"
                                                "      check             = 1;\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if check == 0\n"
                                                "   T_cold_outlet        = T_cold_inlet;\n"
                                                "   T_hot_outlet         = T_hot_inlet;\n"
                                                "   rho_cold_outlet      = p_cold_outlet/(R_cold*T_cold_inle"
                                                "t);\n"
                                                "   rho_hot_outlet       = p_hot_outlet/(R_hot*T_hot_inlet);"
                                                "\n"
                                                "end\n"
                                                "\n"
                                                "if check > 0 \n"
                                                "   H_dot_hot_inlet      = m_dot_hot*c_p_hot*T_hot_inlet;\n"
                                                "   H_dot_hot_outlet_min = m_dot_hot*c_p_hot*T_cold_inlet;\n"
                                                "   H_dot_hot_outlet     = H_dot_hot_inlet-eff*(H_dot_hot_in"
                                                "let-H_dot_hot_outlet_min);\n"
                                                "   T_hot_outlet         = H_dot_hot_outlet/(m_dot_hot*c_p_h"
                                                "ot);\n"
                                                "\n"
                                                "   H_dot_cold_inlet     = m_dot_cold*c_p_cold*T_cold_inlet;"
                                                "\n"
                                                "   H_dot_cold_outlet    = H_dot_cold_inlet+(H_dot_hot_inlet"
                                                "-H_dot_hot_outlet);\n"
                                                "   T_cold_outlet        = H_dot_cold_outlet/(m_dot_cold*c_p"
                                                "_cold);\n"
                                                "   \n"
                                                "   exp_hot              = -log(1-eff_HT_hot);\n"
                                                "   alpha_A_hot          = exp_hot*(m_dot_hot*c_p_hot);\n"
                                                "   \n"
                                                "   if eff_HT_hot > 0.95\n"
                                                "      exp_hot           = -log(1-0.95);\n"
                                                "      alpha_A_hot       = exp_hot*(m_dot_hot*c_p_hot);\n"
                                                "   end   \n"
                                                "  \n"
                                                "   exp_cold             = -log(1-eff_HT_cold);\n"
                                                "   alpha_A_cold         = exp_cold*(m_dot_cold*c_p_cold);\n"
                                                "   \n"
                                                "   if eff_HT_cold > 0.95\n"
                                                "      exp_cold          = -log(1-0.95);\n"
                                                "      alpha_A_cold      = exp_cold*(m_dot_cold*c_p_cold);\n"
                                                "   end\n"
                                                "   \n"
                                                "   T_avg_hot            = T_hot_inlet;\n"
                                                "   \n"
                                                "   if exp_hot > 0\n"
                                                "      T_avg_hot         = T_wall_1+(T_hot_inlet-T_wall_1)*("
                                                "1-exp(-exp_hot))/exp_hot;\n"
                                                "   end\n"
                                                "\n"
                                                "   Q_dot_hot            = alpha_A_hot*(T_wall_1-T_avg_hot);"
                                                "\n"
                                                "   T_hot_inlet          = T_hot_inlet+Q_dot_hot/(m_dot_hot*"
                                                "c_p_hot);\n"
                                                "   \n"
                                                "   if T_hot_inlet < T_wall_1\n"
                                                "      T_hot_inlet       = T_wall_1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   T_avg_cold           = T_cold_inlet;\n"
                                                "   \n"
                                                "   if exp_cold > 0\n"
                                                "      T_avg_cold        = T_wall_2+(T_cold_inlet-T_wall_2)*"
                                                "(1-exp(-exp_cold))/exp_cold;\n"
                                                "   end\n"
                                                "\n"
                                                "   Q_dot_cold           = alpha_A_cold*(T_wall_2-T_avg_cold"
                                                ");\n"
                                                "   T_cold_inlet         = T_cold_inlet+Q_dot_cold/(m_dot_co"
                                                "ld*c_p_cold);\n"
                                                "   \n"
                                                "   if T_cold_inlet < T_wall_2\n"
                                                "      T_cold_inlet      = T_wall_2;\n"
                                                "   end\n"
                                                "   \n"
                                                "   H_dot_hot_inlet      = m_dot_hot*c_p_hot*T_hot_inlet;\n"
                                                "   H_dot_hot_outlet_min = m_dot_hot*c_p_hot*T_cold_inlet;\n"
                                                "   H_dot_hot_outlet     = H_dot_hot_inlet-eff*(H_dot_hot_in"
                                                "let-H_dot_hot_outlet_min);\n"
                                                "   T_hot_outlet         = H_dot_hot_outlet/(m_dot_hot*c_p_h"
                                                "ot);\n"
                                                "\n"
                                                "   H_dot_cold_inlet     = m_dot_cold*c_p_cold*T_cold_inlet;"
                                                "\n"
                                                "   H_dot_cold_outlet    = H_dot_cold_inlet+(H_dot_hot_inlet"
                                                "-H_dot_hot_outlet);\n"
                                                "   T_cold_outlet        = H_dot_cold_outlet/(m_dot_cold*c_p"
                                                "_cold);\n"
                                                "   \n"
                                                "   rho_cold_outlet      = p_cold_outlet/(R_cold*T_cold_outl"
                                                "et);\n"
                                                "   rho_hot_outlet       = p_hot_outlet/(R_hot*T_hot_outlet)"
                                                ";\n"
                                                "   \n"
                                                "   Q_dot_wall_1         = -Q_dot_hot;\n"
                                                "   T_dot_wall_1         =  Q_dot_wall_1/(m_wall*c_wall);\n"
                                                "   Q_dot_wall_2         = -Q_dot_cold;\n"
                                                "   T_dot_wall_2         =  Q_dot_wall_2/(m_wall*c_wall);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[8 28 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      288
                position                [23.5747 49.5747 7]
                chart                   286
                linkNode                [286 0 0]
                subviewer               286
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      289
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      288
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   286
                linkNode                [286 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               286
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      290
                name                                    "m_wall"
                linkNode                                [286 0 291]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      291
                name                                    "c_wall"
                linkNode                                [286 290 292]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      292
                name                                    "m_dot_air_cold"
                linkNode                                [286 291 293]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      293
                name                                    "m_dot_air_hot"
                linkNode                                [286 292 294]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      294
                name                                    "T_cold_inlet"
                linkNode                                [286 293 295]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      295
                name                                    "T_hot_inlet"
                linkNode                                [286 294 296]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      296
                name                                    "T_cold_outlet"
                linkNode                                [286 295 297]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      297
                name                                    "T_hot_outlet"
                linkNode                                [286 296 298]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      298
                name                                    "p_cold_outlet"
                linkNode                                [286 297 299]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      299
                name                                    "p_hot_outlet"
                linkNode                                [286 298 300]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      300
                name                                    "x_H2O_gas_cold"
                linkNode                                [286 299 301]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      301
                name                                    "x_CO2_cold"
                linkNode                                [286 300 302]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      302
                name                                    "x_H2O_gas_hot"
                linkNode                                [286 301 303]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      303
                name                                    "x_CO2_hot"
                linkNode                                [286 302 304]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      304
                name                                    "T_wall_1"
                linkNode                                [286 303 305]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      305
                name                                    "T_wall_2"
                linkNode                                [286 304 306]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      306
                name                                    "eff"
                linkNode                                [286 305 307]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      307
                name                                    "rho_cold_outlet"
                linkNode                                [286 306 308]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      308
                name                                    "rho_hot_outlet"
                linkNode                                [286 307 309]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      309
                name                                    "T_dot_wall_1"
                linkNode                                [286 308 310]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      310
                name                                    "T_dot_wall_2"
                linkNode                                [286 309 311]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      311
                name                                    "eff_HT_cold"
                linkNode                                [286 310 312]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      312
                name                                    "eff_HT_hot"
                linkNode                                [286 311 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              313
                name            "Dynamic_HX_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           286
        }

        chart {
                id                                                      314
                name                                                    "Mixing_Unit_4D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [519.288 93.844 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 315 0 0]
                firstTransition                                         317
                firstJunction                                           316
                viewObj                                                 314
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               318
                chartFileNumber                                         17
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      315
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   314
                treeNode                                [314 0 0 0]
                superState                              SUBCHART
                subviewer                               314
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho_bar,T_bar,x_H2O_gas_bar,x_CO2,x_H2O_liq_bar"
                                                ",Delta_T,Delta_m_H2O_gas,Delta_m_H2O_liq] = p_rho(T,m_air,m"
                                                "_H2O_gas,m_CO2,m_H2O_liq,V,Delta_T_old,Delta_m_H2O_gas_old,"
                                                "Delta_m_H2O_liq_old)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 4 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_4D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_4D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function p_rho:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Redefinition of the input variables.\n"
                                                "% * 2. Definition specific gas constants.\n"
                                                "% * 3. Calculation of the density.\n"
                                                "% * 4. Calculation of the pressure.\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\n"
                                                "% * 6. Condensation/Evaporation \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 5. The differnt contents are defined in respect of the "
                                                "mass of the \n"
                                                "% *    dry air. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Redefinition of the input variables\n"
                                                "T                             = T+Delta_T_old;\n"
                                                "\n"
                                                "if T < 0\n"
                                                "   T                          = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_gas                     = m_H2O_gas+Delta_m_H2O_gas_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_gas < 0\n"
                                                "   m_H2O_gas                  = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_liq                     = m_H2O_liq+Delta_m_H2O_liq_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_liq < 0\n"
                                                "   m_H2O_liq                  = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition specific gas constants\n"
                                                "R_air                         = 287.058;\n"
                                                "R_H2O_gas                     = 461.523;\n"
                                                "R_CO2                         = 188.924;\n"
                                                "c_p_air                       = 1005;\n"
                                                "c_p_H2O_gas                   = 1870;\n"
                                                "c_p_CO2                       = 830;\n"
                                                "c_p_H2O_liq                   = 4173;\n"
                                                "c_p_H2O_ice                   = 2050;\n"
                                                "r_0                           = 2500000;\n"
                                                "r_ice                         = 333000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the density\n"
                                                "rho                           = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation of the pressure\n"
                                                "p                             = T*(m_air*R_air+m_H2O_gas*R_"
                                                "H2O_gas+m_CO2*R_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content\n"
                                                "x_H2O_gas                     = m_H2O_gas/m_air;\n"
                                                "x_CO2                         = m_CO2/m_air;\n"
                                                "x_H2O_liq                     = m_H2O_liq/m_air;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Condensation/Evaporation\n"
                                                "rho_bar                       = rho;\n"
                                                "T_bar                         = T;\n"
                                                "x_H2O_gas_bar                 = x_H2O_gas;\n"
                                                "x_H2O_liq_bar                 = x_H2O_liq;\n"
                                                "rho_H2O_gas_sat               = 4.44259*exp(15.05703*(T-273"
                                                ".15)/(208.07254+(T-273.15)))/1000;\n"
                                                "x_H2O_gas_sat                 = rho_H2O_gas_sat/(m_air/V);\n"
                                                "evap                          = 0;\n"
                                                "cond                          = 0;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   evap                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if x_H2O_gas_sat < x_H2O_gas\n"
                                                "   cond                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if evap>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   \n"
                                                "   while test>0\n"
                                                "         rho_H2O_gas_sat_evap = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_evap   = rho_H2O_gas_sat_evap/(m_air"
                                                "/V);\n"
                                                "         \n"
                                                "         if (x_H2O_gas_sat_evap-x_H2O_gas)<x_H2O_liq\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas_sat_evap;\n"
                                                "         else\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas+x_H2O_liq;\n"
                                                "         end\n"
                                                "\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas_bar-x_H2O_ga"
                                                "s);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T+(x_"
                                                "H2O_gas_bar-x_H2O_gas)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar >= T\n"
                                                "      T_bar                   = T;\n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "     x_H2O_liq_bar            = x_H2O_liq-(x_H2O_gas_bar-x_"
                                                "H2O_gas);\n"
                                                "     R_avg                    = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "     rho_bar                  = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if cond>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   x_H2O_gas_sat_cond         = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_cond = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_cond   = rho_H2O_gas_sat_cond/(m_air"
                                                "/V);\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas-x_H2O_gas_sa"
                                                "t_cond);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T-(x_"
                                                "H2O_gas-x_H2O_gas_sat_cond)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar <= T\n"
                                                "      T_bar                   = T; \n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas_sat_cond;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq+(x_H2O_gas-x_H2O_"
                                                "gas_sat_cond);\n"
                                                "      R_avg                   = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "      rho_bar                 = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "Delta_T                       = Delta_T_old+T_bar-T;\n"
                                                "Delta_m_H2O_gas               = Delta_m_H2O_gas_old+m_air*("
                                                "x_H2O_gas_bar-x_H2O_gas);\n"
                                                "Delta_m_H2O_liq               = Delta_m_H2O_liq_old+m_air*("
                                                "x_H2O_liq_bar-x_H2O_liq);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[12 211 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      316
                position                [23.5747 49.5747 7]
                chart                   314
                linkNode                [314 0 0]
                subviewer               314
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      317
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      316
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   314
                linkNode                [314 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               314
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      318
                name                                    "T"
                linkNode                                [314 0 319]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      319
                name                                    "p"
                linkNode                                [314 318 320]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      320
                name                                    "rho_bar"
                linkNode                                [314 319 321]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      321
                name                                    "m_air"
                linkNode                                [314 320 322]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      322
                name                                    "m_H2O_gas"
                linkNode                                [314 321 323]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      323
                name                                    "m_CO2"
                linkNode                                [314 322 324]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      324
                name                                    "m_H2O_liq"
                linkNode                                [314 323 325]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      325
                name                                    "V"
                linkNode                                [314 324 326]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      326
                name                                    "Delta_T_old"
                linkNode                                [314 325 327]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      327
                name                                    "T_bar"
                linkNode                                [314 326 328]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      328
                name                                    "x_H2O_gas_bar"
                linkNode                                [314 327 329]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      329
                name                                    "x_CO2"
                linkNode                                [314 328 330]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      330
                name                                    "x_H2O_liq_bar"
                linkNode                                [314 329 331]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      331
                name                                    "Delta_m_H2O_gas_old"
                linkNode                                [314 330 332]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      332
                name                                    "Delta_m_H2O_liq_old"
                linkNode                                [314 331 333]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      333
                name                                    "Delta_T"
                linkNode                                [314 332 334]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      334
                name                                    "Delta_m_H2O_gas"
                linkNode                                [314 333 335]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      335
                name                                    "Delta_m_H2O_liq"
                linkNode                                [314 334 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              336
                name            "Mixing_Unit_4D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           314
        }

        chart {
                id                                                      337
                name                                                    "Mixing_Unit_1D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [420.45 153.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 338 0 0]
                firstTransition                                         340
                firstJunction                                           339
                viewObj                                                 337
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               341
                chartFileNumber                                         18
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      338
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   337
                treeNode                                [337 0 0 0]
                superState                              SUBCHART
                subviewer                               337
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_air_init,m_H2O_gas_init,m_CO2_init,m_H2O_liq_in"
                                                "it] = Initial(V,p_init,T_init,x_H2O_gas_init,x_CO2_init,x_H"
                                                "2O_liq_init)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 1 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_1D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_1D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function Initial:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature.\n"
                                                "% * 3. Calculation of the saturation mass.\n"
                                                "% * 4. Initialisation. \n"
                                                "% *    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. The saturation density is a function of the temperat"
                                                "ure. The used\n"
                                                "% *    function is described in literature. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature\n"
                                                "rho_H2O_gas_sat   = 4.44259*exp(15.05703*(T_init-273.15)/(2"
                                                "08.07254+(T_init-273.15)))/1000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the saturation mass\n"
                                                "m_H2O_gas_sat     = V*rho_H2O_gas_sat;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Initialisation\n"
                                                "m_air_init        = p_init*V/(T_init*(R_air+x_H2O_gas_init*"
                                                "R_H2O_gas+x_CO2_init*R_CO2));\n"
                                                "m_H2O_gas_init    = m_air_init*x_H2O_gas_init;\n"
                                                "\n"
                                                "if m_H2O_gas_init > m_H2O_gas_sat\n"
                                                "   m_H2O_gas_init = m_H2O_gas_sat;\n"
                                                "   m_air_init     = ((p_init*V/T_init)-(m_H2O_gas_init*R_H2"
                                                "O_gas))/(R_air+x_CO2_init*R_CO2);\n"
                                                "end\n"
                                                "\n"
                                                "m_CO2_init        = m_air_init*x_CO2_init;\n"
                                                "m_H2O_liq_init    = m_air_init*x_H2O_liq_init;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 43 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      339
                position                [23.5747 49.5747 7]
                chart                   337
                linkNode                [337 0 0]
                subviewer               337
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      340
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      339
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   337
                linkNode                [337 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               337
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      341
                name                                    "V"
                linkNode                                [337 0 342]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      342
                name                                    "p_init"
                linkNode                                [337 341 343]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      343
                name                                    "T_init"
                linkNode                                [337 342 344]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      344
                name                                    "x_H2O_gas_init"
                linkNode                                [337 343 345]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      345
                name                                    "x_CO2_init"
                linkNode                                [337 344 346]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      346
                name                                    "x_H2O_liq_init"
                linkNode                                [337 345 347]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      347
                name                                    "m_air_init"
                linkNode                                [337 346 348]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      348
                name                                    "m_H2O_gas_init"
                linkNode                                [337 347 349]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      349
                name                                    "m_CO2_init"
                linkNode                                [337 348 350]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      350
                name                                    "m_H2O_liq_init"
                linkNode                                [337 349 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              351
                name            "Mixing_Unit_1D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           337
        }

        chart {
                id                                                      352
                name                                                    "Mixing_Unit_1D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [564.36 34.875 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 353 0 0]
                firstTransition                                         355
                firstJunction                                           354
                viewObj                                                 352
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               356
                chartFileNumber                                         19
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      353
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   352
                treeNode                                [352 0 0 0]
                superState                              SUBCHART
                subviewer                               352
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [T_dot,m_dot_air,m_dot_H2O_gas,m_dot_CO2,m_dot_H2O"
                                                "_liq] = T_m(T,m_air,m_H2O_gas,m_CO2,m_H2O_liq,T_in,m_dot_ai"
                                                "r_in,x_H2O_gas_in,x_CO2_in,x_H2O_liq_in,Q_dot)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 1 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_1D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_1D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function T_m:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Redefinition of the input variables.\n"
                                                "% * 3. Modification of the mass inside the system.\n"
                                                "% * 4. Modification of the temperature inside the system.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. In the case of outgoing mass flow, the characteristi"
                                                "c variables of \n"
                                                "% *    the mass flow are defined by the state variables of "
                                                "the volume. \n"
                                                "% * 3. The increase or decrease of the mass inside the volu"
                                                "me is defined \n"
                                                "% *    by the incoming (sign: plus) or outgoing (sign: minu"
                                                "s) mass flow.\n"
                                                "% * 4. The Enthalpy equation of the gas inside the volume i"
                                                "s used. the \n"
                                                "% *    enthalpy of the liquid water inside the volume is ne"
                                                "glected. \n"
                                                "% *    Assuming that the liquid water is always in thermal "
                                                "equilibrium with \n"
                                                "% *    the gas.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "c_p_air           = 1005;\n"
                                                "c_p_H2O_gas       = 1870;\n"
                                                "c_p_CO2           = 830;\n"
                                                "c_v_air           = c_p_air-R_air;\n"
                                                "c_v_H2O_gas       = c_p_H2O_gas-R_H2O_gas;\n"
                                                "c_v_CO2           = c_p_CO2-R_CO2;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Redefinition of the input variables\n"
                                                "if m_dot_air_in_1 < 0\n"
                                                "   T_in_1         = T;\n"
                                                "   m_dot          = m_dot_air_in_1*(1+x_H2O_gas_in_1+x_CO2_"
                                                "in_1);\n"
                                                "   m_dot_air_in_1 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_1 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_1     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_1 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_2 < 0\n"
                                                "   T_in_2         = T;\n"
                                                "   m_dot          = m_dot_air_in_2*(1+x_H2O_gas_in_2+x_CO2_"
                                                "in_2);\n"
                                                "   m_dot_air_in_2 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_2 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_2     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_2 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Modification of the mass inside the system\n"
                                                "m_dot_air         = m_dot_air_in_1+m_dot_air_in_2;\n"
                                                "m_dot_H2O_gas     = m_dot_air_in_1*x_H2O_gas_in_1+m_dot_air"
                                                "_in_2*x_H2O_gas_in_2;\n"
                                                "m_dot_CO2         = m_dot_air_in_1*x_CO2_in_1+m_dot_air_in_"
                                                "2*x_CO2_in_2;\n"
                                                "m_dot_H2O_liq     = m_dot_air_in_1*x_H2O_liq_in_1+m_dot_air"
                                                "_in_2*x_H2O_liq_in_2;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Modification of the temperature inside the system\n"
                                                "T_dot             = (Q_dot+m_dot_air_in_1*(c_p_air*T_in_1-c"
                                                "_v_air*T)+m_dot_air_in_2*(c_p_air*T_in_2-c_v_air*T)+m_dot_a"
                                                "ir_in_1*x_H2O_gas_in_1*(c_p_H2O_gas*T_in_1-c_v_H2O_gas*T)+m"
                                                "_dot_air_in_2*x_H2O_gas_in_2*(c_p_H2O_gas*T_in_2-c_v_H2O_ga"
                                                "s*T)+m_dot_air_in_1*x_CO2_in_1*(c_p_CO2*T_in_1-c_v_CO2*T)+m"
                                                "_dot_air_in_2*x_CO2_in_2*(c_p_CO2*T_in_2-c_v_CO2*T))/(c_v_a"
                                                "ir*m_air+c_v_H2O_gas*m_H2O_gas+c_v_CO2*m_CO2);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[12 202 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      354
                position                [23.5747 49.5747 7]
                chart                   352
                linkNode                [352 0 0]
                subviewer               352
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      355
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      354
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   352
                linkNode                [352 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               352
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      356
                name                                    "T"
                linkNode                                [352 0 357]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      357
                name                                    "m_air"
                linkNode                                [352 356 358]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      358
                name                                    "m_H2O_gas"
                linkNode                                [352 357 359]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      359
                name                                    "m_CO2"
                linkNode                                [352 358 360]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      360
                name                                    "m_H2O_liq"
                linkNode                                [352 359 361]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      361
                name                                    "T_dot"
                linkNode                                [352 360 362]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      362
                name                                    "m_dot_air"
                linkNode                                [352 361 363]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      363
                name                                    "T_in"
                linkNode                                [352 362 364]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      364
                name                                    "m_dot_air_in"
                linkNode                                [352 363 365]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      365
                name                                    "x_H2O_gas_in"
                linkNode                                [352 364 366]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      366
                name                                    "x_CO2_in"
                linkNode                                [352 365 367]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      367
                name                                    "x_H2O_liq_in"
                linkNode                                [352 366 368]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      368
                name                                    "Q_dot"
                linkNode                                [352 367 369]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      369
                name                                    "m_dot_H2O_gas"
                linkNode                                [352 368 370]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      370
                name                                    "m_dot_CO2"
                linkNode                                [352 369 371]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      371
                name                                    "m_dot_H2O_liq"
                linkNode                                [352 370 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        instance {
                id              372
                name            "Mixing_Unit_1D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           352
        }

        chart {
                id                                                      373
                name                                                    "Mixing_Unit_1D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [504.288 108.844 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 374 0 0]
                firstTransition                                         376
                firstJunction                                           375
                viewObj                                                 373
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               377
                chartFileNumber                                         21
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      374
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   373
                treeNode                                [373 0 0 0]
                superState                              SUBCHART
                subviewer                               373
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho_bar,T_bar,x_H2O_gas_bar,x_CO2,x_H2O_liq_bar"
                                                ",Delta_T,Delta_m_H2O_gas,Delta_m_H2O_liq] = p_rho(T,m_air,m"
                                                "_H2O_gas,m_CO2,m_H2O_liq,V,Delta_T_old,Delta_m_H2O_gas_old,"
                                                "Delta_m_H2O_liq_old)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 1 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_1D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_1D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function p_rho:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Redefinition of the input variables.\n"
                                                "% * 2. Definition specific gas constants.\n"
                                                "% * 3. Calculation of the density.\n"
                                                "% * 4. Calculation of the pressure.\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\n"
                                                "% * 6. Condensation/Evaporation \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 5. The differnt contents are defined in respect of the "
                                                "mass of the \n"
                                                "% *    dry air. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Redefinition of the input variables\n"
                                                "T                             = T+Delta_T_old;\n"
                                                "\n"
                                                "if T < 0\n"
                                                "   T                          = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_gas                     = m_H2O_gas+Delta_m_H2O_gas_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_gas < 0\n"
                                                "   m_H2O_gas                  = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_liq                     = m_H2O_liq+Delta_m_H2O_liq_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_liq < 0\n"
                                                "   m_H2O_liq                  = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition specific gas constants\n"
                                                "R_air                         = 287.058;\n"
                                                "R_H2O_gas                     = 461.523;\n"
                                                "R_CO2                         = 188.924;\n"
                                                "c_p_air                       = 1005;\n"
                                                "c_p_H2O_gas                   = 1870;\n"
                                                "c_p_CO2                       = 830;\n"
                                                "c_p_H2O_liq                   = 4173;\n"
                                                "c_p_H2O_ice                   = 2050;\n"
                                                "r_0                           = 2500000;\n"
                                                "r_ice                         = 333000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the density\n"
                                                "rho                           = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation of the pressure\n"
                                                "p                             = T*(m_air*R_air+m_H2O_gas*R_"
                                                "H2O_gas+m_CO2*R_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content\n"
                                                "x_H2O_gas                     = m_H2O_gas/m_air;\n"
                                                "x_CO2                         = m_CO2/m_air;\n"
                                                "x_H2O_liq                     = m_H2O_liq/m_air;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Condensation/Evaporation\n"
                                                "rho_bar                       = rho;\n"
                                                "T_bar                         = T;\n"
                                                "x_H2O_gas_bar                 = x_H2O_gas;\n"
                                                "x_H2O_liq_bar                 = x_H2O_liq;\n"
                                                "rho_H2O_gas_sat               = 4.44259*exp(15.05703*(T-273"
                                                ".15)/(208.07254+(T-273.15)))/1000;\n"
                                                "x_H2O_gas_sat                 = rho_H2O_gas_sat/(m_air/V);\n"
                                                "evap                          = 0;\n"
                                                "cond                          = 0;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   evap                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if x_H2O_gas_sat < x_H2O_gas\n"
                                                "   cond                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if evap>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   \n"
                                                "   while test>0\n"
                                                "         rho_H2O_gas_sat_evap = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_evap   = rho_H2O_gas_sat_evap/(m_air"
                                                "/V);\n"
                                                "         \n"
                                                "         if (x_H2O_gas_sat_evap-x_H2O_gas)<x_H2O_liq\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas_sat_evap;\n"
                                                "         else\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas+x_H2O_liq;\n"
                                                "         end\n"
                                                "\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas_bar-x_H2O_ga"
                                                "s);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T+(x_"
                                                "H2O_gas_bar-x_H2O_gas)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar >= T\n"
                                                "      T_bar                   = T;\n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "     x_H2O_liq_bar            = x_H2O_liq-(x_H2O_gas_bar-x_"
                                                "H2O_gas);\n"
                                                "     R_avg                    = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "     rho_bar                  = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if cond>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   x_H2O_gas_sat_cond         = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_cond = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_cond   = rho_H2O_gas_sat_cond/(m_air"
                                                "/V);\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas-x_H2O_gas_sa"
                                                "t_cond);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T-(x_"
                                                "H2O_gas-x_H2O_gas_sat_cond)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar <= T\n"
                                                "      T_bar                   = T; \n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas_sat_cond;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq+(x_H2O_gas-x_H2O_"
                                                "gas_sat_cond);\n"
                                                "      R_avg                   = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "      rho_bar                 = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "Delta_T                       = Delta_T_old+T_bar-T;\n"
                                                "Delta_m_H2O_gas               = Delta_m_H2O_gas_old+m_air*("
                                                "x_H2O_gas_bar-x_H2O_gas);\n"
                                                "Delta_m_H2O_liq               = Delta_m_H2O_liq_old+m_air*("
                                                "x_H2O_liq_bar-x_H2O_liq);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[12 174 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      375
                position                [23.5747 49.5747 7]
                chart                   373
                linkNode                [373 0 0]
                subviewer               373
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      376
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      375
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   373
                linkNode                [373 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               373
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      377
                name                                    "T"
                linkNode                                [373 0 378]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      378
                name                                    "p"
                linkNode                                [373 377 379]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      379
                name                                    "rho_bar"
                linkNode                                [373 378 380]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      380
                name                                    "m_air"
                linkNode                                [373 379 381]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      381
                name                                    "m_H2O_gas"
                linkNode                                [373 380 382]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      382
                name                                    "m_CO2"
                linkNode                                [373 381 383]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      383
                name                                    "m_H2O_liq"
                linkNode                                [373 382 384]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      384
                name                                    "V"
                linkNode                                [373 383 385]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      385
                name                                    "Delta_T_old"
                linkNode                                [373 384 386]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      386
                name                                    "T_bar"
                linkNode                                [373 385 387]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      387
                name                                    "x_H2O_gas_bar"
                linkNode                                [373 386 388]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      388
                name                                    "x_CO2"
                linkNode                                [373 387 389]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      389
                name                                    "x_H2O_liq_bar"
                linkNode                                [373 388 390]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      390
                name                                    "Delta_m_H2O_gas_old"
                linkNode                                [373 389 391]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      391
                name                                    "Delta_m_H2O_liq_old"
                linkNode                                [373 390 392]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      392
                name                                    "Delta_T"
                linkNode                                [373 391 393]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      393
                name                                    "Delta_m_H2O_gas"
                linkNode                                [373 392 394]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      394
                name                                    "Delta_m_H2O_liq"
                linkNode                                [373 393 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              395
                name            "Mixing_Unit_1D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           373
        }

        chart {
                id                                                      396
                name                                                    "Compressor_/Embedded\n"
                                        "MATLA Function3"
                windowPosition                                          [423.23 204.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 397 0 0]
                firstTransition                                         399
                firstJunction                                           398
                viewObj                                                 396
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               400
                chartFileNumber                                         22
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_N"
                }
        }

        state {
                id                                      397
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   396
                treeNode                                [396 0 0 0]
                superState                              SUBCHART
                subviewer                               396
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function N = Cal_N(T_air_inlet,T_0,n)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a compressor\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Compressor\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Compressor\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_N:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation corrected rotational speed N.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation corrected rotational speed N\n"
                                                "N = n/sqrt(T_air_inlet/T_0);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[112 55 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      398
                position                [23.5747 49.5747 7]
                chart                   396
                linkNode                [396 0 0]
                subviewer               396
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      399
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      398
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   396
                linkNode                [396 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               396
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      400
                name                                    "T_air_inlet"
                linkNode                                [396 0 401]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      401
                name                                    "T_0"
                linkNode                                [396 400 402]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      402
                name                                    "n"
                linkNode                                [396 401 403]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      403
                name                                    "N"
                linkNode                                [396 402 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              404
                name            "Compressor_/Embedded\n"
                                        "MATLA Function3"
                machine         1
                chart           396
        }

        chart {
                id                                                      405
                name                                                    "Mixing_Unit_2D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [405.45 168.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 406 0 0]
                firstTransition                                         408
                firstJunction                                           407
                viewObj                                                 405
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               409
                chartFileNumber                                         23
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      406
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   405
                treeNode                                [405 0 0 0]
                superState                              SUBCHART
                subviewer                               405
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_air_init,m_H2O_gas_init,m_CO2_init,m_H2O_liq_in"
                                                "it] = Initial(V,p_init,T_init,x_H2O_gas_init,x_CO2_init,x_H"
                                                "2O_liq_init)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_2D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_2D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function Initial:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature.\n"
                                                "% * 3. Calculation of the saturation mass.\n"
                                                "% * 4. Initialisation. \n"
                                                "% *    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. The saturation density is a function of the temperat"
                                                "ure. The used\n"
                                                "% *    function is described in literature. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature\n"
                                                "rho_H2O_gas_sat   = 4.44259*exp(15.05703*(T_init-273.15)/(2"
                                                "08.07254+(T_init-273.15)))/1000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the saturation mass\n"
                                                "m_H2O_gas_sat     = V*rho_H2O_gas_sat;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Initialisation\n"
                                                "m_air_init        = p_init*V/(T_init*(R_air+x_H2O_gas_init*"
                                                "R_H2O_gas+x_CO2_init*R_CO2));\n"
                                                "m_H2O_gas_init    = m_air_init*x_H2O_gas_init;\n"
                                                "\n"
                                                "if m_H2O_gas_init > m_H2O_gas_sat\n"
                                                "   m_H2O_gas_init = m_H2O_gas_sat;\n"
                                                "   m_air_init     = ((p_init*V/T_init)-(m_H2O_gas_init*R_H2"
                                                "O_gas))/(R_air+x_CO2_init*R_CO2);\n"
                                                "end\n"
                                                "\n"
                                                "m_CO2_init        = m_air_init*x_CO2_init;\n"
                                                "m_H2O_liq_init    = m_air_init*x_H2O_liq_init;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 43 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      407
                position                [23.5747 49.5747 7]
                chart                   405
                linkNode                [405 0 0]
                subviewer               405
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      408
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      407
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   405
                linkNode                [405 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               405
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      409
                name                                    "V"
                linkNode                                [405 0 410]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      410
                name                                    "p_init"
                linkNode                                [405 409 411]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      411
                name                                    "T_init"
                linkNode                                [405 410 412]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      412
                name                                    "x_H2O_gas_init"
                linkNode                                [405 411 413]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      413
                name                                    "x_CO2_init"
                linkNode                                [405 412 414]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      414
                name                                    "x_H2O_liq_init"
                linkNode                                [405 413 415]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      415
                name                                    "m_air_init"
                linkNode                                [405 414 416]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      416
                name                                    "m_H2O_gas_init"
                linkNode                                [405 415 417]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      417
                name                                    "m_CO2_init"
                linkNode                                [405 416 418]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      418
                name                                    "m_H2O_liq_init"
                linkNode                                [405 417 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              419
                name            "Mixing_Unit_2D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           405
        }

        chart {
                id                                                      420
                name                                                    "Mixing_Point_3D_/Embedded_MATLAB_Function"
                windowPosition                                          [572.088 43.219 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 421 0 0]
                firstTransition                                         423
                firstJunction                                           422
                viewObj                                                 420
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               424
                chartFileNumber                                         24
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      421
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   420
                treeNode                                [420 0 0 0]
                superState                              SUBCHART
                subviewer                               420
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho_bar,T_bar,x_H2O_gas_bar,x_CO2,x_H2O_liq_bar"
                                                "] = Cal(p_old,rho_old,T_old,x_H2O_gas_old,x_CO2_old,x_H2O_l"
                                                "iq_old,p_in_1,rho_in_1,T_in_1,m_dot_air_in_1,x_H2O_gas_in_1"
                                                ",x_CO2_in_1,x_H2O_liq_in_1,p_in_2,rho_in_2,T_in_2,m_dot_air"
                                                "_in_2,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2,p_in_3,rho_i"
                                                "n_3,T_in_3,m_dot_air_in_3,x_H2O_gas_in_3,x_CO2_in_3,x_H2O_l"
                                                "iq_in_3,Delta_p_threshold)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing point with 3 apertures\n"
                                                "% * \n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter:               Threshold Equality Input/Outpu"
                                                "t Pressures\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Point_3D\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Point_3D\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Definition state variables.\n"
                                                "% * 3. Redefinition of the input variables.\n"
                                                "% * 4. Consistency check.\n"
                                                "% * 5. Operation mode: Determination of the pressure\n"
                                                "% *                    5.1. Calculation pressure\n"
                                                "% *                    5.2. Calculation temperature, water "
                                                "vapor content, \n"
                                                "% *                         CO2-content, water content\n"
                                                "% * 6. Condensation/Evaporation.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog).\n"
                                                "% * 4. Consistency Check:\n"
                                                "% *    check = 1: Operation mode \n"
                                                "% *    check = 0: Standby mode \n"
                                                "% *    Conditions for the standby mode:\n"
                                                "% *    a) All mass flows are incoming mass flows (sign: plu"
                                                "s)\n"
                                                "% *    b) All mass flows are outgoing mass flows (sign: min"
                                                "us)\n"
                                                "% *    c) All mass flows are equal zero\n"
                                                "% * 5. Operation mode:\n"
                                                "% *    5.1. Calculation pressure \n"
                                                "% *\n"
                                                "% *         Linearization: For each time step the following"
                                                " equations will\n"
                                                "% *                        be resolved for the constants K_"
                                                "1, K_2 and K_3. \n"
                                                "% *                        K_1, K_2 and K_3 are time depend"
                                                "ant.\n"
                                                "% *\n"
                                                "% *                        m_dot_1 = K_1*(p_in_1-p)\n"
                                                "% *                        m_dot_2 = K_2*(p_in_2-p)\n"
                                                "% *                        m_dot_3 = K_3*(p_in_3-p)\n"
                                                "% *\n"
                                                "% *         Calculation pressure: Assuming that the constan"
                                                "ts are fixed within \n"
                                                "% *                               one time step, a estimati"
                                                "on for the pressure \n"
                                                "% *                               can be made. the sum of t"
                                                "he incoming and the \n"
                                                "% *                               outgoing mass flows has t"
                                                "o be zero.\n"
                                                "% *                               (m_dot_1+m_dot_2+m_dot_3 "
                                                "= 0)\n"
                                                "% *\n"
                                                "% *                               m_dot_1+m_dot_2+m_dot_3 ="
                                                " 0\n"
                                                "% *                               => K_1*(p_in_1-p)+K_2*(p_"
                                                "in_2-p)+K_3*(p_in_3-p) = 0\n"
                                                "% *                               => p = (K_1*p_in_1+K_2*p_"
                                                "in_2+K_3*p_in_3)/(K_1+K_2+K_3)\n"
                                                "% * \n"
                                                "% *                               In the case that one mass"
                                                " flow is constant.\n"
                                                "% *                               e.g. m_dot_1 = const. The"
                                                " pressure has to be\n"
                                                "% *                               calculated by the followi"
                                                "ng equation.\n"
                                                "% *                               \n"
                                                "% *                               p = (m_dot_1+K_2*p_in_2+K"
                                                "_3*p_in_3)/(K_2+K_3)\n"
                                                "% *                               \n"
                                                "% *                               For stability reasons p_i"
                                                "n_1, p_in_2 or p_in_3 and\n"
                                                "% *                               p will be assumed as equa"
                                                "l, then e.g. \n"
                                                "% *                               (p_in_1-p) < Delta_p_thre"
                                                "shold\n"
                                                "% *\n"
                                                "% *    5.2. Calculation temperature, water vapor content, C"
                                                "O2-content, water content\n"
                                                "% *\n"
                                                "% *         The state variables of incoming mass flows cont"
                                                "ibute to the \n"
                                                "% *         calculation of the temperature, the water vapor"
                                                " content, \n"
                                                "% *         the CO2-content and the water content of the no"
                                                "de. The values\n"
                                                "% *         will be calculated by a weighted average. The s"
                                                "tate variables \n"
                                                "% *         of the outgoing mass flows will be determined b"
                                                "y the node. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 18.01.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air                         = 287.058;\n"
                                                "R_H2O_gas                     = 461.523;\n"
                                                "R_CO2                         = 188.924;\n"
                                                "c_p_air                       = 1005;\n"
                                                "c_p_H2O_gas                   = 1870;\n"
                                                "c_p_CO2                       = 830;\n"
                                                "c_p_H2O_liq                   = 4173;\n"
                                                "c_p_H2O_ice                   = 2050;\n"
                                                "r_0                           = 2500000;\n"
                                                "r_ice                         = 333000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition state variables\n"
                                                "p                             = p_old;\n"
                                                "rho                           = rho_old;\n"
                                                "T                             = T_old;\n"
                                                "x_H2O_gas                     = x_H2O_gas_old;\n"
                                                "x_CO2                         = x_CO2_old;\n"
                                                "x_H2O_liq                     = x_H2O_liq_old;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation incoming and outgoing mass flows\n"
                                                "m_dot_1                       = m_dot_air_in_1+m_dot_air_in"
                                                "_1*x_H2O_gas_in_1+m_dot_air_in_1*x_CO2_in_1;\n"
                                                "m_dot_2                       = m_dot_air_in_2+m_dot_air_in"
                                                "_2*x_H2O_gas_in_2+m_dot_air_in_2*x_CO2_in_2;\n"
                                                "m_dot_3                       = m_dot_air_in_3+m_dot_air_in"
                                                "_3*x_H2O_gas_in_3+m_dot_air_in_3*x_CO2_in_3;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Consistency check\n"
                                                "check                         = 1;\n"
                                                "\n"
                                                "if m_dot_1 > 0\n"
                                                "   if m_dot_2 > 0\n"
                                                "      if m_dot_3 > 0\n"
                                                "         check                = 0;\n"
                                                "      end\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_1 < 0\n"
                                                "   if m_dot_2 < 0\n"
                                                "      if m_dot_3 < 0\n"
                                                "         check                = 0;\n"
                                                "      end\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if abs(m_dot_1)+abs(m_dot_2)+abs(m_dot_3) == 0\n"
                                                "   check                      = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Operation mode: \n"
                                                "% * 5.1. Calculation pressure\n"
                                                "if check == 1\n"
                                                "   Numerator                  = 0;\n"
                                                "   Denominator                = 0;\n"
                                                "   \n"
                                                "   if p_in_1 == 0\n"
                                                "      Numerator               = Numerator+m_dot_1;\n"
                                                "   else\n"
                                                "      if abs(p_in_1-p) < Delta_p_threshold\n"
                                                "         K_1                  = 0;\n"
                                                "      else\n"
                                                "         K_1                  = abs(m_dot_1)/abs(p_in_1-p);"
                                                "\n"
                                                "      end\n"
                                                "\n"
                                                "      Numerator               = Numerator+K_1*p_in_1;\n"
                                                "      Denominator             = Denominator+K_1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if p_in_2 == 0\n"
                                                "      Numerator               = Numerator+m_dot_2;\n"
                                                "   else\n"
                                                "      if abs(p_in_2-p) < Delta_p_threshold\n"
                                                "         K_2                  = 0;\n"
                                                "      else\n"
                                                "         K_2                  = abs(m_dot_2)/abs(p_in_2-p);"
                                                "\n"
                                                "      end\n"
                                                "      \n"
                                                "      Numerator               = Numerator+K_2*p_in_2;\n"
                                                "      Denominator             = Denominator+K_2;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if p_in_3 == 0\n"
                                                "      Numerator               = Numerator+m_dot_3;\n"
                                                "   else\n"
                                                "      if abs(p_in_3-p) < Delta_p_threshold\n"
                                                "         K_3                  = 0;\n"
                                                "      else\n"
                                                "         K_3                  = abs(m_dot_3)/abs(p_in_3-p);"
                                                "\n"
                                                "      end\n"
                                                "      \n"
                                                "      Numerator               = Numerator+K_3*p_in_3;\n"
                                                "      Denominator             = Denominator+K_3;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if Denominator > 0\n"
                                                "      p                       = Numerator/Denominator;\n"
                                                "   end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5.2. Calculation temperature, water vapor content, CO2-"
                                                "content, \n"
                                                "% *      water content\n"
                                                "if check == 1\n"
                                                "   Denominator                = 0;\n"
                                                "   T                          = 0;\n"
                                                "   x_H2O_gas                  = 0;\n"
                                                "   x_CO2                      = 0;\n"
                                                "   x_H2O_liq                  = 0;\n"
                                                "   \n"
                                                "   if m_dot_1 > 0\n"
                                                "      T                       = T+m_dot_1*T_in_1;\n"
                                                "      x_H2O_gas               = x_H2O_gas+m_dot_1*x_H2O_gas"
                                                "_in_1;\n"
                                                "      x_CO2                   = x_CO2+m_dot_1*x_CO2_in_1;\n"
                                                "      x_H2O_liq               = x_H2O_liq+m_dot_1*x_H2O_liq"
                                                "_in_1;\n"
                                                "      Denominator             = Denominator+m_dot_1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if m_dot_2 > 0\n"
                                                "      T                       = T+m_dot_2*T_in_2;\n"
                                                "      x_H2O_gas               = x_H2O_gas+m_dot_2*x_H2O_gas"
                                                "_in_2;\n"
                                                "      x_CO2                   = x_CO2+m_dot_2*x_CO2_in_2;\n"
                                                "      x_H2O_liq               = x_H2O_liq+m_dot_2*x_H2O_liq"
                                                "_in_2;\n"
                                                "      Denominator             = Denominator+m_dot_2;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if m_dot_3 > 0\n"
                                                "      T                       = T+m_dot_3*T_in_3;\n"
                                                "      x_H2O_gas               = x_H2O_gas+m_dot_3*x_H2O_gas"
                                                "_in_3;\n"
                                                "      x_CO2                   = x_CO2+m_dot_3*x_CO2_in_3;\n"
                                                "      x_H2O_liq               = x_H2O_liq+m_dot_3*x_H2O_liq"
                                                "_in_3;\n"
                                                "      Denominator             = Denominator+m_dot_3;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if abs(Denominator) > 0\n"
                                                "      T                       = T/Denominator;\n"
                                                "      x_H2O_gas               = x_H2O_gas/Denominator;\n"
                                                "      x_CO2                   = x_CO2/Denominator;\n"
                                                "      x_H2O_liq               = x_H2O_liq/Denominator;\n"
                                                "      R_avg                   = (R_air+x_H2O_gas*R_H2O_gas+"
                                                "x_CO2*R_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "      rho                     = p/(R_avg*T);\n"
                                                "   else\n"
                                                "      T                       = T_old;\n"
                                                "      rho                     = rho_old;\n"
                                                "      x_H2O_gas               = x_H2O_gas_old;\n"
                                                "      x_CO2                   = x_CO2_old;\n"
                                                "      x_H2O_liq               = x_H2O_liq_old;\n"
                                                "   end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Condensation/Evaporation\n"
                                                "rho_bar                       = rho;\n"
                                                "T_bar                         = T;\n"
                                                "x_H2O_gas_bar                 = x_H2O_gas;\n"
                                                "x_H2O_liq_bar                 = x_H2O_liq;\n"
                                                "rho_H2O_gas_sat               = 4.44259*exp(15.05703*(T-273"
                                                ".15)/(208.07254+(T-273.15)))/1000;\n"
                                                "rho_air                       = rho/(1+x_H2O_gas+x_CO2);\n"
                                                "x_H2O_gas_sat                 = rho_H2O_gas_sat/rho_air;\n"
                                                "evap                          = 0;\n"
                                                "cond                          = 0;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   evap                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if x_H2O_gas_sat < x_H2O_gas\n"
                                                "   cond                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if evap>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   \n"
                                                "   while test>0\n"
                                                "         rho_H2O_gas_sat_evap = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_evap   = rho_H2O_gas_sat_evap/rho_ai"
                                                "r;\n"
                                                "         \n"
                                                "         if (x_H2O_gas_sat_evap-x_H2O_gas)<x_H2O_liq\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas_sat_evap;\n"
                                                "         else\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas+x_H2O_liq;\n"
                                                "         end\n"
                                                "\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas_bar-x_H2O_ga"
                                                "s);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T+(x_"
                                                "H2O_gas_bar-x_H2O_gas)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar >= T\n"
                                                "      T_bar                   = T;\n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "     x_H2O_liq_bar            = x_H2O_liq-(x_H2O_gas_bar-x_"
                                                "H2O_gas);\n"
                                                "     R_avg                    = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "     rho_bar                  = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if cond>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   x_H2O_gas_sat_cond         = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_cond = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_cond   = rho_H2O_gas_sat_cond/rho_ai"
                                                "r;\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas-x_H2O_gas_sa"
                                                "t_cond);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T-(x_"
                                                "H2O_gas-x_H2O_gas_sat_cond)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar <= T\n"
                                                "      T_bar                   = T; \n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas_sat_cond;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq+(x_H2O_gas-x_H2O_"
                                                "gas_sat_cond);\n"
                                                "      R_avg                   = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "      rho_bar                 = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[17 141 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      422
                position                [23.5747 49.5747 7]
                chart                   420
                linkNode                [420 0 0]
                subviewer               420
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      423
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      422
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   420
                linkNode                [420 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               420
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      424
                name                                    "p_old"
                linkNode                                [420 0 425]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      425
                name                                    "rho_old"
                linkNode                                [420 424 426]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      426
                name                                    "T_old"
                linkNode                                [420 425 427]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      427
                name                                    "x_H2O_gas_old"
                linkNode                                [420 426 428]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      428
                name                                    "x_CO2_old"
                linkNode                                [420 427 429]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      429
                name                                    "x_H2O_liq_old"
                linkNode                                [420 428 430]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      430
                name                                    "p_in_1"
                linkNode                                [420 429 431]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      431
                name                                    "rho_in_1"
                linkNode                                [420 430 432]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      432
                name                                    "T_in_1"
                linkNode                                [420 431 433]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      433
                name                                    "m_dot_air_in_1"
                linkNode                                [420 432 434]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      434
                name                                    "x_H2O_gas_in_1"
                linkNode                                [420 433 435]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      435
                name                                    "x_CO2_in_1"
                linkNode                                [420 434 436]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      436
                name                                    "x_H2O_liq_in_1"
                linkNode                                [420 435 437]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      437
                name                                    "p_in_2"
                linkNode                                [420 436 438]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      438
                name                                    "rho_in_2"
                linkNode                                [420 437 439]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      439
                name                                    "T_in_2"
                linkNode                                [420 438 440]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      440
                name                                    "m_dot_air_in_2"
                linkNode                                [420 439 441]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      441
                name                                    "x_H2O_gas_in_2"
                linkNode                                [420 440 442]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      442
                name                                    "x_CO2_in_2"
                linkNode                                [420 441 443]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      443
                name                                    "x_H2O_liq_in_2"
                linkNode                                [420 442 444]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      444
                name                                    "p_in_3"
                linkNode                                [420 443 445]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      445
                name                                    "rho_in_3"
                linkNode                                [420 444 446]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      446
                name                                    "T_in_3"
                linkNode                                [420 445 447]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      447
                name                                    "p"
                linkNode                                [420 446 448]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      448
                name                                    "rho_bar"
                linkNode                                [420 447 449]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      449
                name                                    "T_bar"
                linkNode                                [420 448 450]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      450
                name                                    "m_dot_air_in_3"
                linkNode                                [420 449 451]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      451
                name                                    "x_H2O_gas_in_3"
                linkNode                                [420 450 452]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      452
                name                                    "x_CO2_in_3"
                linkNode                                [420 451 453]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      453
                name                                    "x_H2O_gas_bar"
                linkNode                                [420 452 454]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      454
                name                                    "x_CO2"
                linkNode                                [420 453 455]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      455
                name                                    "x_H2O_liq_bar"
                linkNode                                [420 454 456]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      456
                name                                    "x_H2O_liq_in_3"
                linkNode                                [420 455 457]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      457
                name                                    "Delta_p_threshold"
                linkNode                                [420 456 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              458
                name            "Mixing_Point_3D_/Embedded_MATLAB_Function"
                machine         1
                chart           420
        }

        chart {
                id                                                      459
                name                                                    "Turbine_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [378.23 249.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 460 0 0]
                firstTransition                                         462
                firstJunction                                           461
                viewObj                                                 459
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               463
                chartFileNumber                                         25
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_2"
                }
        }

        state {
                id                                      460
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   459
                treeNode                                [459 0 0 0]
                superState                              SUBCHART
                subviewer                               459
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho_outlet,T_outlet,m_dot_air_inlet,m_dot_air_out"
                                                "let,x_H2O_gas_outlet,x_H2O_liq_outlet,P_trb] = Cal_2(p_inle"
                                                "t,p_outlet,rho_inlet,T_inlet,x_H2O_gas,x_CO2,x_H2O_liq,m_do"
                                                "t_air,eff,eff_bar)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a turbine\n"
                                                "% *\n"
                                                "% * Number of inputs :                 3\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Speed Factor, Effici"
                                                "ency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Turbine\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Turbine\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_2:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation mass flow.\n"
                                                "% * 3. Calculation outlet temperature and density.\n"
                                                "% * 4. Calculation delivered power.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air            = 287.058;\n"
                                                "R_H2O_gas        = 461.523;\n"
                                                "R_CO2            = 188.924;\n"
                                                "c_p_air          = 1005;\n"
                                                "c_p_H2O_gas      = 1870;\n"
                                                "c_p_CO2          = 830;\n"
                                                "c_p_H2O_liq      = 4173;\n"
                                                "c_p_H2O_ice      = 2050;\n"
                                                "r_ice            = 333000;\n"
                                                "\n"
                                                "R_avg            = (R_air+x_H2O_gas*R_H2O_gas+x_CO2*R_CO2)/"
                                                "(1+x_H2O_gas+x_CO2);\n"
                                                "c_p_avg          = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2*c_p"
                                                "_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "c_v_avg          = c_p_avg-R_avg;\n"
                                                "gamma_avg        = c_p_avg/c_v_avg;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation specific work\n"
                                                "w_trb            = eff*c_p_air*T_inlet*(1-((p_outlet/p_inle"
                                                "t)^((gamma_avg-1)/gamma_avg)));\n"
                                                "w_trb_bar        = eff_bar*c_p_air*T_inlet*(1-((p_outlet/p_"
                                                "inlet)^((gamma_avg-1)/gamma_avg)));\n"
                                                "\n"
                                                "if w_trb < 0\n"
                                                "   w_trb         = 0;\n"
                                                "   w_trb_bar    = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation outlet temperature and density\n"
                                                "T_outlet         = T_inlet-(1/c_p_air)*w_trb;\n"
                                                "\n"
                                                "rho_H2O_gas_sat  = 4.44259*exp(15.05703*(T_outlet-273.15)/("
                                                "208.07254+(T_outlet-273.15)))/1000;\n"
                                                "rho_air_inlet    = rho_inlet/(1+x_H2O_gas+x_CO2);\n"
                                                "x_H2O_gas_sat    = rho_H2O_gas_sat/rho_air_inlet;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   x_H2O_gas_sat = x_H2O_gas;\n"
                                                "end\n"
                                                "\n"
                                                "x_H2O_gas_outlet = x_H2O_gas_sat;\n"
                                                "x_H2O_liq_outlet = x_H2O_liq+(x_H2O_gas-x_H2O_gas_outlet);\n"
                                                "\n"
                                                "R_avg            = (R_air+x_H2O_gas_outlet*R_H2O_gas+x_CO2*"
                                                "R_CO2)/(1+x_H2O_gas_outlet+x_CO2);\n"
                                                "c_p_avg          = (R_air+x_H2O_gas_outlet*c_p_H2O_gas+x_CO"
                                                "2*c_p_CO2)/(1+x_H2O_gas_outlet+x_CO2);\n"
                                                "\n"
                                                "rho_outlet       = p_outlet/(R_avg*T_outlet);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation delivered power\n"
                                                "if p_outlet == p_inlet\n"
                                                "   m_dot_air     = 0;\n"
                                                "end\n"
                                                "\n"
                                                "P_trb            = m_dot_air*w_trb_bar;\n"
                                                "\n"
                                                "m_dot_air_inlet  = -m_dot_air;\n"
                                                "m_dot_air_outlet =  m_dot_air;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[129 146 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      461
                position                [23.5747 49.5747 7]
                chart                   459
                linkNode                [459 0 0]
                subviewer               459
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      462
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      461
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   459
                linkNode                [459 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               459
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      463
                name                                    "rho_outlet"
                linkNode                                [459 0 464]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      464
                name                                    "T_outlet"
                linkNode                                [459 463 465]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      465
                name                                    "p_inlet"
                linkNode                                [459 464 466]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      466
                name                                    "p_outlet"
                linkNode                                [459 465 467]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      467
                name                                    "rho_inlet"
                linkNode                                [459 466 468]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      468
                name                                    "T_inlet"
                linkNode                                [459 467 469]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      469
                name                                    "x_H2O_gas"
                linkNode                                [459 468 470]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      470
                name                                    "x_CO2"
                linkNode                                [459 469 471]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      471
                name                                    "x_H2O_liq"
                linkNode                                [459 470 472]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      472
                name                                    "m_dot_air"
                linkNode                                [459 471 473]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      473
                name                                    "eff"
                linkNode                                [459 472 474]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      474
                name                                    "m_dot_air_inlet"
                linkNode                                [459 473 475]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      475
                name                                    "m_dot_air_outlet"
                linkNode                                [459 474 476]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      476
                name                                    "x_H2O_gas_outlet"
                linkNode                                [459 475 477]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      477
                name                                    "x_H2O_liq_outlet"
                linkNode                                [459 476 478]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      478
                name                                    "P_trb"
                linkNode                                [459 477 479]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      479
                name                                    "eff_bar"
                linkNode                                [459 478 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              480
                name            "Turbine_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           459
        }

        chart {
                id                                                      481
                name                                                    "Turbine_/Embedded\n"
                                        "MATLA Function2"
                windowPosition                                          [393.23 234.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 482 0 0]
                firstTransition                                         484
                firstJunction                                           483
                viewObj                                                 481
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               485
                chartFileNumber                                         26
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_1"
                }
        }

        state {
                id                                      482
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   481
                treeNode                                [481 0 0 0]
                superState                              SUBCHART
                subviewer                               481
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_dot_air,F_v]  = Cal_1(p_inlet,rho_inlet,T_inlet"
                                                ",p_0,T_0,T_outlet,A_n,n,F_f)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a turbine\n"
                                                "% *\n"
                                                "% * Number of inputs :                 3\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Speed Factor, Effici"
                                                "ency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Turbine\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Turbine\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_1:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation mass flow.\n"
                                                "% * 3. Calculation velocity factor.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "F_v         = 0;\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "c_p_air     = 1005;\n"
                                                "c_p_H2O_gas = 1870;\n"
                                                "c_p_CO2     = 830;\n"
                                                "r_0         = 2500000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation mass flow\n"
                                                "if F_f < 0\n"
                                                "   F_f      = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air   = 0.0403*F_f*p_inlet*A_n/sqrt(T_inlet);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation velocity factor\n"
                                                "if T_inlet > T_outlet\n"
                                                "   F_v      = n/(3320*sqrt(1.8)*sqrt(T_inlet-T_outlet));\n"
                                                "end\n"
                                                "\n"
                                                "if T_inlet <= T_outlet\n"
                                                "   F_v      = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[225 198 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      483
                position                [23.5747 49.5747 7]
                chart                   481
                linkNode                [481 0 0]
                subviewer               481
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      484
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      483
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   481
                linkNode                [481 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               481
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      485
                name                                    "m_dot_air"
                linkNode                                [481 0 486]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      486
                name                                    "p_inlet"
                linkNode                                [481 485 487]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      487
                name                                    "rho_inlet"
                linkNode                                [481 486 488]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      488
                name                                    "T_inlet"
                linkNode                                [481 487 489]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      489
                name                                    "p_0"
                linkNode                                [481 488 490]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      490
                name                                    "T_0"
                linkNode                                [481 489 491]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      491
                name                                    "T_outlet"
                linkNode                                [481 490 492]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      492
                name                                    "A_n"
                linkNode                                [481 491 493]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      493
                name                                    "n"
                linkNode                                [481 492 494]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      494
                name                                    "F_f"
                linkNode                                [481 493 495]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      495
                name                                    "F_v"
                linkNode                                [481 494 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              496
                name            "Turbine_/Embedded\n"
                                        "MATLA Function2"
                machine         1
                chart           481
        }

        chart {
                id                                                      497
                name                                                    "Mixing_Unit_2D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [549.36 49.875 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 498 0 0]
                firstTransition                                         500
                firstJunction                                           499
                viewObj                                                 497
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               501
                chartFileNumber                                         27
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      498
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   497
                treeNode                                [497 0 0 0]
                superState                              SUBCHART
                subviewer                               497
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [T_dot,m_dot_air,m_dot_H2O_gas,m_dot_CO2,m_dot_H2O"
                                                "_liq] = T_m(T,m_air,m_H2O_gas,m_CO2,m_H2O_liq,T_in_1,m_dot_"
                                                "air_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2O_liq_in_1,T_in_2,m_"
                                                "dot_air_in_2,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2,Q_dot"
                                                ")\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_2D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_2D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function T_m:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Redefinition of the input variables.\n"
                                                "% * 3. Modification of the mass inside the system.\n"
                                                "% * 4. Modification of the temperature inside the system.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. In the case of outgoing mass flow, the characteristi"
                                                "c variables of \n"
                                                "% *    the mass flow are defined by the state variables of "
                                                "the volume. \n"
                                                "% * 3. The increase or decrease of the mass inside the volu"
                                                "me is defined \n"
                                                "% *    by the incoming (sign: plus) or outgoing (sign: minu"
                                                "s) mass flow.\n"
                                                "% * 4. The Enthalpy equation of the gas inside the volume i"
                                                "s used. the \n"
                                                "% *    enthalpy of the liquid water inside the volume is ne"
                                                "glected. \n"
                                                "% *    Assuming that the liquid water is always in thermal "
                                                "equilibrium with \n"
                                                "% *    the gas.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "c_p_air           = 1005;\n"
                                                "c_p_H2O_gas       = 1870;\n"
                                                "c_p_CO2           = 830;\n"
                                                "c_v_air           = c_p_air-R_air;\n"
                                                "c_v_H2O_gas       = c_p_H2O_gas-R_H2O_gas;\n"
                                                "c_v_CO2           = c_p_CO2-R_CO2;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Redefinition of the input variables\n"
                                                "if m_dot_air_in_1 < 0\n"
                                                "   T_in_1         = T;\n"
                                                "   m_dot          = m_dot_air_in_1*(1+x_H2O_gas_in_1+x_CO2_"
                                                "in_1);\n"
                                                "   m_dot_air_in_1 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_1 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_1     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_1 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_air_in_2 < 0\n"
                                                "   T_in_2         = T;\n"
                                                "   m_dot          = m_dot_air_in_2*(1+x_H2O_gas_in_2+x_CO2_"
                                                "in_2);\n"
                                                "   m_dot_air_in_2 = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_"
                                                "air)));\n"
                                                "   x_H2O_gas_in_2 = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in_2     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in_2 = (m_H2O_liq/m_air);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Modification of the mass inside the system\n"
                                                "m_dot_air         = m_dot_air_in_1+m_dot_air_in_2;\n"
                                                "m_dot_H2O_gas     = m_dot_air_in_1*x_H2O_gas_in_1+m_dot_air"
                                                "_in_2*x_H2O_gas_in_2;\n"
                                                "m_dot_CO2         = m_dot_air_in_1*x_CO2_in_1+m_dot_air_in_"
                                                "2*x_CO2_in_2;\n"
                                                "m_dot_H2O_liq     = m_dot_air_in_1*x_H2O_liq_in_1+m_dot_air"
                                                "_in_2*x_H2O_liq_in_2;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Modification of the temperature inside the system\n"
                                                "T_dot             = (Q_dot+m_dot_air_in_1*(c_p_air*T_in_1-c"
                                                "_v_air*T)+m_dot_air_in_2*(c_p_air*T_in_2-c_v_air*T)+m_dot_a"
                                                "ir_in_1*x_H2O_gas_in_1*(c_p_H2O_gas*T_in_1-c_v_H2O_gas*T)+m"
                                                "_dot_air_in_2*x_H2O_gas_in_2*(c_p_H2O_gas*T_in_2-c_v_H2O_ga"
                                                "s*T)+m_dot_air_in_1*x_CO2_in_1*(c_p_CO2*T_in_1-c_v_CO2*T)+m"
                                                "_dot_air_in_2*x_CO2_in_2*(c_p_CO2*T_in_2-c_v_CO2*T))/(c_v_a"
                                                "ir*m_air+c_v_H2O_gas*m_H2O_gas+c_v_CO2*m_CO2);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[210 18 1036 780]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      499
                position                [23.5747 49.5747 7]
                chart                   497
                linkNode                [497 0 0]
                subviewer               497
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      500
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      499
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   497
                linkNode                [497 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               497
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      501
                name                                    "T"
                linkNode                                [497 0 502]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      502
                name                                    "m_air"
                linkNode                                [497 501 503]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      503
                name                                    "m_H2O_gas"
                linkNode                                [497 502 504]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      504
                name                                    "m_CO2"
                linkNode                                [497 503 505]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      505
                name                                    "m_H2O_liq"
                linkNode                                [497 504 506]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      506
                name                                    "T_dot"
                linkNode                                [497 505 507]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      507
                name                                    "m_dot_air"
                linkNode                                [497 506 508]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      508
                name                                    "T_in_1"
                linkNode                                [497 507 509]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      509
                name                                    "m_dot_air_in_1"
                linkNode                                [497 508 510]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      510
                name                                    "x_H2O_gas_in_1"
                linkNode                                [497 509 511]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      511
                name                                    "x_CO2_in_1"
                linkNode                                [497 510 512]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      512
                name                                    "x_H2O_liq_in_1"
                linkNode                                [497 511 513]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      513
                name                                    "T_in_2"
                linkNode                                [497 512 514]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      514
                name                                    "m_dot_air_in_2"
                linkNode                                [497 513 515]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      515
                name                                    "x_H2O_gas_in_2"
                linkNode                                [497 514 516]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      516
                name                                    "x_CO2_in_2"
                linkNode                                [497 515 517]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      517
                name                                    "x_H2O_liq_in_2"
                linkNode                                [497 516 518]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      518
                name                                    "Q_dot"
                linkNode                                [497 517 519]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      519
                name                                    "m_dot_H2O_gas"
                linkNode                                [497 518 520]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      520
                name                                    "m_dot_CO2"
                linkNode                                [497 519 521]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      521
                name                                    "m_dot_H2O_liq"
                linkNode                                [497 520 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        instance {
                id              522
                name            "Mixing_Unit_2D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           497
        }

        chart {
                id                                                      523
                name                                                    "Turbine_/Embedded\n"
                                        "MATLA Function3"
                windowPosition                                          [408.23 219.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 524 0 0]
                firstTransition                                         526
                firstJunction                                           525
                viewObj                                                 523
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               527
                chartFileNumber                                         28
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_N"
                }
        }

        state {
                id                                      524
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   523
                treeNode                                [523 0 0 0]
                superState                              SUBCHART
                subviewer                               523
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function N = Cal_N(T_air_inlet,T_0,n)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a turbine\n"
                                                "% *\n"
                                                "% * Number of inputs :                 3\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Speed Factor, Effici"
                                                "ency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Turbine\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Turbine\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_N:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation corrected rotational speed N.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation corrected rotational speed N\n"
                                                "N = n/sqrt(T_air_inlet/T_0);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[103 236 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      525
                position                [23.5747 49.5747 7]
                chart                   523
                linkNode                [523 0 0]
                subviewer               523
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      526
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      525
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   523
                linkNode                [523 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               523
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      527
                name                                    "T_air_inlet"
                linkNode                                [523 0 528]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      528
                name                                    "T_0"
                linkNode                                [523 527 529]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      529
                name                                    "n"
                linkNode                                [523 528 530]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      530
                name                                    "N"
                linkNode                                [523 529 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              531
                name            "Turbine_/Embedded\n"
                                        "MATLA Function3"
                machine         1
                chart           523
        }

        chart {
                id                                                      532
                name                                                    "Turbine_/Embedded\n"
                                        "MATLA Function4"
                windowPosition                                          [407.584 230.537 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 533 0 0]
                firstTransition                                         535
                firstJunction                                           534
                viewObj                                                 532
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               536
                chartFileNumber                                         29
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_T_air"
                }
        }

        state {
                id                                      533
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   532
                treeNode                                [532 0 0 0]
                superState                              SUBCHART
                subviewer                               532
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function T_air_inlet = Cal_T_air(T_inlet,x_H2O_gas,x_CO2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a turbine\n"
                                                "% *\n"
                                                "% * Number of inputs :                 3\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Speed Factor, Effici"
                                                "ency\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Turbine\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Turbine\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_T_air:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation dry bulb temperature T_air.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. The specific enthalpy of the inflowing gas mixture i"
                                                "s equal the enthalpy\n"
                                                "% *    of a dry air flow.      \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation dry bulb temperature T_air\n"
                                                "c_p_air     = 1005;\n"
                                                "c_p_H2O_gas = 1870;\n"
                                                "c_p_CO2     = 830;\n"
                                                "r_0         = 2500000;\n"
                                                "T_air_inlet = (c_p_air*T_inlet+x_H2O_gas*c_p_H2O_gas*T_inle"
                                                "t+x_CO2*c_p_CO2*T_inlet+x_H2O_gas*r_0)/c_p_air;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[182 198 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      534
                position                [23.5747 49.5747 7]
                chart                   532
                linkNode                [532 0 0]
                subviewer               532
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      535
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      534
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   532
                linkNode                [532 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               532
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      536
                name                                    "T_inlet"
                linkNode                                [532 0 537]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      537
                name                                    "x_H2O_gas"
                linkNode                                [532 536 538]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      538
                name                                    "x_CO2"
                linkNode                                [532 537 539]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      539
                name                                    "T_air_inlet"
                linkNode                                [532 538 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              540
                name            "Turbine_/Embedded\n"
                                        "MATLA Function4"
                machine         1
                chart           532
        }

        chart {
                id                                                      541
                name                                                    "Mixing_Unit_2D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [489.288 123.844 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 542 0 0]
                firstTransition                                         544
                firstJunction                                           543
                viewObj                                                 541
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               545
                chartFileNumber                                         31
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      542
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   541
                treeNode                                [541 0 0 0]
                superState                              SUBCHART
                subviewer                               541
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho_bar,T_bar,x_H2O_gas_bar,x_CO2,x_H2O_liq_bar"
                                                ",Delta_T,Delta_m_H2O_gas,Delta_m_H2O_liq] = p_rho(T,m_air,m"
                                                "_H2O_gas,m_CO2,m_H2O_liq,V,Delta_T_old,Delta_m_H2O_gas_old,"
                                                "Delta_m_H2O_liq_old)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a mixing unit with 2 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Mixing_Unit_2D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Mixing_Unit_2D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function p_rho:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Redefinition of the input variables.\n"
                                                "% * 2. Definition specific gas constants.\n"
                                                "% * 3. Calculation of the density.\n"
                                                "% * 4. Calculation of the pressure.\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\n"
                                                "% * 6. Condensation/Evaporation \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 5. The differnt contents are defined in respect of the "
                                                "mass of the \n"
                                                "% *    dry air. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Redefinition of the input variables\n"
                                                "T                             = T+Delta_T_old;\n"
                                                "\n"
                                                "if T < 0\n"
                                                "   T                          = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_gas                     = m_H2O_gas+Delta_m_H2O_gas_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_gas < 0\n"
                                                "   m_H2O_gas                  = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_liq                     = m_H2O_liq+Delta_m_H2O_liq_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_liq < 0\n"
                                                "   m_H2O_liq                  = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition specific gas constants\n"
                                                "R_air                         = 287.058;\n"
                                                "R_H2O_gas                     = 461.523;\n"
                                                "R_CO2                         = 188.924;\n"
                                                "c_p_air                       = 1005;\n"
                                                "c_p_H2O_gas                   = 1870;\n"
                                                "c_p_CO2                       = 830;\n"
                                                "c_p_H2O_liq                   = 4173;\n"
                                                "c_p_H2O_ice                   = 2050;\n"
                                                "r_0                           = 2500000;\n"
                                                "r_ice                         = 333000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the density\n"
                                                "rho                           = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation of the pressure\n"
                                                "p                             = T*(m_air*R_air+m_H2O_gas*R_"
                                                "H2O_gas+m_CO2*R_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "\n"
                                                "% * 5. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content\n"
                                                "x_H2O_gas                     = m_H2O_gas/m_air;\n"
                                                "x_CO2                         = m_CO2/m_air;\n"
                                                "x_H2O_liq                     = m_H2O_liq/m_air;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Condensation/Evaporation\n"
                                                "rho_bar                       = rho;\n"
                                                "T_bar                         = T;\n"
                                                "x_H2O_gas_bar                 = x_H2O_gas;\n"
                                                "x_H2O_liq_bar                 = x_H2O_liq;\n"
                                                "rho_H2O_gas_sat               = 4.44259*exp(15.05703*(T-273"
                                                ".15)/(208.07254+(T-273.15)))/1000;\n"
                                                "x_H2O_gas_sat                 = rho_H2O_gas_sat/(m_air/V);\n"
                                                "evap                          = 0;\n"
                                                "cond                          = 0;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   evap                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if x_H2O_gas_sat < x_H2O_gas\n"
                                                "   cond                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if evap>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   \n"
                                                "   while test>0\n"
                                                "         rho_H2O_gas_sat_evap = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_evap   = rho_H2O_gas_sat_evap/(m_air"
                                                "/V);\n"
                                                "         \n"
                                                "         if (x_H2O_gas_sat_evap-x_H2O_gas)<x_H2O_liq\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas_sat_evap;\n"
                                                "         else\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas+x_H2O_liq;\n"
                                                "         end\n"
                                                "\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas_bar-x_H2O_ga"
                                                "s);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T+(x_"
                                                "H2O_gas_bar-x_H2O_gas)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar >= T\n"
                                                "      T_bar                   = T;\n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "     x_H2O_liq_bar            = x_H2O_liq-(x_H2O_gas_bar-x_"
                                                "H2O_gas);\n"
                                                "     R_avg                    = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "     rho_bar                  = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if cond>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   x_H2O_gas_sat_cond         = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_cond = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_cond   = rho_H2O_gas_sat_cond/(m_air"
                                                "/V);\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas-x_H2O_gas_sa"
                                                "t_cond);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T-(x_"
                                                "H2O_gas-x_H2O_gas_sat_cond)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "         \n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "   \n"
                                                "   if T_bar <= T\n"
                                                "      T_bar                   = T; \n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas_sat_cond;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq+(x_H2O_gas-x_H2O_"
                                                "gas_sat_cond);\n"
                                                "      R_avg                   = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "      rho_bar                 = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "Delta_T                       = Delta_T_old+T_bar-T;\n"
                                                "Delta_m_H2O_gas               = Delta_m_H2O_gas_old+m_air*("
                                                "x_H2O_gas_bar-x_H2O_gas);\n"
                                                "Delta_m_H2O_liq               = Delta_m_H2O_liq_old+m_air*("
                                                "x_H2O_liq_bar-x_H2O_liq);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[12 155 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      543
                position                [23.5747 49.5747 7]
                chart                   541
                linkNode                [541 0 0]
                subviewer               541
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      544
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      543
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   541
                linkNode                [541 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               541
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      545
                name                                    "T"
                linkNode                                [541 0 546]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      546
                name                                    "p"
                linkNode                                [541 545 547]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      547
                name                                    "rho_bar"
                linkNode                                [541 546 548]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      548
                name                                    "m_air"
                linkNode                                [541 547 549]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      549
                name                                    "m_H2O_gas"
                linkNode                                [541 548 550]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      550
                name                                    "m_CO2"
                linkNode                                [541 549 551]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      551
                name                                    "m_H2O_liq"
                linkNode                                [541 550 552]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      552
                name                                    "V"
                linkNode                                [541 551 553]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      553
                name                                    "Delta_T_old"
                linkNode                                [541 552 554]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      554
                name                                    "T_bar"
                linkNode                                [541 553 555]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      555
                name                                    "x_H2O_gas_bar"
                linkNode                                [541 554 556]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      556
                name                                    "x_CO2"
                linkNode                                [541 555 557]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      557
                name                                    "x_H2O_liq_bar"
                linkNode                                [541 556 558]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      558
                name                                    "Delta_m_H2O_gas_old"
                linkNode                                [541 557 559]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      559
                name                                    "Delta_m_H2O_liq_old"
                linkNode                                [541 558 560]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      560
                name                                    "Delta_T"
                linkNode                                [541 559 561]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      561
                name                                    "Delta_m_H2O_gas"
                linkNode                                [541 560 562]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      562
                name                                    "Delta_m_H2O_liq"
                linkNode                                [541 561 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              563
                name            "Mixing_Unit_2D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           541
        }

        chart {
                id                                                      564
                name                                                    "Dynamic_HX_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [266.284 333.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 565 0 0]
                firstTransition                                         567
                firstJunction                                           566
                viewObj                                                 564
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               568
                chartFileNumber                                         33
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_1"
                }
        }

        state {
                id                                      565
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   564
                treeNode                                [564 0 0 0]
                superState                              SUBCHART
                subviewer                               564
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_dot_air_cold,m_dot_air_cold_inlet,m_dot_air_col"
                                                "d_outlet,m_dot_air_hot,m_dot_air_hot_inlet,m_dot_air_hot_ou"
                                                "tlet] = Cal_1(K_1_hot,m_1_hot,rho_hot_inlet,K_1_cold,m_1_co"
                                                "ld,rho_cold_inlet,p_cold_inlet,p_cold_outlet,p_hot_inlet,p_"
                                                "hot_outlet,x_H2O_gas_cold,x_CO2_cold,x_H2O_gas_hot,x_CO2_ho"
                                                "t,p_0,T_0)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a dynamic heat exchanger\n"
                                                "% *\n"
                                                "% * Number of inputs :                         4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Map:             Efficiency\n"
                                                "% *            Mass HT Wall:                   m_wall\n"
                                                "% *            Specific Heat Capacity HT Wall: c_wall\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Dynamic_HX\n"
                                                "% *\n"
                                                "% * Pressure:                                  p_in\n"
                                                "% * Density:                                   rho_in\n"
                                                "% * Temperature:                               T_in\n"
                                                "% * Content water vapor:                       x_H2O_gas_in"
                                                "\n"
                                                "% * Content CO2:                               x_CO2_in\n"
                                                "% * Content water:                             x_H2O_liq_in"
                                                "\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Dynamic_HX\n"
                                                "% *\n"
                                                "% * Temperature:                               T\n"
                                                "% * Mass flow dry air:                         m_dot_air_in"
                                                "\n"
                                                "% * Content water vapor:                       x_H2O_gas\n"
                                                "% * Content CO2:                               x_CO2\n"
                                                "% * Content water:                             x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_1:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation mass flow\n"
                                                "R_air                 = 287.058;\n"
                                                "rho_0                 = p_0/(R_air*T_0);\n"
                                                "rho_air_cold_inlet    = rho_cold_inlet/(1+x_H2O_gas_cold+x_"
                                                "CO2_cold);\n"
                                                "rho_air_hot_inlet     = rho_hot_inlet/(1+x_H2O_gas_hot+x_CO"
                                                "2_hot);\n"
                                                "sigma_1_cold          = rho_air_cold_inlet/rho_0;\n"
                                                "sigma_1_hot           = rho_air_hot_inlet/rho_0;\n"
                                                "m_dot_air_cold        = (abs(p_cold_inlet-p_cold_outlet)*si"
                                                "gma_1_cold/K_1_cold)^(1/m_1_cold);\n"
                                                "\n"
                                                "if p_cold_inlet < p_cold_outlet\n"
                                                "   m_dot_air_cold     = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air_hot         = (abs(p_hot_inlet-p_hot_outlet)*sigm"
                                                "a_1_hot/K_1_hot)^(1/m_1_hot);\n"
                                                "\n"
                                                "if p_hot_inlet < p_hot_outlet\n"
                                                "   m_dot_air_hot      = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air_cold_inlet  = -m_dot_air_cold;\n"
                                                "m_dot_air_cold_outlet =  m_dot_air_cold;\n"
                                                "m_dot_air_hot_inlet   = -m_dot_air_hot;\n"
                                                "m_dot_air_hot_outlet  =  m_dot_air_hot;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[365 365 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      566
                position                [23.5747 49.5747 7]
                chart                   564
                linkNode                [564 0 0]
                subviewer               564
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      567
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      566
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   564
                linkNode                [564 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               564
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      568
                name                                    "m_dot_air_cold"
                linkNode                                [564 0 569]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      569
                name                                    "m_dot_air_cold_inlet"
                linkNode                                [564 568 570]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      570
                name                                    "m_dot_air_cold_outlet"
                linkNode                                [564 569 571]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      571
                name                                    "m_dot_air_hot"
                linkNode                                [564 570 572]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      572
                name                                    "m_dot_air_hot_inlet"
                linkNode                                [564 571 573]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      573
                name                                    "m_dot_air_hot_outlet"
                linkNode                                [564 572 574]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      574
                name                                    "K_1_hot"
                linkNode                                [564 573 575]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      575
                name                                    "m_1_hot"
                linkNode                                [564 574 576]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      576
                name                                    "rho_hot_inlet"
                linkNode                                [564 575 577]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      577
                name                                    "K_1_cold"
                linkNode                                [564 576 578]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      578
                name                                    "m_1_cold"
                linkNode                                [564 577 579]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      579
                name                                    "rho_cold_inlet"
                linkNode                                [564 578 580]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      580
                name                                    "p_cold_inlet"
                linkNode                                [564 579 581]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      581
                name                                    "p_cold_outlet"
                linkNode                                [564 580 582]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      582
                name                                    "p_hot_inlet"
                linkNode                                [564 581 583]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      583
                name                                    "p_hot_outlet"
                linkNode                                [564 582 584]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      584
                name                                    "x_H2O_gas_cold"
                linkNode                                [564 583 585]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      585
                name                                    "x_CO2_cold"
                linkNode                                [564 584 586]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      586
                name                                    "x_H2O_gas_hot"
                linkNode                                [564 585 587]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      587
                name                                    "x_CO2_hot"
                linkNode                                [564 586 588]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      588
                name                                    "p_0"
                linkNode                                [564 587 589]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      589
                name                                    "T_0"
                linkNode                                [564 588 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              590
                name            "Dynamic_HX_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           564
        }

        chart {
                id                                                      591
                name                                                    "Specialized_Fan_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [393.23 234.633 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 592 0 0]
                firstTransition                                         594
                firstJunction                                           593
                viewObj                                                 591
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               595
                chartFileNumber                                         60
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal_1"
                }
        }

        state {
                id                                      592
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   591
                treeNode                                [591 0 0 0]
                superState                              SUBCHART
                subviewer                               591
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho_outlet,T_outlet,m_dot_air_inlet,m_dot_air_out"
                                                "let,P_fan,eff] = Cal_1(p_0,T_0,p_inlet,p_outlet,T_inlet,x_H"
                                                "2O_gas,x_CO2,dT_T,m_dot_air_corr)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a specialized fan\n"
                                                "% *\n"
                                                "% * Number of inputs :                 4\n"
                                                "% *\n"
                                                "% * Parameter: Characteristic Maps:    Mass Flow, Efficienc"
                                                "y\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Specialized_Fan\n"
                                                "% *\n"
                                                "% * Pressure:                          p_in\n"
                                                "% * Density:                           rho_in\n"
                                                "% * Temperature:                       T_in\n"
                                                "% * Content water vapor:               x_H2O_gas_in\n"
                                                "% * Content CO2:                       x_CO2_in\n"
                                                "% * Content water:                     x_H2O_liq_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Specialized_Fan\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% * Mass flow dry air:                 m_dot_air\n"
                                                "% * Content water vapor:               x_H2O_gas\n"
                                                "% * Content CO2:                       x_CO2\n"
                                                "% * Content water:                     x_H2O_liq\n"
                                                "% * \n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal_1:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation mass flow.\n"
                                                "% * 3. Calculation absorbed power and output variables.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air              = 287.058;\n"
                                                "R_H2O_gas          = 461.523;\n"
                                                "R_CO2              = 188.924;\n"
                                                "c_p_air            = 1005;\n"
                                                "c_p_H2O_gas        = 1870;\n"
                                                "c_p_CO2            = 830;\n"
                                                "\n"
                                                "R_avg              = (R_air+x_H2O_gas*R_H2O_gas+x_CO2*R_CO2"
                                                ")/(1+x_H2O_gas+x_CO2);\n"
                                                "c_p_avg            = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2*c"
                                                "_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "c_v_avg            = c_p_avg-R_avg;\n"
                                                "gamma_avg          = c_p_avg/c_v_avg;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation mass flow\n"
                                                "m_dot_air          = m_dot_air_corr*(p_inlet/p_0)*(1/sqrt(T"
                                                "_inlet/T_0));\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation absorbed power and output variables\n"
                                                "eff                = 0;\n"
                                                "\n"
                                                "if abs(dT_T) > 0\n"
                                                "   eff             = (((p_outlet/p_inlet)^((gamma_avg-1)/ga"
                                                "mma_avg))-1)/dT_T;\n"
                                                "   if eff > 1\n"
                                                "      eff          = 1;\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "P_fan              = 0;\n"
                                                "T_outlet           = T_inlet;\n"
                                                "\n"
                                                "if eff > 0.01\n"
                                                "   P_fan           = (1/eff)*m_dot_air*c_p_air*T_inlet*(((p"
                                                "_outlet/p_inlet)^((gamma_avg-1)/gamma_avg))-1);\n"
                                                "   \n"
                                                "   if p_outlet < p_inlet\n"
                                                "      P_fan        = 0;\n"
                                                "   end\n"
                                                "   \n"
                                                "   T_outlet        = T_inlet*(1+dT_T);\n"
                                                "end\n"
                                                "\n"
                                                "if P_fan < 0\n"
                                                "   P_fan           = 0;\n"
                                                "end\n"
                                                "\n"
                                                "rho_outlet         = p_outlet/(R_avg*T_outlet);\n"
                                                "m_dot_air_inlet    = -m_dot_air;\n"
                                                "m_dot_air_outlet   =  m_dot_air;\n"
                                                "\n"
                                                "if m_dot_air < 0\n"
                                                "   m_dot_air_inlet = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[285 235 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      593
                position                [23.5747 49.5747 7]
                chart                   591
                linkNode                [591 0 0]
                subviewer               591
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      594
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      593
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   591
                linkNode                [591 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               591
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      595
                name                                    "p_0"
                linkNode                                [591 0 596]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      596
                name                                    "T_0"
                linkNode                                [591 595 597]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      597
                name                                    "rho_outlet"
                linkNode                                [591 596 598]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      598
                name                                    "T_outlet"
                linkNode                                [591 597 599]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      599
                name                                    "p_inlet"
                linkNode                                [591 598 600]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      600
                name                                    "p_outlet"
                linkNode                                [591 599 601]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      601
                name                                    "T_inlet"
                linkNode                                [591 600 602]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      602
                name                                    "x_H2O_gas"
                linkNode                                [591 601 603]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      603
                name                                    "x_CO2"
                linkNode                                [591 602 604]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      604
                name                                    "dT_T"
                linkNode                                [591 603 605]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      605
                name                                    "m_dot_air_corr"
                linkNode                                [591 604 606]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      606
                name                                    "m_dot_air_inlet"
                linkNode                                [591 605 607]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      607
                name                                    "m_dot_air_outlet"
                linkNode                                [591 606 608]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      608
                name                                    "P_fan"
                linkNode                                [591 607 609]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      609
                name                                    "eff"
                linkNode                                [591 608 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              610
                name            "Specialized_Fan_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           591
        }

        chart {
                id                                                      611
                name                                                    "Vol_Isobaric_2D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [414.36 184.875 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 612 0 0]
                firstTransition                                         614
                firstJunction                                           613
                viewObj                                                 611
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               615
                chartFileNumber                                         74
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      612
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   611
                treeNode                                [611 0 0 0]
                superState                              SUBCHART
                subviewer                               611
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_air_init,m_H2O_gas_init,m_CO2_init,m_H2O_liq_in"
                                                "it]= Initial(V,p,T_init,x_H2O_gas_init,x_CO2_init,x_H2O_liq"
                                                "_init)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a isobaric with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_Isobaric_2D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Vol_Isobaric_2D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function Initial:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature.\n"
                                                "% * 3. Calculation of the saturation mass.\n"
                                                "% * 4. Initialisation. \n"
                                                "% *    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. The saturation density is a function of the temperat"
                                                "ure. The used\n"
                                                "% *    function is described in literature. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air             = 287.058;\n"
                                                "R_H2O_gas         = 461.523;\n"
                                                "R_CO2             = 188.924;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the saturation density by a given tem"
                                                "perature\n"
                                                "rho_H2O_gas_sat   = 4.44259*exp(15.05703*(T_init-273.15)/(2"
                                                "08.07254+(T_init-273.15)))/1000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the saturation mass\n"
                                                "m_H2O_gas_sat     = V*rho_H2O_gas_sat;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Initialisation\n"
                                                "m_air_init        = p*V/(T_init*(R_air+x_H2O_gas_init*R_H2O"
                                                "_gas+x_CO2_init*R_CO2));\n"
                                                "m_H2O_gas_init    = m_air_init*x_H2O_gas_init;\n"
                                                "\n"
                                                "if m_H2O_gas_init > m_H2O_gas_sat\n"
                                                "   m_H2O_gas_init = m_H2O_gas_sat;\n"
                                                "   m_air_init     = ((p*V/T_init)-(m_H2O_gas_init*R_H2O_gas"
                                                "))/(R_air+x_CO2_init*R_CO2);\n"
                                                "end\n"
                                                "\n"
                                                "m_CO2_init        = m_air_init*x_CO2_init;\n"
                                                "m_H2O_liq_init    = m_air_init*x_H2O_liq_init;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[25 45 1036 780]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      613
                position                [23.5747 49.5747 7]
                chart                   611
                linkNode                [611 0 0]
                subviewer               611
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      614
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      613
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   611
                linkNode                [611 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               611
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      615
                name                                    "m_air_init"
                linkNode                                [611 0 616]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      616
                name                                    "V"
                linkNode                                [611 615 617]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      617
                name                                    "p"
                linkNode                                [611 616 618]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      618
                name                                    "T_init"
                linkNode                                [611 617 619]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      619
                name                                    "x_H2O_gas_init"
                linkNode                                [611 618 620]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      620
                name                                    "x_CO2_init"
                linkNode                                [611 619 621]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      621
                name                                    "x_H2O_liq_init"
                linkNode                                [611 620 622]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      622
                name                                    "m_H2O_gas_init"
                linkNode                                [611 621 623]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      623
                name                                    "m_CO2_init"
                linkNode                                [611 622 624]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      624
                name                                    "m_H2O_liq_init"
                linkNode                                [611 623 0]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              625
                name            "Vol_Isobaric_2D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           611
        }

        chart {
                id                                                      626
                name                                                    "Vol_Isobaric_2D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [455.99 177.914 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 627 0 0]
                firstTransition                                         629
                firstJunction                                           628
                viewObj                                                 626
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               630
                chartFileNumber                                         75
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      627
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   626
                treeNode                                [626 0 0 0]
                superState                              SUBCHART
                subviewer                               626
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [T_dot,m_dot_air,m_dot_H2O_gas,m_dot_CO2,m_dot_H2O"
                                                "_liq] = T_m(T,m_air,x_H2O_gas,x_CO2,x_H2O_liq,T_in,m_dot_ai"
                                                "r_in,x_H2O_gas_in,x_CO2_in,x_H2O_liq_in,Q_dot,m_dot_H2O_gas"
                                                "_human,m_dot_CO2_human)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a isobaric with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_Isobaric_2D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Vol_Isobaric_2D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function T_m:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Definition specific gas constants.\n"
                                                "% * 2. Definition of the outflowing mass flow\n"
                                                "% * 3. Modification of the mass inside the system.\n"
                                                "% * 4. Modification of the temperature inside the system.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 2. In the case of outgoing mass flow, the characteristi"
                                                "c variables of \n"
                                                "% *    the mass flow are defined by the state variables of "
                                                "the volume. \n"
                                                "% * 3. The increase or decrease of the mass inside the volu"
                                                "me is defined \n"
                                                "% *    by the incoming (sign: plus) or outgoing (sign: minu"
                                                "s) mass flow.\n"
                                                "% * 4. The Enthalpy equation of the gas inside the volume i"
                                                "s used. the \n"
                                                "% *    enthalpy of the liquid water inside the volume is ne"
                                                "glected. \n"
                                                "% *    Assuming that the liquid water is always in thermal "
                                                "equilibrium with \n"
                                                "% *    the gas.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Definition specific gas constants\n"
                                                "R_air           = 287.058;\n"
                                                "R_H2O_gas       = 461.523;\n"
                                                "R_CO2           = 188.924;\n"
                                                "c_p_air         = 1005;\n"
                                                "c_p_H2O_gas     = 1870;\n"
                                                "c_p_CO2         = 830;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition of the outflowing mass flow\n"
                                                "if m_dot_air_in < 0\n"
                                                "   m_dot_air_in = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_dot_air_out   = (Q_dot+m_dot_air_in*(c_p_air+x_H2O_gas_in"
                                                "*c_p_H2O_gas+x_CO2_in*c_p_CO2)*T_in+m_dot_H2O_gas_human*c_p"
                                                "_H2O_gas*T+m_dot_CO2_human*c_p_CO2*T)/((c_p_air+x_H2O_gas*c"
                                                "_p_H2O_gas+x_CO2*c_p_CO2)*T);\n"
                                                "m_dot_air_out   = -m_dot_air_out;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Modification of the mass inside the system\n"
                                                "m_dot_air       = m_dot_air_in+m_dot_air_out;\n"
                                                "m_dot_H2O_gas   = m_dot_air_in*x_H2O_gas_in+m_dot_air_out*x"
                                                "_H2O_gas+m_dot_H2O_gas_human;\n"
                                                "m_dot_CO2       = m_dot_air_in*x_CO2_in+m_dot_air_out*x_CO2"
                                                "+m_dot_CO2_human;\n"
                                                "m_dot_H2O_liq   = m_dot_air_in*x_H2O_liq_in+m_dot_air_out*x"
                                                "_H2O_liq;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Modification of the temperature inside the system\n"
                                                "m               = m_air+m_air*x_H2O_gas+m_air*x_CO2;\n"
                                                "m_dot           = m_dot_air+m_dot_H2O_gas+m_dot_CO2;\n"
                                                "T_dot           = -(T/m)*m_dot;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[52 93 1032 748]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      628
                position                [23.5747 49.5747 7]
                chart                   626
                linkNode                [626 0 0]
                subviewer               626
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      629
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      628
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   626
                linkNode                [626 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               626
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      630
                name                                    "T"
                linkNode                                [626 0 631]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      631
                name                                    "m_air"
                linkNode                                [626 630 632]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      632
                name                                    "x_H2O_gas"
                linkNode                                [626 631 633]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      633
                name                                    "x_CO2"
                linkNode                                [626 632 634]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      634
                name                                    "x_H2O_liq"
                linkNode                                [626 633 635]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      635
                name                                    "T_dot"
                linkNode                                [626 634 636]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      636
                name                                    "m_dot_air"
                linkNode                                [626 635 637]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      637
                name                                    "T_in"
                linkNode                                [626 636 638]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      638
                name                                    "m_dot_air_in"
                linkNode                                [626 637 639]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      639
                name                                    "x_H2O_gas_in"
                linkNode                                [626 638 640]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      640
                name                                    "x_CO2_in"
                linkNode                                [626 639 641]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      641
                name                                    "x_H2O_liq_in"
                linkNode                                [626 640 642]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      642
                name                                    "Q_dot"
                linkNode                                [626 641 643]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      643
                name                                    "m_dot_H2O_gas"
                linkNode                                [626 642 644]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      644
                name                                    "m_dot_CO2"
                linkNode                                [626 643 645]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      645
                name                                    "m_dot_H2O_liq"
                linkNode                                [626 644 646]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      646
                name                                    "m_dot_H2O_gas_human"
                linkNode                                [626 645 647]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      647
                name                                    "m_dot_CO2_human"
                linkNode                                [626 646 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              648
                name            "Vol_Isobaric_2D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           626
        }

        chart {
                id                                                      649
                name                                                    "Vol_Isobaric_2D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [417.544 219.522 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 650 0 0]
                firstTransition                                         652
                firstJunction                                           651
                viewObj                                                 649
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               653
                chartFileNumber                                         101
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      650
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   649
                treeNode                                [649 0 0 0]
                superState                              SUBCHART
                subviewer                               649
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho_bar,T_bar,m_air_bar,x_H2O_gas_bar,x_CO2,x_H2O"
                                                "_liq_bar,Delta_T,Delta_m_H2O_gas,Delta_m_H2O_liq] = p_rho(p"
                                                ",T,m_air,m_H2O_gas,m_CO2,m_H2O_liq,V,Delta_T_old,Delta_m_H2"
                                                "O_gas_old,Delta_m_H2O_liq_old)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a isobaric with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_Isobaric_2D:\n"
                                                "% *\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass flow dry air:       m_dot_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% * External Heat Flow:      Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Vol_Isobaric_2D:\n"
                                                "% *\n"
                                                "% * Pressure:                p\n"
                                                "% * Density:                 rho\n"
                                                "% * Temperature:             T\n"
                                                "% * Mass dry air:            m_air\n"
                                                "% * Content water vapor:     x_H2O_gas\n"
                                                "% * Content CO2:             x_CO2\n"
                                                "% * Content water:           x_H2O_liq\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded MATLAB Function p_rho:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Redefinition of the input variables.\n"
                                                "% * 2. Definition specific gas constants.\n"
                                                "% * 3. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\n"
                                                "% * 4. Calculation of the density.\n"
                                                "% * 5. Condensation/Evaporation \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions:\n"
                                                "% * 1. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 3. The differnt contents are defined in respect of the "
                                                "mass of the \n"
                                                "% *    dry air. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Redefinition of the input variables\n"
                                                "T                             = T+Delta_T_old;\n"
                                                "\n"
                                                "if T < 0\n"
                                                "   T                          = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_gas                     = m_H2O_gas+Delta_m_H2O_gas_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_gas < 0\n"
                                                "   m_H2O_gas                  = 0;\n"
                                                "end\n"
                                                "\n"
                                                "m_H2O_liq                     = m_H2O_liq+Delta_m_H2O_liq_o"
                                                "ld;\n"
                                                "\n"
                                                "if m_H2O_liq < 0\n"
                                                "   m_H2O_liq                  = 0;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition specific gas constants\n"
                                                "R_air                         = 287.058;\n"
                                                "R_H2O_gas                     = 461.523;\n"
                                                "R_CO2                         = 188.924;\n"
                                                "c_p_air                       = 1005;\n"
                                                "c_p_H2O_gas                   = 1870;\n"
                                                "c_p_CO2                       = 830;\n"
                                                "c_p_H2O_liq                   = 4173;\n"
                                                "c_p_H2O_ice                   = 2050;\n"
                                                "r_0                           = 2500000;\n"
                                                "r_ice                         = 333000;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content\n"
                                                "x_H2O_gas                     = m_H2O_gas/m_air;\n"
                                                "x_CO2                         = m_CO2/m_air;\n"
                                                "x_H2O_liq                     = m_H2O_liq/m_air;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation of the density\n"
                                                "rho                           = (p/T)*((1+x_H2O_gas+x_CO2)/"
                                                "(R_air+x_H2O_gas*R_H2O_gas+x_CO2*R_CO2));\n"
                                                "m_air_bar                     = (p*V/T)*(1/(R_air+x_H2O_gas"
                                                "*R_H2O_gas+x_CO2*R_CO2));\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Condensation/Evaporation\n"
                                                "rho_bar                       = rho;\n"
                                                "T_bar                         = T;\n"
                                                "x_H2O_gas_bar                 = x_H2O_gas;\n"
                                                "x_H2O_liq_bar                 = x_H2O_liq;\n"
                                                "rho_H2O_gas_sat               = 4.44259*exp(15.05703*(T-273"
                                                ".15)/(208.07254+(T-273.15)))/1000;\n"
                                                "x_H2O_gas_sat                 = rho_H2O_gas_sat/(m_air_bar/"
                                                "V);\n"
                                                "evap                          = 0;\n"
                                                "cond                          = 0;\n"
                                                "\n"
                                                "if x_H2O_gas_sat > x_H2O_gas\n"
                                                "   evap                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if x_H2O_gas_sat < x_H2O_gas\n"
                                                "   cond                       = 1;\n"
                                                "end\n"
                                                "\n"
                                                "if evap > 0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_evap = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_evap   = rho_H2O_gas_sat_evap/(m_air"
                                                "_bar/V);\n"
                                                "         \n"
                                                "         if (x_H2O_gas_sat_evap-x_H2O_gas) < x_H2O_liq\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas_sat_evap;\n"
                                                "         else\n"
                                                "            x_H2O_gas_bar     = x_H2O_gas+x_H2O_liq;\n"
                                                "         end\n"
                                                "\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas_bar-x_H2O_ga"
                                                "s);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T+(x_"
                                                "H2O_gas_bar-x_H2O_gas)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T-Q_lat)"
                                                "/(c_p_air+x_H2O_gas_bar*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H2O_li"
                                                "q-(x_H2O_gas_bar-x_H2O_gas))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "\n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "\n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "\n"
                                                "   if T_bar >= T\n"
                                                "      T_bar                   = T;\n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "     x_H2O_liq_bar            = x_H2O_liq-(x_H2O_gas_bar-x_"
                                                "H2O_gas);\n"
                                                "     R_avg                    = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "     rho_bar                  = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if cond>0\n"
                                                "   test                       = 1;\n"
                                                "   iter                       = 0;\n"
                                                "   x_H2O_gas_sat_cond         = 0;\n"
                                                "   \n"
                                                "   while test > 0\n"
                                                "         rho_H2O_gas_sat_cond = 4.44259*exp(15.05703*(T_bar"
                                                "-273.15)/(208.07254+(T_bar-273.15)))/1000;\n"
                                                "         x_H2O_gas_sat_cond   = rho_H2O_gas_sat_cond/(m_air"
                                                "_bar/V);\n"
                                                "         h_air_T              = (c_p_air+x_H2O_gas*c_p_H2O_"
                                                "gas+x_CO2*c_p_CO2)*T;\n"
                                                "         h_H2O_liq_T          = x_H2O_liq*c_p_H2O_liq*T;\n"
                                                "         Q_lat                = r_0*(x_H2O_gas-x_H2O_gas_sa"
                                                "t_cond);\n"
                                                "         Z_T_bar              = (h_air_T+h_H2O_liq_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_liq);\n"
                                                "         \n"
                                                "         if T < 273.15\n"
                                                "            h_H2O_ice_T       = x_H2O_liq*c_p_H2O_ice*T-(x_"
                                                "H2O_gas-x_H2O_gas_sat_cond)*r_ice;\n"
                                                "            Z_T_bar           = (h_air_T+h_H2O_ice_T+Q_lat)"
                                                "/(c_p_air+x_H2O_gas_sat_cond*c_p_H2O_gas+x_CO2*c_p_CO2+(x_H"
                                                "2O_liq+(x_H2O_gas-x_H2O_gas_sat_cond))*c_p_H2O_ice);\n"
                                                "         end\n"
                                                "\n"
                                                "         Z_T_bar              = (Z_T_bar+T_bar)/2;\n"
                                                "         \n"
                                                "         if abs(Z_T_bar-T_bar) < 0.1\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "\n"
                                                "         if iter > 10\n"
                                                "            test              = 0;\n"
                                                "         end\n"
                                                "\n"
                                                "         T_bar                = Z_T_bar;\n"
                                                "         iter                 = iter+1;\n"
                                                "   end\n"
                                                "\n"
                                                "   if T_bar <= T\n"
                                                "      T_bar                   = T; \n"
                                                "      rho_bar                 = rho;\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq;\n"
                                                "   else\n"
                                                "      x_H2O_gas_bar           = x_H2O_gas_sat_cond;\n"
                                                "      x_H2O_liq_bar           = x_H2O_liq+(x_H2O_gas-x_H2O_"
                                                "gas_sat_cond);\n"
                                                "      R_avg                   = (R_air+x_H2O_gas_bar*R_H2O_"
                                                "gas+x_CO2*R_CO2)/(1+x_H2O_gas_bar+x_CO2);\n"
                                                "      rho_bar                 = p/(R_avg*T_bar);\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "Delta_T                       = Delta_T_old+T_bar-T;\n"
                                                "Delta_m_H2O_gas               = Delta_m_H2O_gas_old+m_air_b"
                                                "ar*(x_H2O_gas_bar-x_H2O_gas);\n"
                                                "Delta_m_H2O_liq               = Delta_m_H2O_liq_old+m_air_b"
                                                "ar*(x_H2O_liq_bar-x_H2O_liq);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[12 164 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      651
                position                [23.5747 49.5747 7]
                chart                   649
                linkNode                [649 0 0]
                subviewer               649
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      652
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      651
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   649
                linkNode                [649 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               649
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      653
                name                                    "p"
                linkNode                                [649 0 654]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      654
                name                                    "T"
                linkNode                                [649 653 655]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      655
                name                                    "m_air"
                linkNode                                [649 654 656]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      656
                name                                    "rho_bar"
                linkNode                                [649 655 657]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      657
                name                                    "m_H2O_gas"
                linkNode                                [649 656 658]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      658
                name                                    "m_CO2"
                linkNode                                [649 657 659]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      659
                name                                    "m_H2O_liq"
                linkNode                                [649 658 660]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      660
                name                                    "V"
                linkNode                                [649 659 661]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      661
                name                                    "T_bar"
                linkNode                                [649 660 662]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      662
                name                                    "m_air_bar"
                linkNode                                [649 661 663]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      663
                name                                    "x_H2O_gas_bar"
                linkNode                                [649 662 664]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      664
                name                                    "x_CO2"
                linkNode                                [649 663 665]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      665
                name                                    "x_H2O_liq_bar"
                linkNode                                [649 664 666]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      666
                name                                    "Delta_T"
                linkNode                                [649 665 667]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      667
                name                                    "Delta_m_H2O_gas"
                linkNode                                [649 666 668]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      668
                name                                    "Delta_m_H2O_liq"
                linkNode                                [649 667 669]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      669
                name                                    "Delta_T_old"
                linkNode                                [649 668 670]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      670
                name                                    "Delta_m_H2O_gas_old"
                linkNode                                [649 669 671]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      671
                name                                    "Delta_m_H2O_liq_old"
                linkNode                                [649 670 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              672
                name            "Vol_Isobaric_2D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           649
        }

        chart {
                id                                                      673
                name                                                    "Heat_Mass_Exchange_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [390.288 225.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 674 0 0]
                firstTransition                                         676
                firstJunction                                           675
                viewObj                                                 673
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               677
                chartFileNumber                                         103
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      674
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   673
                treeNode                                [673 0 0 0]
                superState                              SUBCHART
                subviewer                               673
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [m_dot_air_1,x_H2O_gas,x_CO2,x_H2O_liq,m_dot_air_2"
                                                "]=Cal(A,L,gain,rho_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2O_liq"
                                                "_in_1,rho_in_2,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance\n"
                                                "% *\n"
                                                "% * Number of inputs: 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter: D\n"
                                                "% *            Length: L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% * Relevant input variables of Block FR\n"
                                                "% * pressure :               p_in\n"
                                                "% * density :                rho_in\n"
                                                "% * temperature :            T_in\n"
                                                "% * content water vapor :    x_H2O_gas_in\n"
                                                "% * content CO2 :            x_CO2_in\n"
                                                "% * content water :          x_H2O_liq_in\n"
                                                "% *\n"
                                                "% * Relevant output variables of Block FR\n"
                                                "% * temperature :            T\n"
                                                "% * mass flow air :          m_dot_air\n"
                                                "% * content water vapor :    x_H2O_gas\n"
                                                "% * content CO2 :            x_CO2\n"
                                                "% * content water :          x_H2O_liq\n"
                                                "% *\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation parameter.\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "% * 4. Calculation flow velocity.\n"
                                                "% *    4.1 Initial value of the flow velocity.\n"
                                                "% * 5. Calculation mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 2. Mode = 0: state variables = average input variables "
                                                "\n"
                                                "% *    Mode = 1: state variables = input variables higher p"
                                                "ressure\n"
                                                "% * 3. The gas mixture inside the volume consists of water "
                                                "vapor (H2O_gas),\n"
                                                "% *    CO2 and water (H2O_liq, state: fog). \n"
                                                "% * 4. The intial value of the flow velocity is estimated b"
                                                "y the law of \n"
                                                "% *    Hagen-Poiseuille. Knowing the initial value of the v"
                                                "elocity, the \n"
                                                "% *    initial value of the Reynolds number can be calculat"
                                                "ed. The iterative \n"
                                                "% *    while loop has a break condition of |v_(i-1)-v_(i)|<"
                                                "0.001*v_(i-1).\n"
                                                "% *    The input pressures are cross linked. p_in_1 is tran"
                                                "sfered to the output\n"
                                                "% *    p_1 and the other way around.\n"
                                                "% * 5. The mass flow is calculated with a incompressible ma"
                                                "ss flow equation.\n"
                                                "% *    This equation is only applicable for systems with lo"
                                                "w flow velocities.       \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 24.01.2007\n"
                                                "% * Author : Christian Müller (HAW)\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_air=1.76*10^-5;\n"
                                                "c_p_air=1005;\n"
                                                "c_p_H2O_gas=1870;\n"
                                                "c_p_CO2=830;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "m_dot=gain*D_air*(A/L)*abs(rho_in_1-rho_in_2);\n"
                                                "m_dot_air_1=0;\n"
                                                "m_dot_air_2=0;\n"
                                                "x_H2O_gas=0;\n"
                                                "x_CO2=0;\n"
                                                "x_H2O_liq=0;\n"
                                                "if rho_in_1>=rho_in_2\n"
                                                "   m_dot_air_1=-m_dot/(1+x_H2O_gas_in_1+x_CO2_in_1);\n"
                                                "   m_dot_air_2=-m_dot_air_1;\n"
                                                "   x_H2O_gas=x_H2O_gas_in_1;\n"
                                                "   x_CO2=x_CO2_in_1;\n"
                                                "   x_H2O_liq=x_H2O_liq_in_1;\n"
                                                "end \n"
                                                "if rho_in_2>rho_in_1\n"
                                                "   m_dot_air_2=-m_dot/(1+x_H2O_gas_in_2+x_CO2_in_2);\n"
                                                "   m_dot_air_1=-m_dot_air_2;\n"
                                                "   x_H2O_gas=x_H2O_gas_in_2;\n"
                                                "   x_CO2=x_CO2_in_2;\n"
                                                "   x_H2O_liq=x_H2O_liq_in_2;\n"
                                                "end\n"
                                                "if mode==0\n"
                                                "   rho=(rho_in_1+rho_in_2)/2;\n"
                                                "   T=(T_in_1+T_in_2)/2;\n"
                                                "   x_H2O_gas=(x_H2O_gas_in_1+x_H2O_gas_in_2)/2;\n"
                                                "   x_CO2=(x_CO2_in_1+x_CO2_in_2)/2;\n"
                                                "   x_H2O_liq=(x_H2O_liq_in_1+x_H2O_liq_in_2)/2;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[125 164 1288 1002]"
                        fimathString                            "fimath(...\n"
                                                                "'RoundMode', 'floor',...\n"
                                                                "'OverflowMode', 'wrap',...\n"
                                                                "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
                                                                "\n"
                                                                "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
                                                                "'CastBeforeSum', false)"
                        treatIntsAsFixpt                        0
                }
        }

        junction {
                id                      675
                position                [23.5747 49.5747 7]
                chart                   673
                linkNode                [673 0 0]
                subviewer               673
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      676
                labelString             "{eML_blk_kernel();}"
                labelPosition           [32.125 19.875 102.544 14.964]
                fontSize                12
                src {
                        intersection            [0 0 1 0 23.5747 14.625 0 0]
                }
                dst {
                        id                      675
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   673
                linkNode                [673 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               673
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      677
                name                                    "m_dot_air_1"
                linkNode                                [673 0 678]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      678
                name                                    "x_H2O_gas"
                linkNode                                [673 677 679]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      679
                name                                    "x_CO2"
                linkNode                                [673 678 680]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      680
                name                                    "x_H2O_liq"
                linkNode                                [673 679 681]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      681
                name                                    "A"
                linkNode                                [673 680 682]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                fixptType {
                        slope                   1
                        baseType                SF_INT16_TYPE
                }
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      682
                name                                    "L"
                linkNode                                [673 681 683]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      683
                name                                    "gain"
                linkNode                                [673 682 684]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      684
                name                                    "rho_in_1"
                linkNode                                [673 683 685]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      685
                name                                    "x_H2O_gas_in_1"
                linkNode                                [673 684 686]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      686
                name                                    "x_CO2_in_1"
                linkNode                                [673 685 687]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      687
                name                                    "x_H2O_liq_in_1"
                linkNode                                [673 686 688]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      688
                name                                    "rho_in_2"
                linkNode                                [673 687 689]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      689
                name                                    "m_dot_air_2"
                linkNode                                [673 688 690]
                scope                                   OUTPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      690
                name                                    "x_H2O_gas_in_2"
                linkNode                                [673 689 691]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      691
                name                                    "x_CO2_in_2"
                linkNode                                [673 690 692]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      692
                name                                    "x_H2O_liq_in_2"
                linkNode                                [673 691 0]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        instance {
                id              693
                name            "Heat_Mass_Exchange_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           673
        }

        target {
                id                                      694
                name                                    "sfun"
                description                             "Default Simulink S-Function Target."
                machine                                 1
                linkNode                                [1 0 0]
        }
}
